6c341da58d05765f8cf724b622c1deb669a75594
[gnulib.git] / ChangeLog
1 2012-02-25  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'fmodl'.
4         * modules/fmodl-tests: New file.
5         * tests/test-fmodl.c: New file.
6         * tests/test-math-c++.cc: Check the declaration of fmodl.
7
8         New module 'fmodl'.
9         * lib/math.in.h (fmodl): New declaration.
10         * lib/fmodl.c: New file.
11         * m4/fmodl.m4: New file.
12         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
13         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
14         REPLACE_FMODL.
15         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
16         REPLACE_FMODL.
17         * modules/fmodl: New file.
18         * doc/posix-functions/fmodl.texi: Mention the new module.
19
20 2012-02-25  Bruno Haible  <bruno@clisp.org>
21
22         Tests for module 'modfl'.
23         * modules/modfl-tests: New file.
24         * tests/test-modfl.c: New file.
25         * tests/test-math-c++.cc: Check the declaration of modfl.
26
27         New module 'modfl'.
28         * lib/math.in.h (modfl): New declaration.
29         * lib/modfl.c: New file.
30         * m4/modfl.m4: New file.
31         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
32         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
33         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
34         * modules/modfl: New file.
35         * doc/posix-functions/modfl.texi: Mention the new module.
36
37 2012-02-25  Bruno Haible  <bruno@clisp.org>
38
39         Tests for module 'fabsl'.
40         * modules/fabsl-tests: New file.
41         * tests/test-fabsl.c: New file.
42         * tests/test-math-c++.cc: Check the declaration of fabsl.
43
44         New module 'fabsl'.
45         * lib/math.in.h (fabsl): New declaration.
46         * lib/fabsl.c: New file.
47         * m4/fabsl.m4: New file.
48         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
49         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
50         REPLACE_FABSL.
51         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
52         REPLACE_FABSL.
53         * modules/fabsl: New file.
54         * doc/posix-functions/fabsl.texi: Mention the new module.
55
56 2012-02-25  Bruno Haible  <bruno@clisp.org>
57
58         fabs tests: More tests.
59         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
60         (zero): New variable.
61         (main): Add tests for signed zero.
62         * modules/fabs-tests (Files): Add tests/minus-zero.h.
63
64         fabsf tests: More tests.
65         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
66         (zero): New variable.
67         (main): Add tests for signed zero.
68         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
69
70 2012-02-24  Bruno Haible  <bruno@clisp.org>
71
72         atanl: Provide function definition on MSVC.
73         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
74         function pointer.
75         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
76
77 2012-02-24  Bruno Haible  <bruno@clisp.org>
78
79         acosl: Provide function definition on MSVC.
80         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
81         function pointer.
82         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
83
84 2012-02-24  Bruno Haible  <bruno@clisp.org>
85
86         asinl: Provide function definition on MSVC.
87         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
88         function pointer.
89         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
90
91 2012-02-24  Bruno Haible  <bruno@clisp.org>
92
93         tanl: Provide function definition on MSVC.
94         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
95         function pointer.
96         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
97
98 2012-02-24  Bruno Haible  <bruno@clisp.org>
99
100         cosl: Provide function definition on MSVC.
101         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
102         function pointer.
103         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
104
105 2012-02-24  Bruno Haible  <bruno@clisp.org>
106
107         sinl: Provide function definition on MSVC.
108         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
109         function pointer.
110         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
111
112 2012-02-24  Bruno Haible  <bruno@clisp.org>
113
114         logl: Provide function definition on MSVC.
115         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
116         function pointer.
117         * lib/math.in.h (logl): Undefine if it does not exist as a function.
118
119 2012-02-24  Bruno Haible  <bruno@clisp.org>
120
121         expl: Provide function definition on MSVC.
122         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
123         function pointer.
124         * lib/math.in.h (expl): Undefine if it does not exist as a function.
125
126 2012-02-24  Bruno Haible  <bruno@clisp.org>
127
128         sqrtl: Provide function definition on MSVC.
129         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
130         a function pointer.
131         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
132
133 2012-02-24  Bruno Haible  <bruno@clisp.org>
134
135         ceill: Provide function definition on MSVC.
136         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
137         used as a function pointer.
138         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
139
140 2012-02-24  Bruno Haible  <bruno@clisp.org>
141
142         floorl: Provide function definition on MSVC.
143         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
144         used as a function pointer.
145         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
146
147 2012-02-24  Bruno Haible  <bruno@clisp.org>
148
149         ceilf: Provide function definition on MSVC.
150         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
151         used as a function pointer.
152         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
153
154 2012-02-24  Bruno Haible  <bruno@clisp.org>
155
156         floorf: Provide function definition on MSVC.
157         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
158         used as a function pointer.
159         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
160
161 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
162
163         stdnoreturn: new module
164         This implements a replacement for C11's <stdnoreturn.h>.
165         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
166         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
167         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
168         * tests/test-stdnoreturn.c: New files.
169
170 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
171
172         regex: fix false multibyte matches in some regular expressions
173         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
174         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
175         * lib/regex_internal.c (re_string_skip_chars):
176         Fix miscomputation of remain_len that may cause incomplete
177         multi-byte character and false match.
178
179 2012-02-24  Jim Meyering  <meyering@redhat.com>
180
181         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
182         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
183         uses with "==" *before* the call, e.g., 0 == strcmp (...)
184         Remove now-unnecessary str''cmp obfuscation.
185         Suggested by Akim Demaille.
186
187 2012-02-24  Bruno Haible  <bruno@clisp.org>
188
189         streq: Rename macro.
190         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
191         * NEWS: Mention the change.
192         * lib/mbrtowc.c (mbrtowc): Update.
193         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
194         * lib/wcwidth.c (wcwidth): Update.
195         Suggested by Akim Demaille and Jim Meyering.
196
197 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
198
199         regex: fix typo in definition of MIN
200         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
201         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
202
203 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
204             Bruno Haible  <bruno@clisp.org>
205
206         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
207         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
208         entries into a stack-allocated buffer directly.
209         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
210
211 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
212             Bruno Haible  <bruno@clisp.org>
213
214         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
215
216          - There were several instances of this pattern:
217
218              for (;;) {
219                n = acl (f, GETACLCNT, 0, NULL);
220                [ allocate an array A of size N ]
221                if (acl (f, GETACL, n, a) == n)
222                  break;
223              }
224
225            This loop might never terminate if some other process is constantly
226            manipulating the file's ACL.  The loop should be rewritten to
227            terminate.
228
229          - The acl (... GETACLNT ...) call is merely an optimization; its value
230            is merely a hint as to how big to make the array.  A better
231            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
232            and just guess a reasonably-big size, growing the size and trying
233            again if it's not large enough.  This guarantees termination, and
234            saves a system call.
235
236         * lib/acl-internal.h: Include <limits.h>.
237         (MIN, SIZE_MAX): New macros.
238         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
239         a stack-allocated buffer, and use malloc if it does not fit. Don't
240         use GETACLCNT.
241         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
242
243 2012-02-19  Bruno Haible  <bruno@clisp.org>
244
245         acl: Fix endless loop on Solaris with vxfs.
246         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
247         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
248         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
249         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
250         * tests/test-sameacls.c (main)[Solaris]: Likewise.
251         Reported by Bill Jones in
252         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
253
254 2012-02-19  Bruno Haible  <bruno@clisp.org>
255
256         acl: Fix copy-acl test failure on Solaris 11 2011-11.
257         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
258         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
259         that this function returns 0 in some more cases.
260
261 2012-02-19  Bruno Haible  <bruno@clisp.org>
262
263         acl: Update doc references.
264         * doc/acl-resources.txt: Update links to Solaris documentation.
265
266 2012-02-19  Bruno Haible  <bruno@clisp.org>
267
268         Fix test failure in many locales on Solaris 11.
269         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
270         'tr' arguments.
271         * tests/test-pipe-filter-ii1.c (main): Likewise.
272         * build-aux/bootstrap (check_versions): Run 'tr' command with range
273         expressions in the C locale.
274         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
275         * m4/host-os.m4 (gl_HOST_OS): Likewise.
276
277 2012-02-19  Bruno Haible  <bruno@clisp.org>
278
279         gnulib-tool: Improve usage message.
280         * gnulib-tool (func_usage): Move doc of --help and --version to the
281         section "Operation modes".
282
283 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
284
285         README-release: make it easier to execute commands
286         * top/README-release: break commands out on to separate lines.
287
288 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
289
290         GNUmakefile: simplify detection of unconfigured trees
291         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
292         whether the tree make is being run from is already configured or
293         not.  Related simplifications.
294
295 2012-02-13  Simon Josefsson  <simon@josefsson.org>
296
297         * gnulib-tool (func_usage): Document --help and --version.
298
299 2012-02-11  Jim Meyering  <meyering@redhat.com>
300
301         bootstrap: don't exit 0 upon gnulib-tool failure
302         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
303         its exit status, not 0.
304
305 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
306
307         README-release: various improvements
308         * top/README-release: Give a command to push changes for the
309         release.  Add "distcheck" to list of other pre-release checks.
310         Fix instance of "make stable" which should be "make TYPE".
311
312 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
313
314         maint: replace FSF snail-mail addresses with URLs
315         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
316         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
317         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
318         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
319         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
320         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
321         * lib/check-version.c, lib/check-version.h, lib/config.charset:
322         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
323         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
324         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
325         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
326         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
327         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
328         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
329         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
330         * lib/glthread/thread.c, lib/glthread/thread.h:
331         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
332         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
333         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
334         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
335         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
336         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
337         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
338         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
339         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
340         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
341         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
342         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
343         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
344         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
345         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
346         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
347         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
348         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
349         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
350         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
351         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
352         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
353         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
354         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
355         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
356         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
357         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
358         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
359         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
360         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
361         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
362         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
363         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
364         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
365         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
366         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
367         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
368         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
369         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
370         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
371         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
372         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
373         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
374         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
375         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
376         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
377         * tests/test-poll.c, tests/test-quotearg-simple.c:
378         * tests/test-quotearg.c, tests/test-quotearg.h:
379         * tests/test-round-ieee.c, tests/test-round1.c:
380         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
381         * tests/test-roundl-ieee.c, tests/test-roundl.c:
382         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
383         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
384         * tests/test-strerror.c, tests/test-strerror_r.c:
385         * tests/test-strsignal.c, tests/test-strverscmp.c:
386         * tests/test-xmemdup0.c:
387         Replace FSF snail mail addresses with URLs, as per GNU coding
388         standards.  See glibc bug
389         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
390
391 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
392
393         README-release: capitalize a word and split a line
394         * top/README-release: Fix punctuation and spacing.
395
396 2012-02-08  Akim Demaille  <demaille@gostai.com>
397
398         fatal-signal: use C prototypes (with explicit void).
399         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
400         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
401
402 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
403
404         regex: spelling fix
405         * lib/regexec.c: spelling fix
406
407         regex: rely on stdint.h for SIZE_MAX
408         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
409
410 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
411
412         regex: merge glibc changes
413
414         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
415         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
416         (init_word_char): Work even if bitset words are not exactly 32 or
417         64 bits wide.  Don't assume there are no padding bits.
418         * lib/regex.c [_LIBC]: Do not include <config.h>.
419         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
420         and -Wtype-limits.
421         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
422         needless disagreement with glibc.  All uses changed.  Define it to
423         1 only if _GNU_SOURCE, to match glibc.
424         (_REG_RM_NAME): Remove; no longer needed, since the names in
425         question are now all protected by __USE_GNU.
426         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
427         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
428         * lib/regex_internal.h (MIN): New macro.
429
430         2012-01-03 Ulrich Drepper <drepper@gmail.com>
431         * lib/regcomp.c (init_word_char): Optimize regex a bit.
432
433         2011-12-30 Jakub Jelinek <jakub@redhat.com>
434         * lib/regex_internal.c (re_string_fetch_byte_case):
435         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
436         is miscompiled, and it turns out it is because of an incorrect
437         attribute on re_string_fetch_byte_case.  Unlike
438         re_string_peek_byte_case, this one is really not pure, it modifies
439         memory (increments pstr->cur_idx), and with the pure attribute GCC
440         assumed it doesn't and it cached the presumed value of
441         regexp->cur_idx in a variable across the
442          for (;; ++i)
443            {
444              if (i >= BRACKET_NAME_BUF_SIZE)
445                return REG_EBRACK;
446              if (token->type == OP_OPEN_CHAR_CLASS)
447                ch = re_string_fetch_byte_case (regexp);
448              else
449                ch = re_string_fetch_byte (regexp);
450              if (re_string_eoi(regexp))
451                return REG_EBRACK;
452              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
453                break;
454              elem->opr.name[i] = ch;
455            }
456
457         2011-11-29 Andreas Schwab <schwab@redhat.com>
458         * lib/regcomp.c (build_equiv_class):
459         Fix access after end of search string in regex matcher.
460
461         2011-11-12 Ulrich Drepper <drepper@redhat.com>
462         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
463
464         2011-10-12 Ulrich Drepper <drepper@redhat.com>
465         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
466
467         2011-10-11 Ulrich Drepper <drepper@redhat.com>
468         * lib/regcomp.c (parse_branch, parse_sub_exp):
469         More regex memory leak fixes and tests.
470         (parse_sub_exp, parse_bracket_exp):
471         Fix memory leak for some invalid regular expressions.
472
473         2011-05-28 Ulrich Drepper <drepper@gmail.com>
474         * lib/regex_internal.c, lib/regexec.c:
475         Fix unnecessary overallocation due to incomplete character.  When
476         incomplete characters are found at the end of a string the code
477         ran amok and allocated lots of memory.  Stricter limits are now in
478         place.
479
480         2011-05-20 Reuben Thomas <rrt@sc3d.org>
481         * lib/regex.h: Update documentation.
482
483         2011-05-16 Aharon Robbins <arnold@skeeve.com>
484         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
485
486         2010-05-05 Andreas Schwab <schwab@redhat.com>
487         * lib/regexec.c (find_collation_sequence_value):
488         Fix lookup of collation sequence value during regexp matching.
489
490         2010-01-22 Ulrich Drepper <drepper@redhat.com>
491         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
492
493         2008-01-16 Ulrich Drepper <drepper@redhat.com>
494         * lib/regex.h: Cleanup namespace.
495
496         2007-11-26 Ulrich Drepper <drepper@redhat.com>
497         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
498
499         2007-08-26 Ulrich Drepper <drepper@redhat.com>
500         * lib/regex_internal.h: Prevent some declarations and definitions
501         to be seen when used in tests.
502
503         2005-05-06 Ulrich Drepper <drepper@redhat.com>
504         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
505         __libc_lock_* macros if not _LIBC.
506         (struct re_dfa_t): Add lock.
507
508 2012-02-07  Eric Blake  <eblake@redhat.com>
509
510         maint.mk: also prohibit lower-case @var@
511         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
512         lower case, like @top_srcdir@.
513
514 2012-02-04  Eric Blake  <eblake@redhat.com>
515
516         canonicalize: avoid uninitialized memory use
517         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
518         random '/' left in dest.
519         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
520
521 2012-02-04  Bruno Haible  <bruno@clisp.org>
522
523         isatty: Fix test failure of ptsname_r on native Windows.
524         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
525         and don't set errno.
526         (isatty): Test first whether fd is valid. Set errno when returning 0.
527
528 2012-02-04  Bruno Haible  <bruno@clisp.org>
529
530         spawn-pipe tests: Fix a NULL program name in a diagnostic.
531         * tests/test-spawn-pipe-main.c: Include progname.h.
532         (main): Invoke set_program_name.
533         * modules/spawn-pipe-tests (Depends-on): Add progname.
534
535         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
536         * tests/test-nonblocking-socket-main.c: Include progname.h.
537         (main): Invoke set_program_name.
538         * modules/nonblocking-socket-tests (Depends-on): Add progname.
539
540         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
541         * tests/test-nonblocking-pipe-main.c: Include progname.h.
542         (main): Invoke set_program_name.
543         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
544
545 2012-02-04  Eric Blake  <eblake@redhat.com>
546
547         canonicalize-lgpl: fix // handling
548         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
549
550         canonicalize: fix // handling
551         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
552         /// to //, since only // is special.
553
554 2012-02-04  Bruno Haible  <bruno@clisp.org>
555
556         ioctl: Fix test failure on native Windows.
557         * lib/ioctl.c: Include msvc-nothrow.h.
558         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
559
560 2012-02-04  Bruno Haible  <bruno@clisp.org>
561
562         fsync: Avoid test failure on native Windows.
563         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
564         read-only.
565
566 2012-02-04  Bruno Haible  <bruno@clisp.org>
567
568         sys_select: Avoid syntax error on OpenBSD 5.0.
569         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
570         currently being included, just include the system's <sys/select.h>.
571
572 2012-02-04  Bruno Haible  <bruno@clisp.org>
573
574         sys_select: Avoid syntax error on OpenBSD 5.0.
575         * lib/sys_select.in.h: Include <signal.h> only after the include_next
576         <sys/select.h>, not before.
577         Reported by Jiri B <jirib@devio.us>.
578
579 2012-02-04  Bruno Haible  <bruno@clisp.org>
580
581         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
582         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
583         global variables.
584         * tests/test-get-rusage-data.c (main): Likewise.
585         Reported by Jim Meyering.
586
587 2012-02-04  Bruno Haible  <bruno@clisp.org>
588
589         stdioext: Fix last commit.
590         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
591
592 2012-02-03  Bruno Haible  <bruno@clisp.org>
593
594         stdioext: Add tentative support for Plan9.
595         * lib/stdio-impl.h: Include <errno.h>.
596         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
597         * lib/freadable.c (freadable): Likewise.
598         * lib/fwritable.c (fwritable): Likewise.
599         * lib/fbufmode.c (fbufmode): Likewise.
600         * lib/freading.c (freading): Likewise.
601         * lib/fwriting.c (fwriting): Likewise.
602         * lib/freadptr.c (freadptr): Likewise.
603         * lib/freadseek.c (freadptrinc): Likewise.
604         * lib/freadahead.c (freadahead): Likewise.
605         * lib/fpurge.c (fpurge): Likewise.
606         * lib/fseeko.c (rpl_fseeko): Likewise.
607         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
608         Reported by Jens Staal <staal1978@gmail.com>.
609
610 2012-02-02  Jim Meyering  <meyering@redhat.com>
611
612         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
613         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
614         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
615         not even to try to add the attribute.  Instead, add a pragma to suppress
616         the suggestion/warning.
617
618 2012-01-31  Karl Berry  <karl@gnu.org>
619
620         setstate doc: typo.
621         * doc/posix-functions/setstate.texi (setstate): { not (.
622
623 2012-01-31  Bruno Haible  <bruno@clisp.org>
624
625         popen: Make more robust on Windows.
626         * lib/popen.c: On native Windows, use the _popen based code even if
627         HAVE_POPEN is set.
628         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
629         environment variable on native Windows.
630
631 2012-01-30  Bruno Haible  <bruno@clisp.org>
632
633         pclose: Fix typo.
634         * lib/stdio.in.h (pclose): Fix typo in warning message.
635
636 2012-01-30  Bruno Haible  <bruno@clisp.org>
637
638         doc about getlogin_r, setstate.
639         * doc/posix-functions/getlogin_r.texi: List the incompatible
640         declaration problem under "not fixed by gnulib".
641         * doc/posix-functions/setstate.texi: Mention incompatible declaration
642         problem on Solaris 11 and other platforms.
643
644 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
645             Bruno Haible  <bruno@clisp.org>
646
647         poll tests: Make test more robust.
648         * tests/test-poll.c: Include macros.h.
649         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
650         return value of various I/O operations.
651         * modules/poll-tests (Files): Add tests/macros.h.
652
653 2012-01-30  Bruno Haible  <bruno@clisp.org>
654
655         sys_stat: Fix support for mingw64 and MSVC.
656         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
657         header files already do it.
658         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
659         stat itself.
660         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
661
662 2012-01-30  Bruno Haible  <bruno@clisp.org>
663
664         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
665         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
666         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
667
668 2012-01-29  Bruno Haible  <bruno@clisp.org>
669
670         quotearg: Fix test failure on MacOS X 10.5.
671         * tests/test-quotearg-simple.c: Include localcharset.h.
672         (main): If the locale encoding is not ASCII, bypass the tests of
673         locale_quoting_style and clocale_quoting_style.
674         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
675
676 2012-01-29  Jim Meyering  <meyering@redhat.com>
677
678         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
679         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
680         detect uses of canonicalize_file_name.
681
682 2012-01-28  Bruno Haible  <bruno@clisp.org>
683
684         test-framework-sh: Fix test failure with AIX 7.1 diff.
685         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
686         in column 1, like 'diff -c' does.
687         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
688         whether 'diff -u' is used. Instead, test whether the output contains
689         some '@' character.
690
691 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
692
693         strtoimax: eliminate need for stdint.h, inttypes.h checks
694         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
695         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
696         the prerequisites for a recently-introduced strtoimax test.
697         I guess this might cause strtoimax to be replaced when not
698         strictly necessary on older hosts, but this shouldn't introduce
699         any bugs and it should make Emacs 'configure' faster on typical
700         modern hosts.  Problem discovered when importing the latest gnulib
701         to an Emacs test version.
702         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
703
704 2012-01-28  Bruno Haible  <bruno@clisp.org>
705
706         sys_time: Override 'struct timeval' on some native Windows platforms.
707         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
708         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
709         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
710         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
711         needs to be overridden.
712         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
713         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
714         * tests/test-sys_select.c: Check that the tv_sec member has the same
715         size as a 'time_t'.
716         * tests/test-sys_time.c: Likewise.
717         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
718         is set, set also REPLACE_GETTIMEOFDAY.
719         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
720         convert the resulting 'struct timeval' before returning.
721         * lib/select.c: Include <sys/time.h>.
722         (select, timeval): Undefine at the right place.
723         * modules/select (Depends-on): Add sys_time.
724         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
725         some Windows platforms.
726         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
727
728 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
729
730         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
731         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
732         an integer.
733         * lib/fcntl.c (dupfd): Likewise.
734         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
735
736 2012-01-28  Bruno Haible  <bruno@clisp.org>
737
738         fcntl: Avoid compilation error on native Windows.
739         * modules/fcntl (Depends-on): Add 'close'.
740
741 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
742
743         select, poll, isatty: Avoid warnings on x86_64 mingw64.
744         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
745         pointer to an integer.
746         * lib/poll.c (IsConsoleHandle): Likewise.
747         * lib/isatty.c (IsConsoleHandle): Likewise.
748
749 2012-01-28  Jim Meyering  <meyering@redhat.com>
750
751         doc: clarify README-release
752         * top/README-release: Clarify: you should make a point to have
753         the latest stable versions of build tools in your PATH, and the
754         reference to buildreq is solely for its list of tool names, not
755         for its minimal-functional version numbers.
756         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
757
758         maint.mk: use more readable (yet functionally equivalent) quoting
759         It is common to quote a single quote in a single quoted string like
760         this:  '...'\''...'.  Unless you know the idiom, that looks like
761         gibberish, so prefer to double-quote the string when possible.
762         Then you can use a more readable, lone single quote: "...'..."
763         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
764         "don't" is more readable than the equivalent 'don'\''t'.
765         (sc_cast_of_x_alloc_return_value): Likewise.
766         (sc_cast_of_alloca_return_value): Likewise.
767         (sc_makefile_path_separator_check): Similar: use ":" in '...',
768         rather than '\'':'\''.
769
770 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
771
772         stdalign: relax _Alignof and tighten _Alignas test
773         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
774         as it was too strict: alignof must divide offsetof, but it need
775         not equal offsetof.  Inspired by Joseph S. Myers's comment
776         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
777         Conversely, tighten the _Alignas test a bit, as the resulting
778         alignment must be exactly 8.
779
780 2012-01-27  Bruno Haible  <bruno@clisp.org>
781
782         stdalign: Document the last change.
783         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
784
785 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
786
787         stdalign: check that alignof and offsetof are consistent
788         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
789         Problem reported for gnulib by Richard W.M. Jones in
790         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
791
792 2012-01-27  Jim Meyering  <meyering@redhat.com>
793
794         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
795         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
796         convert a sequence with gaps to the minimal containing range.
797         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
798         * tests/test-update-copyright.sh: Test for this.
799         The FSF confirmed it is ok to do this, assuming there is at
800         least one significant change per year in the affected range:
801         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
802
803 2012-01-26  Bruno Haible  <bruno@clisp.org>
804
805         pipe2: refine doc about thread-safety
806         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
807         multithread-safety problem.
808         * doc/glibc-functions/accept4.texi: Likewise.
809
810 2012-01-26  Bruno Haible  <bruno@clisp.org>
811
812         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
813         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
814         In the test program, include <fcntl.h>, for O_RDONLY.
815
816 2012-01-26  Eric Blake  <eblake@redhat.com>
817
818         pipe2: document lack of thread-safety in replacement
819         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
820         issue in replacement.
821         * doc/glibc-functions/accept4.texi (accept4): Likewise.
822         Based on a report by Eric Wong.
823
824 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
825             Bruno Haible  <bruno@clisp.org>
826
827         malloca: Avoid warnings on x86_64 mingw64.
828         * lib/malloca.c: Include <stdint.h>.
829         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
830         * modules/malloca (Depends-on): Add stdint.
831         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
832
833 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
834
835         obstack: remove __STDC__ conditionals
836         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
837         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
838         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
839         m4/include_next.m4 as the only gnulib-maintained places that still
840         refer to __STDC__.
841
842 2012-01-24  Bruno Haible  <bruno@clisp.org>
843
844         havelib: Modern quoting.
845         * build-aux/config.rpath: Quote 'like this', not `like this', as per
846         the recent change to the GNU coding standards.
847
848 2012-01-24  Bruno Haible  <bruno@clisp.org>
849
850         stdint: Improve support for Android.
851         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
852         Reported by Simon Josefsson <simon@josefsson.org>.
853
854 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
855
856         doc: omit trailing empty lines from INSTALL etc.
857         * doc/Makefile (INSTALL): Omit trailing empty lines.
858         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
859         omit trailing empty lines.  This simplifies the build procedure.
860
861 2012-01-23  Jim Meyering  <meyering@redhat.com>
862
863         tests: avoid spurious warnings about gl_sockets_startup
864         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
865         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
866         reporting a "statement with no effect".
867         * tests/test-accept.c (main): Mark as "(void)".
868         * tests/test-accept4.c (main): Likewise.
869         * tests/test-bind.c (main): Likewise.
870         * tests/test-connect.c (main): Likewise.
871         * tests/test-getpeername.c (main): Likewise.
872         * tests/test-getsockname.c (main): Likewise.
873         * tests/test-getsockopt.c (main): Likewise.
874         * tests/test-listen.c (main): Likewise.
875         * tests/test-recv.c (main): Likewise.
876         * tests/test-recvfrom.c (main): Likewise.
877         * tests/test-send.c (main): Likewise.
878         * tests/test-sendto.c (main): Likewise.
879         * tests/test-setsockopt.c (main): Likewise.
880         * tests/test-shutdown.c (main): Likewise.
881
882 2012-01-21  Bruno Haible  <bruno@clisp.org>
883
884         locale-fr.m4: Fix for Android.
885         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
886         failure of the test program on Bionic libc.
887
888 2012-01-21  Jim Meyering  <meyering@redhat.com>
889
890         bootstrap: fail when bootstrap_post_import_hook fails
891         Otherwise, it's far too easy to miss diagnostics emitted
892         between gnulib-tool's output and that of running configure.
893         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
894
895 2012-01-17  Jim Meyering  <meyering@redhat.com>
896
897         maint: enable sc_trailing_blank
898         * build-aux/pmccabe.css: Remove trailing blanks.
899         * doc/acl-cygwin.txt: Likewise.
900         * doc/gnu-oids.texi: Likewise
901         * cfg.mk: Enable sc_trailing_blank.
902         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
903
904 2012-01-17  Jim Meyering  <meyering@redhat.com>
905
906         maint: enable sc_prohibit_openat_without_use
907         * cfg.mk: Enable sc_prohibit_openat_without_use.
908         Exempt lib/selinux-at.c.
909
910 2012-01-17  Jim Meyering  <meyering@redhat.com>
911
912         maint: enable sc_prohibit_cloexec_without_use
913         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
914         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
915
916 2012-01-17  Jim Meyering  <meyering@redhat.com>
917
918         maint: enable sc_prohibit_intprops_without_use
919         * cfg.mk: Enable sc_prohibit_intprops_without_use
920         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
921
922 2012-01-17  Jim Meyering  <meyering@redhat.com>
923
924         maint: enable sc_prohibit_hash_pjw_without_use
925         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
926         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
927         to match any use of \<hash_pjw\>, i.e., not necessarily with a
928         following " (".
929
930 2012-01-17  Jim Meyering  <meyering@redhat.com>
931
932         maint: enable double-word-prohibiting rule
933         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
934         Exempt three files.
935
936 2012-01-17  Jim Meyering  <meyering@redhat.com>
937
938         maint: remove empty lines at EOF, but excluding modules/*
939         Apply syntax rules at home as well as abroad.  Most changes
940         were induced by running this:
941           make srcdir=. _build-aux=build-aux -f top/maint.mk \
942             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
943             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
944         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
945         Exempt modules/* and two binary files.
946         Also exempt doc/INSTALL*, per request from Bruno Haible.
947         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
948         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
949         * doc/Copyright/request-assign.future: Likewise.
950         * doc/Copyright/request-disclaim.changes: Likewise.
951         * doc/INSTALL: Likewise.
952         * doc/INSTALL.ISO: Likewise.
953         * doc/INSTALL.UTF-8: Likewise.
954         * doc/acl-cygwin.txt: Likewise.
955         * doc/acl-resources.txt: Likewise.
956         * doc/fdl-1.2.texi: Likewise.
957         * doc/fdl-1.3.texi: Likewise.
958         * doc/fdl.texi: Likewise.
959         * lib/argp-pin.c: Likewise.
960         * lib/round.c: Likewise.
961         * lib/unicase/u16-totitle.c: Likewise.
962         * lib/unictype/block_test.c: Likewise.
963         * lib/uninorm/canonical-decomposition.c: Likewise.
964         * m4/README: Likewise.
965         * m4/relocatable-lib.m4: Likewise.
966         * tests/test-isnand-nolibm.c: Likewise.
967         * tests/test-isnand.c: Likewise.
968         * tests/uninorm/NormalizationTest.txt: Likewise.
969
970 2012-01-17  Jim Meyering  <meyering@redhat.com>
971
972         maint: add framework to run syntax-check rules against gnulib sources
973         * cfg.mk: New file, to disable all currently-failing tests.
974         We'll enable them one by one, as they are made to pass.
975         * Makefile (sc_maint): New rule.
976
977 2012-01-21  Bruno Haible  <bruno@clisp.org>
978
979         stdint: Add support for Android.
980         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
981         include the system's <stdint.h>.
982         Reported by Simon Josefsson <simon@josefsson.org>.
983
984 2012-01-19  Jim Meyering  <meyering@redhat.com>
985
986         bootstrap: add bootstrap_post_import_hook
987         Bison does still need something like the gnulib_mk_hook whose
988         invocation I had to remove along with slurp in commit 767ccd40.
989         Technically, we could get along without it, but doing so would
990         have required living with a warning and a mandatory post-bootstrap
991         automake rerun.
992         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
993         (bootstrap_post_import_hook): New function.
994         Invoke it after gnulib-tool --import and before autoreconf.
995
996 2012-01-18  Jim Meyering  <meyering@redhat.com>
997
998         gitlog-to-changelog: don't use "no_"-prefixed variable name
999         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
1000         to enable both --cluster and --no-cluster.  Change variable name,
1001         s/\$no_cluster/$cluster/, and reverse usage to match.
1002
1003         gitlog-to-changelog: use "||", not "or" in expressions
1004         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
1005         expressions.
1006
1007 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
1008
1009         gitlog-to-changelog: new option --no-cluster
1010         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
1011         clustering of adjacent commit messages.
1012
1013 2012-01-17  Jim Meyering  <meyering@redhat.com>
1014
1015         maint: spell file systems with two words, not one
1016         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
1017         two words, not one.
1018
1019 2012-01-16  Jim Meyering  <meyering@redhat.com>
1020
1021         bootstrap: add a FIXME comment to ensure we eventually remove the hack
1022         * build-aux/bootstrap (gnulib_tool_options): Add comment.
1023
1024 2012-01-16  Eric Blake  <eblake@redhat.com>
1025
1026         bootstrap: cater to autoconf 2.59
1027         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
1028         is not available.
1029
1030         bootstrap: properly check for libtool
1031         * build-aux/bootstrap (libtoolize): Also run libtool when older
1032         usage is detected.
1033
1034 2012-01-15  Bruno Haible  <bruno@clisp.org>
1035
1036         Improve support for MSVC 9.
1037         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
1038         clashes on MSVC.
1039         * lib/fcntl.in.h: Likewise.
1040         * lib/stdlib.in.h: Likewise.
1041         * lib/sys_stat.in.h: Likewise.
1042
1043 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
1044
1045         gnupload: we hold the master copy of this script now
1046         For motivation and more information, see:
1047         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
1048         * build-aux/gnupload: Make it clear in the heading comments that the
1049         master copy of this file is maintained by gnulib.  Since we are at
1050         it, bump its copyright year and ...
1051         ($scriptversion): ... the date in its version.
1052         ($usage): Patches and bug reports should be sent to the gnulib list,
1053         not the automake one.
1054         * config/srclist.txt: Don't try to sync 'gnupload' from automake
1055         anymore.
1056
1057 2012-01-15  Bruno Haible  <bruno@clisp.org>
1058
1059         Fix module 'random'.
1060         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
1061         initstate, setstate are declared.
1062
1063 2012-01-14  Bruno Haible  <bruno@clisp.org>
1064
1065         Tests for module 'random'.
1066         * modules/random-tests: New file.
1067         * tests/test-random.c: New file, based on tests/test-random_r.c.
1068
1069         New module 'random'.
1070         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
1071         declarations.
1072         * lib/random.c: New file, based on glibc/stdlib/random.c.
1073         * m4/random.m4: New file.
1074         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
1075         HAVE_RANDOM.
1076         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
1077         * modules/random: New file.
1078         * config/srclist.txt: Add an entry for random.c.
1079         * doc/posix-functions/random.texi: Mention the 'random' module.
1080         * doc/posix-functions/initstate.texi: Likewise.
1081         * doc/posix-functions/setstate.texi: Likewise.
1082         * doc/posix-functions/srandom.texi: Likewise.
1083
1084 2012-01-12  Bruno Haible  <bruno@clisp.org>
1085
1086         random_r: Use common idioms.
1087         * lib/random_r.c: Include <stdlib.h> first.
1088
1089         random_r: Override incompatible API on AIX, OSF/1.
1090         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
1091         Override the system function if REPLACE_RANDOM_R is 1.
1092         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
1093         and OSF/1, set REPLACE_RANDOM_R.
1094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
1095         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
1096         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
1097         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
1098         * doc/glibc-functions/random_r.texi: Likewise.
1099         * doc/glibc-functions/setstate_r.texi: Likewise.
1100
1101         random_r: Support for MSVC 9.
1102         * lib/random_r.c: Include stdint.h, not inttypes.h.
1103
1104 2012-01-12  Eric Blake  <eblake@redhat.com>
1105
1106         inet_ntop: guard extra work by IF_LINT
1107         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
1108         better code generation when not checking for warnings.
1109         Suggested by Paul Eggert and Jim Meyering.
1110
1111         strptime: fix regression on mingw
1112         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
1113         Fix regression.  Reported by Bruno Haible.
1114
1115 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
1116             Bruno Haible  <bruno@clisp.org>
1117
1118         copy-file: add error-code-returning variant.
1119         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
1120         (qcopy_file_preserving): New declaration.
1121         * lib/copy-file.c (qcopy_file_preserving): Renamed from
1122         copy_file_preserving. Change return type to 'int'. Don't emit an error
1123         message here.
1124         (copy_file_preserving): New function.
1125         * tests/test-copy-file.c: Include <stdlib.h>.
1126         (main): Test qcopy_file_preserving if the environment variable
1127         NO_STDERR_OUTPUT is set.
1128         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
1129         with NO_STDERR_OUTPUT
1130         * tests/test-copy-file-2.sh: Likewise.
1131
1132 2012-01-10  Bruno Haible  <bruno@clisp.org>
1133
1134         copy-file: Use 'quote' module consistently.
1135         * lib/copy-file.c (copy_file_preserving): Use quote().
1136
1137         copy-file: Refactor.
1138         * lib/copy-file.c: Include quote.h.
1139         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
1140         message here.
1141         * modules/copy-file (Depends-on): Add quote.
1142
1143         acl: Export qcopy_acl.
1144         * lib/acl.h (qcopy_acl): New declaration.
1145         * lib/copy-acl.c (qcopy_acl): Make non-static.
1146
1147         acl: Rename a local variable.
1148         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
1149
1150         acl: Align return values of copy_acl and qcopy_acl.
1151         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
1152         maybe < -1.
1153
1154 2012-01-11  Eric Blake  <eblake@redhat.com>
1155
1156         strptime: silence gcc warnings
1157         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
1158         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
1159         Reported by Daniel P. Berrange.
1160
1161         inet_ntop: silence gcc warning
1162         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
1163         Reported by Daniel P. Berrange.
1164
1165 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
1166
1167         getloadavg test: skip the test on GNU/Linux without /proc mounted
1168         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
1169         file.  When /proc is not mounted, it always fails with ENOENT.
1170         * tests/test-getloadavg.c (main): Treat ENOENT return code from
1171         getloadavg(3) the same way as ENOSYS and ENOTSUP.
1172
1173 2012-01-10  Bruno Haible  <bruno@clisp.org>
1174
1175         regex: Avoid link error on MSVC 9.
1176         * modules/regex (Depends-on): Add wctype.
1177
1178 2012-01-10  Bruno Haible  <bruno@clisp.org>
1179
1180         doc: Mention --with-tests option.
1181         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
1182         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
1183         --with-tests.
1184         Reported by Reuben Thomas.
1185
1186 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
1187
1188         users.txt: order package names lexicographically.
1189         * users.txt: Order package names lexicographically.
1190
1191 2012-01-10  Jim Meyering  <meyering@redhat.com>
1192
1193         maint.mk: fix description in comment
1194         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
1195
1196         ignore-value: remove deprecated ignore_ptr function
1197         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
1198         * NEWS: Note this.
1199
1200 2012-01-09  Jim Meyering  <meyering@redhat.com>
1201
1202         test-init.sh: avoid a subshell
1203         * tests/test-init.sh: Remove protective subshell.
1204         Suggested by Bernhard Voelker.  While a subshell is normally
1205         required to protect against older shells (Solaris, FreeBSD) that
1206         warn about a missing program before performing redirection, the
1207         shell-selection tests performed by init.sh probably exclude any
1208         offending shell.
1209
1210 2012-01-08  Bruno Haible  <bruno@clisp.org>
1211
1212         setlocale tests: Avoid test failure on Solaris 11 2011-11.
1213         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
1214         variable.
1215
1216 2012-01-08  Bruno Haible  <bruno@clisp.org>
1217
1218         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
1219         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1220         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1221         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
1222         macro.
1223         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
1224         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1225         * lib/spawn_faction_addopen.c: Add workaround implementation if
1226         HAVE_WORKING_POSIX_SPAWN.
1227         * modules/spawn (Makefile): Substitute
1228         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1229         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
1230         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
1231         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1232         (Depends-on): Update conditions.
1233         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1234         the Solaris 11 bug.
1235
1236 2012-01-08  Bruno Haible  <bruno@clisp.org>
1237
1238         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
1239         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1240         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1241         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
1242         macro.
1243         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
1244         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1245         * lib/spawn_faction_adddup2.c: Add workaround implementation if
1246         HAVE_WORKING_POSIX_SPAWN.
1247         * modules/spawn (Makefile): Substitute
1248         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1249         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
1250         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
1251         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1252         (Depends-on): Update conditions.
1253         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1254         the Solaris 11 bug.
1255
1256 2012-01-08  Bruno Haible  <bruno@clisp.org>
1257
1258         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
1259         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1260         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1261         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
1262         HAVE_WORKING_POSIX_SPAWN.
1263         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
1264         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
1265         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1266         * lib/spawn_faction_addclose.c: Add workaround implementation if
1267         HAVE_WORKING_POSIX_SPAWN.
1268         * modules/spawn (Makefile): Substitute
1269         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1270         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
1271         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
1272         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1273         (Depends-on): Update conditions.
1274         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1275         the Solaris 11 bug.
1276
1277 2012-01-08  Bruno Haible  <bruno@clisp.org>
1278
1279         doc: Update for Solaris 11 2011-11.
1280         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
1281         * m4/printf.m4: Update comments.
1282
1283 2012-01-08  Bruno Haible  <bruno@clisp.org>
1284
1285         mktime: Avoid compilation error on Solaris 11.
1286         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
1287
1288 2012-01-08  Bruno Haible  <bruno@clisp.org>
1289
1290         doc: Small fix.
1291         * doc/posix-headers/nl_types.texi: Correct platforms list.
1292
1293 2012-01-08  Simon Josefsson  <simon@josefsson.org>
1294
1295         Add lgpl-3.0 module.
1296         * MODULES.html.sh (Support for building documentation): Add
1297         lgpl-3.0.
1298         * modules/lgpl-3.0: New file.
1299
1300 2012-01-08  Jim Meyering  <meyering@redhat.com>
1301
1302         select.c: indent with spaces, not TABs
1303         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
1304
1305 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1306
1307         quotearg: do not use grave accent for left quote
1308         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
1309         locale_quoting_style.
1310         (quotearg_buffer_restyled): Fix example.
1311         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
1312
1313 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1314
1315         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
1316         Most programs do not have translation catalogs for English and much
1317         less separate catalogs for British and American English.  Drop the
1318         suggestion to translators about these two, and provide it
1319         automatically for Unicode locales.  Like most programs, even those
1320         using American English, we use single quotation marks.  This conflicts
1321         with the American typographic convention, but works better when you
1322         cite the entire error message within double quotes.  It also tries not
1323         to clash with established practice and with what non-gnulib programs
1324         will usually do.
1325         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
1326         using an UTF-8 or GB-18030 locale.  The list of other locales with
1327         quotes was provided by Bruno Haible.
1328         (quotearg_buffer_restyled): Adjust instructions to translators.
1329         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
1330         text, since this would be wrong when using Unicode.
1331         * modules/quotearg: Depend on c-strcaseeq.
1332
1333 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1334
1335         quotearg: fix Wikipedia link
1336         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
1337
1338 2012-01-07  Simon Josefsson  <simon@josefsson.org>
1339
1340         Fix for mingw with MSVC9.
1341         * m4/ld-version-script.m4: Check that compiler rejects version
1342         scripts with syntax errors.  Reported by Bruno Haible
1343         <bruno@clisp.org>.
1344
1345 2012-01-06  Bruno Haible  <bruno@clisp.org>
1346
1347         Talk about "native Windows API", not "Woe32".
1348         * lib/accept4.c: Update comments to mention native Windows.
1349         * lib/execute.c: Likewise.
1350         * lib/fatal-signal.c: Likewise.
1351         * lib/localcharset.c: Likewise.
1352         * lib/nanosleep.c: Likewise.
1353         * lib/nl_langinfo.c: Likewise.
1354         * lib/pclose.c: Likewise.
1355         * lib/pipe-filter-gi.c: Likewise.
1356         * lib/pipe-filter-ii.c: Likewise.
1357         * lib/pipe.c: Likewise.
1358         * lib/pipe2.c: Likewise.
1359         * lib/popen.c: Likewise.
1360         * lib/progreloc.c: Likewise.
1361         * lib/relocatable.c: Likewise.
1362         * lib/sigaction.c: Likewise.
1363         * lib/sigprocmask.c: Likewise.
1364         * lib/spawn-pipe.h: Likewise.
1365         * lib/spawn-pipe.c: Likewise.
1366         * lib/spawni.c: Likewise.
1367         * lib/stat-time.h: Likewise.
1368         * lib/w32spawn.h: Likewise.
1369         * tests/test-isatty.c: Likewise.
1370         * lib/config.charset: More comments.
1371         * doc/gnulib-intro.texi: Mention native Windows.
1372         * doc/posix-functions/_Exit_C99.texi: Likewise.
1373         * doc/posix-headers/fcntl.texi: Likewise.
1374
1375 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
1376
1377         argp: Avoid crash if translator uses % characters in a translation.
1378         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
1379         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1380
1381 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1382
1383         doc: C11 and C++11 are now official
1384         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
1385         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
1386         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
1387         * modules/stdalign:
1388         Replace references to draft C1X to C11, and to draft C++0X to C++11.
1389
1390 2012-01-06  Bruno Haible  <bruno@clisp.org>
1391
1392         uc-is-grapheme-break tests: Tweak.
1393         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
1394         message.
1395
1396 2012-01-06  Bruno Haible  <bruno@clisp.org>
1397
1398         test-init.sh: correct the test for diff -u
1399         * tests/test-init.sh: Also redirect stdout to /dev/null.
1400
1401 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1402
1403         Use ', not `, for quoting output.
1404         * build-aux/announce-gen (usage, sizes, print_news_deltas)
1405         (print_changelog_deltas, get_tool_versions, main program):
1406         * build-aux/git-version-gen:
1407         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
1408         * build-aux/move-if-change (help):
1409         * build-aux/useless-if-before-free (usage, main program):
1410         * check-module (parse_module_file, usage)
1411         (find_included_lib_files, check_module):
1412         * lib/argmatch.c (main) [TEST]:
1413         * lib/argp-help.c (_help):
1414         * lib/getopt1.c (main) [TEST]:
1415         * lib/git-merge-changelog.c (usage):
1416         * lib/xstrtol-error.c (xstrtol_error):
1417         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1418         * m4/argz.m4 (gl_FUNC_ARGZ):
1419         * m4/bison.m4 (gl_BISON):
1420         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
1421         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1422         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1423         * m4/fpending.m4 (gl_PREREQ_FPENDING):
1424         * m4/gc-random.m4 (gl_GC_RANDOM):
1425         * m4/intl.m4 (gt_CHECK_DECL):
1426         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
1427         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
1428         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1429         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
1430         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
1431         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
1432         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
1433         * tests/test-dirname.c (main):
1434         * tests/test-getpass.c (main):
1435         * tests/test-iconvme.c (main):
1436         * tests/test-parse-datetime.c (LOG):
1437         * tests/test-xstrtoimax.sh:
1438         * tests/test-xstrtol.sh:
1439         * tests/test-xstrtoll.sh:
1440         * tests/test-xstrtoumax.sh:
1441         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
1442         * top/GNUmakefile (abort-due-to-no-makefile):
1443         Quote 'like this', not `like this', as per the recent change to
1444         the GNU coding standards.
1445
1446 2012-01-05  Bruno Haible  <bruno@clisp.org>
1447
1448         strtoimax: Don't force a replacement on systems where intmax_t is int.
1449         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
1450         'intmax_t' is not larger than 'int'.
1451         Reported by Pádraig Brady <P@draigBrady.com>.
1452
1453 2012-01-05  Bruno Haible  <bruno@clisp.org>
1454
1455         doc: Mention NetBSD bugs.
1456         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
1457         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
1458
1459 2012-01-05  Bruno Haible  <bruno@clisp.org>
1460
1461         strtoumax tests: Enhance tests.
1462         * tests/test-strtoumax.c (main): Add tests for large values.
1463
1464 2012-01-05  Bruno Haible  <bruno@clisp.org>
1465
1466         strtoimax: Work around AIX 5.1 bug.
1467         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
1468         definition.
1469         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
1470         Set HAVE_STRTOIMAX.
1471         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
1472         REPLACE_STRTOIMAX.
1473         * modules/inttypes-incomplete (Makefile.am): Substitute
1474         REPLACE_STRTOIMAX.
1475         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
1476         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
1477         (Depends-on): Update conditions.
1478         * tests/test-strtoimax.c (main): Add tests for large values.
1479         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
1480
1481 2012-01-05  Bruno Haible  <bruno@clisp.org>
1482
1483         inttypes: Modernize.
1484         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
1485         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
1486         (Makefile.am): Update inttypes.h rule.
1487
1488 2012-01-05  Jim Meyering  <meyering@redhat.com>
1489
1490         init.sh: don't waste a subshell just to redirect stderr
1491         * tests/init.sh: In testing for diff -u and diff -c, use a
1492         stderr-redirecting exec inside `...` rather than a subshell.
1493
1494         test-init.sh: avoid failure on HP-UX 11.00
1495         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
1496         resolves to diff -c or cmp.  Reported by Bruno Haible.
1497
1498 2012-01-05  Bruno Haible  <bruno@clisp.org>
1499
1500         Tests for module 'strtoull'.
1501         * modules/strtoull-tests: New file.
1502         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
1503
1504 2012-01-05  Bruno Haible  <bruno@clisp.org>
1505
1506         Tests for module 'strtoll'.
1507         * modules/strtoll-tests: New file.
1508         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
1509
1510 2012-01-05  Bruno Haible  <bruno@clisp.org>
1511
1512         Tests for module 'strtoul'.
1513         * modules/strtoul-tests: New file.
1514         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
1515
1516 2012-01-05  Bruno Haible  <bruno@clisp.org>
1517
1518         Tests for module 'strtol'.
1519         * modules/strtol-tests: New file.
1520         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
1521
1522 2012-01-04  Jim Meyering  <meyering@redhat.com>
1523
1524         test-init.sh: accommodate Solaris 5.10's different diff -u output
1525         * tests/test-init.sh: Also exempt @@ lines from the comparison
1526         of diff output, since Solaris 5.10 and GNU diff formats differ.
1527         Reported by Stefano Lattarini.
1528
1529 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1530
1531         test-posixtm: don't assume signed integer wraparound
1532         * tests/test-posixtm.c (main): Don't assume wraparound semantics
1533         after signed integer overflow.  Inspired by (though it may not
1534         fix) Bruno Haible's bug report in
1535         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
1536
1537         Spell out "Windows 9x" and "Windows XP".
1538         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
1539         "Windows 9x" and "WinXP" with "Windows XP".
1540
1541 2012-01-04  Jim Meyering  <meyering@redhat.com>
1542
1543         test-vc-list-files-cvs.sh: remove obsolete comment
1544         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
1545         double exit.  Now that's all encapsulated via skip_ and Exit.
1546
1547 2012-01-04  Bruno Haible  <bruno@clisp.org>
1548
1549         Talk about "native Windows API", not "Win32".
1550         * lib/classpath.c: Update comments to mention native Windows.
1551         * lib/csharpexec.c: Likewise.
1552         * lib/dup2.c: Likewise.
1553         * lib/error.c: Likewise.
1554         * lib/fcntl.c: Likewise.
1555         * lib/filename.h: Likewise.
1556         * lib/findprog.c: Likewise.
1557         * lib/get-rusage-as.c: Likewise.
1558         * lib/get-rusage-data.c: Likewise.
1559         * lib/getpagesize.c: Likewise.
1560         * lib/javaexec.c: Likewise.
1561         * lib/msvc-inval.c: Likewise.
1562         * lib/msvc-nothrow.c: Likewise.
1563         * lib/nanosleep.c: Likewise.
1564         * lib/nonblocking.c: Likewise.
1565         * lib/printf-parse.c: Likewise.
1566         * lib/setlocale.c: Likewise.
1567         * lib/sigaction.c: Likewise.
1568         * lib/strerror_r.c: Likewise.
1569         * lib/tmpdir.c: Likewise.
1570         * lib/vasnprintf.c: Likewise.
1571         * lib/w32spawn.h: Likewise.
1572         * lib/waitpid.c: Likewise.
1573         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
1574         * m4/locale-ar.m4: Likewise.
1575         * m4/locale-fr.m4: Likewise.
1576         * m4/locale-ja.m4: Likewise.
1577         * m4/locale-tr.m4: Likewise.
1578         * m4/locale-zh.m4: Likewise.
1579         * m4/printf.m4: Likewise.
1580         * tests/test-cloexec.c: Likewise.
1581         * tests/test-copy-acl.sh: Likewise.
1582         * tests/test-copy-file.sh: Likewise.
1583         * tests/test-file-has-acl.sh: Likewise.
1584         * tests/test-set-mode-acl.sh: Likewise.
1585         * tests/test-dup-safer.c: Likewise.
1586         * tests/test-dup2.c: Likewise.
1587         * tests/test-dup3.c: Likewise.
1588         * tests/test-fcntl.c: Likewise.
1589         * tests/test-nonblocking-pipe.h: Likewise.
1590         * tests/test-nonblocking-socket.h: Likewise.
1591         * tests/test-pipe.c: Likewise.
1592         * tests/test-pipe2.c: Likewise.
1593         * tests/test-spawn-pipe-child.c: Likewise.
1594         * doc/acl-resources.txt: Likewise.
1595         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1596         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
1597         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
1598         * lib/localcharset.c: Update comments to mention native Windows.
1599         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1600         * lib/localename.c: Likewise.
1601         * lib/progreloc.c: Likewise.
1602         * lib/relocatable.c: Likewise.
1603         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1604         (windows_compute_revents): Renamed from win32_compute_revents.
1605         (windows_compute_revents_socket): Renamed from
1606         win32_compute_revents_socket.
1607         * lib/select.c: Update comments to mention native Windows.
1608         (windows_poll_handle): Renamed from win32_poll_handle.
1609         * m4/threadlib.m4: Update comments to mention native Windows.
1610         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
1611         --enable-threads=windows instead of --enable-threads=win32. Set
1612         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
1613         * lib/glthread/lock.h: Update comments to mention native Windows.
1614         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
1615         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
1616         USE_WIN32_THREADS.
1617         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
1618         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
1619         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
1620         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
1621         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
1622         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
1623         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
1624         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
1625         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
1626         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
1627         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
1628         * tests/test-tls.c: Likewise.
1629         Rationale:
1630         Microsoft renamed the "Win32 API" to "Windows API", as it is available
1631         on both 32-bit and 64-bit Windows systems.
1632         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
1633         line of distinction is between "native Windows" on one side and Unix/
1634         POSIX systems on the other side. More details in
1635         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
1636         Suggested by Paul Eggert.
1637
1638 2012-01-03  Bruno Haible  <bruno@clisp.org>
1639
1640         isatty: Support for MSVC 9.
1641         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
1642         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
1643         (_isatty_nothrow): New function.
1644         (isatty): Use it instead of _isatty.
1645         (IsConsoleHandle): Add comment, from Paolo Bonzini.
1646         * lib/poll.c (IsConsoleHandle): Likewise.
1647         * lib/select.c (IsConsoleHandle): Likewise.
1648         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
1649         (gl_PREREQ_ISATTY): New macro.
1650         * modules/isatty (Depends-on): Add msvc-inval.
1651         (configure.ac): Invoke gl_PREREQ_ISATTY.
1652
1653 2012-01-03  Jim Meyering  <meyering@redhat.com>
1654
1655         maint.mk: remove temporary transition aid from over 1.5 years ago
1656         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
1657         purpose was to aid in the transition (avoiding silent malfunction)
1658         from that old name to the new _sc_search_regexp.  This shim was
1659         added by commit 219c504b.
1660
1661         init.sh: do not try to accommodate compare arguments starting with "-"
1662         * tests/init.sh (compare_dev_null_): Do not try to accommodate
1663         compare arguments that start with "-".  Besides, we do not worry
1664         about this when invoking diff or cmp; why start now with sed?
1665         Using "--" to separate options from argument would trigger sed
1666         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
1667         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
1668
1669 2012-01-02  Bruno Haible  <bruno@clisp.org>
1670
1671         Enhance tests for module 'isatty'.
1672         * modules/isatty-tests (Depends-on): Add pipe-posix.
1673         * tests/test-isatty.c: Include <fcntl.h>.
1674         (DEV_NULL): New macro.
1675         (main): Test the resut of isatty() also on regular files, pipes, and
1676         /dev/null.
1677
1678         New module 'isatty'.
1679         * lib/unistd.in.h (isatty): New declaration.
1680         * lib/isatty.c: New file, based on an idea of
1681         Bastien Roucariès <roucaries.bastien@gmail.com>.
1682         * m4/isatty.m4: New file.
1683         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
1684         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
1685         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
1686         REPLACE_ISATTY.
1687         * modules/isatty: New file.
1688         * doc/posix-functions/isatty.texi: Mention the new module.
1689         Suggested by Paolo Bonzini.
1690
1691 2012-01-02  Bruno Haible  <bruno@clisp.org>
1692
1693         canonicalize: Tweak 2011-12-29 commit.
1694         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
1695         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
1696
1697 2012-01-02  Jim Meyering  <meyering@redhat.com>
1698
1699         gitlog-to-changelog: describe input syntax in --help output
1700         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
1701
1702         gitlog-to-changelog: fix typo in --help: show backslash before email @
1703         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
1704         in sources, but not in actual output.
1705
1706 2011-12-30  Jim Meyering  <meyering@redhat.com>
1707
1708         gitlog-to-changelog: don't malfunction when name contains %-directive
1709         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
1710         in a name string cause trouble.  E.g., with a user name of "%s",
1711         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
1712
1713 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
1714
1715         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
1716         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
1717         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
1718         the "  (tiny change)" notation that is appended to the standard
1719         ChangeLog "date  name  email" header line.
1720
1721 2012-01-01  Jim Meyering  <meyering@redhat.com>
1722
1723         test-framework-sh: init.sh: fix "make dist" failure
1724         When using gnulib-tool's --with-tests option and any module that
1725         depends on test-framework-sh, "make dist" would fail due to the
1726         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
1727         in the gltests directory, and not in the gllib/ directory.
1728         One way to work around that is to move the EXTRA_DIST += init.sh
1729         from the primary module to the -tests one:
1730         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
1731         * modules/test-framework-sh (Makefile.am): ...not here.
1732         Reported by Tom G. Christensen in
1733         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
1734
1735         version-etc: update copyright year reported by --version
1736         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
1737
1738 2011-12-31  Pádraig Brady  <P@draigBrady.com>
1739
1740         canonicalize: only stat() if required
1741         * lib/canonicalize.c (canonicalize_filename_mode):
1742         Avoid calling l?stat() when both CAN_MISSING,
1743         and CAN_NOLINKS are set, as we neither need
1744         to resolve symlinks or test component existence.
1745
1746 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1747
1748         doc: cover st_ino issues once; add OpenVMS etc.
1749         * doc/posix-functions/stat.texi (stat):
1750         * doc/posix-functions/lstat.texi (lstat):
1751         * doc/posix-functions/fstatat.texi (fstatat):
1752         * doc/posix-functions/fstat.texi (fstat):
1753         Move general 'struct stat' stuff to sys_stat.texi,
1754         leaving behind a pointer.
1755         * doc/posix-headers/sys_stat.texi (sys/stat.h):
1756         Merge duplicate info about 'struct stat' problems into here.
1757         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
1758         and suggest partial workarounds.
1759
1760         same-inode: port to OpenVMS
1761         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
1762         three st_ino values.
1763
1764 2011-12-30  Pádraig Brady  <P@draigBrady.com>
1765
1766         canonicalize: fix references to stat() and lstat()
1767         * lib/canonicalize.c (canonicalize_filename_mode):
1768         Ensure references always resolve to a replacement
1769         function if required (even via a macro).
1770
1771 2011-12-30  Jim Meyering  <meyering@redhat.com>
1772
1773         gitlog-to-changelog: remove a little duplication
1774         * build-aux/gitlog-to-changelog (main): Grep @lines once,
1775         rather than twice.
1776
1777 2011-12-29  Pádraig Brady  <P@draigBrady.com>
1778
1779         canonicalize: add support for not resolving symlinks
1780         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
1781         indicate we don't want to follow symlinks.  Also
1782         provide CAN_MODE_MASK to aid setting these existing
1783         mutually exclusive values.
1784         * lib/canonicalize.c (canonicalize_filename_mode):
1785         Extract the flags from can_mode parameter, which
1786         are currently just used to select between stat()
1787         and lstat().  Also ensure that mutually exclusive
1788         values are flagged immediately as invalid.
1789         * tests/test-canonicalize.c: Verify symlinks are
1790         not followed, and that invalid flag combinations
1791         are diagnosed.
1792
1793 2011-12-25  Jim Meyering  <meyering@redhat.com>
1794
1795         gitlog-to-changelog: do not clump multi-paragraph entries
1796         Identical header lines (date,name,email+coauthors) are suppressed,
1797         thus putting all entries with those same characteristics under
1798         a single header.  However, when a log entry consists of two or
1799         more paragraphs, it may not be clear where it starts and ends.
1800         This change makes it so that such an entry is always separated
1801         from others by a header line, even when that header would
1802         otherwise be suppressed.
1803         * build-aux/gitlog-to-changelog: Implement the above.
1804         Inspired by a related request from Stefano Lattarini in
1805         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
1806
1807 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1808
1809         announce-gen: fix `cmd' typo in diagnostic
1810         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
1811         diagnostic: a missing '$' meant that the command was not output.
1812
1813 2011-12-23  Jim Meyering  <meyering@redhat.com>
1814
1815         test-framework-sh: distribute init.sh
1816         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
1817         Otherwise, "make -C gnulib-tests check" (at least in grep) would
1818         fail due to the lack of init.sh.
1819
1820         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
1821         * modules/atexit-tests: Rather than listing tests/init.sh,
1822         now that there's a module for it, simply depend on that new module.
1823         * modules/closein-tests: Likewise.
1824         * modules/exclude-tests: Likewise.
1825         * modules/getcwd-tests: Likewise.
1826         * modules/perror-tests: Likewise.
1827         * modules/pread-tests: Likewise.
1828         * modules/pwrite-tests: Likewise.
1829         * modules/vc-list-files-tests: Likewise.
1830         * modules/verify-tests: Likewise.
1831         * modules/xalloc-die-tests: Likewise.
1832         * modules/xstrtoimax-tests: Likewise.
1833         * modules/xstrtol-tests: Likewise.
1834         * modules/xstrtoll-tests: Likewise.
1835         * modules/xstrtoumax-tests: Likewise.
1836         * modules/yesno-tests: Likewise.
1837
1838 2011-12-22  Jim Meyering  <meyering@redhat.com>
1839
1840         test-framework-sh: add minimal tests of init.sh's compare function
1841         * modules/test-framework-sh-tests: New file.
1842         * tests/test-init.sh: New file.
1843
1844         test-framework-sh: new module
1845         * modules/test-framework-sh: New file.
1846         * MODULES.html.sh (Support for maintaining and releasing projects):
1847         List it.
1848
1849         init.sh: do not emit simulated diff output to stderr
1850         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
1851
1852 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1853
1854         .gitignore: ignore gnulib.dvi and regex.info
1855         * doc/.gitignore:add gnulib.dvi and regex.info
1856
1857 2011-12-22  Jim Meyering  <meyering@redhat.com>
1858
1859         init.sh: correct previous change
1860         * tests/init.sh (compare): My previous change was wrong.
1861         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
1862
1863         init.sh: avoid unwarranted test failure when using "set -e"
1864         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
1865         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
1866         a use like "compare exp out" would get evoke an unconditional failure.
1867
1868 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
1869
1870         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
1871         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
1872         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
1873         autoreconf that did not.
1874         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
1875         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1876
1877 2011-12-17  Jim Meyering  <meyering@redhat.com>
1878
1879         bootstrap: remove some now-unneeded code
1880         This script arose back when gnulib-tool was young.
1881         Since then, it has seen improvements that render much of this
1882         script unnecessary.  In particular, it can now make symlinks
1883         to the files it uses.  Also, I no longer see as much value in
1884         marking files as read-only via comments.
1885         If you relied on the symlink-creation feature of the preceding
1886         version of this script, you can get most of that functionality
1887         by adding the --symlink option to the definition of
1888         gnulib_tool_option_extras in your bootstrap.conf file.
1889         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
1890         Run autopoint and libtoolize *before* gnulib-tool.
1891         After it, run an abbreviated autoreconf, rather than a loop around
1892         all tools.
1893         (slirp, bt_mark_as_generated): Remove functions.
1894
1895 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1896
1897         ftoastr: fix typo
1898         * lib/ftoastr.h: Fix misspelling in comment.
1899
1900 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
1901
1902         * top/README-release: fix punctuation.
1903
1904 2011-12-17  Jim Meyering  <meyering@redhat.com>
1905
1906         bootstrap: correct the recent buildreq change
1907         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
1908         had no effect.
1909         * build-aux/bootstrap (buildreq): Bracket each search term with
1910         "*...*", so that the shell "case" statement works as intended.
1911         Add comments.
1912
1913 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
1914
1915         build: let bootstrap resort to wget when downloading .po files
1916         * build-aux/bootstrap (download_po_files): Fallback to wget when
1917         downloading the .po files via rsync fails.  This is necessary to
1918         bootstrap from behind a strict firewall.
1919
1920 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1921
1922         stdint: don't assume C++11 when compiling with g++
1923         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
1924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
1925         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
1926         work also in C++ before C++11, as that improperly inhibits
1927         generating a substitute stdint.h for that case.
1928
1929 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1930
1931         alloca: protect comment from gnulib-tool
1932         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
1933         that gnulib-tool doesn't think it's a license, and munge it to
1934         say "GCC version 3".
1935
1936 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
1937
1938         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
1939         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
1940         $(abs_top_builddir) instead of $(top_builddir).
1941
1942 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
1943
1944         strftime-tests: also test nanoseconds
1945         * tests/test-strftime.c (T): Add a test of %N.
1946
1947 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1948
1949         inttypes, stdint: add C++11 support
1950         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
1951         when including inttypes.h and stdint.h.  Support this change to
1952         the standard.
1953         * doc/posix-headers/inttypes.texi (inttypes.h):
1954         * doc/posix-headers/stdint.texi (stdint.h): Document this.
1955         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
1956         Define if not defined already, for the benefit of pre-C++11 hosts.
1957         Define the standard format macros (e.g., PRId8) always.
1958         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
1959         Likewise, if __cpluspus.  Define the standard constant and limit
1960         macros (e.g., INT8_C, INT8_MAX) always.
1961         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
1962         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
1963         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
1964         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
1965         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
1966         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
1967         Likewise.
1968
1969 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1970
1971         nonblocking tests: Fix test failure on Linux/PPC.
1972         Suggested by Prerna Saxena in
1973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
1974         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
1975         Set to 1100000.
1976
1977 2011-12-12  Jim Meyering  <meyering@redhat.com>
1978
1979         argmatch: don't hard-code `' when listing valid option arguments
1980         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
1981         use the quote function to add quotes.  Use fputs rather than
1982         fprintf for the format string with no format directive.
1983
1984 2011-12-07  Eric Blake  <eblake@redhat.com>
1985
1986         bootstrap: detect tools required by gnulib-tool
1987         * build-aux/bootstrap (buildreq): Provide minimum implicit
1988         dependencies.
1989         * DEPENDENCIES: Mention patch as a prereq.
1990
1991 2011-12-04  Bruno Haible  <bruno@clisp.org>
1992
1993         sethostname: Port to Windows platforms.
1994         * lib/sethostname.c: Provide an alternate implementation for Windows
1995         platforms.
1996         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
1997         (main): Skip the test if sethostname() fails with EPERM. On Windows
1998         platforms, don't check the result of gethostname().
1999
2000 2011-12-04  Bruno Haible  <bruno@clisp.org>
2001             Jim Meyering  <meyering@redhat.com>
2002
2003         tests: Avoid spurious error message on platforms without mktemp program.
2004         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
2005
2006 2011-12-04  Bruno Haible  <bruno@clisp.org>
2007
2008         sethostname: Fix documentation.
2009         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
2010         "not fixed" section.
2011
2012 2011-12-03  Bruno Haible  <bruno@clisp.org>
2013
2014         gnulib-tool: Verify that the License field is present and non-empty.
2015         * gnulib-tool (func_get_license_raw): New function, extracted from
2016         func_get_license.
2017         (func_get_license): Use it. Warn if the module is not a test module and
2018         has no license.
2019         Suggested by Jim Meyering.
2020
2021 2011-12-03  Bruno Haible  <bruno@clisp.org>
2022
2023         sethostname tests: Fix link error on mingw.
2024         * tests/test-sethostname1.c: New file, extracted from
2025         tests/test-sethostname.c.
2026         * tests/test-sethostname2.c: New file, extracted from
2027         tests/test-sethostname.c.
2028         * tests/test-sethostname.c: Remove file.
2029         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
2030         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
2031         (Depends-on): Add gethostname.
2032         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
2033         Link the latter with $(GETHOSTNAME_LIB).
2034
2035         sethostname tests: Fix compilation error on mingw.
2036         * tests/test-sethostname.c: Don't include <sys/types.h>.
2037         (geteuid): Use a dummy value without uid_t.
2038         * modules/sethostname-tests (Depends-on): Remove sys_types.
2039
2040         sethostname tests: Avoid a gcc warning.
2041         * tests/test-sethostname.c (main): Remove an unused variable.
2042
2043         Tweak last commit.
2044         * modules/sethostname-tests (Files): Sort by decreasing importance.
2045         (configure.ac): Check for geteuid.
2046         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
2047         the test when there's nothing to test. Drop an unnecessary cast.
2048         Improve an error message. Verify that the final sethostname() call
2049         succeeds.
2050
2051 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2052
2053         Add a test suite for the sethostname module.
2054         * modules/sethostname-tests: New file.  A test program
2055         for the sethostname module.
2056         * tests/test-sethostname.c: Likewise.
2057
2058 2011-12-03  Bruno Haible  <bruno@clisp.org>
2059
2060         Tweak last commit.
2061         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
2062         Fix preprocessor directives indentation. Fix typos.
2063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
2064         * modules/unistd (Makefile): Likewise.
2065
2066 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2067
2068         Integrate the sethostname module into unistd.
2069         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
2070         into the unistd.h header.
2071         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
2072         preprocessor directives.
2073         * modules/unistd: Setup the Makefile substitutions of the
2074         SETHOSTNAME preprocessor directives.
2075
2076 2011-12-03  Bruno Haible  <bruno@clisp.org>
2077
2078         Tweak last commit.
2079         * lib/sethostname.c: Don't include <string.h>.
2080         (sethostname): No need to copy the argument string to the stack. Don't
2081         call clearerr. Preserve errno when fprintf failed.
2082         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
2083         Don't invoke AC_REPLACE_FUNCS.
2084         * modules/sethostname (Link): Remove empty section.
2085         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
2086         failure problem.
2087
2088 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2089
2090         New module 'sethostname'.
2091         * lib/sethostname.c (sethostname): New file.  Provide sethostname
2092         for systems that lack it.
2093         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
2094         sethostname declaration and function.
2095         * modules/sethostname: New file.  Define the sethostname module.
2096
2097 2011-12-03  Bruno Haible  <bruno@clisp.org>
2098
2099         Tweak last commit.
2100         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
2101
2102 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2103
2104         Split the HOST_NAME_MAX detection into a separate m4 macro.
2105         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
2106         macro so it can be used by the pending sethostname module.
2107
2108 2011-12-03  Bruno Haible  <bruno@clisp.org>
2109
2110         Fix module descriptions syntax.
2111         * modules/argv-iter (License): Fix syntax.
2112         * modules/di-set (License): Likewise.
2113         * modules/ino-map (License): Likewise.
2114         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
2115
2116 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2117
2118         stdalign: port to Clang 3.0
2119         Problem reported by Simon Josefsson in
2120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
2121         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
2122         which has <stdalign.h> but which does not define alignof.
2123         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
2124
2125 2011-12-01  Eric Blake  <eblake@redhat.com>
2126
2127         mktempd: silence dd usage
2128         * build-aux/mktempd (rand_bytes): Silence dd.
2129
2130 2011-11-30  Simon Josefsson  <simon@josefsson.org>
2131
2132         manywarnings: Don't mention gcc version in docstring.
2133         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
2134         Jim Meyering <meyering@redhat.com>.
2135
2136 2011-11-30  Jim Meyering  <meyering@redhat.com>
2137
2138         hash: mark a few floating point constants with "f" suffix
2139         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
2140         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
2141         floating point constants with "f", since they're destined to be
2142         saved/used as "float"s.
2143
2144 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
2145
2146         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
2147         * tests/test-float.c (test_long_double): Correct and re-enable the
2148         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
2149
2150 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
2151
2152         Avoid subtracting two pointers that don't point into the same block.
2153         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
2154         only pointers into the same memory block are subtracted. We cannot
2155         assume that sizeof (ptrdiff_t) == sizeof (void *).
2156
2157 2011-11-29  Eric Blake  <eblake@redhat.com>
2158
2159         maint.mk: add syntax check for use of compare from init.sh
2160         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
2161         moved here from coreutils.
2162
2163         manywarnings: drop -Wunsuffixed-float-constants
2164         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
2165         '1.0D', which is the only way to silence this warning for 'double'.
2166
2167 2011-11-29  Jim Meyering  <meyering@redhat.com>
2168
2169         hash: mark compute_bucket_size with the pure attribute
2170         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
2171
2172         quotearg, propername: correct pragma guard expression
2173         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
2174         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
2175
2176 2011-11-28  Jim Meyering  <meyering@redhat.com>
2177
2178         propername: do not mark proper_name with the const attribute
2179         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
2180         since it examines data pointed to by its parameter.
2181         * lib/propername.c (proper_name): Instead, add a pragma to suppress
2182         the suggestion from -Wsuggest-attribute=const.
2183
2184         propername: mark one more function as const
2185         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
2186
2187 2011-11-27  Jim Meyering  <meyering@redhat.com>
2188
2189         mark functions with const and pure attributes
2190
2191         Mark functions per suggestions from gcc-4.6 when using these options:
2192         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
2193         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
2194         Follow these guidelines: when possible, apply the attribute to
2195         an extern declaration, not to its definition.  Apply it to the
2196         definition only when the definition is static.
2197         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
2198         * lib/argv-iter.h (argv_iter_n_args): Likewise.
2199         * lib/base64.h (isbase64): Likewise.
2200         * lib/basename-lgpl.c (last_component, base_len): Likewise.
2201         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
2202         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
2203         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
2204         (c_tolower, c_toupper): Likewise.
2205         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
2206         * lib/chdir-long.c (find_non_slash): Likewise.
2207         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
2208         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
2209         * lib/file-type.h (file_type): Likewise.
2210         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
2211         * lib/filevercmp.c (verrevcmp): Likewise.
2212         * lib/freadahead.h (freadahead): Likewise.
2213         * lib/fts.c (fts_maxarglen): Likewise.
2214         * lib/hash-pjw.h (hash_pjw): Likewise.
2215         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
2216         * lib/hash.c (is_prime, next_prime): Likewise.
2217         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
2218         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
2219         (hash_table_ok, hash_get_first, hash_string): Likewise.
2220         (compute_bucket_size): Likewise.
2221         * lib/i-ring.h (i_ring_empty): Likewise.
2222         * lib/isnan.c (isnanl): Likewise.
2223         * lib/math.h (isnanl, rpl_isnanl): Likewise.
2224         * lib/memcasecmp.h (memcasecmp): Likewise.
2225         * lib/memchr2.h (memchr2): Likewise.
2226         * lib/memcmp2.h (memcmp2): Likewise.
2227         * lib/parse-datetime.y (lookup_zone): Likewise.
2228         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
2229         [!WINDOWS_SOCKETS]: Likewise.
2230         * lib/strnlen1.h (strnlen1): Likewise.
2231         * lib/uniwidth.in.h (uc_width): Likewise.
2232         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
2233         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
2234         (quoting_options_from_style): Add a comment.
2235         * lib/propername.h (proper_name): Add a comment.
2236
2237 2011-11-27  Bruno Haible  <bruno@clisp.org>
2238
2239         Remove unused macros from !_LIBC code in glibc-borrowed files.
2240         * lib/fnmatch.c (STRCOLL): Remove macro.
2241         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
2242         * lib/glob.c (__stat, __readdir64): Remove macros.
2243         * lib/tempname.c (__open64, __xstat64): Remove macros.
2244         Suggested by Paul Eggert.
2245
2246 2011-11-27  Bruno Haible  <bruno@clisp.org>
2247
2248         getcwd: Fix link error on MSVC 9.
2249         * modules/getcwd (Depends-on): Add readdir, rewinddir.
2250
2251 2011-11-27  Bruno Haible  <bruno@clisp.org>
2252
2253         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
2254         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
2255         HAVE_OPENDIR is 0.
2256         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
2257         HAVE_CLOSEDIR is 0.
2258         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
2259         is 0.
2260         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
2261
2262 2011-11-27  Bruno Haible  <bruno@clisp.org>
2263
2264         getcwd: Fix bug from 2011-08-17.
2265         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
2266         platforms that need it.
2267         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
2268         code of 4 to be a failure, not a success. This ensures that
2269         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
2270
2271 2011-11-27  Bruno Haible  <bruno@clisp.org>
2272
2273         binary-io tests: Avoid test failure on mingw when libtool is used.
2274         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
2275         Don't verify the size of t-bin-out1.tmp here.
2276         * tests/test-binary-io.sh: Verify it here.
2277         Reported by Simon Josefsson.
2278
2279 2011-11-26  Bruno Haible  <bruno@clisp.org>
2280
2281         Fix conflict between two instantiations of module 'unistd'.
2282         * gnulib-tool (func_emit_autoconf_snippet): Substitute
2283         ${include_guard_prefix} also in the autoconf snippet.
2284         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
2285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
2286         GNULIB_UNISTD_H_GETOPT.
2287         * modules/getopt-posix (configure.ac): Set the
2288         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
2289         * modules/getopt-gnu (configure.ac): Likewise.
2290         * modules/unistd (Makefile.am): Change the substitution value of
2291         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
2292         Reported by Simon Josefsson.
2293
2294 2011-11-25  Bruno Haible  <bruno@clisp.org>
2295
2296         pagealign_alloc: Doc and comments.
2297         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
2298         module.
2299         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
2300
2301 2011-11-25  Jim Meyering  <meyering@redhat.com>
2302
2303         test-update-copyright.sh: avoid false-positive failure
2304         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
2305         around false positive failure on Cygwin/Windows.  The latter was
2306         matching erroneously-created files with names like
2307         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
2308
2309 2011-11-25  Simon Josefsson  <simon@josefsson.org>
2310
2311         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
2312         * m4/valgrind-tests.m4: Check that the parameters that will be
2313         used works, not just a subset of them.  Reported by Bruno Haible
2314         <bruno@clisp.org>.
2315
2316 2011-11-24  Jim Meyering  <meyering@redhat.com>
2317
2318         test-stdalign.c: comment out long double tests
2319         * tests/test-stdalign.c: Don't try to reduce alignment of long double
2320         variables.  That provokes errors like this from gcc-4.7.0 20111124:
2321         error: '_Alignas' specifiers cannot reduce alignment of \
2322         'static_longdouble_alignas'.
2323
2324 2011-11-22  Jim Meyering  <meyering@redhat.com>
2325
2326         init.sh: make "compare /dev/null FILE" output more readable
2327         * tests/init.sh (compare_): Document the preferred order of arguments.
2328         (emit_diff_u_header_): New function.
2329         (compare_dev_null_): Emit a simulated diff, rather than just the
2330         contents of the unexpected file.  Suggestion from Bruno Haible.
2331
2332 2011-11-21  Jim Meyering  <meyering@redhat.com>
2333             Eric Blake  <eblake@redhat.com>
2334
2335         init.sh: work around OSF/1 5.1's mishandling of /dev/null
2336         * tests/init.sh: Make our compare function slightly more portable.
2337         Reported by Bruno Haible in
2338         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
2339
2340 2011-11-21  Simon Josefsson  <simon@josefsson.org>
2341
2342         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
2343         before using it, in code that ends up in config.h.
2344
2345 2011-11-20  Bruno Haible  <bruno@clisp.org>
2346
2347         getcwd: Work around getcwd bug on AIX 5..7.
2348         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
2349         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
2350         Use a different value for gl_cv_func_getcwd_path_max. Move the
2351         definition of HAVE_PARTLY_WORKING_GETCWD from here...
2352         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
2353         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
2354         Define HAVE_MINIMALLY_WORKING_GETCWD.
2355         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
2356         where it is not even minimally working, that is, on AIX.
2357         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
2358         m4/getcwd-path-max.m4.
2359         (main): Update exit code computation.
2360         * doc/posix-functions/getcwd.texi: Mention list of platforms where
2361         getcwd does not handle long file names.
2362
2363 2011-11-20  Bruno Haible  <bruno@clisp.org>
2364
2365         getcwd: Fix bug from 2009-09-10.
2366         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
2367         like "no".
2368
2369 2011-11-20  Simon Josefsson  <simon@josefsson.org>
2370
2371         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
2372
2373 2011-11-20  Bruno Haible  <bruno@clisp.org>
2374
2375         fma tests: Avoid shadowing local variables.
2376         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
2377         expected.
2378
2379 2011-11-20  Bruno Haible  <bruno@clisp.org>
2380
2381         copysignf tests: Fix.
2382         * tests/test-copysignf.c: Fix signature check.
2383
2384 2011-11-20  Bruno Haible  <bruno@clisp.org>
2385
2386         fma: Remove unused code.
2387         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
2388         unused macros.
2389
2390 2011-11-20  Bruno Haible  <bruno@clisp.org>
2391
2392         sethostname: Fix doc about AIX.
2393         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
2394         sethostname; it has it.
2395
2396         sethostname: Mention more portability problems.
2397         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
2398         problem.
2399         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2400
2401 2011-11-19  Bruno Haible  <bruno@clisp.org>
2402
2403         Depend on module fcntl-h when AT_FDCWD is used.
2404         * modules/utimens (Depends-on): Add fcntl-h.
2405         * modules/areadlinkat (Depends-on): Likewise.
2406         * modules/areadlinkat-with-size (Depends-on): Likewise.
2407         * modules/faccessat (Depends-on): Likewise.
2408         * modules/fchmodat (Depends-on): Likewise.
2409         * modules/fchownat (Depends-on): Likewise.
2410         * modules/getcwd (Depends-on): Likewise.
2411         * modules/mkdirat (Depends-on): Likewise.
2412         * modules/mkfifoat (Depends-on): Likewise.
2413         * modules/readlinkat (Depends-on): Likewise.
2414         * modules/symlinkat (Depends-on): Likewise.
2415         * modules/dup2-tests (Depends-on): Likewise.
2416         * modules/fdutimensat-tests (Depends-on): Likewise.
2417         * modules/futimens-tests (Depends-on): Likewise.
2418
2419 2011-11-19  Bruno Haible  <bruno@clisp.org>
2420
2421         euidaccess: Update a comment.
2422         * lib/euidaccess.c: Update comment about platforms with faccessat.
2423
2424 2011-11-19  Bruno Haible  <bruno@clisp.org>
2425
2426         openat: Fix file list.
2427         * modules/openat (Files): Remove lib/at-func.c.
2428
2429 2011-11-19  Bruno Haible  <bruno@clisp.org>
2430
2431         fstatat: Simplify.
2432         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
2433         gnulib should define rpl_fstatat, there is a
2434         "#define fstatat rpl_fstatat" in <sys/stat.h>.
2435
2436 2011-11-19  Bruno Haible  <bruno@clisp.org>
2437
2438         Ensure 'inline' can be used in tests/test-utimens-common.h.
2439         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
2440         * modules/futimens-tests (configure.ac): Likewise.
2441         * modules/utimens-tests (configure.ac): Likewise.
2442         * modules/utimensat-tests (configure.ac): Likewise.
2443
2444 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2445
2446         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
2447         not hash_insert0.
2448         (hash_insert_if_absent): Doc fix.
2449
2450 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2451
2452         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
2453
2454 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2455
2456         test-getcwd: disambiguate exit status
2457         * tests/test-getcwd.c (test_long_name): Return 0..7.
2458         (main): Exit with an unambiguous exit status.  The old
2459         code yielded a mysterious mixture of two failure codes.
2460
2461         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
2462         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
2463         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
2464         rpl_fstatat or fstatat.  This should fix the other problem
2465         reported by Kai Habel in
2466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2467         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
2468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
2469         and I reproduced it on a Solaris 8 host we still have in production.
2470
2471 2011-11-18  Jim Meyering  <meyering@redhat.com>
2472
2473         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
2474         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
2475         Add a sentence to the comment.
2476         (hash_insert0): New function that simply calls hash_insert_if_absent.
2477         * lib/hash.h (hash_insert_if_absent): Declare it.
2478         (hash_insert0): Add deprecation attribute.
2479         (_GL_ATTRIBUTE_DEPRECATED): Define.
2480         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
2481         not hash_insert0.
2482         * NEWS: Mention it, even though it's not really an incompatible change.
2483
2484 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
2485
2486         openat: avoid compilation failure due to lack of <errno.h> inclusion
2487         * lib/openat.c: Include <errno.h>.
2488
2489 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2490
2491         * modules/getcwd (Depends-on): Add fdopendir.
2492         This fixes one of the two problems reported by Kai Habel in
2493         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2494
2495         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
2496         stdalign problem reported by Ian Beckwith in
2497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
2498         * modules/crypto/gc-arcfour (Depends-on):
2499         Depend conditionally on crypto/arcfour.
2500         * modules/crypto/gc-arctwo (Depends-on):
2501         Depend conditionally on crypto/arctwo.
2502         * modules/crypto/gc-des (Depends-on):
2503         Depend conditionally on crypto/des.
2504         * modules/crypto/gc-hmac-md5 (Depends-on):
2505         Depend conditionally on crypto/hmac-md5.
2506         * modules/crypto/gc-hmac-sha1 (Depends-on):
2507         Depend conditionally on crypto/hmac-sha1.
2508         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
2509         * modules/crypto/gc-md4 (Depends-on):
2510         Depend conditionally on crypto/md4.
2511         * modules/crypto/gc-md5 (Depends-on):
2512         Depend conditionally on crypto/md5.
2513         * modules/crypto/gc-rijndael (Depends-on):
2514         Depend conditionally on crypto/rijndael.
2515         * modules/crypto/gc-sha1 (Depends-on):
2516         Depend conditionally on crypto/sha1.
2517         * modules/crypto/gc-arcfour:
2518         * modules/crypto/gc-arctwo:
2519         * modules/crypto/gc-des:
2520         * modules/crypto/gc-hmac-md5:
2521         * modules/crypto/gc-hmac-sha1:
2522         * modules/crypto/gc-md2:
2523         * modules/crypto/gc-md4:
2524         * modules/crypto/gc-md5:
2525         * modules/crypto/gc-rijndael:
2526         * modules/crypto/gc-sha1:
2527         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
2528         now that the conditional dependencies do the work for us.
2529
2530 2011-11-17  Jim Meyering  <meyering@redhat.com>
2531
2532         tests: factor st_ctime-comparison out of two headers
2533         * tests/test-utimens-common.h (ctime_compare): Define.
2534         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
2535         * tests/test-lutimens.h (test_lutimens): Likewise.
2536         * tests/test-utimens.h (test_utimens): Likewise.
2537
2538         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
2539         Invoke the test program via an init.sh-using wrapper.
2540         * tests/test-getcwd.sh: New file.
2541         * modules/getcwd-tests (Files): Add it.
2542         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
2543
2544 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
2545
2546         gitlog-to-changelog: support multi-author commits.
2547         The FSF cares about keeping track of all authors of patches to its
2548         projects, but Git doesn't provide obvious support for multi-author
2549         changesets. Consensus seems to be forming around the use of extra
2550         Signed-off-by inspired lines in the log message formatted as
2551         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
2552         multi-author commits between version control systems.
2553         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
2554         log message and output in standard ChangeLog multi-author format.
2555         Reported by Peter Rosin <peda@lysator.liu.se>
2556
2557 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
2558             Bruno Haible  <bruno@clisp.org>
2559
2560         Fix some modules' file list.
2561         * modules/fstatat (Files): Add m4/lstat.m4.
2562         * modules/openat (Files): Likewise.
2563         * modules/unlinkat (Files): Likewise.
2564
2565 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
2566
2567         maint.mk: fix tight-scope.mk generation in VPATH builds.
2568         * top/maint.mk (tight-scope.mk): Make sure to prefix file
2569         reference with $(srcdir) so that the file is found correctly even
2570         when running `make syntax-check' in a VPATH build.
2571
2572 2011-11-13  Bruno Haible  <bruno@clisp.org>
2573             Jim Meyering  <meyering@redhat.com>
2574
2575         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
2576         * tests/init.sh (compare): Remove "No differences encountered" or
2577         synonymous output from the 'diff' program.
2578
2579 2011-11-13  Bruno Haible  <bruno@clisp.org>
2580
2581         Makefile: Tweak indentation.
2582         * Makefile: Use tab as first character in every line that contains rule
2583         commands.
2584
2585 2011-11-13  Bruno Haible  <bruno@clisp.org>
2586
2587         Syntax check for copyright statements.
2588         * check-copyright: New file.
2589         * Makefile (sc_check_copyright): New rule.
2590
2591 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2592
2593         * build-aux/git-version-gen: Add --prefix to configure the tag
2594         match string.
2595
2596 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2597
2598         * build-aux/git-version-gen: Add --help and --version.
2599
2600 2011-11-12  Jim Meyering  <meyering@redhat.com>
2601
2602         revamp the other test-exclude?.sh scripts to use init.sh, too
2603         * tests/test-exclude1.sh: Use init.sh.
2604         * tests/test-exclude2.sh: Likewise.
2605         * tests/test-exclude3.sh: Likewise.
2606         * tests/test-exclude4.sh: Likewise.
2607         * tests/test-exclude5.sh: Likewise.
2608         * tests/test-exclude6.sh: Likewise.
2609         * tests/test-exclude7.sh: Likewise.
2610         * tests/test-exclude8.sh: Likewise.
2611         * modules/exclude-tests (Files): List init.sh.
2612
2613         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
2614         These shell scripts ignored failure of the binary test-exclude,
2615         so making the latter return 77 didn't cause them to be skipped.
2616         * tests/test-exclude5.sh: Exit with test-exclude's error status
2617         when that program fails.  Revamp to use init.sh.
2618         * tests/test-exclude2.sh: Likewise.
2619
2620         test-exclude: fix a typo
2621         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
2622
2623 2011-11-11  Bruno Haible  <bruno@clisp.org>
2624
2625         obstack: Fix compilation error on MSVC 9.
2626         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
2627
2628 2011-11-11  Jim Meyering  <meyering@redhat.com>
2629
2630         test-exclude: skip tests rather than failing on deficient systems
2631         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
2632         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
2633         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
2634         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
2635
2636 2011-11-10  Bruno Haible  <bruno@clisp.org>
2637
2638         ptsname_r test: Avoid gcc warning on glibc systems.
2639         * tests/test-ptsname_r.c (null_ptr): New function.
2640         (test_errors): Use it.
2641
2642 2011-11-10  Bruno Haible  <bruno@clisp.org>
2643
2644         ptsname_r: Avoid compilation error on OSF/1 5.1.
2645         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
2646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
2647         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
2648         function is not declared or incompatibly declared.
2649         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
2650         * modules/ptsname_r (Depends-on, configure.ac): Update.
2651         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
2652
2653 2011-11-10  Bruno Haible  <bruno@clisp.org>
2654
2655         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
2656         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
2657         When cross-compiling, guess yes on all platforms except AIX.
2658         Reported by Ludovic Courtès <ludo@gnu.org>.
2659
2660 2011-11-09  Bruno Haible  <bruno@clisp.org>
2661
2662         ptsname_r tests: Fix bugs.
2663         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
2664         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
2665
2666 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2667
2668         fstatat: work with cross-compilation
2669         Problem reported by Ludovic Courtès in
2670         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
2671         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
2672         "cross-compiling" and assume the bug is present.  Replace
2673         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
2674         an inverted sense, to be more conservative about our assumptions.
2675         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
2676
2677 2011-11-09  Bruno Haible  <bruno@clisp.org>
2678
2679         Improve MODULES.html output.
2680         * modules/mkfifoat (Description): Use the word "function".
2681         * modules/readlinkat (Description): Likewise.
2682         * modules/symlinkat (Description): Likewise.
2683
2684 2011-11-09  Eric Blake  <eblake@redhat.com>
2685
2686         ptsname_r-tests: new test module
2687         * modules/ptsname_r-tests: New module.
2688         * tests/test-ptsname_r.c: New file.
2689
2690         ptsname_r: new module
2691         * modules/ptsname_r: New module.
2692         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
2693         * lib/ptsname.c (__ptsname_r): Split...
2694         * lib/ptsname_r.c: ...into new file.
2695         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2696         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
2697         * modules/stdlib (Makefile.am): Substitute witnesses.
2698         * lib/stdlib.in.h (ptsname_r): Declare it.
2699         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
2700         * MODULES.html.sh (Misc): Likewise.
2701         * modules/ptsname (Depends-on): Alter dependency.
2702         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
2703
2704 2011-11-09  Jim Meyering  <meyering@redhat.com>
2705
2706         announce-gen: be more concise when there's only one URL+tarball
2707         * build-aux/announce-gen (get_tool_versions): When you distribute
2708         only one type of tarball, combine the first two "Here are..."
2709         sections and make the key-checking grammar independent of
2710         how many tarballs there are.
2711
2712 2011-11-09  Eric Blake  <eblake@redhat.com>
2713
2714         openpty: provide a stub on mingw
2715         * lib/pty.in.h (includes): Provide forward declarations.
2716         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
2717
2718         raise: fix mingw handling of SIGPIPE
2719         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
2720
2721 2011-11-08  Bruno Haible  <bruno@clisp.org>
2722
2723         More conditional dependencies.
2724         * modules/faccessat (Depends-on): Add conditions.
2725         * modules/fchmodat (Depends-on): Likewise.
2726         * modules/fchownat (Depends-on): Likewise.
2727         * modules/fstatat (Depends-on): Likewise.
2728         * modules/mkfifoat (Depends-on): Likewise.
2729         * modules/readlinkat (Depends-on): Likewise.
2730         * modules/symlinkat (Depends-on): Likewise.
2731         * modules/unlinkat (Depends-on): Likewise.
2732         * modules/utimensat (Depends-on): Likewise.
2733         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
2734         * modules/linkat (Depends-on): Refine the conditions.
2735         * modules/renameat (Depends-on): Likewise.
2736
2737 2011-11-08  Bruno Haible  <bruno@clisp.org>
2738
2739         faccessat: Move AC_LIBOBJ invocation to module description.
2740         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
2741         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
2742         invocation from here...
2743         * modules/faccessat (configure.ac): ... to here. Invoke
2744         gl_PREREQ_FACCESSAT.
2745
2746 2011-11-08  Bruno Haible  <bruno@clisp.org>
2747
2748         faccessat: Simplify autoconf macro.
2749         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
2750         gl_FUNC_EUIDACCESS.
2751
2752 2011-11-08  Bruno Haible  <bruno@clisp.org>
2753
2754         renameat: Fix dependencies.
2755         * modules/renameat (Depends-on): Add stdbool.
2756
2757 2011-11-08  Bruno Haible  <bruno@clisp.org>
2758
2759         mkfifoat: Fix module description.
2760         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
2761         not gl_UNISTD_MODULE_INDICATOR.
2762
2763 2011-11-08  Bruno Haible  <bruno@clisp.org>
2764
2765         fstatat: Remove unused dependency.
2766         * modules/fstatat (Depends-on): Remove fstat.
2767
2768 2011-11-08  Simon Josefsson  <simon@josefsson.org>
2769
2770         GNUmakefile: behave when Makefile is missing.
2771         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
2772
2773 2011-11-08  Bruno Haible  <bruno@clisp.org>
2774
2775         openat: Conditionalize dependencies.
2776         * lib/openat.c: Reduce the scope of some #includes.
2777         * modules/openat (Depends-on): Add conditions.
2778
2779 2011-11-07  Jim Meyering  <meyering@redhat.com>
2780
2781         maint.mk: extract GPG key ID without using a temporary file
2782         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
2783         without using a temporary file.  Based on a suggestion from Werner Koch
2784         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
2785
2786 2011-11-07  Eric Blake  <eblake@redhat.com>
2787
2788         grantpt: fix typo
2789         * lib/stdlib.in.h (grantpt): Check correct function.
2790
2791         maint.mk: silence new syntax check
2792         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
2793
2794 2011-11-06  Bruno Haible  <bruno@clisp.org>
2795
2796         Doc about floating-point and math API.
2797         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
2798         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
2799
2800 2011-11-06  Bruno Haible  <bruno@clisp.org>
2801
2802         stdalign tests: Skip the test when compiled by Sun C.
2803         * tests/test-stdalign.c (main): Skip the test on Sun C.
2804
2805 2011-11-06  Bruno Haible  <bruno@clisp.org>
2806
2807         ansi-c++-opt: Complete the 2011-06-05 change.
2808         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
2809         does not support namespaces, set the variable to "no", not to ":".
2810
2811 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2812
2813         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
2814
2815 2011-11-06  Bruno Haible  <bruno@clisp.org>
2816
2817         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
2818         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
2819         (minus_zerol) [HP-UX]: New macro.
2820         (unary_minus) [HP-UX]: New function.
2821         (copysignl) [HP-UX]: Use unary_minus function.
2822
2823 2011-11-06  Bruno Haible  <bruno@clisp.org>
2824
2825         ldexp, ldexpf, ldexpl: Enhance tests.
2826         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
2827         and tests/test-ldexpl.c.
2828         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
2829         LDEXP, MIN_EXP, MAX_EXP): New macros.
2830         Include test-ldexp.h.
2831         (main): Just call test_function.
2832         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
2833         infinity.h, nan.h.
2834         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2835         MAX_EXP): New macros.
2836         Include test-ldexp.h.
2837         (x, y): Remove variables.
2838         (main): Just call test_function.
2839         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
2840         infinity.h, nan.h.
2841         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2842         MAX_EXP): New macros.
2843         Include test-ldexp.h.
2844         (x, y): Remove variables.
2845         (main): Just call test_function.
2846         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
2847         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
2848         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2849         (Depends-on): Add isnand-nolibm, signbit, float.
2850         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
2851         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2852         (Depends-on): Add isnanf-nolibm, signbit, float.
2853
2854 2011-11-06  Bruno Haible  <bruno@clisp.org>
2855
2856         math tests: Cosmetics.
2857         * tests/test-math-c++.cc: Reorder declarations.
2858
2859 2011-11-05  Bruno Haible  <bruno@clisp.org>
2860
2861         fma*: Simplify test.
2862         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
2863         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
2864
2865         Tests for module 'fmal'.
2866         * modules/fmal-tests: New file.
2867         * tests/test-fmal1.c: New file.
2868         * tests/test-fmal2.c: New file.
2869
2870         New module 'fmal'.
2871         * lib/math.in.h (fmal): New declaration.
2872         * lib/fmal.c: New file.
2873         * m4/fmal.m4: New file.
2874         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
2875         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
2876         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
2877         REPLACE_FMAL.
2878         * modules/fmal: New file.
2879         * doc/posix-functions/fmal.texi: Mention the new module and the various
2880         bugs.
2881
2882         Tests for module 'fmaf'.
2883         * modules/fmaf-tests: New file.
2884         * tests/test-fmaf1.c: New file.
2885         * tests/test-fmaf2.c: New file.
2886
2887         New module 'fmaf'.
2888         * lib/math.in.h (fmaf): New declaration.
2889         * lib/fmaf.c: New file.
2890         * m4/fmaf.m4: New file.
2891         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
2892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
2893         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
2894         REPLACE_FMAF.
2895         * modules/fmaf: New file.
2896         * doc/posix-functions/fmaf.texi: Mention the new module and the various
2897         bugs.
2898
2899         Tests for module 'fma'.
2900         * modules/fma-tests: New file.
2901         * tests/test-fma1.c: New file.
2902         * tests/test-fma1.h: New file.
2903         * tests/test-fma2.c: New file.
2904         * tests/test-fma2.h: New file.
2905
2906         New module 'fma'.
2907         * lib/math.in.h (fma): New declaration.
2908         * lib/fma.c: New file.
2909         * m4/fma.m4: New file.
2910         * m4/fegetround.m4: New file.
2911         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
2912         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
2913         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
2914         REPLACE_FMA.
2915         * modules/fma: New file.
2916         * doc/posix-functions/fma.texi: Mention the new module and the various
2917         bugs.
2918
2919         Extend gl_MATHFUNC.
2920         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
2921         Support 'void' as argument type.
2922         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
2923
2924 2011-11-05  Jim Meyering  <meyering@redhat.com>
2925
2926         maint.mk: also prohibit inclusion of dirent.h without use
2927         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
2928
2929 2011-11-05  Bruno Haible  <bruno@clisp.org>
2930
2931         ldexpl tests: Avoid test failure on MSVC 9.
2932         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
2933         value. Needed in order to enforce the conversion from a value greater
2934         than LDBL_MAX to Infinity.
2935
2936 2011-11-05  Bruno Haible  <bruno@clisp.org>
2937
2938         New modules 'at-internal', 'openat-h', split off from module 'openat'.
2939         * modules/at-internal: New file, extracted from modules/openat.
2940         * modules/openat-h: New file.
2941         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
2942         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
2943         * modules/openat (Description): Add reference to POSIX function.
2944         (Files): Remove lib/openat.h, lib/openat-proc.c.
2945         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
2946         intprops, unistd.
2947         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
2948         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
2949         gl_FCNTL_MODULE_INDICATOR.
2950         (Include): Remove unistd.h, openat.h.
2951         * modules/areadlinkat (Files): Add lib/at-func.c.
2952         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2953         openat-die, openat-h, save-cwd.
2954         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
2955         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2956         openat-die, openat-h, save-cwd, unistd.
2957         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
2958         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2959         openat-h, save-cwd. Remove fcntl-h, openat.
2960         * modules/fchmodat (Files): Remove lib/openat.h.
2961         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2962         openat, stdbool, unistd.
2963         * modules/fchownat (Files): Remove lib/openat.h.
2964         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2965         openat, stdbool, sys_stat.
2966         * modules/fdopendir (Files): Remove lib/openat-priv.h,
2967         lib/openat-proc.c.
2968         (Depends-on): Add at-internal.
2969         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
2970         * modules/fstatat (Files): Remove lib/openat.h.
2971         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2972         stdbool, unistd.
2973         * modules/fts (Depends-on): Add openat-h.
2974         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
2975         openat.
2976         * modules/mkdirat (Files): Remove lib/openat.h.
2977         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2978         openat, stdbool, sys_stat.
2979         * modules/mkfifoat (Files): Add lib/at-func.c.
2980         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2981         openat-h, save-cwd. Remove fcntl-h, openat.
2982         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
2983         * modules/readlinkat (Files): Add lib/at-func.c.
2984         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2985         openat-h, save-cwd. Remove fcntl-h, openat.
2986         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
2987         openat.
2988         * modules/selinux-at (Files): Add lib/at-func.c.
2989         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2990         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
2991         * modules/symlinkat (Files): Add lib/at-func.c.
2992         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2993         openat-h, save-cwd. Remove fcntl-h, openat.
2994         * modules/unlinkat (Files): Remove lib/openat.h.
2995         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2996         stdbool.
2997         * modules/utimensat (Files): Add lib/at-func.c.
2998         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
2999         openat-die, openat-h, save-cwd.
3000         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
3001         * modules/fdutimensat-tests (Depends-on): Add openat.
3002         * modules/fstatat-tests (Depends-on): Add openat-h.
3003         * modules/readlinkat-tests (Depends-on): Add openat.
3004         * modules/symlinkat-tests (Depends-on): Add openat.
3005
3006 2011-11-05  Bruno Haible  <bruno@clisp.org>
3007
3008         openat: Include <stdbool.h>.
3009         * lib/openat.c: Include <stdbool.h>.
3010
3011 2011-11-04  Bruno Haible  <bruno@clisp.org>
3012
3013         fchownat, renameat, unlinkat: Fix dependencies.
3014         * modules/fchownat (Depends-on): Add fstatat.
3015         * modules/renameat (Depends-on): Likewise.
3016         * modules/unlinkat (Depends-on): Likewise.
3017
3018 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
3019
3020         openat: remove direct dependency on dirent
3021         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
3022         and hasn't been needed ever since fdopendir was split into its own
3023         module on 2009-08-31.
3024         * modules/openat (Depends-on): Remove dirent.
3025
3026 2011-11-04  Bruno Haible  <bruno@clisp.org>
3027
3028         renameat: Optimize code size.
3029         * modules/renameat (configure.ac): Don't compile at-func2.c if
3030         REPLACE_RENAMEAT is 1.
3031
3032 2011-11-04  Bruno Haible  <bruno@clisp.org>
3033
3034         openat tests: Fix file list.
3035         * modules/openat-tests (Files): Add tests/test-open.h.
3036
3037 2011-11-04  Bruno Haible  <bruno@clisp.org>
3038
3039         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
3040         * modules/fchmodat (Depends-on): Add openat-die.
3041         * modules/fchownat (Depends-on): Likewise.
3042         * modules/linkat (Depends-on): Likewise.
3043         * modules/renameat (Depends-on): Likewise.
3044         * modules/openat (Depends-on): Add dirent.
3045
3046 2011-11-04  Jim Meyering  <meyering@redhat.com>
3047
3048         at-func*.c: fix comments
3049         * lib/at-func2.c: Correct/improve first-line comment.
3050         * lib/at-func.c: Correct grammar in first-line comment.
3051
3052 2011-11-04  Bruno Haible  <bruno@clisp.org>
3053
3054         New module 'mkdirat', split off from module 'openat'.
3055         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
3056         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
3057         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
3058         * modules/mkdirat: New file, extracted from modules/openat.
3059         * modules/openat (Files): Remove lib/mkdirat.c.
3060         (Depends-on): Remove mkdir.
3061         (configure.ac): Remove AC_LIBOBJ of mkdirat.
3062         (Include): Remove <sys/stat.h>.
3063         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
3064         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
3065         tests/test-mkdir.h.
3066         (Depends-on): Remove ignore-value.
3067         (Makefile.am): Remove rules for test-mkdirat.
3068         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
3069         of module 'openat'.
3070         * NEWS: Mention the change.
3071
3072 2011-11-04  Bruno Haible  <bruno@clisp.org>
3073
3074         closedir: Avoid warning on mingw.
3075         * lib/closedir.c: Include <unistd.h>.
3076
3077 2011-11-04  Bruno Haible  <bruno@clisp.org>
3078
3079         New module 'fstatat', split off from module 'openat'.
3080         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
3081         defined.
3082         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
3083         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
3084         gl_FUNC_FSTATAT.
3085         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
3086         * modules/fstatat: New file, extracted from modules/openat.
3087         * modules/openat (Files): Remove lib/fstatat.c.
3088         (Depends-on): Remove lstat.
3089         (configure.ac): Remove AC_LIBOBJ of fstatat.
3090         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
3091         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
3092         tests/test-lstat.h, tests/test-stat.h.
3093         (Depends-on): Remove getcwd-lgpl.
3094         (Makefile.am): Remove rules for test-fstatat.
3095         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
3096         of module 'openat'.
3097         * NEWS: Mention the change.
3098         * modules/getcwd (Depends-on): Add fstatat.
3099         * modules/linkat (Depends-on): Likewise.
3100         * modules/mkfifoat-tests (Depends-on): Likewise.
3101         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
3102
3103 2011-11-03  Bruno Haible  <bruno@clisp.org>
3104
3105         New module 'unlinkat', split off from module 'openat'.
3106         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
3107         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
3108         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
3109         * modules/unlinkat: New file, extracted from modules/openat. Correct
3110         the dependency conditions.
3111         * modules/openat (Files): Remove lib/unlinkat.c.
3112         (Depends-on): Remove rmdir, unlink.
3113         (configure.ac): Remove AC_LIBOBJ of unlinkat.
3114         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
3115         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
3116         tests/test-rmdir.h, tests/test-unlink.h.
3117         (Depends-on): Remove unlinkdir.
3118         (Makefile.am): Remove rules for test-unlinkat.
3119         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
3120         of module 'openat'.
3121         * NEWS: Mention the change.
3122         * modules/linkat-tests (Depends-on): Add unlinkat.
3123         * modules/mkfifoat-tests (Depends-on): Likewise.
3124         * modules/readlinkat-tests (Depends-on): Likewise.
3125
3126 2011-11-02  Bruno Haible  <bruno@clisp.org>
3127
3128         New module 'fchmodat', split off from module 'openat'.
3129         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
3130         defined.
3131         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
3132         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
3133         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
3134         * modules/fchmodat: New file, extracted from modules/openat.
3135         * modules/openat (Files): Remove lib/fchmodat.c.
3136         (configure.ac): Remove AC_LIBOBJ of fchmodat.
3137         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
3138         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
3139         (Makefile.am): Remove rules for test-fchmodat.
3140         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
3141         of module 'openat'.
3142         * NEWS: Mention the change.
3143
3144 2011-11-02  Jim Meyering  <meyering@redhat.com>
3145
3146         putenv: indent #definition of "environ" to placate cppi
3147         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
3148
3149         gitlog-to-changelog: provide a ChangeLog-repair mechanism
3150         Git logs are often treated as immutable, because editing them
3151         changes the SHA1 checksums of all descendants.  Thus, errors in
3152         git logs tend to stay there forever.  However, when we generate
3153         a ChangeLog file -- typically for distribution -- from that git log,
3154         we can actually make corrections in the generated file.  The key
3155         lies in recording in machine-readable/applicable form the desired
3156         corrections.  See --help for description and an example.
3157         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
3158         (usage): Describe it; alphabetize option descriptions.
3159         (main): Honor the new option, carefully.
3160
3161 2011-11-01  Jim Meyering  <meyering@redhat.com>
3162
3163         gitlog-to-changelog: avoid an infloop
3164         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
3165         that ends up being empty.
3166
3167 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3168
3169         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
3170         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
3171         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
3172         contains (possibly-quoted) backslashes.  This should avoid
3173         all-too-common shell bugs if COMPLICATED contains backslashes in
3174         the "wrong" places.  Reported by David Evans in
3175         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
3176         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
3177         because we want ASCII ranges.  Is there some reason we don't use
3178         the C locale everywhere in this script?
3179         (func_module, top level): Avoid unwanted pathname expansion when
3180         $repo_url_prefix or $repo_url_suffix_repl contain shell
3181         metacharacters like '?' and '*'.
3182
3183 2011-11-01  Bruno Haible  <bruno@clisp.org>
3184
3185         fchownat: Improve description.
3186         * modules/fchownat (Description): Add link to function.
3187
3188 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3189
3190         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
3191         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
3192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
3193         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
3194
3195 2011-11-01  Bruno Haible  <bruno@clisp.org>
3196
3197         alignof: Avoid collision with stdalign module.
3198         * lib/alignof.h (alignof): Remove macro.
3199         * NEWS: Mention the change.
3200         Reported by Paul Eggert.
3201
3202 2011-11-01  Bruno Haible  <bruno@clisp.org>
3203
3204         New module 'fchownat', split off from module 'openat'.
3205         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
3206         defined.
3207         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
3208         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
3209         invoke gl_FUNC_FCHOWNAT.
3210         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
3211         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
3212         * modules/fchownat: New file, extracted from modules/openat.
3213         * modules/openat (Files): Remove lib/fchownat.c.
3214         (Depends-on): Remove lchown.
3215         (configure.ac): Remove AC_LIBOBJ of fchownat.
3216         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
3217         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
3218         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
3219         (Depends-on): Remove mgetgroups, usleep, stat-time.
3220         (configure.ac): Remove test for getegid.
3221         (Makefile.am): Remove rules for test-fchownat.
3222         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
3223         of module 'openat'.
3224         * NEWS: Mention the change.
3225
3226 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
3227
3228         stdalign: port better to MSVC and to Sun C 5.11
3229         This fixes some of the problems reported by Bruno Haible in
3230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
3231         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
3232         shortcomings of MSVC and of Sun C 5.11.
3233         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
3234         around __declspec arg.
3235         * modules/stdalign-tests (Files): Add tests/macros.h.
3236         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
3237         Include macros.h, for ASSERT.
3238         (DECLARE_ALIGNED): Remove.
3239         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
3240         to catch bug), and to 1 if not (simplifies the rest of the code).
3241         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
3242         (CHECK_AUTO): Remove.
3243         (CHECK_ALIGNED): Check only the alignment of the static vars,
3244         since auto var alignment isn't supported by Sun C 5.11.
3245         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
3246         ASSERT failures are easier to diagnose.
3247
3248 2011-10-31  Bruno Haible  <bruno@clisp.org>
3249
3250         doc about some IRIX 5.3 problems.
3251         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
3252         on IRIX 5.3.
3253         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
3254         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
3255         5.3.
3256         * doc/posix-functions/grantpt.texi: Likewise.
3257         * doc/posix-functions/unlockpt.texi: Likewise.
3258         * doc/posix-functions/lgamma.texi: Likewise.
3259         * doc/posix-functions/nextafter.texi: Likewise.
3260         * doc/posix-functions/remainder.texi: Likewise.
3261         * doc/posix-functions/select.texi: Mention misplaced declaration on
3262         IRIX 5.3.
3263         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3264
3265 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
3266
3267         gitlog-to-changelog: fix git-log invocation.
3268         git-log mishandles date strings before 1970-01-01 UTC, and there is
3269         no use to specify --since=1970-01-01 by default anyway.
3270         * build-aux/gitlog-to-changelog: By default, when no --since option
3271         was given, do not specify explicit --since option to git-log.
3272
3273 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
3274
3275         gitlog-to-changelog: new option --append-dot.
3276         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
3277         first non-blank line of each commit message terminated with a dot.
3278
3279 2011-10-30  Bruno Haible  <bruno@clisp.org>
3280
3281         ffsl, ffsll: Avoid compilation error due to 'restrict'.
3282         * lib/ffsl.h: Include <config.h>.
3283         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
3284
3285 2011-10-30  Jim Meyering  <meyering@redhat.com>
3286
3287         GNUmakefile: reenable "make syntax-check" for most projects
3288         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
3289         build-aux variable", "syntax-check" would do nothing but succeed with
3290         the "No version control files detected..." diagnostic (unless you
3291         happened to override _build-aux via cfg.mk).
3292         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
3293         to precede inclusion of maint.mk.  Otherwise, these variables would
3294         be used undefined in any project that does not override the default.
3295
3296 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
3297
3298         gitlog-to-changelog: treat a message with only blank lines as empty.
3299         * build-aux/gitlog-to-changelog: Move the code that removes leading and
3300         trailing blank lines before the code that issues a warning about an
3301         empty commit message.
3302
3303 2011-10-30  Jim Meyering  <meyering@redhat.com>
3304
3305         test-parse-datetime.c: avoid new DST-related false positive test failure
3306         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
3307         based on the time/date we'll convert, not the current time.
3308         Otherwise, the moment we cross a DST boundary like today's in
3309         Europe, (CEST to CET), that offset ends up being one hour off.
3310
3311 2011-10-27  Bruno Haible  <bruno@clisp.org>
3312
3313         fstat: Tweak documentation.
3314         * modules/fstat (Description): More precise description.
3315
3316 2011-10-27  Bruno Haible  <bruno@clisp.org>
3317
3318         Update documentation regarding 'largefile' module.
3319         * doc/posix-functions/fstat.texi: Tweak wording.
3320         * doc/posix-functions/opendir.texi: Mention that the module fixes the
3321         problems with huge directories and/or small ino_t types.
3322         * doc/posix-functions/readdir.texi: Likewise.
3323         * doc/posix-functions/rewinddir.texi: Likewise.
3324
3325 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
3326
3327         maint.mk: don't maintain a second build-aux variable.
3328         * maint.mk (build_aux): Removed.  The maintainer-makefile module
3329         depends on GNUmakefile, which already maintains a cfg.mk
3330         overridable $(_build-aux) for projects with a non-standard
3331         build-aux directory location, although without the $(srcdir)
3332         prefix.  Use that variable consistently instead of introducing a
3333         second one.  Adjust all call sites.
3334
3335 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
3336
3337         Add stdalign module and use it in other modules.
3338         This is based on a previous proposal by Bruno Haible
3339         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
3340
3341         stdalign: new module
3342         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
3343         * modules/stdalign: New files.
3344         * MODULES.html.sh (c1x_core_properties): Add stdalign.
3345         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
3346
3347         stdalign-tests: new module
3348         * modules/stdalign-tests, tests/test-stdalign.c: New files.
3349
3350         argp: use stdalign
3351         * lib/argp-parse.c: Include <stdalign.h>.
3352         (alignof): Remove.
3353         * modules/argp (Depends-on): Add stdalign.
3354
3355         crypto libraries: use stdalign
3356         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3357         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
3358         Do not include <stdlib.h> twice, in md4.c.
3359         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
3360         because we are accessing a pointer's bit-pattern, not a size.
3361         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
3362         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
3363         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3364         * modules/crypto/sha512: Likewise.
3365
3366         sys_socket: use stdalign, not alignof
3367         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
3368         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
3369
3370 2011-10-27  Bruno Haible  <bruno@clisp.org>
3371
3372         raise test: Avoid a test failure on Linux/MIPS.
3373         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
3374         because 99 is a valid signal on Linux/MIPS.
3375
3376 2011-10-27  Bruno Haible  <bruno@clisp.org>
3377
3378         nonblocking tests: Fix test failure on Linux/MIPS.
3379         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
3380         Set to 270000.
3381
3382 2011-10-27  Bruno Haible  <bruno@clisp.org>
3383
3384         utimensat: Work around problem on Linux/hppa.
3385         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
3386         values.
3387         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
3388
3389 2011-10-25  Jim Meyering  <meyering@redhat.com>
3390
3391         maint.mk: fix a bug in sc_prohibit_stddef_without_use
3392         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
3393         after symbols like NULL, size_t, etc.
3394         Reported by Alfred M. Szmidt.
3395
3396         maint.mk: exempt ENODATA from a syntax-check rule
3397         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
3398         from the sc_prohibit_always-defined_macros syntax-check rule.
3399         Add a comment.  See this for more details:
3400         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
3401
3402 2011-10-23  Jim Meyering  <meyering@redhat.com>
3403
3404         fts: close parent dir FD before returning from post-traversal fts_read
3405         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
3406         unlink A, even though an FD open on A remained.  This is suboptimal
3407         (holding a file descriptor open longer than needed), but otherwise not
3408         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
3409         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
3410         that represents a real problem: it causes the removal of A to fail
3411         with e.g., "rm: cannot remove `A': Device or resource busy"
3412
3413         fts visits each directory twice and keeps a cache (fts_fd_ring) of
3414         directory file descriptors.  After completing the final, FTS_DP,
3415         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
3416         cache, but then proceeded to add a new FD to it via the subsequent
3417         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
3418         final file descriptor would be closed only via fts_close's call to
3419         fd_ring_clear.  Now, it is usually closed earlier, via the final
3420         FTS_DP-returning fts_read call.
3421         * lib/fts.c (restore_initial_cwd): New function, converted from
3422         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
3423         Update callers.
3424         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
3425         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
3426
3427 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
3428             Bruno Haible  <bruno@clisp.org>
3429             Jim Meyering  <jim@meyering.net>
3430
3431         readme-release: improve safety of release prep instructions.
3432         * README-release: Don't git pull all branches when only master
3433         is needed for the release process.
3434         Run make maintainer-clean before changing trees and merging.
3435         Don't try to run ./configure right after git pull in case files
3436         that influence the bootstrap process have changed, move the
3437         ./configure step to after running ./bootstrap.
3438         Don't bootstrap "one last time"... it's the first time!
3439
3440 2011-10-22  Bruno Haible  <bruno@clisp.org>
3441
3442         errno, strerror-override: Support for MSVC 10.
3443         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
3444         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
3445         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
3446         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
3447         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
3448         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
3449         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
3450         Assign values compatible with MSVC 10.
3451         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
3452         New macros.
3453         (GNULIB_defined_EWINSOCK): New macro.
3454         * lib/strerror-override.c (strerror_override): Update accordingly.
3455         * lib/strerror-override.h: Likewise.
3456         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
3457         longer equal to the corresponding errno value.
3458         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3459
3460 2011-10-22  Bruno Haible  <bruno@clisp.org>
3461
3462         perror: Recognize when test program crashes.
3463         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
3464         strerror, set gl_cv_func_perror_works to no.
3465         Reported by Daniel Richard G. <skunk@iskunk.org>.
3466
3467         perror: Fix indentation.
3468         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
3469
3470 2011-10-22  Bruno Haible  <bruno@clisp.org>
3471
3472         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
3473         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
3474         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
3475         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
3476         functions, not as a macro.
3477         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
3478         macros.
3479         (isfinite, isinf, isnan, signbit): Check overloaded functions and
3480         absence of macro.
3481         Suggested by Eric Blake.
3482         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3483
3484 2011-10-21  Bruno Haible  <bruno@clisp.org>
3485
3486         relocatable-prog-wrapper: Don't leave object files behind.
3487         * build-aux/install-reloc: Re-synchronize list of .o files to be
3488         removed with list of compilation units.
3489
3490 2011-10-20  Bruno Haible  <bruno@clisp.org>
3491
3492         openpty, posix_openpt: Remove code duplication.
3493         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
3494         * lib/openpty.c: Include <stdlib.h>.
3495         (openpty): Use posix_openpt on all platforms except IRIX.
3496         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
3497
3498 2011-10-20  Bruno Haible  <bruno@clisp.org>
3499
3500         unlockpt: Detect invalid argument.
3501         * lib/unlockpt.c: Include <fcntl.h>.
3502         (unlockpt): Check whether fd is valid, using fcntl().
3503         * modules/unlockpt (Depends-on): Add fcntl-h.
3504
3505 2011-10-20  Bruno Haible  <bruno@clisp.org>
3506
3507         openpty: Avoid compilation error on AIX 6.1.
3508         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
3509
3510 2011-10-20  Bruno Haible  <bruno@clisp.org>
3511
3512         posix_openpt: Support for OpenBSD.
3513         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
3514         (posix_openpt) [OpenBSD]: New code.
3515         * lib/grantpt.c: Include <fcntl.h>.
3516         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
3517         * modules/grantpt (Depends-on): Add fcntl-h.
3518
3519 2011-10-20  Bruno Haible  <bruno@clisp.org>
3520
3521         posix_openpt test: Coding style.
3522         * tests/test-posix_openpt.c: Use GNU coding style.
3523
3524 2011-10-20  Bruno Haible  <bruno@clisp.org>
3525
3526         grantpt: Support --avoid=pt_chown.
3527         * modules/grantpt (Files): Add lib/pty-private.h.
3528
3529 2011-10-20  Bruno Haible  <bruno@clisp.org>
3530
3531         posix_openpt: Fix autoconf macro.
3532         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
3533         unneeded check for _getpty.
3534
3535 2011-10-20  Bruno Haible  <bruno@clisp.org>
3536
3537         openpty: Update comments.
3538         * lib/openpty.c: Add comments about Minix.
3539
3540 2011-10-19  Eric Blake  <eblake@redhat.com>
3541
3542         openpty: relax license
3543         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
3544
3545         pt_chown: use configmake to simplify build
3546         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
3547
3548         ptsname and others: relax license
3549         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
3550         * modules/unlockpt (License): Likewise.
3551         * modules/pt_chown (License): Likewise.
3552         * modules/ptsname (License): Likewise.
3553         * modules/ttyname_r (License): Likewise.
3554
3555 2011-10-19  Jim Meyering  <meyering@redhat.com>
3556
3557         posix_openpt: remove spurious #endif
3558         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
3559
3560 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
3561
3562         maint.mk: Respect $(build_aux) in web-manual rule.
3563         * top/maint.mk (web-manual): Find gen-announce script in user's
3564         $(build_aux) directory instead of hard-coding 'build-aux'.
3565
3566 2011-10-19  Bruno Haible  <bruno@clisp.org>
3567
3568         posix_openpt: Fix compilation error.
3569         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
3570         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
3571         Mention the openpty module as an alternative.
3572
3573 2011-10-19  Bruno Haible  <bruno@clisp.org>
3574
3575         Support for old NeXTstep 3.3 frexp().
3576         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
3577         execution time of the test to 5 seconds.
3578         Reported by Daniel Richard G. <skunk@iskunk.org>.
3579
3580 2011-10-19  Bruno Haible  <bruno@clisp.org>
3581
3582         Support for old NeXTstep 3.3 sed.
3583         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
3584         part, use /.../, not \|...|. Escape periods in the header file name.
3585         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3586         Reported by Daniel Richard G. <skunk@iskunk.org>.
3587
3588 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3589
3590         Support for old NeXTstep 3.3 gcc.
3591         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
3592         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
3593         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
3594         * lib/spawn.in.h (_Restrict_arr_): Likewise.
3595         * lib/regex.h (_Restrict_arr_): Likewise.
3596         * lib/regex_internal.h (re_token_t): Likewise.
3597         * lib/regexec.c (check_node_accept_bytes): Likewise.
3598         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
3599
3600 2011-10-18  Eric Blake  <eblake@redhat.com>
3601
3602         posix_openpt: new module
3603         * modules/posix_openpt: New module.
3604         * m4/posix_openpt.m4: New file.
3605         * lib/posix_openpt.c: Likewise.
3606         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3607         (gl_STDLIB_H_DEFAULTS): Set defaults.
3608         * modules/stdlib (Makefile.am): Substitute macros.
3609         * lib/stdlib.in.h (posix_openpt): Declare.
3610         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
3611         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
3612         * modules/posix_openpt-tests: New test module.
3613         * tests/test-posix_openpt.c: New test.
3614
3615 2011-10-15  Bruno Haible  <bruno@clisp.org>
3616
3617         xstrtoll: Fix compilation failure.
3618         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
3619         from lib/strtol.c.
3620         * doc/posix-headers/limits.texi: Mention missing numerical limits on
3621         some platforms.
3622         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3623
3624 2011-10-15  Bruno Haible  <bruno@clisp.org>
3625
3626         vasnprintf: Optimize bit search operation.
3627         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
3628         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
3629         gl_DOUBLE_EXPONENT_LOCATION.
3630         * modules/vasnprintf (Files): Add m4/exponentd.m4.
3631         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3632         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3633         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3634         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3635         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3636         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3637         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3638         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
3639
3640 2011-10-15  Bruno Haible  <bruno@clisp.org>
3641
3642         vasnprintf: Fix comments.
3643         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
3644
3645 2011-10-14  Bruno Haible  <bruno@clisp.org>
3646
3647         Tests for module 'integer_length_ll'.
3648         * modules/integer_length_ll-tests: New file.
3649         * tests/test-integer_length_ll.c: New file.
3650
3651         New module 'integer_length_ll'.
3652         * lib/integer_length_ll.c: New file.
3653         * modules/integer_length_ll: New file.
3654
3655 2011-10-14  Bruno Haible  <bruno@clisp.org>
3656
3657         Tests for module 'integer_length_l'.
3658         * modules/integer_length_l-tests: New file.
3659         * tests/test-integer_length_l.c: New file.
3660
3661         New module 'integer_length_l'.
3662         * lib/integer_length_l.c: New file.
3663         * modules/integer_length_l: New file.
3664
3665 2011-10-14  Bruno Haible  <bruno@clisp.org>
3666
3667         Tests for module 'integer_length'.
3668         * modules/integer_length-tests: New file.
3669         * tests/test-integer_length.c: New file.
3670
3671         New module 'integer_length'.
3672         * lib/integer_length.h: New file.
3673         * lib/integer_length.c: New file.
3674         * modules/integer_length: New file.
3675
3676 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3677
3678         popen: Fix dependency conditions.
3679         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
3680
3681 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3682
3683         perror: Fix autoconf test.
3684         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
3685         <stdlib.h> and <string.h>.
3686
3687 2011-10-14  Bruno Haible  <bruno@clisp.org>
3688
3689         ffsl: Optimize on 64-bit platforms.
3690         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
3691         unrolling.
3692
3693 2011-10-13  Bruno Haible  <bruno@clisp.org>
3694
3695         ffsl: Optimize on 32-bit platforms.
3696         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
3697         use ffs() without a loop.
3698
3699         ffsl, ffsll: Optimize for GCC.
3700         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
3701         * lib/ffsl.c (GCC_BUILTIN): New macro.
3702         * lib/ffsll.c (GCC_BUILTIN): Likewise.
3703
3704 2011-10-13  Bruno Haible  <bruno@clisp.org>
3705
3706         ffs, bcopy, memset: Support symbol renaming via config.h.
3707         * lib/ffs.c: Include <config.h>.
3708         * lib/bcopy.c: Likewise.
3709         * lib/memset.c: Likewise.
3710
3711 2011-10-10  Bruno Haible  <bruno@clisp.org>
3712
3713         atanl: Simplify for platforms where 'long double' == 'double'.
3714         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3715         alternative implementation.
3716         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3717         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3718         * modules/atanl (Depends-on): Add atan. Update conditions.
3719
3720 2011-10-10  Bruno Haible  <bruno@clisp.org>
3721
3722         acosl: Simplify for platforms where 'long double' == 'double'.
3723         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3724         alternative implementation.
3725         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3726         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3727         * modules/acosl (Depends-on): Add acos. Update conditions.
3728
3729 2011-10-10  Bruno Haible  <bruno@clisp.org>
3730
3731         asinl: Simplify for platforms where 'long double' == 'double'.
3732         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3733         alternative implementation.
3734         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3735         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3736         * modules/asinl (Depends-on): Add asin. Update conditions.
3737
3738 2011-10-10  Bruno Haible  <bruno@clisp.org>
3739
3740         tanl: Simplify for platforms where 'long double' == 'double'.
3741         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3742         implementation.
3743         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3744         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3745         * modules/tanl (Depends-on): Add tan. Update conditions.
3746         (configure.ac): Don't compile trigl.c if
3747         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3748
3749 2011-10-10  Bruno Haible  <bruno@clisp.org>
3750
3751         cosl: Simplify for platforms where 'long double' == 'double'.
3752         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3753         implementation.
3754         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3755         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3756         * modules/cosl (Depends-on): Add cos. Update conditions.
3757         (configure.ac): Don't compile sincosl.c and trigl.c if
3758         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3759
3760 2011-10-10  Bruno Haible  <bruno@clisp.org>
3761
3762         sinl: Simplify for platforms where 'long double' == 'double'.
3763         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3764         implementation.
3765         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3766         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3767         * modules/sinl (Depends-on): Add sin. Update conditions.
3768         (configure.ac): Don't compile sincosl.c and trigl.c if
3769         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3770
3771 2011-10-10  Bruno Haible  <bruno@clisp.org>
3772
3773         logl: Simplify for platforms where 'long double' == 'double'.
3774         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3775         implementation.
3776         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3777         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3778         * modules/logl (Depends-on): Add log. Update conditions.
3779
3780 2011-10-10  Bruno Haible  <bruno@clisp.org>
3781
3782         expl: Simplify for platforms where 'long double' == 'double'.
3783         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3784         implementation.
3785         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3786         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3787         * modules/expl (Depends-on): Add exp. Update conditions.
3788
3789 2011-10-10  Bruno Haible  <bruno@clisp.org>
3790
3791         sqrtl: Simplify for platforms where 'long double' == 'double'.
3792         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3793         alternative implementation.
3794         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3795         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3796         * modules/sqrtl (Depends-on): Update conditions.
3797
3798 2011-10-10  Bruno Haible  <bruno@clisp.org>
3799
3800         ldexpl: Simplify for platforms where 'long double' == 'double'.
3801         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3802         alternative implementation.
3803         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3804         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3805         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
3806
3807 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
3808
3809         ffsll: set correct witness
3810         * modules/ffsll (configure.ac): Fix typo.
3811
3812 2011-10-10  Bruno Haible  <bruno@clisp.org>
3813
3814         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
3815         * lib/printf-frexpl.c: Include <config.h>.
3816         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3817         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
3818         second time.
3819         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
3820         gl_LONG_DOUBLE_VS_DOUBLE.
3821         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
3822         conditions.
3823
3824 2011-10-10  Bruno Haible  <bruno@clisp.org>
3825
3826         frexpl: Simplify for platforms where 'long double' == 'double'.
3827         * lib/frexpl.c: Include <config.h>.
3828         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3829         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3830         time.
3831         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3832         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3833         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
3834         * modules/frexpl (Depends-on): Add frexp. Update conditions.
3835         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
3836         conditions.
3837
3838 2011-10-10  Jim Meyering  <meyering@redhat.com>
3839
3840         test-renameat: don't leave behind a temporary file
3841         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
3842           ERROR: files left in build directory after distclean:
3843           ./gltests/test-renameat.too
3844           make[1]: *** [distcleancheck] Error 1
3845         Reported by Tom G. Christensen.
3846
3847 2011-10-09  Bruno Haible  <bruno@clisp.org>
3848
3849         rint: Determine RINT_LIBM correctly on AIX 7.
3850         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
3851         directly, not only through a function pointer. Also accept an optional
3852         4th argument with extra code.
3853         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
3854         rintf() call by gcc when optimizing.
3855
3856         mathfunc.m4: Refactor.
3857         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
3858         m4 variable.
3859
3860 2011-10-09  Bruno Haible  <bruno@clisp.org>
3861
3862         rintl: Simplify for platforms where 'long double' == 'double'.
3863         * lib/rintl.c: Include <config.h>.
3864         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3865         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3866         time.
3867         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3868         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3869         * modules/rintl (Depends-on): Add rint. Update conditions.
3870
3871 2011-10-09  Bruno Haible  <bruno@clisp.org>
3872
3873         roundl: Simplify for platforms where 'long double' == 'double'.
3874         * lib/roundl.c: Include <config.h>.
3875         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3876         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3877         time.
3878         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3879         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3880         * modules/roundl (Depends-on): Add round. Update conditions.
3881
3882 2011-10-09  Bruno Haible  <bruno@clisp.org>
3883
3884         truncl: Simplify for platforms where 'long double' == 'double'.
3885         * lib/truncl.c: Include <config.h>.
3886         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3887         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3888         time.
3889         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3890         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3891         * modules/truncl (Depends-on): Add trunc. Update conditions.
3892
3893 2011-10-09  Bruno Haible  <bruno@clisp.org>
3894
3895         ceill: Simplify for platforms where 'long double' == 'double'.
3896         * lib/ceill.c: Include <config.h>.
3897         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3898         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3899         time.
3900         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3901         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3902         * modules/ceill (Depends-on): Add ceil. Update conditions.
3903
3904 2011-10-09  Bruno Haible  <bruno@clisp.org>
3905
3906         floorl: Simplify for platforms where 'long double' == 'double'.
3907         * lib/floorl.c: Include <config.h>.
3908         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3909         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3910         time.
3911         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3912         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3913         * modules/floorl (Depends-on): Add floor. Update conditions.
3914
3915 2011-10-09  Bruno Haible  <bruno@clisp.org>
3916
3917         rint: Fix ordering constraints.
3918         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
3919         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3920         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3921
3922 2011-10-09  Bruno Haible  <bruno@clisp.org>
3923
3924         copysignl: Simplify for platforms where 'long double' == 'double'.
3925         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3926         alternative.
3927         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3928         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3929         * modules/copysignl (Depends-on): Add copysign. Update conditions.
3930
3931 2011-10-09  Bruno Haible  <bruno@clisp.org>
3932
3933         Tests for module 'rintl'.
3934         * modules/rintl-tests: New file.
3935         * tests/test-rintl.c: New file.
3936
3937         New module 'rintl'.
3938         * lib/math.in.h (rintl): New declaration.
3939         * lib/rintl.c: New file.
3940         * m4/rintl.m4: New file.
3941         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
3942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
3943         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
3944         * modules/rintl: New file.
3945         * tests/test-math-c++.cc: Check the declaration of rintl.
3946         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3947         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
3948         * doc/posix-functions/rintl.texi: Mention the new module.
3949
3950 2011-10-09  Bruno Haible  <bruno@clisp.org>
3951
3952         Tests for module 'rintf'.
3953         * modules/rintf-tests: New file.
3954         * tests/test-rintf.c: New file.
3955
3956         New module 'rintf'.
3957         * lib/math.in.h (rintf): New declaration.
3958         * lib/rintf.c: New file.
3959         * m4/rintf.m4: New file.
3960         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
3961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
3962         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
3963         * modules/rintf: New file.
3964         * tests/test-math-c++.cc: Check the declaration of rintf.
3965         * doc/posix-functions/rintf.texi: Mention the new module.
3966
3967 2011-10-09  Bruno Haible  <bruno@clisp.org>
3968
3969         rint: Support for MSVC.
3970         * lib/math.in.h (rint): New declaration.
3971         * lib/rint.c: New file.
3972         * m4/rint.m4: New file.
3973         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
3974         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
3975         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
3976         * modules/rint (Description): Fix.
3977         (Files): Add lib/rint.c, m4/rint.m4.
3978         (Depends-on): Add math.
3979         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
3980         gl_MATH_MODULE_INDICATOR.
3981         * tests/test-math-c++.cc: Check the declaration of rint.
3982         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3983         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
3984         * doc/posix-functions/rint.texi: Mention the replacement provided by
3985         the module.
3986
3987         rint tests: More tests.
3988         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
3989         minus-zero.h, infinity.h, nan.h.
3990         (main): Skip the test if the current rounding mode is not standard. Add
3991         tests for negative numbers, minus zero, infinity, NaN.
3992         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
3993         tests/nan.h.
3994         (Depends-on): Add isnand-nolibm.
3995
3996 2011-10-09  Bruno Haible  <bruno@clisp.org>
3997
3998         Tests for module 'copysignl'.
3999         * modules/copysignl-tests: New file.
4000         * tests/test-copysignl.c: New file.
4001
4002         New module 'copysignl'.
4003         * lib/math.in.h (copysignl): New declaration.
4004         * lib/copysignl.c: New file.
4005         * m4/copysignl.m4: New file.
4006         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
4007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
4008         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
4009         HAVE_COPYSIGNL.
4010         * modules/copysignl: New file.
4011         * tests/test-math-c++.cc: Check the declaration of copysignl.
4012         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4013         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
4014         * doc/posix-functions/copysignl.texi: Mention the new module.
4015
4016 2011-10-09  Bruno Haible  <bruno@clisp.org>
4017
4018         Tests for module 'copysignf'.
4019         * modules/copysignf-tests: New file.
4020         * tests/test-copysignf.c: New file.
4021
4022         New module 'copysignf'.
4023         * lib/math.in.h (copysignf): New declaration.
4024         * lib/copysignf.c: New file.
4025         * m4/copysignf.m4: New file.
4026         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
4027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
4028         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
4029         HAVE_COPYSIGNF.
4030         * modules/copysignf: New file.
4031         * tests/test-math-c++.cc: Check the declaration of copysignf.
4032         * doc/posix-functions/copysignf.texi: Mention the new module.
4033
4034 2011-10-09  Bruno Haible  <bruno@clisp.org>
4035
4036         Ensure that HAVE_* variables are set to 1 before they are set to 0.
4037         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
4038         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
4039         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4040         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
4041         gl_SIGNAL_H_DEFAULTS.
4042
4043 2011-10-09  Bruno Haible  <bruno@clisp.org>
4044
4045         poll: Make macro safer.
4046         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
4047         ac_cv_header_poll_h is not set.
4048
4049 2011-10-09  Bruno Haible  <bruno@clisp.org>
4050
4051         copysign: Provide replacement.
4052         * lib/math.in.h (copysign): New declaration.
4053         * lib/copysign.c: New file.
4054         * m4/copysign.m4: New file.
4055         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
4056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
4057         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
4058         HAVE_COPYSIGN.
4059         * modules/copysign (Description): Clarify.
4060         (Files): Add lib/copysign.c, m4/copysign.m4.
4061         (Depends-on): Add math, signbit.
4062         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
4063         gl_MATH_MODULE_INDICATOR.
4064         * tests/test-math-c++.cc: Check the declaration of copysign.
4065         * doc/posix-functions/copysign.texi: Mention the effects of the module
4066         on Minix and MSVC.
4067
4068 2011-10-09  Bruno Haible  <bruno@clisp.org>
4069
4070         isinf: Ensure macro on AIX 5.1.
4071         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
4072         macro.
4073         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
4074
4075 2011-10-09  Bruno Haible  <bruno@clisp.org>
4076
4077         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
4078         * modules/snprintf-posix-tests (configure.ac): Require
4079         gl_LONG_DOUBLE_VS_DOUBLE.
4080         * modules/sprintf-posix-tests (configure.ac): Likewise.
4081         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
4082         * modules/vasprintf-posix-tests (configure.ac): Likewise.
4083         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
4084         * modules/vsprintf-posix-tests (configure.ac): Likewise.
4085         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
4086         tests on platforms where 'long double' is the same as 'double'.
4087         * tests/test-sprintf-posix.h (test_function): Likewise.
4088         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4089         * tests/test-vasprintf-posix.c (test_function): Likewise.
4090
4091         *printf: Fix for platforms where 'long double' == 'double'.
4092         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
4093         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
4094         * modules/dprintf-posix (Files): Add m4/math_h.m4.
4095         * modules/fprintf-posix (Files): Likewise.
4096         * modules/obstack-printf-posix (Files): Likewise.
4097         * modules/snprintf-posix (Files): Likewise.
4098         * modules/sprintf-posix (Files): Likewise.
4099         * modules/vasnprintf (Files): Likewise.
4100         * modules/vasnprintf-posix (Files): Likewise.
4101         * modules/vasprintf-posix (Files): Likewise.
4102         * modules/vdprintf-posix (Files): Likewise.
4103         * modules/vfprintf-posix (Files): Likewise.
4104         * modules/vsnprintf-posix (Files): Likewise.
4105         * modules/vsprintf-posix (Files): Likewise.
4106         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4107         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4108         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4109         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4110         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4111         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4112         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4113
4114         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
4115         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
4116         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4117         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
4118         'long double'.
4119         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
4120
4121         isinf: Fix for platforms where 'long double' == 'double'.
4122         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4123         Don't blindly assume 80-bit 'long double'.
4124
4125         isfinite: Fix for platforms where 'long double' == 'double'.
4126         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4127         Don't blindly assume 80-bit 'long double'.
4128
4129         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
4130         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
4131         * modules/isfinite-tests (configure.ac): Require
4132         gl_LONG_DOUBLE_VS_DOUBLE.
4133         * modules/isinf-tests (configure.ac): Likewise.
4134         * modules/isnan-tests (configure.ac): Likewise.
4135         * modules/isnanl-tests (configure.ac): Likewise.
4136         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
4137         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
4138         tests on platforms where 'long double' is the same as 'double'.
4139         * tests/test-isinf.c (test_isinfl): Likewise.
4140         * tests/test-isnan.c (test_long_double): Likewise.
4141         * tests/test-isnanl.h (main): Likewise.
4142
4143 2011-10-08  Bruno Haible  <bruno@clisp.org>
4144
4145         Tests for module 'tanhf'.
4146         * modules/tanhf-tests: New file.
4147         * tests/test-tanhf.c: New file.
4148
4149         New module 'tanhf'.
4150         * lib/math.in.h (tanhf): New declaration.
4151         * lib/tanhf.c: New file.
4152         * m4/tanhf.m4: New file.
4153         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
4154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
4155         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
4156         * modules/tanhf: New file.
4157         * tests/test-math-c++.cc: Check the declaration of tanhf.
4158         * doc/posix-functions/tanhf.texi: Mention the new module.
4159
4160         tanh: Use a .m4 file.
4161         * m4/tanh.m4: New file.
4162         * modules/tanh (Files): Add it.
4163         (configure.ac): Just invoke gl_FUNC_TANH.
4164
4165 2011-10-08  Bruno Haible  <bruno@clisp.org>
4166
4167         Tests for module 'coshf'.
4168         * modules/coshf-tests: New file.
4169         * tests/test-coshf.c: New file.
4170
4171         New module 'coshf'.
4172         * lib/math.in.h (coshf): New declaration.
4173         * lib/coshf.c: New file.
4174         * m4/coshf.m4: New file.
4175         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
4176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
4177         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
4178         * modules/coshf: New file.
4179         * tests/test-math-c++.cc: Check the declaration of coshf.
4180         * doc/posix-functions/coshf.texi: Mention the new module.
4181
4182         cosh: Use a .m4 file.
4183         * m4/cosh.m4: New file.
4184         * modules/cosh (Files): Add it.
4185         (configure.ac): Just invoke gl_FUNC_COSH.
4186
4187 2011-10-08  Bruno Haible  <bruno@clisp.org>
4188
4189         Tests for module 'sinhf'.
4190         * modules/sinhf-tests: New file.
4191         * tests/test-sinhf.c: New file.
4192
4193         New module 'sinhf'.
4194         * lib/math.in.h (sinhf): New declaration.
4195         * lib/sinhf.c: New file.
4196         * m4/sinhf.m4: New file.
4197         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
4198         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
4199         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
4200         * modules/sinhf: New file.
4201         * tests/test-math-c++.cc: Check the declaration of sinhf.
4202         * doc/posix-functions/sinhf.texi: Mention the new module.
4203
4204         sinh: Use a .m4 file.
4205         * m4/sinh.m4: New file.
4206         * modules/sinh (Files): Add it.
4207         (configure.ac): Just invoke gl_FUNC_SINH.
4208
4209 2011-10-08  Bruno Haible  <bruno@clisp.org>
4210
4211         Tests for module 'atan2f'.
4212         * modules/atan2f-tests: New file.
4213         * tests/test-atan2f.c: New file.
4214
4215         New module 'atan2f'.
4216         * lib/math.in.h (atan2f): New declaration.
4217         * lib/atan2f.c: New file.
4218         * m4/atan2f.m4: New file.
4219         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
4220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
4221         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
4222         * modules/atan2f: New file.
4223         * tests/test-math-c++.cc: Check the declaration of atan2f.
4224         * doc/posix-functions/atan2f.texi: Mention the new module.
4225
4226         atan2: Use a .m4 file.
4227         * m4/atan2.m4: New file.
4228         * modules/atan2 (Files): Add it.
4229         (configure.ac): Just invoke gl_FUNC_ATAN2.
4230
4231 2011-10-08  Bruno Haible  <bruno@clisp.org>
4232
4233         Tests for module 'atanf'.
4234         * modules/atanf-tests: New file.
4235         * tests/test-atanf.c: New file.
4236
4237         New module 'atanf'.
4238         * lib/math.in.h (atanf): New declaration.
4239         * lib/atanf.c: New file.
4240         * m4/atanf.m4: New file.
4241         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
4242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
4243         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
4244         * modules/atanf: New file.
4245         * tests/test-math-c++.cc: Check the declaration of atanf.
4246         * doc/posix-functions/atanf.texi: Mention the new module.
4247
4248         atan: Use a .m4 file.
4249         * m4/atan.m4: New file.
4250         * modules/atan (Files): Add it.
4251         (configure.ac): Just invoke gl_FUNC_ATAN.
4252
4253 2011-10-08  Bruno Haible  <bruno@clisp.org>
4254
4255         Tests for module 'acosf'.
4256         * modules/acosf-tests: New file.
4257         * tests/test-acosf.c: New file.
4258
4259         New module 'acosf'.
4260         * lib/math.in.h (acosf): New declaration.
4261         * lib/acosf.c: New file.
4262         * m4/acosf.m4: New file.
4263         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
4264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
4265         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
4266         * modules/acosf: New file.
4267         * tests/test-math-c++.cc: Check the declaration of acosf.
4268         * doc/posix-functions/acosf.texi: Mention the new module.
4269
4270         acos: Use a .m4 file.
4271         * m4/acos.m4: New file.
4272         * modules/acos (Files): Add it.
4273         (configure.ac): Just invoke gl_FUNC_ACOS.
4274
4275 2011-10-08  Bruno Haible  <bruno@clisp.org>
4276
4277         Tests for module 'asinf'.
4278         * modules/asinf-tests: New file.
4279         * tests/test-asinf.c: New file.
4280
4281         New module 'asinf'.
4282         * lib/math.in.h (asinf): New declaration.
4283         * lib/asinf.c: New file.
4284         * m4/asinf.m4: New file.
4285         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
4286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
4287         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
4288         * modules/asinf: New file.
4289         * tests/test-math-c++.cc: Check the declaration of asinf.
4290         * doc/posix-functions/asinf.texi: Mention the new module.
4291
4292         asin: Use a .m4 file.
4293         * m4/asin.m4: New file.
4294         * modules/asin (Files): Add it.
4295         (configure.ac): Just invoke gl_FUNC_ASIN.
4296
4297 2011-10-08  Bruno Haible  <bruno@clisp.org>
4298
4299         Tests for module 'tanf'.
4300         * modules/tanf-tests: New file.
4301         * tests/test-tanf.c: New file.
4302
4303         New module 'tanf'.
4304         * lib/math.in.h (tanf): New declaration.
4305         * lib/tanf.c: New file.
4306         * m4/tanf.m4: New file.
4307         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
4308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
4309         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
4310         * modules/tanf: New file.
4311         * tests/test-math-c++.cc: Check the declaration of tanf.
4312         * doc/posix-functions/tanf.texi: Mention the new module.
4313
4314         tan: Use a .m4 file.
4315         * m4/tan.m4: New file.
4316         * modules/tan (Files): Add it.
4317         (configure.ac): Just invoke gl_FUNC_TAN.
4318
4319 2011-10-08  Bruno Haible  <bruno@clisp.org>
4320
4321         Tests for module 'cosf'.
4322         * modules/cosf-tests: New file.
4323         * tests/test-cosf.c: New file.
4324
4325         New module 'cosf'.
4326         * lib/math.in.h (cosf): New declaration.
4327         * lib/cosf.c: New file.
4328         * m4/cosf.m4: New file.
4329         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
4330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
4331         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
4332         * modules/cosf: New file.
4333         * tests/test-math-c++.cc: Check the declaration of cosf.
4334         * doc/posix-functions/cosf.texi: Mention the new module.
4335
4336         cos: Use a .m4 file.
4337         * m4/cos.m4: New file.
4338         * modules/cos (Files): Add it.
4339         (configure.ac): Just invoke gl_FUNC_COS.
4340
4341 2011-10-08  Bruno Haible  <bruno@clisp.org>
4342
4343         Tests for module 'sinf'.
4344         * modules/sinf-tests: New file.
4345         * tests/test-sinf.c: New file.
4346
4347         New module 'sinf'.
4348         * lib/math.in.h (sinf): New declaration.
4349         * lib/sinf.c: New file.
4350         * m4/sinf.m4: New file.
4351         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
4352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
4353         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
4354         * modules/sinf: New file.
4355         * tests/test-math-c++.cc: Check the declaration of sinf.
4356         * doc/posix-functions/sinf.texi: Mention the new module.
4357
4358         sin: Use a .m4 file.
4359         * m4/sin.m4: New file.
4360         * modules/sin (Files): Add it.
4361         (configure.ac): Just invoke gl_FUNC_SIN.
4362
4363 2011-10-08  Bruno Haible  <bruno@clisp.org>
4364
4365         Tests for module 'powf'.
4366         * modules/powf-tests: New file.
4367         * tests/test-powf.c: New file.
4368
4369         New module 'powf'.
4370         * lib/math.in.h (powf): New declaration.
4371         * lib/powf.c: New file.
4372         * m4/powf.m4: New file.
4373         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
4374         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
4375         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
4376         * modules/powf: New file.
4377         * tests/test-math-c++.cc: Check the declaration of powf.
4378         * doc/posix-functions/powf.texi: Mention the new module.
4379
4380         pow: Use a .m4 file.
4381         * m4/pow.m4: New file.
4382         * modules/pow (Files): Add it.
4383         (configure.ac): Just invoke gl_FUNC_POW.
4384
4385 2011-10-08  Bruno Haible  <bruno@clisp.org>
4386
4387         Tests for module 'log10f'.
4388         * modules/log10f-tests: New file.
4389         * tests/test-log10f.c: New file.
4390
4391         New module 'log10f'.
4392         * lib/math.in.h (log10f): New declaration.
4393         * lib/log10f.c: New file.
4394         * m4/log10f.m4: New file.
4395         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
4396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
4397         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
4398         * modules/log10f: New file.
4399         * tests/test-math-c++.cc: Check the declaration of log10f.
4400         * doc/posix-functions/log10f.texi: Mention the new module.
4401
4402         log10: Use a .m4 file.
4403         * m4/log10.m4: New file.
4404         * modules/log10 (Files): Add it.
4405         (configure.ac): Just invoke gl_FUNC_LOG10.
4406
4407 2011-10-08  Bruno Haible  <bruno@clisp.org>
4408
4409         Tests for module 'logf'.
4410         * modules/logf-tests: New file.
4411         * tests/test-logf.c: New file.
4412
4413         New module 'logf'.
4414         * lib/math.in.h (logf): New declaration.
4415         * lib/logf.c: New file.
4416         * m4/logf.m4: New file.
4417         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
4418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
4419         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
4420         * modules/logf: New file.
4421         * tests/test-math-c++.cc: Check the declaration of logf.
4422         * doc/posix-functions/logf.texi: Mention the new module.
4423
4424         log: Use a .m4 file.
4425         * m4/log.m4: New file.
4426         * modules/log (Files): Add it.
4427         (configure.ac): Just invoke gl_FUNC_LOG.
4428
4429 2011-10-08  Bruno Haible  <bruno@clisp.org>
4430
4431         Tests for module 'expf'.
4432         * modules/expf-tests: New file.
4433         * tests/test-expf.c: New file.
4434
4435         New module 'expf'.
4436         * lib/math.in.h (expf): New declaration.
4437         * lib/expf.c: New file.
4438         * m4/expf.m4: New file.
4439         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
4440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
4441         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
4442         * modules/expf: New file.
4443         * tests/test-math-c++.cc: Check the declaration of expf.
4444         * doc/posix-functions/expf.texi: Mention the new module.
4445
4446         exp: Use a .m4 file.
4447         * m4/exp.m4: New file.
4448         * modules/exp (Files): Add it.
4449         (configure.ac): Just invoke gl_FUNC_EXP.
4450
4451 2011-10-08  Bruno Haible  <bruno@clisp.org>
4452
4453         Tests for module 'sqrtf'.
4454         * modules/sqrtf-tests: New file.
4455         * tests/test-sqrtf.c: New file.
4456
4457         New module 'sqrtf'.
4458         * lib/math.in.h (sqrtf): New declaration.
4459         * lib/sqrtf.c: New file.
4460         * m4/sqrtf.m4: New file.
4461         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
4462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
4463         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
4464         * modules/sqrtf: New file.
4465         * tests/test-math-c++.cc: Check the declaration of sqrtf.
4466         * doc/posix-functions/sqrtf.texi: Mention the new module.
4467
4468 2011-10-08  Bruno Haible  <bruno@clisp.org>
4469
4470         Tests: Avoid link failures w.r.t. libintl.
4471         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
4472         $(LIBINTL).
4473         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
4474         $(LIBINTL).
4475         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
4476         against $(LIBINTL).
4477         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
4478         $(LIBINTL).
4479         * modules/openat-tests (Makefile.am): Link test-fchmodat against
4480         $(LIBINTL).
4481         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
4482
4483 2011-10-08  Bruno Haible  <bruno@clisp.org>
4484
4485         pow tests: Defeat compiler optimizations.
4486         * tests/test-pow.c (main): Assign arguments to x and y before use.
4487
4488 2011-10-08  Bruno Haible  <bruno@clisp.org>
4489
4490         gnulib-tool: Improve last commit.
4491         * gnulib-tool (func_modules_transitive_closure): Simplify code.
4492         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
4493         ignore dependencies that are not among the modules list.
4494
4495 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
4496
4497         gnulib-tool: don't follow dependencies to avoided modules
4498         This fixes a bug that is related to the previous one.
4499         * gnulib-tool (func_modules_transitive_closure)
4500         (func_emit_autoconf_snippets):
4501         Check whether a dependency is acceptable before using it.
4502         (--extract-dependencies): Report an error if --avoid is also used,
4503         since this combination of options is not yet supported.
4504
4505         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
4506         Problem reported by Peter Dyballa in
4507         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
4508         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
4509         when echoing "$condition".
4510
4511 2011-10-07  Bruno Haible  <bruno@clisp.org>
4512
4513         Fix documentation about math functions on MacOS X.
4514         * doc/posix-functions/exp2.texi: Don't say the function is missing on
4515         MacOS X 10.5.
4516         * doc/posix-functions/fdim.texi: Likewise.
4517         * doc/posix-functions/feclearexcept.texi: Likewise.
4518         * doc/posix-functions/fegetenv.texi: Likewise.
4519         * doc/posix-functions/fegetround.texi: Likewise.
4520         * doc/posix-functions/feholdexcept.texi: Likewise.
4521         * doc/posix-functions/feraiseexcept.texi: Likewise.
4522         * doc/posix-functions/fesetenv.texi: Likewise.
4523         * doc/posix-functions/fesetround.texi: Likewise.
4524         * doc/posix-functions/fetestexcept.texi: Likewise.
4525         * doc/posix-functions/feupdateenv.texi: Likewise.
4526         * doc/posix-functions/fmax.texi: Likewise.
4527         * doc/posix-functions/fmin.texi: Likewise.
4528         * doc/posix-functions/log2.texi: Likewise.
4529         * doc/posix-functions/modff.texi: Likewise.
4530         * doc/posix-functions/nan.texi: Likewise.
4531         * doc/posix-functions/nanf.texi: Likewise.
4532         * doc/posix-functions/nextafterf.texi: Likewise.
4533         * doc/posix-functions/remquo.texi: Likewise.
4534
4535 2011-10-07  Bruno Haible  <bruno@clisp.org>
4536
4537         modff: Drop assumption about library that defines modff.
4538         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
4539         AC_CHECK_FUNCS.
4540         * modules/modff (Files): Add m4/mathfunc.m4.
4541
4542 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
4543
4544         raise tests: Avoid a GCC warning.
4545         * tests/test-raise.c (handler): Use _Noreturn.
4546
4547 2011-10-07  Bruno Haible  <bruno@clisp.org>
4548
4549         Tests for module 'ldexpf'.
4550         * modules/ldexpf-tests: New file.
4551         * tests/test-ldexpf.c: New file.
4552
4553         New module 'ldexpf'.
4554         * lib/math.in.h (ldexpf): New declaration.
4555         * lib/ldexpf.c: New file.
4556         * m4/ldexpf.m4: New file.
4557         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
4558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
4559         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
4560         * modules/ldexpf: New file.
4561         * tests/test-math-c++.cc: Check the declaration of ldexpf.
4562         * doc/posix-functions/ldexpf.texi: Mention the new module.
4563
4564 2011-10-06  Bruno Haible  <bruno@clisp.org>
4565
4566         frexpf: Work around problems on IRIX and mingw.
4567         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
4568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
4569         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
4570         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
4571         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
4572         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
4573         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
4574
4575 2011-10-06  Bruno Haible  <bruno@clisp.org>
4576
4577         fabsf: Drop assumption about library that defines fabsf.
4578         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
4579         AC_CHECK_FUNCS.
4580         * modules/fabsf (Files): Add m4/mathfunc.m4.
4581
4582 2011-10-06  Bruno Haible  <bruno@clisp.org>
4583
4584         frexpf: Drop assumption about library that defines frexpf.
4585         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
4586         'int *', 'float *', 'long double *', 'float', 'long double'.
4587         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
4588         AC_CHECK_FUNCS.
4589         * modules/frexpf (Files): Add m4/mathfunc.m4.
4590
4591         Tests for module 'frexpf'.
4592         * modules/frexpf-tests: New file.
4593         * tests/test-frexpf.c: New file.
4594
4595         New module 'frexpf'.
4596         * lib/math.in.h (frexpf): New declaration.
4597         * lib/frexpf.c: New file.
4598         * m4/frexpf.m4: New file.
4599         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
4600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
4601         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
4602         * modules/frexpf: New file.
4603         * tests/test-math-c++.cc: Check the declaration of frexpf.
4604         * doc/posix-functions/frexpf.texi: Mention the new module.
4605
4606 2011-10-06  Bruno Haible  <bruno@clisp.org>
4607
4608         math: Sort function declarations of math.in.h.
4609         * lib/math.in.h (frexp, logb): Move declarations.
4610
4611 2011-10-05  Bruno Haible  <bruno@clisp.org>
4612
4613         Tests for module 'modff'.
4614         * modules/modff-tests: New file.
4615         * tests/test-modff.c: New file.
4616
4617         New module 'modff'.
4618         * lib/math.in.h (modff): New declaration.
4619         * lib/modff.c: New file.
4620         * m4/modff.m4: New file.
4621         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
4622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
4623         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
4624         * modules/modff: New file.
4625         * tests/test-math-c++.cc: Check the declaration of modff.
4626         * doc/posix-functions/modff.texi: Mention the new module.
4627
4628         modf tests: Make test sharper.
4629         * tests/test-modf.c (main): Strengthen upper bound.
4630
4631         modf: Use a .m4 file.
4632         * m4/modf.m4: New file.
4633         * modules/modf (Files): Add it.
4634         (configure.ac): Just invoke gl_FUNC_MODF.
4635
4636 2011-10-05  Bruno Haible  <bruno@clisp.org>
4637
4638         Tests for module 'fmodf'.
4639         * modules/fmodf-tests: New file.
4640         * tests/test-fmodf.c: New file.
4641
4642         New module 'fmodf'.
4643         * lib/math.in.h (fmodf): New declaration.
4644         * lib/fmodf.c: New file.
4645         * m4/fmodf.m4: New file.
4646         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
4647         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
4648         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
4649         * modules/fmodf: New file.
4650         * tests/test-math-c++.cc: Check the declaration of fmodf.
4651         * doc/posix-functions/fmodf.texi: Mention the new module.
4652
4653         fmod: Use a .m4 file.
4654         * m4/fmod.m4: New file.
4655         * modules/fmod (Files): Add it.
4656         (configure.ac): Just invoke gl_FUNC_FMOD.
4657
4658 2011-10-05  Bruno Haible  <bruno@clisp.org>
4659
4660         Tests for module 'fabsf'.
4661         * modules/fabsf-tests: New file.
4662         * tests/test-fabsf.c: New file.
4663
4664         New module 'fabsf'.
4665         * lib/math.in.h (fabsf): New declaration.
4666         * lib/fabsf.c: New file.
4667         * m4/fabsf.m4: New file.
4668         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
4669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
4670         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
4671         * modules/fabsf: New file.
4672         * tests/test-math-c++.cc: Check the declaration of fabsf.
4673         * doc/posix-functions/fabsf.texi: Mention the new module.
4674
4675         fabs: Use a .m4 file.
4676         * m4/fabs.m4: New file.
4677         * modules/fabs (Files): Add it.
4678         (configure.ac): Just invoke gl_FUNC_FABS.
4679
4680 2011-10-05  Jim Meyering  <meyering@redhat.com>
4681
4682         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
4683         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
4684         ls -lL regression introduced in coreutils-8.12, it does so at the
4685         cost of an additional stat call in the common case.  Besides, now
4686         that the kernel change that prompted commit 95f7c57f has been reverted
4687         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
4688         we have no use for commit 95f7c57f, "file-has-acl: use
4689         acl_extended_file_nofollow if available".
4690
4691 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
4692
4693         file-has-acl: revert unintended change in behavior of ls -L
4694         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
4695         derived from...
4696         (file_has_acl): ...code here.  Call it.
4697         This problem was introduced with 2011-07-22 commit 95f7c57f,
4698         "file-has-acl: use acl_extended_file_nofollow if available".
4699         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
4700
4701 2011-10-03  Bruno Haible  <bruno@clisp.org>
4702
4703         poll: Avoid link errors on MSVC.
4704         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
4705         * modules/poll (Depends-on): Add sockets.
4706         (Link): New section.
4707         * NEWS: Mention the change.
4708         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
4709         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
4710         $(LIB_POLL) instead of $(LIBSOCKET).
4711
4712 2011-10-03  Bruno Haible  <bruno@clisp.org>
4713
4714         sys_select tests: Fix link error on MSVC 9.
4715         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
4716         with $(LIB_SELECT) instead of $(LIBSOCKET).
4717
4718 2011-10-03  Bruno Haible  <bruno@clisp.org>
4719
4720         sys_select: Fix compilation error on mingw.
4721         * lib/sys_select.in.h: On native Windows, include <io.h>.
4722
4723 2011-10-03  Bruno Haible  <bruno@clisp.org>
4724
4725         wmemset: Support for MSVC.
4726         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
4727         whether wmemset() exists.
4728
4729 2011-10-03  Bruno Haible  <bruno@clisp.org>
4730
4731         wmemmove: Support for MSVC.
4732         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
4733         whether wmemmove() exists.
4734
4735 2011-10-03  Bruno Haible  <bruno@clisp.org>
4736
4737         wmemcpy: Support for MSVC.
4738         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
4739         whether wmemcpy() exists.
4740
4741 2011-10-03  Bruno Haible  <bruno@clisp.org>
4742
4743         wmemcmp: Support for MSVC.
4744         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
4745         whether wmemcmp() exists.
4746
4747 2011-10-03  Bruno Haible  <bruno@clisp.org>
4748
4749         wmemchr: Support for MSVC.
4750         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
4751         whether wmemchr() exists.
4752
4753 2011-10-03  Bruno Haible  <bruno@clisp.org>
4754
4755         glthread/*, strsignal: Support for MSVC.
4756         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
4757         including <winsock.h> on MSVC 9.
4758         * lib/glthread/lock.h: Likewise.
4759         * lib/glthread/thread.h: Likewise.
4760         * lib/glthread/tls.h: Likewise.
4761         * lib/glthread/yield.h: Likewise.
4762         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
4763         if HAVE_UNISTD_H is false.
4764         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
4765
4766 2011-10-03  Bruno Haible  <bruno@clisp.org>
4767
4768         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
4769         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
4770         Set to 100000.
4771
4772 2011-10-03  Bruno Haible  <bruno@clisp.org>
4773
4774         acl: Fix specification.
4775         * lib/file-has-acl.c (file_has_acl): Fix specification.
4776
4777 2011-10-03  Bruno Haible  <bruno@clisp.org>
4778
4779         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
4780         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
4781         (compute_curr_prefix, shared_library_fullname,
4782         find_shared_library_fullname, get_shared_library_fullname, relocate):
4783         Use it together with PIC && INSTALLDIR.
4784         Reported by <jojelino@gmail.com>
4785         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
4786
4787 2011-10-01  Jim Meyering  <meyering@redhat.com>
4788
4789         maint.mk: adjust a release-related rule not to require use of gzip
4790         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
4791         Instead, check each file in $(DIST_ARCHIVES).  This is better for
4792         projects that build only .tar.xz files.  Also fix an erroneous test.
4793
4794         test-linkat: don't leave behind a temporary file
4795         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
4796         Otherwise, coreutils' "make distcheck" would fail with this:
4797           Only in /c/cu/tests/torture/coreutils/test/\
4798             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
4799           make[2]: *** [my-distcheck] Error 1
4800
4801         float, math: add omitted file
4802         * lib/itold.c: Add file, required for yesterday's float change.
4803
4804 2011-10-01  Bruno Haible  <bruno@clisp.org>
4805
4806         isinf: Fix for OpenBSD/x86.
4807         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
4808         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
4809         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
4810
4811 2011-10-01  Bruno Haible  <bruno@clisp.org>
4812
4813         isfinite: Fix syntax error in configure test.
4814         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
4815
4816         isfinite: Fix typo.
4817         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
4818         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
4819
4820 2011-10-01  Bruno Haible  <bruno@clisp.org>
4821
4822         nonblocking tests: Fix test failure on Linux/IA-64.
4823         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
4824         Set to 270000.
4825
4826 2011-10-01  Bruno Haible  <bruno@clisp.org>
4827
4828         mkfifoat tests: Fix a test failure on mingw.
4829         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
4830         with error ENOSYS.
4831
4832 2011-09-30  Bruno Haible  <bruno@clisp.org>
4833
4834         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
4835         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
4836         'long double'. Set REPLACE_ITOLD.
4837         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
4838         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
4839         * lib/itold.c: New file.
4840         * modules/float (Files): Add lib/itold.c.
4841         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
4842         (Makefile.am): Substitute REPLACE_ITOLD.
4843         * modules/math (Depends-on): Add float.
4844         (Makefile.am): Substitute REPLACE_ITOLD.
4845         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
4846         * doc/posix-headers/math.texi: Likewise.
4847         * doc/posix-functions/logl.texi: Likewise.
4848
4849 2011-09-30  Bruno Haible  <bruno@clisp.org>
4850
4851         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
4852         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
4853         Set to 140000.
4854
4855 2011-09-30  Bruno Haible  <bruno@clisp.org>
4856
4857         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
4858         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
4859         invocation, say "right after AC_PROG_CC_STDC", not "right after
4860         AC_PROG_CC".
4861         Reported by Gary V. Vaughan <gary@gnu.org>.
4862
4863 2011-09-30  Bruno Haible  <bruno@clisp.org>
4864
4865         Centralize C99 requirement.
4866         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
4867         * modules/stdarg (configure.ac-early): Invoke it instead of
4868         AC_PROG_CC_STDC.
4869         Reported by Gary V. Vaughan and Paul Eggert.
4870
4871 2011-09-29  Bruno Haible  <bruno@clisp.org>
4872
4873         float: Fix LDBL_MAX value on Linux/PowerPC.
4874         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
4875         on Linux/PowerPC.
4876         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
4877         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
4878         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
4879         platform.
4880         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
4881
4882 2011-09-29  Bruno Haible  <bruno@clisp.org>
4883
4884         doc: Improve doc about gl_EARLY.
4885         * doc/gnulib-tool.texi (Initial import): Mention where to place an
4886         AC_PROG_CC_STDC invocation.
4887         Reported by Gary V. Vaughan <gary@gnu.org>.
4888
4889 2011-09-28  Bruno Haible  <bruno@clisp.org>
4890
4891         fgetc, fputc, fread, fwrite tests: Fix link error.
4892         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
4893         on non-MSVC platforms.
4894         * tests/test-fputc.c (main): Likewise.
4895         * tests/test-fread.c (main): Likewise.
4896         * tests/test-fwrite.c (main): Likewise.
4897         Reported by Jim Meyering.
4898
4899 2011-09-27  Bruno Haible  <bruno@clisp.org>
4900
4901         fputc, fwrite tests: Avoid test failure on MSVC.
4902         * tests/test-fgetc.c: Include msvc-inval.h.
4903         (main): Invoke gl_msvc_inval_ensure_handler.
4904         * tests/test-fputc.c: Include msvc-inval.h.
4905         (main): Invoke gl_msvc_inval_ensure_handler.
4906         * tests/test-fread.c: Include msvc-inval.h.
4907         (main): Invoke gl_msvc_inval_ensure_handler.
4908         * tests/test-fwrite.c: Include msvc-inval.h.
4909         (main): Invoke gl_msvc_inval_ensure_handler.
4910         * modules/fgetc-tests (Depends-on): Add msvc-inval.
4911         * modules/fputc-tests (Depends-on): Likewise.
4912         * modules/fread-tests (Depends-on): Likewise.
4913         * modules/fwrite-tests (Depends-on): Likewise.
4914
4915 2011-09-27  Bruno Haible  <bruno@clisp.org>
4916
4917         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
4918         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
4919         (raise): Remove older, duplicated declaration.
4920         (_gl_raise_SIGPIPE): New declaration.
4921         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
4922         (rpl_raise): Remove function.
4923         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
4924         a gnulib-defined SIGPIPE here.
4925         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
4926         'sigprocmask' has detected missing signal-blocking and the module
4927         'sigpipe' is enabled.
4928         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4929
4930 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
4931
4932         base64-tests: avoid memory leak
4933         * tests/test-base64.c (main): Plug memory leak.
4934
4935         base32: new module
4936         * modules/base32: New module.
4937         * lib/base32.c: New file.
4938         * lib/base32.h: Likewise.
4939         * m4/base32.m4: Likewise.
4940         * modules/base32-tests: New test.
4941         * tests/test-base32.c: Likewise.
4942         * MODULES.html.sh (Misc): Mention it.
4943
4944 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4945
4946         gnulib: use more-standard license notice wording
4947         * gnulib-tool (func_emit_copyright_notice): When emitting a
4948         license notice into a file, use the standard wording as suggested
4949         by the current information for GNU maintainers, except say "file"
4950         rather than "program".  The new wording gives a license version
4951         number, which addresses an issue raised by Glenn Morris in
4952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
4953         * m4/onceonly.m4: Use that same wording here, too.
4954
4955         dup2: minor simplification
4956         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
4957         as lib/dup2.c no longer uses 'inline'.
4958
4959 2011-09-25  Bruno Haible  <bruno@clisp.org>
4960
4961         strings: Fix compilation error on MSVC.
4962         * lib/strings.in.h: Include <stddef.h> for size_t.
4963
4964 2011-09-25  Bruno Haible  <bruno@clisp.org>
4965
4966         fflush et al.: Document limitation on MSVC.
4967         * doc/posix-functions/fflush.texi: Document possible crash in handling
4968         mode other than DEFAULT_HANDLING.
4969         * doc/posix-functions/fgetc.texi: Likewise.
4970         * doc/posix-functions/fputc.texi: Likewise.
4971         * doc/posix-functions/fread.texi: Likewise.
4972         * doc/posix-functions/fwrite.texi: Likewise.
4973
4974 2011-09-25  Bruno Haible  <bruno@clisp.org>
4975
4976         msvc-inval: Allow three invalid parameter handling modes.
4977         * lib/msvc-inval.h: Don't include <stdlib.h> here.
4978         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
4979         macros.
4980         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
4981         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
4982         SANE_LIBRARY_HANDLING as a no-op.
4983         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
4984         <stdlib.h>.
4985         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
4986
4987 2011-09-25  Bruno Haible  <bruno@clisp.org>
4988
4989         msvc-inval: Make handler multithread-safe.
4990         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
4991         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
4992         declarations.
4993         (gl_msvc_inval_current): New declaration.
4994         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4995         Operate on the structure returned by gl_msvc_inval_current().
4996         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
4997         Remove varaiables.
4998         (tls_index, tls_initialized): New variables.
4999         (not_per_thread): New variable.
5000         (gl_msvc_inval_current): New function.
5001         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
5002         returned by gl_msvc_inval_current().
5003
5004 2011-09-25  Bruno Haible  <bruno@clisp.org>
5005
5006         msvc-inval: Install handler globally.
5007         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
5008         !_MSC_VER.
5009         (gl_msvc_invalid_parameter_handler): Remove declaration.
5010         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
5011         declarations.
5012         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5013         Install the handler globally, don't uninstall it.
5014         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
5015         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
5016         currently valid, call RaiseException instead.
5017         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
5018         for !_MSC_VER.
5019
5020 2011-09-25  Bruno Haible  <bruno@clisp.org>
5021
5022         strerror_r-posix: Fix for MSVC 9.
5023         * lib/strerror_r.c (local_snprintf): New function.
5024         (snprintf): Define to local_snprintf, not to _snprintf.
5025
5026 2011-09-25  Bruno Haible  <bruno@clisp.org>
5027
5028         ftruncate: Support for MSVC 9.
5029         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
5030         (chsize_nothrow): New function.
5031         (chsize): Redefine as a macro.
5032         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
5033         * modules/ftruncate (Depends-on): Add msvc-inval.
5034
5035 2011-09-25  Bruno Haible  <bruno@clisp.org>
5036
5037         New module 'fstat'.
5038         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
5039         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
5040         * lib/fchdir.c (rpl_fstat): Remove function.
5041         * m4/fstat.m4: New file.
5042         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
5043         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
5044         declared.
5045         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
5046         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
5047         * modules/fstat: New file.
5048         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
5049         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
5050         is set.
5051         * doc/posix-functions/fstat.texi: Mention the new module and the
5052         problem on MSVC.
5053         * NEWS: Mention the change.
5054         * modules/acl (Depends-on): Add fstat.
5055         * modules/chdir-safer (Depends-on): Likewise.
5056         * modules/chown (Depends-on): Likewise.
5057         * modules/copy-file (Depends-on): Likewise.
5058         * modules/fchdir (Depends-on): Likewise.
5059         * modules/fdopendir (Depends-on): Likewise.
5060         * modules/fopen (Depends-on): Likewise.
5061         * modules/fts (Depends-on): Likewise.
5062         * modules/getcwd (Depends-on): Likewise.
5063         * modules/isapipe (Depends-on): Likewise.
5064         * modules/linkat (Depends-on): Likewise.
5065         * modules/lseek (Depends-on): Likewise.
5066         * modules/mkdir-p (Depends-on): Likewise.
5067         * modules/open (Depends-on): Likewise.
5068         * modules/openat (Depends-on): Likewise.
5069         * modules/read-file (Depends-on): Likewise.
5070         * modules/renameat (Depends-on): Likewise.
5071         * modules/utimens (Depends-on): Likewise.
5072
5073 2011-09-25  Bruno Haible  <bruno@clisp.org>
5074
5075         linkat: Fix compilation on MSVC 9.
5076         * lib/linkat.c: Don't include <stdint.h>.
5077
5078 2011-09-25  Bruno Haible  <bruno@clisp.org>
5079
5080         fclose: Support for MSVC 9.
5081         * lib/fclose.c: Include msvc-inval.h.
5082         (fclose_nothrow): New function.
5083         (rpl_fclose): Use it.
5084         * modules/fclose (Depends-on): Add msvc-inval.
5085         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
5086
5087 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
5088
5089         dup2: minor simplifications
5090         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
5091         that it's a performance win.
5092         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
5093         ! defined __CYGWIN__)" to "ifdef F_GETFL".
5094
5095 2011-09-24  Jim Meyering  <meyering@redhat.com>
5096
5097         test-futimens: avoid a warning from gcc -Wshadow
5098         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
5099         to avoid a shadowing warning.
5100
5101 2011-09-24  Bruno Haible  <bruno@clisp.org>
5102
5103         fdopen: Support for MSVC 9.
5104         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
5105         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
5106         * lib/fdopen.c: Include msvc-inval.h.
5107         (fdopen_nothrow): New function.
5108         (rpl_fdopen): Use it.
5109         * modules/fdopen (Depends-on): Add msvc-inval.
5110         * modules/fclose-tests (Depends-on): Add fdopen.
5111         * modules/fflush-tests (Depends-on): Likewise.
5112         * modules/fgetc-tests (Depends-on): Likewise.
5113         * modules/fputc-tests (Depends-on): Likewise.
5114         * modules/fread-tests (Depends-on): Likewise.
5115         * modules/freopen-tests (Depends-on): Likewise.
5116         * modules/fseeko-tests (Depends-on): Likewise.
5117         * modules/ftello-tests (Depends-on): Likewise.
5118         * modules/fwrite-tests  (Depends-on): Likewise.
5119         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
5120
5121 2011-09-24  Bruno Haible  <bruno@clisp.org>
5122
5123         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
5124         * modules/fgetc-tests (Depends-on): Add unistd.
5125         * modules/fputc-tests (Depends-on): Likewise.
5126         * modules/fread-tests (Depends-on): Likewise.
5127         * modules/fwrite-tests (Depends-on): Likewise.
5128
5129 2011-09-24  Bruno Haible  <bruno@clisp.org>
5130
5131         dup: Simplify autoconf test.
5132         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
5133         on gl_MSVC_INVAL's result.
5134
5135 2011-09-24  Bruno Haible  <bruno@clisp.org>
5136
5137         Tests for function fwrite().
5138         * modules/fwrite-tests: New file.
5139         * tests/test-fwrite.c: New file.
5140         * modules/stdio-tests (Depends-on): Add fwrite-tests.
5141
5142         Tests for function fread().
5143         * modules/fread-tests: New file.
5144         * tests/test-fread.c: New file.
5145         * modules/stdio-tests (Depends-on): Add fread-tests.
5146
5147         Activate fputc tests.
5148         * modules/stdio-tests (Depends-on): Add fputc-tests.
5149
5150         Enhance fgetc, fputc tests.
5151         * tests/test-fgetc.c (main): Also test the stream's error indicator.
5152         * tests/test-fputc.c (main): Likewise.
5153
5154 2011-09-24  Bruno Haible  <bruno@clisp.org>
5155
5156         write: Support for MSVC 9.
5157         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5158         is not 1.
5159         * lib/write.c (write_nothrow): New function.
5160         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
5161         not 1. Use write_nothrow.
5162         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
5163         invalid parameter handler.
5164         (gl_PREREQ_WRITE): New macro.
5165         * modules/write (Depends-on): Add msvc-inval.
5166         (configure.ac): Invoke gl_PREREQ_WRITE.
5167         * doc/posix-functions/write.texi: Mention the problem on MSVC.
5168
5169 2011-09-24  Bruno Haible  <bruno@clisp.org>
5170
5171         read: Fix last commit.
5172         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
5173
5174 2011-09-24  Bruno Haible  <bruno@clisp.org>
5175
5176         dup2: Fix last commit.
5177         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
5178         (rpl_dup2): Disable fcntl workaround on native Windows.
5179
5180         sigprocmask: Make code safer.
5181         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
5182         section that changes macro definitions for this compilation unit.
5183
5184 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5185
5186         dup2: clarify by coalescing Windows-specific material
5187         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
5188         "msvc-nothrow.h"' to the Windows-specific section, so that the
5189         Emacs source need not contain these include files.
5190         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
5191         Windows-specific fixes into this function rather than just the
5192         nothrow fix, as this shortens and clarifies the code.  Always
5193         define as a function, as that's a bit cleaner than having it be
5194         sometimes a function and sometimes a macro.
5195         (rpl_dup2): Move the Windows-specific stuff out of here and into
5196         ms_windows_dup2.  Don't protect the Haiku-related fix with
5197         "#if !defined __linux__", as the same code also works around
5198         a Linux kernel bug, and it doesn't add any system calls on any
5199         platform.  Add comment about FreeBSD 6.1.
5200
5201         sigprocmask: move #include directive
5202         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
5203         Windows-specific section, so that the Emacs source need not
5204         contain msvc-inval.h.
5205
5206 2011-09-23  Bruno Haible  <bruno@clisp.org>
5207
5208         read: Support for MSVC 9.
5209         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5210         is not 1.
5211         * lib/read.c (read_nothrow): New function.
5212         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
5213         read_nothrow.
5214         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
5215         invalid parameter handler.
5216         (gl_PREREQ_READ): New macro.
5217         * modules/read (Depends-on): Add msvc-inval.
5218         (configure.ac): Invoke gl_PREREQ_READ.
5219         * doc/posix-functions/read.texi: Mention the problem on MSVC.
5220
5221 2011-09-23  Bruno Haible  <bruno@clisp.org>
5222
5223         close: Support for MSVC 9.
5224         * lib/close.c: Include <errno.h>, msvc-inval.h.
5225         (close_nothrow): New function.
5226         (rpl_close): Use it.
5227         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
5228         invalid parameter handler.
5229         * modules/close (Depends-on): Add msvc-inval.
5230         * modules/dup2-tests (Depends-on): Add close.
5231         * modules/dup3-tests (Depends-on): Likewise.
5232         * modules/fcntl-tests (Depends-on): Likewise.
5233         * modules/spawn-pipe-tests (Depends-on): Likewise.
5234         * modules/unistd-safer-tests (Depends-on): Likewise.
5235         * doc/posix-functions/close.texi: Mention the problem on MSVC.
5236
5237 2011-09-23  Bruno Haible  <bruno@clisp.org>
5238
5239         New module 'dup'.
5240         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
5241         Allow replacement.
5242         * lib/dup.c: New file.
5243         * lib/fchdir.c (rpl_dup): Remove function.
5244         * m4/dup.m4: New file.
5245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
5246         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
5247         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
5248         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
5249         * modules/dup: New file.
5250         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
5251         'dup' module is in use.
5252         * modules/fdopendir (Depends-on): Add dup.
5253         * modules/fdutimensat-tests (Depends-on): Likewise.
5254         * modules/fts (Depends-on): Likewise.
5255         * modules/futimens-tests (Depends-on): Likewise.
5256         * modules/posix_spawnp-tests (Depends-on): Likewise.
5257         * modules/unistd-safer-tests (Depends-on): Likewise.
5258         * modules/utimens-tests (Depends-on): Likewise.
5259         * doc/posix-functions/dup.texi: Mention the new module and the problem
5260         on MSVC.
5261
5262 2011-09-23  Bruno Haible  <bruno@clisp.org>
5263
5264         getdtablesize: Support for MSVC 9.
5265         * lib/getdtablesize.c: Include msvc-inval.h.
5266         (_setmaxstdio_nothrow): New function.
5267         (_setmaxstdio): Redefine it.
5268         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
5269         * modules/getdtablesize (Depends-on): Add msvc-inval.
5270         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
5271
5272 2011-09-23  Bruno Haible  <bruno@clisp.org>
5273
5274         signal-h: Rename from signal.
5275         * modules/signal-h: Renamed from modules/signal.
5276         * modules/pthread_sigmask (Depends-on): Update.
5277         * modules/raise (Depends-on): Likewise.
5278         * modules/sigaction (Depends-on): Likewise.
5279         * modules/sigpipe (Depends-on): Likewise.
5280         * modules/sigprocmask (Depends-on): Likewise.
5281         * modules/sys_select (Depends-on): Likewise.
5282         * modules/signal-h-tests: Renamed from modules/signal-tests.
5283         (Files, Depends-on, Makefile.am): Update.
5284         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
5285         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
5286         (Files, Makefile.am): Update.
5287         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
5288         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
5289         * modules/signal: New placeholder file.
5290         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
5291         * doc/posix-headers/signal.texi: Update.
5292         * NEWS: Mention the change.
5293
5294 2011-09-23  Bruno Haible  <bruno@clisp.org>
5295
5296         sigprocmask: Avoid crashes through signal() on MSVC 9.
5297         * lib/sigprocmask.c: Include msvc-inval.h.
5298         (signal_nothrow): New function.
5299         (signal): Redefine it.
5300         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
5301         * modules/sigprocmask (Depends-on): Add msvc-inval.
5302         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
5303
5304 2011-09-23  Bruno Haible  <bruno@clisp.org>
5305
5306         Tests for module 'raise'.
5307         * modules/raise-tests: New file.
5308         * tests/test-raise.c: New file.
5309
5310         raise: Support for MSVC.
5311         * lib/signal.in.h (raise): New declaration.
5312         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
5313         for native Windows platforms.
5314         * m4/raise.m4: New file.
5315         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
5316         HAVE_RAISE, REPLACE_RAISE.
5317         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
5318         REPLACE_RAISE.
5319         * modules/raise (Status, Notice): Remove fields.
5320         (Files): Add m4/raise.m4.
5321         (Depends-on): Add signal, msvc-inval.
5322         (configure.ac): Use the common idioms.
5323         (Maintainer): Add me.
5324         * tests/test-signal-c++.cc: Check the signature of raise.
5325         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
5326
5327 2011-09-23  Bruno Haible  <bruno@clisp.org>
5328
5329         pipe2: Fix compilation on pre-C99 compilers.
5330         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
5331
5332 2011-09-23  Bruno Haible  <bruno@clisp.org>
5333
5334         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
5335         * lib/msvc-nothrow.h: New file.
5336         * lib/msvc-nothrow.c: New file.
5337         * m4/msvc-nothrow.m4: New file.
5338         * modules/msvc-nothrow: New file.
5339         * lib/dup2.c: Include msvc-nothrow.h.
5340         (rpl_dup2): No need to protect _get_osfhandle call here.
5341         * lib/accept4.c: Include msvc-nothrow.h.
5342         * lib/error.c: Likewise.
5343         * lib/fcntl.c: Likewise.
5344         * lib/lseek.c: Likewise.
5345         * lib/nonblocking.c: Likewise.
5346         * lib/poll.c: Likewise.
5347         * lib/read.c: Likewise.
5348         * lib/select.c: Likewise.
5349         * lib/sockets.h: Likewise.
5350         * lib/sockets.c: Likewise.
5351         * lib/stdio-read.c: Likewise.
5352         * lib/stdio-write.c: Likewise.
5353         * lib/write.c: Likewise.
5354         * lib/w32sock.h: Likewise.
5355         * lib/w32spawn.h: Likewise.
5356         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
5357         * lib/fsync.c: Likewise.
5358         * lib/isapipe.c: Likewise.
5359         * modules/dup2 (Depends-on): Add msvc-nothrow.
5360         * modules/accept4 (Depends-on): Likewise.
5361         * modules/error (Depends-on): Likewise.
5362         * modules/fcntl (Depends-on): Likewise.
5363         * modules/lseek (Depends-on): Likewise.
5364         * modules/nonblocking (Depends-on): Likewise.
5365         * modules/poll (Depends-on): Likewise.
5366         * modules/read (Depends-on): Likewise.
5367         * modules/select (Depends-on): Likewise.
5368         * modules/sockets (Depends-on): Likewise.
5369         * modules/sigpipe (Depends-on): Likewise.
5370         * modules/write (Depends-on): Likewise.
5371         * modules/accept (Depends-on): Likewise.
5372         * modules/bind (Depends-on): Likewise.
5373         * modules/connect (Depends-on): Likewise.
5374         * modules/gethostname (Depends-on): Likewise.
5375         * modules/getpeername (Depends-on): Likewise.
5376         * modules/getsockname (Depends-on): Likewise.
5377         * modules/getsockopt (Depends-on): Likewise.
5378         * modules/ioctl (Depends-on): Likewise.
5379         * modules/listen (Depends-on): Likewise.
5380         * modules/recv (Depends-on): Likewise.
5381         * modules/recvfrom (Depends-on): Likewise.
5382         * modules/send (Depends-on): Likewise.
5383         * modules/sendto (Depends-on): Likewise.
5384         * modules/setsockopt (Depends-on): Likewise.
5385         * modules/shutdown (Depends-on): Likewise.
5386         * modules/socket (Depends-on): Likewise.
5387         * modules/execute (Depends-on): Likewise.
5388         * modules/spawn-pipe (Depends-on): Likewise.
5389         * modules/flock (Depends-on): Likewise.
5390         * modules/fsync (Depends-on): Likewise.
5391         * modules/isapipe (Depends-on): Likewise.
5392         * tests/test-cloexec.c: Include msvc-nothrow.h.
5393         * tests/test-dup-safer.c: Likewise.
5394         * tests/test-dup2.c: Likewise.
5395         * tests/test-dup3.c: Likewise.
5396         * tests/test-fcntl.c: Likewise.
5397         * tests/test-pipe.c: Likewise.
5398         * tests/test-pipe2.c: Likewise.
5399         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
5400         * modules/unistd-safer-tests (Depends-on): Likewise.
5401         * modules/dup2-tests (Depends-on): Likewise.
5402         * modules/dup3-tests (Depends-on): Likewise.
5403         * modules/fcntl-tests (Depends-on): Likewise.
5404         * modules/pipe-posix-tests (Depends-on): Likewise.
5405         * modules/pipe2-tests (Depends-on): Likewise.
5406
5407 2011-09-23  Bruno Haible  <bruno@clisp.org>
5408
5409         dup2: Make code more maintainable.
5410         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
5411         (rpl_dup2): Use it.
5412         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
5413         * modules/dup2 (configure.ac): Invoke it.
5414         Reported by Paul Eggert.
5415
5416 2011-09-23  Bruno Haible  <bruno@clisp.org>
5417
5418         msvc-inval: Fix compilation error.
5419         * lib/msvc-inval.h: Include <excpt.h>.
5420
5421 2011-09-23  Bruno Haible  <bruno@clisp.org>
5422
5423         mkdir: Tweak for MSVC 9.
5424         * lib/sys_stat.in.h: Update comments.
5425         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
5426
5427         Tests for module 'chdir'.
5428         * modules/chdir-tests: New file.
5429         * tests/test-chdir.c: New file.
5430
5431         New module 'chdir'.
5432         * modules/chdir: New file.
5433         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
5434         (chdir): New declaration.
5435         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
5436         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
5437         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
5438         * tests/test-unistd-c++.cc: Check signature of chdir.
5439         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
5440         * modules/chdir-long (Depends-on): Add chdir.
5441         * modules/fchdir (Depends-on): Likewise.
5442         * modules/rename (Depends-on): Likewise.
5443         * modules/savewd (Depends-on): Likewise.
5444
5445         rmdir: Support for mingw, MSVC 9.
5446         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
5447         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
5448
5449         getcwd: Tweak for MSVC 9.
5450         * lib/unistd.in.h: Update comments.
5451         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
5452
5453 2011-09-22  Bruno Haible  <bruno@clisp.org>
5454
5455         strerror_r-posix: Avoid a link error on MSVC.
5456         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
5457         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
5458
5459 2011-09-22  Bruno Haible  <bruno@clisp.org>
5460
5461         select: Avoid link errors on MSVC.
5462         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
5463         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
5464         * modules/pselect (Link): Likewise.
5465         * NEWS: Mention the change.
5466         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
5467         test-select-stdin against $(LIB_SELECT).
5468         * modules/pselect-tests (Makefile.am): Link test-pselect against
5469         $(LIB_SELECT).
5470
5471 2011-09-22  Bruno Haible  <bruno@clisp.org>
5472
5473         select: Avoid compilation error on MSVC.
5474         * lib/select.c: Don't include <stdbool.h>.
5475
5476 2011-09-21  Bruno Haible  <bruno@clisp.org>
5477
5478         Consolidate all uses of PATH_MAX in *.m4 files.
5479         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
5480         macros.
5481         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
5482         and gl_PATHMAX_SNIPPET.
5483         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5484         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5485         * modules/chdir-long (Files): Add m4/pathmax.m4.
5486         * modules/getcwd (Files): Likewise.
5487
5488 2011-09-21  Bruno Haible  <bruno@clisp.org>
5489
5490         ftruncate: Un-deprecate, concentrate on Win32 support.
5491         * modules/ftruncate (Status, Notice): Remove sections.
5492         (Depends-on): Add largefile.
5493         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
5494         non-mingw platforms.
5495         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
5496         include <io.h>.
5497         * modules/perror-tests (Depends-on): Add ftruncate.
5498         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
5499         'ftruncate' module.
5500
5501 2011-09-21  Bruno Haible  <bruno@clisp.org>
5502
5503         Add dependencies to new dirent related modules.
5504         * modules/opendir (Depends-on): Add closedir.
5505         * modules/getcwd (Depends-on): Add opendir, closedir.
5506         * modules/dirent-safer-tests (Depends-on): Likewise.
5507         * modules/fdopendir-tests (Depends-on): Likewise.
5508         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
5509         * modules/renameat-tests (Depends-on): Likewise.
5510
5511 2011-09-21  Bruno Haible  <bruno@clisp.org>
5512
5513         opendir: Avoid compilation error on mingw.
5514         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
5515         * modules/opendir (Depends-on): Add unistd.
5516
5517 2011-09-21  Bruno Haible  <bruno@clisp.org>
5518
5519         ftruncate tests: Avoid a test failure on mingw.
5520         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
5521
5522 2011-09-21  Bruno Haible  <bruno@clisp.org>
5523
5524         select tests: Avoid test failures on OSF/1 5.1 and mingw.
5525         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
5526         native Windows.
5527
5528 2011-09-21  Bruno Haible  <bruno@clisp.org>
5529
5530         New module 'fdopen'.
5531         * lib/stdio.in.h (fdopen): New declaration.
5532         * lib/fdopen.c: New file.
5533         * m4/fdopen.m4: New file.
5534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
5535         REPLACE_FDOPEN.
5536         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
5537         REPLACE_FDOPEN.
5538         * modules/fdopen: New file.
5539         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
5540         * tests/test-stdio-c++.cc: Check signature of fdopen.
5541         * doc/posix-functions/fdopen.texi: Mention the new module.
5542
5543 2011-09-21  Bruno Haible  <bruno@clisp.org>
5544
5545         unlockpt tests: Avoid test failure on NetBSD 5.1.
5546         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
5547         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
5548
5549 2011-09-21  Bruno Haible  <bruno@clisp.org>
5550
5551         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
5552         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
5553         * tests/test-getlogin_r.c (main): Likewise.
5554
5555 2011-09-20  Bruno Haible  <bruno@clisp.org>
5556
5557         time tests: Don't require pid_t.
5558         * doc/posix-headers/time.texi: Revert last change.
5559         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
5560         * tests/test-time.c: Comment out the check for pid_t.
5561
5562 2011-09-20  Bruno Haible  <bruno@clisp.org>
5563
5564         fsync tests: Avoid a test failure on mingw.
5565         * tests/test-fsync.c (main): Allow a failure with EIO.
5566
5567 2011-09-20  Bruno Haible  <bruno@clisp.org>
5568
5569         euidaccess: Update comments.
5570         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
5571
5572 2011-09-20  Bruno Haible  <bruno@clisp.org>
5573
5574         Ensure EBADF returns for socket functions on mingw.
5575         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
5576         descriptor is invalid.
5577         * lib/bind.c (rpl_bind): Likewise.
5578         * lib/connect.c (rpl_connect): Likewise.
5579         * lib/getpeername.c (rpl_getpeername): Likewise.
5580         * lib/getsockname.c (rpl_getsockname): Likewise.
5581         * lib/getsockopt.c (rpl_getsockopt): Likewise.
5582         * lib/listen.c (rpl_listen): Likewise.
5583         * lib/recv.c (rpl_recv): Likewise.
5584         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5585         * lib/send.c (rpl_send): Likewise.
5586         * lib/sendto.c (rpl_sendto): Likewise.
5587         * lib/setsockopt.c (rpl_setsockopt): Likewise.
5588         * lib/shutdown.c (rpl_shutdown): Likewise.
5589
5590 2011-09-20  Bruno Haible  <bruno@clisp.org>
5591
5592         select tests: EBADF tests.
5593         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
5594         test_bad_fd): New functions.
5595         (test_function): Invoke also test_bad_fd.
5596
5597 2011-09-20  Bruno Haible  <bruno@clisp.org>
5598
5599         Tests for module 'posix_spawn_file_actions_addopen.
5600         * modules/posix_spawn_file_actions_addopen-tests: New file.
5601         * tests/test-posix_spawn_file_actions_addopen.c: New file.
5602
5603         Tests for module 'posix_spawn_file_actions_adddup2'.
5604         * modules/posix_spawn_file_actions_adddup2-tests: New file.
5605         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
5606
5607         Tests for module 'posix_spawn_file_actions_addclose'.
5608         * modules/posix_spawn_file_actions_addclose-tests: New file.
5609         * tests/test-posix_spawn_file_actions_addclose.c: New file.
5610
5611 2011-09-20  Bruno Haible  <bruno@clisp.org>
5612
5613         Tests for module 'unlockpt'.
5614         * modules/unlockpt-tests: New file.
5615         * tests/test-unlockpt.c: New file.
5616         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
5617
5618         Tests for module 'grantpt'.
5619         * modules/grantpt-tests: New file.
5620         * tests/test-grantpt.c: New file.
5621         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
5622
5623 2011-09-20  Bruno Haible  <bruno@clisp.org>
5624
5625         freopen tests: EBADF tests.
5626         * tests/test-freopen.c: Include errno.h, unistd.h.
5627         (main): Add tests for EBADF, commented out for the moment.
5628
5629         fclose tests: EBADF tests.
5630         * tests/test-fclose.c (main): Add tests for EBADF.
5631
5632         fflush tests: EBADF tests.
5633         * tests/test-fflush.c: Include errno.h, macros.h.
5634         (main): Add tests for EBADF.
5635
5636         ftello tests: EBADF tests.
5637         * tests/test-ftello4.sh: New file.
5638         * tests/test-ftello4.c: New file.
5639         * modules/ftello-tests (Files): Add them.
5640         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
5641
5642         fseeko tests: EBADF tests.
5643         * tests/test-fseeko4.sh: New file.
5644         * tests/test-fseeko4.c: New file.
5645         * modules/fseeko-tests (Files): Add them.
5646         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
5647
5648         Tests for function fputc().
5649         * modules/fputc-tests: New file.
5650         * tests/test-fputc.c: New file.
5651         * modules/stdio-tests (Depends-on): Add fputc-tests.
5652
5653         Tests for function fgetc().
5654         * modules/fgetc-tests: New file.
5655         * tests/test-fgetc.c: New file.
5656         * modules/stdio-tests (Depends-on): Add fgetc-tests.
5657
5658         Tests for function fdopen().
5659         * modules/fdopen-tests: New file.
5660         * tests/test-fdopen.c: New file.
5661         * modules/stdio-tests (Depends-on): Add fdopen-tests.
5662
5663         Tests for module 'vdprintf'.
5664         * modules/vdprintf-tests: New file.
5665         * tests/test-vdprintf.c: New file.
5666
5667         Tests for module 'dprintf'.
5668         * modules/dprintf-tests: New file.
5669         * tests/test-dprintf.c: New file.
5670
5671 2011-09-20  Bruno Haible  <bruno@clisp.org>
5672
5673         Tests for module 'ioctl'.
5674         * modules/ioctl-tests: New file.
5675         * tests/test-ioctl.c: New file.
5676
5677 2011-09-20  Bruno Haible  <bruno@clisp.org>
5678
5679         fcntl tests: EBADF tests.
5680         * tests/test-fcntl.c (main): Add more tests for EBADF.
5681
5682 2011-09-20  Bruno Haible  <bruno@clisp.org>
5683
5684         utimensat tests: EBADF tests.
5685         * tests/test-utimensat.c (main): Add tests for EBADF.
5686
5687         renameat tests: EBADF tests.
5688         * tests/test-renameat.c (main): Add tests for EBADF.
5689
5690         mkfifoat tests: EBADF tests.
5691         * tests/test-mkfifoat.c (main): Add tests for EBADF.
5692
5693         readlinkat tests: EBADF tests.
5694         * tests/test-readlinkat.c (main): Add tests for EBADF.
5695
5696         symlinkat tests: EBADF tests.
5697         * tests/test-symlinkat.c (main): Add tests for EBADF.
5698
5699         linkat tests: EBADF tests.
5700         * tests/test-linkat.c (main): Add tests for EBADF.
5701
5702         Tests for module 'faccessat'.
5703         * modules/faccessat-tests: New file.
5704         * tests/test-faccessat.c: New file.
5705
5706         fdopendir tests: EBADF tests.
5707         * tests/test-fdopendir.c (main): Add more tests for EBADF.
5708
5709         openat tests: EBADF tests.
5710         * tests/test-fchownat.c (main): Add tests for EBADF.
5711         * tests/test-fstatat.c (main): Likewise.
5712         * tests/test-mkdirat.c (main): Likewise.
5713         * tests/test-openat.c (main): Likewise.
5714         * tests/test-unlinkat.c (main): Likewise.
5715         * tests/test-fchmodat.c: New file.
5716         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
5717         (Makefile.am): Also run 'test-fchmodat'.
5718
5719 2011-09-20  Bruno Haible  <bruno@clisp.org>
5720
5721         utimens, futimens, fdutimensat tests: EBADF tests.
5722         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
5723
5724         Tests for function fstat().
5725         * modules/fstat-tests: New file.
5726         * tests/test-fstat.c: New file.
5727         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
5728
5729 2011-09-20  Bruno Haible  <bruno@clisp.org>
5730
5731         test-ttyname_r tests: EBADF tests.
5732         * tests/test-ttyname_r.c (main): Add tests for EBADF.
5733
5734         Tests for module 'isatty'.
5735         * modules/isatty-tests: New file.
5736         * tests/test-isatty.c: New file.
5737
5738         Tests for module 'write'.
5739         * modules/write-tests: New file.
5740         * tests/test-write.c: New file.
5741
5742         Tests for module 'read'.
5743         * modules/read-tests: New file.
5744         * tests/test-read.c: New file.
5745
5746         pwrite tests: EBADF tests.
5747         * tests/test-pwrite.c (main): Add tests for EBADF.
5748
5749         pread tests: EBADF tests.
5750         * tests/test-pread.c (main): Add tests for EBADF.
5751
5752         lseek tests: EBADF tests.
5753         * tests/test-lseek.c (main): Add more tests for EBADF.
5754
5755         Tests for module 'ftruncate'.
5756         * modules/ftruncate-tests: New file.
5757         * tests/test-ftruncate.sh: New file.
5758         * tests/test-ftruncate.c: New file.
5759
5760         fsync tests: EBADF tests.
5761         * tests/test-fsync.c (main): Add more tests for EBADF.
5762
5763         fdatasync tests: EBADF tests.
5764         * tests/test-fdatasync.c (main): Add more tests for EBADF.
5765
5766         Tests for module 'fchown'.
5767         * modules/fchown-tests: New file.
5768         * tests/test-fchown.c: New file.
5769
5770         Tests for module 'fchmod'.
5771         * modules/fchmod-tests: New file.
5772         * tests/test-fchmod.c: New file.
5773
5774         fchdir tests: EBADF tests.
5775         * tests/test-fchdir.c (main): Add more tests for EBADF.
5776
5777         dup2 tests: EBADF tests.
5778         * tests/test-dup2.c (main): Add more tests for EBADF.
5779
5780         Tests for module 'dup'.
5781         * modules/dup-tests: New file.
5782         * tests/test-dup.c: New file.
5783
5784         Tests for module 'close'.
5785         * modules/close-tests: New file.
5786         * tests/test-close.c: New file.
5787
5788 2011-09-20  Bruno Haible  <bruno@clisp.org>
5789
5790         Tests for module 'shutdown'.
5791         * modules/shutdown-tests: New file.
5792         * tests/test-shutdown.c: New file.
5793
5794         Tests for module 'setsockopt'.
5795         * modules/setsockopt-tests: New file.
5796         * tests/test-setsockopt.c: New file.
5797
5798         Tests for module 'sendto'.
5799         * modules/sendto-tests: New file.
5800         * tests/test-sendto.c: New file.
5801
5802         Tests for module 'send'.
5803         * modules/send-tests: New file.
5804         * tests/test-send.c: New file.
5805
5806         Tests for module 'recvfrom'.
5807         * modules/recvfrom-tests: New file.
5808         * tests/test-recvfrom.c: New file.
5809
5810         Tests for module 'recv'.
5811         * modules/recv-tests: New file.
5812         * tests/test-recv.c: New file.
5813
5814         Tests for module 'listen'.
5815         * modules/listen-tests: New file.
5816         * tests/test-listen.c: New file.
5817
5818         Tests for module 'getsockopt'.
5819         * modules/getsockopt-tests: New file.
5820         * tests/test-getsockopt.c: New file.
5821
5822         Tests for module 'getsockname'.
5823         * modules/getsockname-tests: New file.
5824         * tests/test-getsockname.c: New file.
5825
5826         Tests for module 'getpeername'.
5827         * modules/getpeername-tests: New file.
5828         * tests/test-getpeername.c: New file.
5829
5830         Tests for module 'connect'.
5831         * modules/connect-tests: New file.
5832         * tests/test-connect.c: New file.
5833
5834         Tests for module 'bind'.
5835         * modules/bind-tests: New file.
5836         * tests/test-bind.c: New file.
5837
5838         accept4 tests: Fix for native Windows.
5839         * tests/test-accept4.c: Include sockets.h.
5840         (main): Invoke gl_sockets_startup.
5841         * modules/accept4-tests (Depends-on): Add sockets.
5842
5843         accept tests: Fix for native Windows.
5844         * tests/test-accept.c: Include sockets.h.
5845         (main): Invoke gl_sockets_startup.
5846         * modules/accept-tests (Depends-on): Add sockets.
5847
5848 2011-09-19  Bruno Haible  <bruno@clisp.org>
5849
5850         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
5851         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
5852         do...while(0).
5853         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
5854         Suggested by Paul Eggert.
5855
5856 2011-09-19  Bruno Haible  <bruno@clisp.org>
5857
5858         sched: Ensure pid_t is defined.
5859         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
5860         not define pid_t.
5861         * lib/sched.in.h: Include <sys/types.h>.
5862         * doc/posix-headers/sched.texi: Mention the pid_t problem.
5863         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5864
5865 2011-09-19  Bruno Haible  <bruno@clisp.org>
5866
5867         msvc-inval: Ensure the entire expansion is a single statement.
5868         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
5869         of braces.
5870
5871 2011-09-19  Jim Meyering  <meyering@redhat.com>
5872
5873         tests: use printf, not echo in init.sh's warn_ function
5874         * tests/init.sh (warn_): Use printf, not echo.  The latter would
5875         misbehave when given strings containing a backslash or starting
5876         with e.g., -n.  James Youngman suggested setting IFS.
5877
5878 2011-09-19  Eric Blake  <eblake@redhat.com>
5879
5880         futimens: enhance test
5881         * tests/test-futimens.h (test_futimens): Also check for EBADF on
5882         closed non-negative fd.
5883
5884         date: accept 'hence' as opposite of 'ago'
5885         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
5886         * tests/test-parse-datetime.c (main): Enhance test.
5887         Suggested by Jesse Wilson.
5888
5889 2011-09-19  Jim Meyering  <meyering@redhat.com>
5890
5891         getcwd: don't fail in a deep directory on a system without openat
5892         Before this change, getcwd would fail when called from a directory
5893         of depth PATH_MAX / 3 or greater.  That was due to the fact that
5894         the non-openat implementation used "..", "../..", "../../..", etc.
5895         to access ancestor directories.  With too many, that string would
5896         be longer than PATH_MAX.
5897         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
5898         using gnulib's openat replacement.
5899         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
5900         we're using the replacement function.
5901
5902 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
5903
5904         maint.mk: avoid warnings from perl about missing files
5905         * top/maint.mk (def_sym_regex): Ignore files listed in
5906         $(gl_other_headers_) that do not exist, say because a project
5907         does not use a corresponding module.
5908
5909 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5910
5911         stat: use pathmax.h only if needed
5912         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
5913         This is better for Emacs, which does not have a mingw port and
5914         therefore can avoid the pathmax module.
5915
5916         utimens: remove dependency on dup2
5917         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
5918         to work around the Linux kernel bug.
5919         * modules/utimens (Depends-on): Remove dup2.
5920
5921 2011-09-18  Bruno Haible  <bruno@clisp.org>
5922
5923         inet_ntop, inet_pton: Look for it also in libresolv.
5924         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
5925         libnsl, search for it in libresolv.
5926         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5927         Needed on Solaris 7.
5928
5929 2011-09-18  Bruno Haible  <bruno@clisp.org>
5930
5931         accept, accept4 tests: Avoid link error on Solaris.
5932         * modules/accept-tests (Makefile.am): Link test-accept against
5933         $(LIBSOCKET).
5934         * modules/accept4-tests (Makefile.am): Link test-accept4 against
5935         $(LIBSOCKET).
5936
5937         accept4: Avoid link error on Solaris.
5938         * modules/accept4 (Link): New section.
5939
5940         socket functions: Avoid link errors on Solaris.
5941         * modules/accept (Depends-on): Add socketlib.
5942         (Link): New section.
5943         * modules/bind (Depends-on): Add socketlib.
5944         (Link): New section.
5945         * modules/connect (Depends-on): Add socketlib.
5946         (Link): New section.
5947         * modules/getpeername (Depends-on): Add socketlib.
5948         (Link): New section.
5949         * modules/getsockname (Depends-on): Add socketlib.
5950         (Link): New section.
5951         * modules/getsockopt (Depends-on): Add socketlib.
5952         (Link): New section.
5953         * modules/listen (Depends-on): Add socketlib.
5954         (Link): New section.
5955         * modules/recv (Depends-on): Add socketlib.
5956         (Link): New section.
5957         * modules/recvfrom (Depends-on): Add socketlib.
5958         (Link): New section.
5959         * modules/send (Depends-on): Add socketlib.
5960         (Link): New section.
5961         * modules/sendto (Depends-on): Add socketlib.
5962         (Link): New section.
5963         * modules/setsockopt (Depends-on): Add socketlib.
5964         (Link): New section.
5965         * modules/shutdown (Depends-on): Add socketlib.
5966         (Link): New section.
5967         * modules/socket (Depends-on): Add socketlib.
5968         (Link): New section.
5969
5970 2011-09-18  Bruno Haible  <bruno@clisp.org>
5971
5972         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
5973         * tests/test-ptsname.c (main): Terminate the test if it takes longer
5974         than 5 seconds.
5975         * modules/ptsname-tests (configure.ac): Test for alarm.
5976
5977 2011-09-18  Bruno Haible  <bruno@clisp.org>
5978
5979         posix_spawn_file_actions_add*: Fix module dependencies.
5980         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
5981         posix_spawn_file_actions_init.
5982         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
5983         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
5984
5985 2011-09-18  Bruno Haible  <bruno@clisp.org>
5986
5987         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
5988         * tests/test-rename.h (test_rename): Allow error code EEXIST.
5989         * tests/test-renameat.c (main): Likewise.
5990
5991 2011-09-18  Bruno Haible  <bruno@clisp.org>
5992
5993         Tests for module 'accept4'.
5994         * modules/accept4-tests: New file.
5995         * tests/test-accept4.c: New file.
5996
5997 2011-09-18  Bruno Haible  <bruno@clisp.org>
5998
5999         Tests for module 'accept'.
6000         * modules/accept-tests: New file.
6001         * tests/test-accept.c: New file.
6002
6003 2011-09-18  Bruno Haible  <bruno@clisp.org>
6004
6005         dup2: Support for MSVC.
6006         * lib/dup2.c: Include msvc-inval.h.
6007         (rpl_dup2): Handle invalid parameter notifications during dup2 and
6008         _get_osfhandle calls.
6009         * modules/dup2 (Depends-on): Add msvc-inval.
6010         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
6011
6012         New module 'msvc-inval'.
6013         * lib/msvc-inval.h: New file.
6014         * lib/msvc-inval.c: New file.
6015         * m4/msvc-inval.m4: New file.
6016         * modules/msvc-inval: New file.
6017
6018 2011-09-17  Bruno Haible  <bruno@clisp.org>
6019
6020         Tests for module 'pclose'.
6021         * modules/pclose-tests: New file.
6022
6023         New module 'pclose'.
6024         * lib/stdio.in.h (pclose): New declaration.
6025         * lib/pclose.c: New file.
6026         * m4/pclose.m4: New file.
6027         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
6028         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
6029         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
6030         * modules/pclose: New file.
6031         * modules/popen-tests (Depends-on): Add pclose.
6032         * modules/popen-safer-tests (Depends-on): Likewise.
6033         * doc/posix-functions/pclose.texi: Mention the new module.
6034
6035 2011-09-17  Bruno Haible  <bruno@clisp.org>
6036
6037         popen: Support for MSVC.
6038         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
6039         * lib/popen.c (popen): Provide alternate definition for native Windows.
6040         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
6041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
6042         * modules/popen (Depends-on, configure.ac): Update condition.
6043         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
6044         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
6045         fixed.
6046
6047 2011-09-17  Bruno Haible  <bruno@clisp.org>
6048
6049         isnanl, isnand, isnanf: Work around MSVC bug.
6050         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
6051
6052 2011-09-17  Bruno Haible  <bruno@clisp.org>
6053
6054         sys_socket tests: Fix recent mistake.
6055         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
6056
6057 2011-09-17  Bruno Haible  <bruno@clisp.org>
6058
6059         putenv: Support for MSVC.
6060         * modules/putenv (Depends-on): Add environ.
6061         * lib/putenv.c (environ): Disable declaration.
6062         * lib/unistd.in.h: Update comment.
6063
6064 2011-09-17  Bruno Haible  <bruno@clisp.org>
6065
6066         math: Avoid macro redefinition warnings on MSVC.
6067         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
6068         Undefine before redefining.
6069
6070 2011-09-17  Bruno Haible  <bruno@clisp.org>
6071
6072         doc: Mention functions which are declared as macros.
6073         * doc/posix-functions/*[fl].texi: Mention that some functions are
6074         defined as macros with arguments only.
6075
6076 2011-09-17  Bruno Haible  <bruno@clisp.org>
6077
6078         Add dependencies to new dirent related modules.
6079         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
6080         * modules/fts (Depends-on): Likewise.
6081         * modules/glob (Depends-on): Likewise.
6082         * modules/savedir (Depends-on): Likewise.
6083         * modules/scandir (Depends-on): Likewise.
6084         * modules/dirent-safer (Depends-on): Add opendir, closedir.
6085         * modules/fdopendir (Depends-on): Add opendir.
6086
6087 2011-09-17  Bruno Haible  <bruno@clisp.org>
6088
6089         inet_pton: Support for MSVC on Windows Vista or newer.
6090         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
6091         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
6092         HAVE_DECL_INET_PTON is defined.
6093         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6094         On platforms with <winsock2.h>, test whether inet_pton is declared in
6095         <ws2tcpip.h>. If so, arrange to replace it.
6096         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6097         REPLACE_INET_PTON.
6098         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
6099         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
6100         (Depends-on, configure.ac): Update condition.
6101         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
6102
6103 2011-09-17  Bruno Haible  <bruno@clisp.org>
6104
6105         inet_ntop: Support for MSVC on Windows Vista or newer.
6106         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
6107         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
6108         HAVE_DECL_INET_NTOP is defined.
6109         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6110         On platforms with <winsock2.h>, test whether inet_ntop is declared in
6111         <ws2tcpip.h>. If so, arrange to replace it.
6112         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6113         REPLACE_INET_NTOP.
6114         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
6115         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
6116         (Depends-on, configure.ac): Update condition.
6117         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
6118
6119 2011-09-16  Eric Blake  <eblake@redhat.com>
6120
6121         test-fsync: yet another enhancement
6122         * tests/test-fsync.c (main): Also test behavior on read-only text
6123         file.
6124
6125 2011-09-16  Bruno Haible  <bruno@clisp.org>
6126
6127         Enhance fsync, fdatasync tests.
6128         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
6129         * tests/test-fdatasync.c (main): Likewise.
6130
6131 2011-09-16  Bruno Haible  <bruno@clisp.org>
6132
6133         Support for MSVC compiler: Ensure mode_t gets defined.
6134         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
6135         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6136         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6137         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
6138         * tests/test-fcntl-h.c: Check that mode_t is defined.
6139         * tests/test-sys_stat.c: Likewise.
6140         * tests/test-sys_types.c: Likewise.
6141         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
6142         * doc/posix-headers/sys_stat.texi: Likewise.
6143         * doc/posix-headers/sys_types.texi: Likewise.
6144
6145 2011-09-16  Bruno Haible  <bruno@clisp.org>
6146
6147         sys_stat: Support for MSVC.
6148         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
6149         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
6150         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
6151         MSVC.
6152
6153 2011-09-16  Bruno Haible  <bruno@clisp.org>
6154
6155         Support for MSVC compiler: Ensure off_t gets defined.
6156         * lib/unistd.in.h: Include <sys/types.h>.
6157         * tests/test-fcntl-h.c: Check that off_t is defined.
6158         * tests/test-sys_stat.c: Likewise.
6159         * tests/test-sys_types.c: Likewise.
6160
6161 2011-09-16  Eric Blake  <eblake@redhat.com>
6162
6163         fdatasync: port to Solaris
6164         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
6165         * modules/fdatasync (Link): Document it.
6166         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
6167
6168         fdatasync: port to MacOS X 10.7
6169         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
6170         declared.
6171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
6172         * modules/unistd (Makefile.am): Substitute it.
6173         * lib/unistd.in.h (fdatasync): Declare on MacOS.
6174         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
6175
6176         fdatasync: minor improvements
6177         * modules/fdatasync (Depends-on): Add condition for fsync.
6178         * lib/fdatasync.c (fdatasync): Add comment.
6179         * tests/test-unistd-c++.cc: Test fdatasync.
6180
6181         unistd: update refs to newer POSIX
6182         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
6183         Suggested by Bruno Haible.
6184
6185         fdatasync: new module
6186         * modules/fsync (Description): Document difference to fdatasync.
6187         * modules/fdatasync: New module.
6188         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
6189         * lib/fdatasync.c (fdatasync): Likewise.
6190         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
6191         defaults.
6192         * modules/unistd (Makefile.am): Set witnesses.
6193         * lib/unistd.in.h (fdatasync): Declare.
6194         * MODULES.html.sh: Document it.
6195         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
6196         * modules/fdatasync-tests: New test.
6197         * tests/test-fdatasync.c: Likewise.
6198
6199 2011-09-16  Eric Blake  <eblake@redhat.com>
6200
6201         test-fsync: enhance tests
6202         * modules/fsync-tests (Depends-on): Add errno, for mingw.
6203         * tests/test-fsync.c (main): Enhance test.
6204
6205 2011-09-15  Bruno Haible  <bruno@clisp.org>
6206
6207         Support for MSVC compiler: Ensure ssize_t gets defined.
6208         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
6209         * doc/posix-headers/stdio.texi: Likewise.
6210         * modules/stdio (Depends-on): Add ssize_t.
6211         * modules/sys_socket (Depends-on): Likewise.
6212         * modules/sys_types (Depends-on): Likewise.
6213         * modules/sys_uio (Depends-on): Likewise.
6214         * modules/unistd (Depends-on): Likewise.
6215         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
6216         * tests/test-sys_types.c: Check that ssize_t is defined.
6217
6218 2011-09-14  Bruno Haible  <bruno@clisp.org>
6219
6220         Avoid using #, the m4 comment starter character, near brackets.
6221         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
6222         delimiter character in sed expressions.
6223         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6224         Suggested by Eric Blake.
6225
6226         Properly quote AC_CHECK_DECLS' 4th argument.
6227         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
6228         argument.
6229         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6230         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6231         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6232         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6233         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6234         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
6235         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
6236         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
6237         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
6238         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6239         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
6240         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6241         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6242         * m4/isinf.m4 (gl_ISINF): Likewise.
6243         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6244         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6245         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6246         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6247         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6248         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6249         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6250         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6251         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
6252         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6253         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6254         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6255         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
6256         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6257         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6258         Reported by Eric Blake.
6259
6260         Properly quote AC_CHECK_DECL's 4th argument.
6261         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
6262         argument.
6263         * m4/argp.m4 (gl_ARGP): Likewise.
6264         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6265         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6266         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6267         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6268         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
6269         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
6270         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6271         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6272         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6273         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6274         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6275         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6276         Reported by Eric Blake.
6277
6278 2011-09-14  Eric Blake  <eblake@redhat.com>
6279
6280         opendir: avoid compile warning
6281         * lib/opendir.c (includes): Always include errno.h.
6282         Reported by Tatsuro MATSUOKA.
6283
6284 2011-09-14  Jim Meyering  <meyering@redhat.com>
6285
6286         maint.mk: sc_tight_scope: propagate failure from sub-make
6287         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
6288         Reported by Martin von Gagern.
6289
6290 2011-09-13  Bruno Haible  <bruno@clisp.org>
6291
6292         tempname: Support for MSVC.
6293         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
6294         MSVC.
6295         * modules/tempname (Depends-on): Add fcntl-h.
6296
6297 2011-09-13  Bruno Haible  <bruno@clisp.org>
6298
6299         sys_time: Support for MSVC.
6300         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
6301         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
6302         include <winsock2.h>.
6303         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
6304         function declarations that collide with POSIX.
6305         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
6306         (Makefile.am): Substitute HAVE_WINSOCK2_H.
6307
6308 2011-09-13  Bruno Haible  <bruno@clisp.org>
6309
6310         stat: Support for MSVC.
6311         * lib/stat.c: Include pathmax.h.
6312         * modules/stat (Depends-on): Add pathmax.
6313
6314         pathmax: Support for native Windows.
6315         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
6316
6317 2011-09-12  Bruno Haible  <bruno@clisp.org>
6318
6319         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
6320         * lib/dirent.in.h (struct dirent): New type.
6321         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
6322         DT_WHT): New macros.
6323         (DIR): New type.
6324         (opendir, closedir): Declare only if the module 'opendir' is enabled.
6325         (readdir, rewinddir): New declarations.
6326         * lib/dirent-private.h: New file.
6327         * lib/opendir.c: New file.
6328         * lib/readdir.c: New file.
6329         * lib/rewinddir.c: New file.
6330         * lib/closedir.c: New file.
6331         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
6332         * m4/opendir.m4: New file.
6333         * m4/readdir.m4: New file.
6334         * m4/rewinddir.m4: New file.
6335         * m4/closedir.m4: New file.
6336         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
6337         REPLACE_CLOSEDIR here.
6338         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
6339         readdir, rewinddir are declared.
6340         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
6341         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
6342         HAVE_REWINDDIR, HAVE_CLOSEDIR.
6343         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
6344         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
6345         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
6346         * modules/opendir: New file.
6347         * modules/readdir: New file.
6348         * modules/rewinddir: New file.
6349         * modules/closedir: New file.
6350         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
6351         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
6352         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
6353         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
6354         * NEWS: Mention the 'fchdir' change.
6355
6356 2011-09-11  Bruno Haible  <bruno@clisp.org>
6357
6358         asm-underscore.m4: Support for MSVC.
6359         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
6360         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
6361
6362 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
6363
6364         Doc about crypt functions.
6365         * doc/posix-functions/crypt.texi: Expand range of glibc versions
6366         needing for _GNU_SOURCE to get crypt.
6367         * doc/posix-functions/encrypt.texi: Likewise.
6368         * doc/posix-functions/setkey.texi: Likewise.
6369
6370 2011-09-11  Bruno Haible  <bruno@clisp.org>
6371
6372         doc: Update regarding MSVC 9.
6373         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
6374         tested".
6375         * doc/posix-functions/*.texi: Update with info about MSVC 9.
6376         * doc/posix-headers/*.texi: Likewise.
6377         * doc/pastposix-functions/*.texi: Likewise.
6378         * doc/glibc-functions/*.texi: Likewise.
6379         * doc/glibc-headers/*.texi: Likewise.
6380
6381 2011-09-11  Bruno Haible  <bruno@clisp.org>
6382
6383         unistd et al.: Don't assume <unistd.h> exists.
6384         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
6385         does not exist.
6386         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
6387         exist. But include <stdlib.h>.
6388         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
6389         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
6390         symlink() does not exist.
6391         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
6392         include <io.h> instead.
6393         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
6394         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
6395         include <direct.h> instead.
6396         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6397         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6398         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
6399         <io.h> instead.
6400         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
6401         correctly if the system does not have hard links.
6402         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
6403         <direct.h> instead.
6404         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
6405         it when looking for function declarations.
6406         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
6407         <direct.h> and <io.h> instead.
6408         * doc/posix-headers/unistd.texi: More details about MSVC problem.
6409
6410 2011-09-11  Bruno Haible  <bruno@clisp.org>
6411
6412         strcase: Support for MSVC.
6413         * modules/strcase (Status, Notice): Remove obsoletion mark.
6414         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
6415         * doc/posix-functions/strncasecmp.texi: Likewise.
6416
6417         strings: Don't assume <strings.h> exists.
6418         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
6419         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
6420         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
6421         * doc/posix-headers/strings.texi: Mention the MSVC problem.
6422
6423 2011-09-11  Bruno Haible  <bruno@clisp.org>
6424
6425         dirent: Don't assume <dirent.h> exists.
6426         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
6427         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
6428         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
6429         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
6430
6431 2011-09-11  Bruno Haible  <bruno@clisp.org>
6432
6433         Fix wint_t on MSVC.
6434         * lib/wchar.in.h (wint_t): On MSVC, override it.
6435         * lib/wctype.in.h (wint_t): Likewise.
6436         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
6437         MSVC.
6438         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
6439         * doc/posix-headers/wctype.texi: Likewise.
6440
6441 2011-09-11  Bruno Haible  <bruno@clisp.org>
6442
6443         sys_types: Fix typo.
6444         * lib/sys_types.in.h: Fix typo in comment.
6445         Reported by Paul Eggert.
6446
6447         Support for MSVC compiler: Ensure size_t gets defined.
6448         * modules/strings (Depends-on): Add 'sys_types'.
6449         * modules/sys_uio (Depends-on): Likewise.
6450         * lib/sys_uio.in.h: Update comment.
6451
6452         C++ tests for module 'sys_types'.
6453         * modules/sys_types-c++-tests: New file.
6454         * tests/test-sys_types-c++.cc: New file.
6455
6456         Tests for module 'sys_types'.
6457         * modules/sys_types-tests: New file.
6458         * tests/test-sys_types.c: New file.
6459
6460         New module 'sys_types'.
6461         * lib/sys_types.in.h: New file.
6462         * m4/sys_types_h.m4: New file.
6463         * modules/sys_types: New file.
6464         * doc/posix-headers/sys_types.texi: Mention the new module and the
6465         size_t problem on MSVC 9.
6466
6467 2011-09-11  Bruno Haible  <bruno@clisp.org>
6468
6469         Support for MSVC compiler: Avoid division by a literal 0.
6470         * lib/math.in.h (NAN): Define through a function call also on MSVC.
6471         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
6472         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
6473         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
6474         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
6475         * tests/infinity.h: New file.
6476         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
6477         on MSVC.
6478         * tests/test-ceilf1.c: Include infinity.h.
6479         (main): Use Infinityf.
6480         * tests/test-ceil1.c: Include infinity.h.
6481         (main): Use Infinityd.
6482         * tests/test-ceill.c: Include infinity.h.
6483         (main): Use Infinityl.
6484         * tests/test-dprintf-posix.c: Include infinity.h.
6485         (test_function): Use Infinityd.
6486         * tests/test-floorf1.c: Include infinity.h.
6487         (main): Use Infinityf.
6488         * tests/test-floor1.c: Include infinity.h.
6489         (main): Use Infinityd.
6490         * tests/test-floorl.c: Include infinity.h.
6491         (main): Use Infinityl.
6492         * tests/test-fprintf-posix.c: Include infinity.h.
6493         (test_function): Use Infinityd.
6494         * tests/test-frexp.c: Include infinity.h.
6495         (main): Use Infinityd.
6496         * tests/test-frexpl.c: Include infinity.h.
6497         (main): Use Infinityl.
6498         * tests/test-isfinite.c: Include infinity.h.
6499         (test_isfinitef): Use Infinityf.
6500         (test_isfinited): Use Infinityd.
6501         (test_isfinitel): Use Infinityl.
6502         * tests/test-isinf.c: Include infinity.h.
6503         (test_isinff): Use Infinityf.
6504         (test_isinfd): Use Infinityd.
6505         (test_isinfl): Use Infinityl.
6506         * tests/test-isnan.c: Include infinity.h.
6507         (test_float): Use Infinityf.
6508         (test_double): Use Infinityd.
6509         (test_long_double): Use Infinityl.
6510         * tests/test-isnanf.h: Include infinity.h.
6511         (main): Use Infinityf.
6512         * tests/test-isnand.h: Include infinity.h.
6513         (main): Use Infinityd.
6514         * tests/test-isnanl.h: Include infinity.h.
6515         (main): Use Infinityl.
6516         * tests/test-ldexpl.c: Include infinity.h.
6517         (main): Use Infinityl.
6518         * tests/test-printf-posix.h: Include infinity.h.
6519         (test_function): Use Infinityd.
6520         * tests/test-roundf1.c: Include infinity.h.
6521         (main): Use Infinityf.
6522         * tests/test-round1.c: Include infinity.h.
6523         (main): Use Infinityd.
6524         * tests/test-roundl.c: Include infinity.h.
6525         (main): Use Infinityl.
6526         * tests/test-signbit.c: Include infinity.h.
6527         (test_signbitf): Use Infinityf.
6528         (test_signbitd): Use Infinityd.
6529         (test_signbitl): Use Infinityl.
6530         * tests/test-snprintf-posix.h: Include infinity.h.
6531         (test_function): Use Infinityd, Infinityl.
6532         * tests/test-sprintf-posix.h: Include infinity.h.
6533         (test_function): Use Infinityd, Infinityl.
6534         * tests/test-truncf1.c: Include infinity.h.
6535         (main): Use Infinityf.
6536         * tests/test-trunc1.c: Include infinity.h.
6537         (main): Use Infinityd.
6538         * tests/test-truncl.c: Include infinity.h.
6539         (main): Use Infinityl.
6540         * tests/test-vasnprintf-posix.c: Include infinity.h.
6541         (test_function): Use Infinityd, Infinityl.
6542         * tests/test-vasprintf-posix.c: Include infinity.h.
6543         (test_function): Use Infinityd, Infinityl.
6544         * modules/ceilf-tests (Files): Add tests/infinity.h.
6545         * modules/ceil-tests (Files): Likewise.
6546         * modules/ceill-tests (Files): Likewise.
6547         * modules/dprintf-posix-tests (Files): Likewise.
6548         * modules/floorf-tests (Files): Likewise.
6549         * modules/floor-tests (Files): Likewise.
6550         * modules/floorl-tests (Files): Likewise.
6551         * modules/fprintf-posix-tests (Files): Likewise.
6552         * modules/frexp-tests (Files): Likewise.
6553         * modules/frexp-nolibm-tests (Files): Likewise.
6554         * modules/frexpl-tests (Files): Likewise.
6555         * modules/frexpl-nolibm-tests (Files): Likewise.
6556         * modules/isfinite-tests (Files): Likewise.
6557         * modules/isinf-tests (Files): Likewise.
6558         * modules/isnan-tests (Files): Likewise.
6559         * modules/isnanf-tests (Files): Likewise.
6560         * modules/isnanf-nolibm-tests (Files): Likewise.
6561         * modules/isnand-tests (Files): Likewise.
6562         * modules/isnand-nolibm-tests (Files): Likewise.
6563         * modules/isnanl-tests (Files): Likewise.
6564         * modules/isnanl-nolibm-tests (Files): Likewise.
6565         * modules/ldexpl-tests (Files): Likewise.
6566         * modules/printf-posix-tests (Files): Likewise.
6567         * modules/roundf-tests (Files): Likewise.
6568         * modules/round-tests (Files): Likewise.
6569         * modules/roundl-tests (Files): Likewise.
6570         * modules/signbit-tests (Files): Likewise.
6571         * modules/snprintf-posix-tests (Files): Likewise.
6572         * modules/sprintf-posix-tests (Files): Likewise.
6573         * modules/truncf-tests (Files): Likewise.
6574         * modules/trunc-tests (Files): Likewise.
6575         * modules/truncl-tests (Files): Likewise.
6576         * modules/vasnprintf-posix-tests (Files): Likewise.
6577         * modules/vasprintf-posix-tests (Files): Likewise.
6578         * modules/vdprintf-posix-tests (Files): Likewise.
6579         * modules/vfprintf-posix-tests (Files): Likewise.
6580         * modules/vprintf-posix-tests (Files): Likewise.
6581         * modules/vsnprintf-posix-tests (Files): Likewise.
6582         * modules/vsprintf-posix-tests (Files): Likewise.
6583         * modules/xprintf-posix-tests (Files): Likewise.
6584
6585 2011-09-11  Bruno Haible  <bruno@clisp.org>
6586
6587         Ensure pid_t gets defined.
6588         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
6589         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6590         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6591         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6592         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6593         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6594         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6595         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6596         * tests/test-fcntl-h.c: Check that pid_t is defined.
6597         * tests/test-sched.c: Likewise.
6598         * tests/test-termios.c: Likewise.
6599         * tests/test-time.c: Likewise.
6600         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
6601         * doc/posix-headers/signal.texi: Likewise.
6602         * doc/posix-headers/sys_types.texi: Likewise.
6603         * doc/posix-headers/time.texi: Likewise.
6604
6605 2011-09-11  Bruno Haible  <bruno@clisp.org>
6606
6607         acl: Fix compilation on Solaris 10 (older version).
6608         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
6609         of ACE_EVERYONE.
6610         * lib/set-mode-acl.c (qset_acl): Likewise.
6611         Reported by Christian Jullien <eligis@orange.fr>.
6612
6613 2011-09-10  Bruno Haible  <bruno@clisp.org>
6614
6615         iconv, unsetenv: Add support for MSVC compiler.
6616         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
6617         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
6618
6619 2011-09-10  Bruno Haible  <bruno@clisp.org>
6620
6621         *printf: Add support for MSVC compiler.
6622         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
6623         handles the exception caused by the %n directive. When cross-compiling,
6624         guess no on native Windows.
6625         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6626         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
6627         emulate it through vsnprintf.
6628         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
6629         * doc/posix-functions/dprintf.texi: Update documentation regarding
6630         MSVC 9.
6631         * doc/posix-functions/fprintf.texi: Likewise.
6632         * doc/posix-functions/printf.texi: Likewise.
6633         * doc/posix-functions/snprintf.texi: Likewise.
6634         * doc/posix-functions/sprintf.texi: Likewise.
6635         * doc/posix-functions/swprintf.texi: Likewise.
6636         * doc/posix-functions/vdprintf.texi: Likewise.
6637         * doc/posix-functions/vfprintf.texi: Likewise.
6638         * doc/posix-functions/vprintf.texi: Likewise.
6639         * doc/posix-functions/vsnprintf.texi: Likewise.
6640         * doc/posix-functions/vsprintf.texi: Likewise.
6641         * doc/glibc-functions/asprintf.texi: Likewise.
6642         * doc/glibc-functions/obstack_printf.texi: Likewise.
6643         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6644         * doc/glibc-functions/vasprintf.texi: Likewise.
6645
6646 2011-09-10  Bruno Haible  <bruno@clisp.org>
6647
6648         nocrash: Add support for native Windows.
6649         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
6650
6651 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
6652             Bruno Haible  <bruno@clisp.org>
6653
6654         absolute-header, include-next: Add support for MSVC compiler.
6655         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
6656         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
6657         directory separator in #line directives.
6658         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
6659         recognize also backslash as directory separator in #line directives.
6660
6661 2011-09-08  Jim Meyering  <meyering@redhat.com>
6662
6663         maint.mk: mark the post-release commit log with "maint: " prefix
6664         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
6665         one-line commit-log summary.
6666
6667 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
6668             Bruno Haible  <bruno@clisp.org>
6669
6670         Doc about crypt functions.
6671         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
6672         systems.
6673         * doc/posix-functions/encrypt.texi: Likewise.
6674         * doc/posix-functions/setkey.texi: Likewise.
6675
6676 2011-09-08  Simon Josefsson  <simon@josefsson.org>
6677
6678         * lib/gc.h: Fix copyright header.
6679
6680 2011-09-07  Bruno Haible  <bruno@clisp.org>
6681
6682         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
6683         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
6684         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
6685
6686 2011-09-07  Bruno Haible  <bruno@clisp.org>
6687
6688         openat: Work around compilation error with OSF/1 5.1 DTK cc.
6689         * lib/fopen.c: Use different syntax for include of <stdio.h>.
6690         * lib/freopen.c: Likewise.
6691         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
6692         * lib/lstat.c: Likewise.
6693         * lib/stat.c: Likewise.
6694         * lib/open.c: Use different syntax for include of <fcntl.h>.
6695         * lib/openat.c: Include fcntl.h again, explicitly.
6696
6697 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
6698
6699         parse-datetime: document the newly accepted format
6700         * doc/parse-datetime.texi (Combined date and time of day items):
6701         New section.
6702
6703 2011-09-06  Bruno Haible  <bruno@clisp.org>
6704
6705         acl: Fix a test failure on newer Solaris 10 with ZFS.
6706         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
6707         ENOSYS as no ACL.
6708         Reported by Jim Meyering.
6709
6710 2011-09-06  Bruno Haible  <bruno@clisp.org>
6711
6712         acl: Update for AIX >= 5.3 with NFS.
6713         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
6714         ENOSYS as no ACL.
6715
6716         acl: Fix a test failure on AIX >= 5.3 with NFS.
6717         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
6718         as no ACL.
6719
6720 2011-09-06  Bruno Haible  <bruno@clisp.org>
6721
6722         acl: Fix a test failure on IRIX 6.5 with NFS.
6723         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
6724         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
6725         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
6726         * lib/copy-acl.c (qcopy_acl): Likewise.
6727
6728 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6729
6730         openat: port to AIX 7.1 with large files
6731         AIX 7.1 does a "#define openat open64at" if large files are in use,
6732         so we can't simply #undef openat.  Use the orig_openat trick (similar
6733         to orig_open in lib/open.c) to work around the problem.  Problem
6734         reported by Kevin Brott for GNU tar, in the thread containing
6735         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
6736         * lib/openat.c (__need_system_fcntl_h): Define first.
6737         Include <fcntl.h> and <sys/types.h> before undefining.
6738         (orig_openat) [HAVE_OPENAT]: New inline function.
6739         (openat) [HAVE_OPENAT]: Do not undef.
6740         (rpl_openat): Use orig_openat, not openat.
6741
6742 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6743             Bruno Haible  <bruno@clisp.org>
6744
6745         acl: Avoid errors on NonStop Kernel.
6746         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
6747         ENOTSUP errors.
6748
6749 2011-09-05  Bruno Haible  <bruno@clisp.org>
6750
6751         acl: Clean up Solaris code.
6752         * lib/acl-internal.h: Remove no-op #if.
6753         * lib/file-has-acl.c: Likewise.
6754         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
6755         * lib/copy-acl.c (qcopy_acl): Likewise.
6756
6757 2011-09-05  Bruno Haible  <bruno@clisp.org>
6758
6759         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
6760         binaries built on the original Solaris 10.
6761         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
6762         trivial.
6763
6764 2011-09-05  Bruno Haible  <bruno@clisp.org>
6765
6766         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6767         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
6768         10.
6769         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
6770         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
6771         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
6772         instead of acl_get, facl_get, acl_set, facl_set.
6773
6774 2011-09-05  Bruno Haible  <bruno@clisp.org>
6775
6776         copy-file: Try unit tests on more file systems.
6777         * tests/test-copy-file-1.sh: New file.
6778         * tests/test-copy-file-2.sh: New file.
6779         * modules/copy-file-tests (Files): Add them.
6780         (Makefile.am): Add them to TESTS.
6781
6782         acl: Try unit tests on more file systems.
6783         * tests/test-file-has-acl-1.sh: New file.
6784         * tests/test-file-has-acl-2.sh: New file.
6785         * tests/test-set-mode-acl-1.sh: New file.
6786         * tests/test-set-mode-acl-2.sh: New file.
6787         * tests/test-copy-acl-1.sh: New file.
6788         * tests/test-copy-acl-2.sh: New file.
6789         * modules/acl-tests (Files): Add them.
6790         (Makefile.am): Add them to TESTS.
6791
6792 2011-09-04  Bruno Haible  <bruno@clisp.org>
6793
6794         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6795         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
6796         10.
6797         (OLD_ALLOW, OLD_DENY): New macros.
6798         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
6799         ACE_ACCESS_ALLOWED_ACE_TYPE.
6800         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
6801         ACE_ACCESS_DENIED_ACE_TYPE.
6802         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
6803         (NEW_ACE_EXECUTE): Fix value.
6804         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
6805         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
6806         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
6807         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
6808         NEW_ACE_SYNCHRONIZE): New macros.
6809         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
6810         instead of acl_fromtext, acl_set, facl_set.
6811         Fixes a coreutils/tests/cp/perm failure.
6812
6813 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
6814
6815         openat: test for fstatat (..., 0) bug
6816         Further testing with tar suggests that fstatat (..., 0)
6817         does not work in general, on AIX 7.1; see
6818         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
6819         So, give up entirely on AIX 7.1's fstatat, and fall back on our
6820         replacement fstatat (which is what older AIX releases were using
6821         anyway).
6822         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
6823         use is now changed to orig_fstatat.  This was probably the right
6824         thing to do anyway.
6825         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
6826         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
6827         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
6828         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
6829         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
6830         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
6831         if the bug is found.
6832
6833         openat: test for fstatat (AT_FDCWD, ..., 0) bug
6834         This tests for another fstatat bug on AIX 7.1:
6835         fstatat (AT_FDCWD, ..., 0) does not work.  See
6836         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
6837         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
6838         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
6839         (rpl_fstatat): Adjust so that it works around either (or both)
6840         bugs if present.
6841         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
6842
6843 2011-09-03  Karl Berry  <karl@gnu.org>
6844
6845         * doc/regex.texi (Character Class Operators): Avoid literal ":"
6846         in index entries.
6847
6848 2011-09-02  Bruno Haible  <bruno@clisp.org>
6849
6850         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
6851         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
6852         values of AR, ARFLAGS, RANLIB.
6853         Reported by John W. Eaton <jwe@gnu.org> for Octave.
6854
6855 2011-09-02  Bruno Haible  <bruno@clisp.org>
6856
6857         Find 'ar' program that fits with --host argument.
6858         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
6859
6860 2011-09-02  Bruno Haible  <bruno@clisp.org>
6861
6862         tests: init.sh: Support any non-GNU diff.
6863         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
6864         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
6865         Solaris 8.
6866
6867 2011-09-02  Bruno Haible  <bruno@clisp.org>
6868
6869         tests: init.sh: work also with any non-GNU diff that supports -u
6870         * tests/init.sh: Relax check for diff -u support.
6871         Rather than checking for GNU diff via --version, simply check
6872         for support for -u itself.  Useful at least on OpenBSD 4.9,
6873         AIX 7.1, IRIX 6.5, and Solaris 10.
6874
6875 2011-09-01  Bruno Haible  <bruno@clisp.org>
6876
6877         strtoimax, strtoumax: Document problem on HP-UX 11.
6878         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
6879         * doc/posix-functions/strtoumax.texi: Likewise.
6880
6881 2011-09-01  Bruno Haible  <bruno@clisp.org>
6882
6883         strtoumax: Avoid link error on OSF/1 with DTK cc.
6884         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
6885         defined as a function.
6886         * modules/strtoumax (Depends-on, configure.ac): Test only whether
6887         strtoumax is defined, not whether it is declared.
6888
6889 2011-09-01  Bruno Haible  <bruno@clisp.org>
6890
6891         strtoimax: Avoid link error on OSF/1 with DTK cc.
6892         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
6893         defined as a function.
6894         * modules/strtoimax (Depends-on, configure.ac): Test only whether
6895         strtoimax is defined, not whether it is declared.
6896
6897 2011-09-01  Bruno Haible  <bruno@clisp.org>
6898
6899         imaxdiv: Avoid link error on OSF/1 with DTK cc.
6900         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
6901         as a function.
6902         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
6903         whether it is declared.
6904
6905 2011-09-01  Bruno Haible  <bruno@clisp.org>
6906
6907         imaxabs: Avoid link error on OSF/1 with DTK cc.
6908         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
6909         as a function.
6910         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
6911         whether it is declared.
6912
6913 2011-09-01  Bruno Haible  <bruno@clisp.org>
6914
6915         Tests for module 'strtoumax'.
6916         * modules/strtoumax-tests: New file.
6917         * tests/test-strtoumax.c: New file.
6918
6919         Tests for module 'strtoimax'.
6920         * modules/strtoimax-tests: New file.
6921         * tests/test-strtoimax.c: New file.
6922
6923         Tests for module 'imaxdiv'.
6924         * modules/imaxdiv-tests: New file.
6925         * tests/test-imaxdiv.c: New file.
6926
6927         Tests for module 'imaxabs'.
6928         * modules/imaxabs-tests: New file.
6929         * tests/test-imaxabs.c: New file.
6930
6931 2011-09-01  Bruno Haible  <bruno@clisp.org>
6932
6933         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
6934         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
6935         pthread_create.
6936
6937 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6938
6939         openat: work around AIX 7.1 fstatat issue
6940         This should fix the problem that was not properly fixed
6941         in the previous change, dated 2011-08-30.
6942         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
6943         __need_system_stat_h defined.
6944         (orig_fstatat) [HAVE_FSTATAT]: New function.
6945         (rpl_fstatat): Go back to the old way of doing things,
6946         except call orig_fstatat instead of fstatat.
6947         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
6948         Remove unnecessary check whether fstatat fills in st_size etc.
6949
6950 2011-09-01  Bruno Haible  <bruno@clisp.org>
6951
6952         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
6953         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
6954         just include the system's header.
6955
6956 2011-08-31  Jim Meyering  <meyering@redhat.com>
6957
6958         tests: avoid spurious assertion failure in test-float.c on ppc64
6959         * tests/test-float.c (test_long_double): Comment out an assertion,
6960         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
6961         with gcc-4.4.4.
6962
6963         maint: indent with spaces, not TABs
6964         I need to get in the habit of running gnulib's "make check".
6965         Both of these would have been caught.
6966         * m4/largefile.m4: Indent with spaces, not TABs.
6967         * lib/parse-datetime.y (iso_8601_time): Likewise.
6968         Spotted by Pádraig Brady.
6969
6970         test-parse-datetime.c: accommodate a relatively strict gcc warning
6971         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
6972         to avoid a warning from gcc's -Werror=missing-declarations.
6973         Insert a few spaces-before-funcall-parenthesis.
6974
6975 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
6976
6977         parse-datetime: accept ISO 8601 date and time rep with "T" separator
6978         The parser now accepts ISO 8601 date-time strings with "T" as the
6979         separator.  It has long parsed dates like "2004-02-29 16:21:42"
6980         with a space between the date and time strings.  Now it also parses
6981         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
6982         variants like "2004-02-29T16:21:42.333-07:00"
6983         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
6984         of day representation using the 'T' separator character.
6985         * doc/parse-datetime.texi (General date syntax): replace use of
6986         deprecated --iso-8601 option with --rfc-3339 in example of date
6987         command output formats that can be parsed.
6988         * tests/test-parse-datetime.c (tm_diff): New function, taken from
6989         lib/parse-datetime.y.
6990         (gmt_offset): New function.
6991         (main): Add additional test cases to validate ISO8601 extended
6992         date and time of day parsing.
6993
6994 2011-08-31  Bruno Haible  <bruno@clisp.org>
6995
6996         freopen: Documentation.
6997         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
6998         name.
6999         Reported by Claudio Bley <claudio.bley@gmail.com>.
7000
7001 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
7002
7003         freopen: Don't crash if the filename argument is NULL.
7004         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
7005         NULL.
7006
7007 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
7008
7009         openat: work around AIX 7.1 fstatat bug
7010         Problem reported by Kevin Brott for GNU tar, in the thread containing
7011         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
7012         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
7013         FSTATAT_ST_SIZE_ETC_BROKEN.
7014         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
7015         rpl_fstatat.
7016         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
7017         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
7018         AC_CHECK_FUNCS_ONCE for fstatat.
7019         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
7020         fchmodat, mkdirat, openat and unlinkat.
7021
7022 2011-08-30  Bruno Haible  <bruno@clisp.org>
7023
7024         Avoid endless recursions if config.h includes some header files.
7025         * lib/fopen.c (__need_FILE): Define already before including config.h.
7026         * lib/freopen.c (__need_FILE): Likewise.
7027         * lib/open.c (__need_system_fcntl_h): Likewise.
7028         * lib/stat.c (__need_system_sys_stat_h): Likewise.
7029         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
7030         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7031
7032 2011-08-25  Karl Berry  <karl@gnu.org>
7033
7034         * config/srclist.txt (ylwrap): new try.
7035         * build-aux/ylwrap: new file.
7036
7037 2011-08-23  Bruno Haible  <bruno@clisp.org>
7038
7039         tmpdir: Use a good default directory on native Windows.
7040         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
7041         (P_tmpdir): Default to _P_tmpdir on native Windows.
7042         (path_search): On native Windows, try the value returned by GetTempPath
7043         before trying P_tmpdir.
7044         * modules/tmpdir (Depends-on): Add pathmax.
7045         Suggested by John Darrington <john@darrington.wattle.id.au>.
7046
7047 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
7048
7049         doc: fix typo in README-release
7050         * top/README-release: Capitalize first word of a sentence.
7051
7052 2011-08-19  Jim Meyering  <meyering@redhat.com>
7053
7054         fts: do not exhaust memory when processing million-entry directories
7055         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
7056         directory would require about 256*N bytes of memory.  Thus, it was
7057         easy to construct a directory too large to be processed by any of
7058         those tools.  With this change, fts' maximum memory utilization is
7059         now limited to around 30MB.
7060         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
7061         (fts_read): When we've processed the final entry (i.e., when
7062         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
7063         using the parent entry to read any remaining entries.  Dispatch
7064         depending on what fts_build returns:
7065         - NULL+stop, aka failure: stop
7066         - NULL otherwise: move up in the dir hierarchy
7067         - non-NULL: handle this new entry
7068         (fts_build): Declare and use new local, continue_readdir.
7069         Prepare to be called from fts_read, when the entries
7070         from a partially-read directory have just been exhausted.
7071         In that case, we'll skip the opendir and instead use the parent's
7072         fts_dirp and derive dir_fd from that.
7073         Finally, in the readdir loop, if we read max_entries entries,
7074         exit the loop ensuring *not* to call closedir.  This is required
7075         so that fts_dirp can be reused on a subsequent call.
7076         Prompted by Ben England's report of memory exhaustion in find
7077         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
7078
7079         maint: fts: move decl of `dp' down into while loop; split a long line
7080         * lib/fts.c (fts_build): No semantic change.
7081
7082         fts: add/use new struct member, fts_dirp
7083         We are about to use this to manage any directory with
7084         too many entries to read all of them into memory at once.
7085         To do that, we'll need to save the DIR* pointer in each
7086         affected FTSENT struct.
7087         * lib/fts_.h: Include <dirent.h>.
7088         (struct FTSENT) [fts_dirp]: New member.
7089         * lib/fts.c (closedir_and_clear): Define.
7090         Use it in place of closedir so that we are sure to
7091         clear the new fts_dirp member when done with it.
7092         (fts_alloc): Initialize the new member.
7093         (fts_lfree): Free, if needed.
7094
7095         maint: fts: give __opendir2 a new parameter and rename
7096         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
7097         than surreptitiously using sole caller's "dir_fd".
7098         (fts_opendir): Rename from __opendir2.
7099
7100         maint: fts.c: remove __opendir2's now-unused parameter, oflag
7101         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
7102
7103         maint: fts.c: correct off-by-one indentation
7104         * lib/fts.c (fts_build): Correct indentation, change style
7105         of a couple of block comments, and bracing style.
7106
7107         maint: fts.c: move __opendir2 #define "up" out of function body
7108         * lib/fts.c (__opendir2): Move "up".  No semantic change.
7109
7110         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
7111         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
7112         out for a long time and besides was useful only on BSD systems.
7113
7114 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7115
7116         regex: port to Stratus OpenVOS
7117         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
7118         define to empty, rather than attempting nonportable optimizations.
7119         Problem reported by Paul Green in:
7120         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
7121         and fix suggested by Eric Blake in:
7122         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
7123
7124 2011-08-17  Eric Blake  <eblake@redhat.com>
7125
7126         getcwd: fix test failures on mingw
7127         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
7128         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
7129         test if long directory cannot be created, and allow mingw errno.
7130
7131         getcwd-lgpl: fix m4 to match relaxed test for BSD
7132         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
7133         (gl_FUNC_GETCWD_SIGNATURE): New macro.
7134         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
7135         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
7136         signature problem.
7137
7138         getcwd: fix compilation on mingw64
7139         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
7140         getcwd.
7141         Reported by Marc-André Lureau.
7142
7143         pipe2: silence compiler warning
7144         * lib/pipe2.c (pipe2): Hide label if it is not used.
7145
7146 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
7147
7148         relocatable-prog: fix link error
7149         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
7150         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
7151         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
7152         into modules/relocatable-lib without noticing that
7153         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
7154         also needs to build relocatable.c.
7155
7156 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
7157
7158         getaddrinfo: fix sh typo in gai_strerrorA decl checking
7159         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
7160         shell code: it contained a 'break' that was not in a loop.
7161         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
7162         via a shell-language loop; this may have been true in old Autoconf
7163         versions, but it's not true in Autoconf 2.68.  I found this bug
7164         when testing coreutils git on Solaris 8, whose shell complains
7165         about the syntax error.
7166
7167 2011-08-12  Simon Josefsson  <simon@josefsson.org>
7168
7169         * lib/base64.c: Fix comment to reference RFC 4648.
7170         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
7171         <gvtulder@gmail.com>.
7172
7173 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7174
7175         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
7176
7177         po/Makefile.in.in: fix make -q problem
7178         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
7179         rule, since there's no file named 'check-macro-version' and its
7180         use as a file breaks make -q.
7181         (all): Don't depend on check-macro-version.
7182         (CHECK_MACRO_VERSION): New macro.
7183         (stamp-po): Use it.
7184
7185         configmake: fix make -q problem
7186         * modules/configmake (configmake.h): Update configmake.h's time stamp
7187         even if the file does not change.  Otherwise, 'make -q' fails.
7188         Problem reported by Simon Josefsson in
7189         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
7190
7191 2011-08-11  Jim Meyering  <meyering@redhat.com>
7192
7193         git-version-gen: correct the advice in a comment
7194         * build-aux/git-version-gen: Correct comment.
7195         Don't recommend to list .tarball-version in .gitignore.
7196
7197 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7198
7199         base64: fix off-by-one buffer size bug
7200         Problem and (trivial) fix reported by Gijs van Tulder in
7201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
7202         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
7203         * tests/test-base64.c (main): Catch the bug.
7204
7205 2011-08-10  Eric Blake  <eblake@redhat.com>
7206
7207         closein: correct comments
7208         * lib/closein.c (close_stdin): Improve comments.
7209
7210 2011-08-09  Bruno Haible  <bruno@clisp.org>
7211
7212         More tests for 'fseeko'.
7213         * tests/test-fseeko3.c: New file, from Eric Blake.
7214         * tests/test-fseeko3.sh: New file.
7215         * modules/fseeko-tests (Files): Add them.
7216         (TESTS): Add test-fseeko3.sh.
7217         (check_PROGRAMS): Add test-fseeko3.
7218
7219 2011-08-09  Eric Blake  <eblake@redhat.com>
7220
7221         fseeko: remove unneeded hack
7222         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
7223
7224         fseeko: fix bug on glibc
7225         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
7226         Reported by John W. Eaton.
7227
7228 2011-08-08  Bruno Haible  <bruno@clisp.org>
7229
7230         unictype/base: Fix interoperability with preinstalled libunistring.
7231         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
7232         Reported by Simon Josefsson.
7233
7234 2011-08-08  Bruno Haible  <bruno@clisp.org>
7235
7236         iswblank: Detect declaration correctly.
7237         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
7238         AC_CHECK_DECLS invocation.
7239
7240 2011-08-08  Bruno Haible  <bruno@clisp.org>
7241
7242         tcgetsid: Detect declaration correctly.
7243         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
7244         AC_CHECK_DECLS invocation.
7245         Reported by Simon Josefsson.
7246
7247 2011-08-08  Eric Blake  <eblake@redhat.com>
7248
7249         largefile: fix typo that regressed large file support
7250         * modules/largefile (configure.ac-early): Fix section name.
7251
7252 2011-08-06  Karl Berry  <karl@gnu.org>
7253
7254         * MODULES.html.sh (func_all_files): _Noreturn is no longer
7255         a separate module.
7256
7257 2011-08-05  Simon Josefsson  <simon@josefsson.org>
7258
7259         openat: Fix warnings and commens when building unlinkat.c on Hurd.
7260         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
7261         get prototype for free.
7262
7263 2011-08-04  Bruno Haible  <bruno@clisp.org>
7264
7265         Tests for module 'pathmax'.
7266         * modules/pathmax-tests: New file.
7267         * tests/test-pathmax.c: New file.
7268
7269         canonicalize-lgpl: Support larger filenames on the Hurd.
7270         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
7271         Reported by Paul Eggert.
7272
7273         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
7274         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
7275         * lib/chdir-long.h: Include pathmax.h.
7276         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
7277         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
7278         (PATH_MAX): Remove code that is done by pathmax.h.
7279         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
7280         * lib/tmpfile.c: Add a comment.
7281         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
7282         * modules/chdir-long (Depends-on): Add pathmax.
7283         * modules/getcwd (Depends-on): Add pathmax.
7284         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
7285         is not defined.
7286         * doc/posix-headers/limits.texi: Mention the pathmax module.
7287         * NEWS: Mention the change.
7288
7289 2011-08-02  Bruno Haible  <bruno@clisp.org>
7290
7291         pthread_sigmask: Actually use results of gl_THREADLIB.
7292         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
7293         gl_THREADLIB, not gl_[]THREADLIB.
7294         Reported by Eric Blake.
7295
7296 2011-08-02  Jim Meyering  <meyering@redhat.com>
7297
7298         maint.mk: relax the default _gl_TS_function_match regexp
7299         * top/maint.mk (_gl_TS_function_match): Don't require at least one
7300         space between function name and "(" in an "extern" declaration.
7301         That would fail to match a decl with no space there: extern void foo();
7302
7303 2011-07-31  Iain Nicol  <iain@thenicols.net>
7304
7305         git-version-gen: document that EXTRA_DIST must include .version
7306         * build-aux/git-version-gen: In the how-to-use comment, document
7307         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
7308         will fail when run from an unpacked distribution tarball.
7309
7310 2011-08-01  Bruno Haible  <bruno@clisp.org>
7311
7312         wctype-h: Fix last change.
7313         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
7314         REPLACE_TOWLOWER to 0.
7315         Reported by Sam Steingold <sds@gnu.org>.
7316
7317 2011-07-31  Bruno Haible  <bruno@clisp.org>
7318
7319         frexpl: Update autoconf test.
7320         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
7321         according to changes of 2011-06-20.
7322
7323 2011-07-31  Bruno Haible  <bruno@clisp.org>
7324
7325         sys_utsname: Add support for Minix.
7326         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
7327         <sys/utsname.h>.
7328         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7329         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
7330
7331 2011-07-31  Bruno Haible  <bruno@clisp.org>
7332
7333         strings: Add support for Minix.
7334         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
7335         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7336         * doc/posix-headers/strings.texi: Document the Minix problem.
7337
7338 2011-07-31  Bruno Haible  <bruno@clisp.org>
7339
7340         wctype-h: Add support for Minix.
7341         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
7342         REPLACE_TOWLOWER.
7343         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
7344         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
7345         REPLACE_ISWCNTRL.
7346
7347 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
7348
7349         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
7350         This is a performance improvement for 64-bit hosts: it causes the
7351         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
7352
7353 2011-07-31  Bruno Haible  <bruno@clisp.org>
7354
7355         stdioext: Add support for Minix.
7356         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
7357         * lib/fpurge.c (fpurge): Likewise.
7358         * lib/freadahead.c (freadahead): Likewise.
7359         * lib/freadable.c (freadable): Likewise.
7360         * lib/freading.c (freading): Likewise.
7361         * lib/freadptr.c (freadptr): Likewise.
7362         * lib/freadseek.c (freadptrinc): Likewise.
7363         * lib/fseeko.c (rpl_fseeko): Likewise.
7364         * lib/fseterr.c (fseterr): Likewise.
7365         * lib/fwritable.c (fwritable): Likewise.
7366         * lib/fwriting.c (fwriting): Likewise.
7367         * lib/fflush.c (clear_ungetc_buffer): Update comment.
7368         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
7369
7370 2011-07-31  Bruno Haible  <bruno@clisp.org>
7371
7372         errno: Port to Minix.
7373         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
7374         ECONNABORTED are defined.
7375         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
7376         GNULIB_defined_ECONNABORTED): New macros.
7377         * lib/strerror-override.h (strerror_override): Test also
7378         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
7379         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
7380         ECONNABORTED.
7381         * doc/posix-headers/errno.texi: Mention the Minix problem.
7382
7383 2011-07-31  Bruno Haible  <bruno@clisp.org>
7384
7385         Work around declaration collisions on Minix.
7386         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
7387         defined, set REPLACE_MBSINIT.
7388         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
7389         defined, set REPLACE_MBRTOWC.
7390         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
7391         set REPLACE_MBRLEN.
7392         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
7393         defined, set REPLACE_MBSRTOWCS.
7394         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
7395         defined, set REPLACE_WCRTOMB.
7396         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
7397         defined, set REPLACE_WCSRTOMBS.
7398
7399 2011-07-31  Bruno Haible  <bruno@clisp.org>
7400
7401         Add support for Minix with ACK compiler.
7402         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
7403         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
7404         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
7405
7406 2011-07-31  Bruno Haible  <bruno@clisp.org>
7407
7408         Documentation about Minix.
7409         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
7410         * doc/glibc-headers/*.texi: Likewise.
7411         * doc/posix-functions/*.texi: Likewise.
7412         * doc/glibc-functions/*.texi: Likewise.
7413
7414 2011-07-31  Bruno Haible  <bruno@clisp.org>
7415
7416         snippet/warn-on-use: Fix indentation.
7417         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
7418
7419 2011-07-25  Jim Meyering  <meyering@redhat.com>
7420
7421         tests: test-update-copyright.sh: remove unnecessary "rm" commands
7422         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
7423         commands.
7424
7425 2011-07-27  Jim Meyering  <meyering@redhat.com>
7426
7427         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
7428         * top/maint.mk (gl_extract_significant_defines_): Now that
7429         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
7430         gnulib/lib/signal.in.h, and now that we recommend to
7431         define-if-undefined those two symbols in application code,
7432         we must filter them out of the "significant" list.
7433         This avoids a "make syntax-check" failure in coreutils.
7434
7435 2011-07-26  Eric Blake  <eblake@redhat.com>
7436
7437         warnings: add comments about previous patch
7438         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
7439         * m4/include_next.m4: Likewise.
7440         * m4/warn-on-use.m4: Likewise.
7441         * m4/warnings.m4: Likewise, and simplify use.
7442         Suggested by Stefano Lattarini.
7443
7444         include-next, warnings: support older autoconf
7445         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
7446         AS_VAR_PUSHDEF in a way that works with older autoconf.
7447         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
7448         Reported by Daniel P. Berrange.
7449
7450 2011-07-25  Bruno Haible  <bruno@clisp.org>
7451
7452         fseek, ftell: Fix doc.
7453         * doc/posix-functions/fseek.texi: Reword statement about
7454         AC_SYS_LARGEFILE.
7455         * doc/posix-functions/ftell.texi: Likewise.
7456
7457 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7458             Bruno Haible  <bruno@clisp.org>
7459
7460         Add dependencies to the 'largefile' module.
7461         * modules/fopen (Depends-on): Add 'largefile'.
7462         * modules/freopen (Depends-on): Likewise.
7463         * modules/fseeko (Depends-on): Likewise.
7464         * modules/ftello (Depends-on): Likewise.
7465         * modules/glob (Depends-on): Likewise.
7466         * modules/lseek (Depends-on): Likewise.
7467         * modules/lstat (Depends-on): Likewise.
7468         * modules/mkostemp (Depends-on): Likewise.
7469         * modules/mkostemps (Depends-on): Likewise.
7470         * modules/mkstemp (Depends-on): Likewise.
7471         * modules/mkstemps (Depends-on): Likewise.
7472         * modules/open (Depends-on): Likewise.
7473         * modules/openat (Depends-on): Likewise.
7474         * modules/pread (Depends-on): Likewise.
7475         * modules/pwrite (Depends-on): Likewise.
7476         * modules/scandir (Depends-on): Likewise.
7477         * modules/stat (Depends-on): Likewise.
7478         * modules/tmpfile (Depends-on): Likewise.
7479         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
7480         since the containing module now depends on the largefile module.
7481         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
7482         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
7483         off_t is fixed by gnulib.
7484         * doc/posix-functions/freopen.texi: Likewise.
7485         * doc/posix-functions/fseeko.texi: Likewise.
7486         * doc/posix-functions/fstatat.texi: Likewise.
7487         * doc/posix-functions/ftello.texi: Likewise.
7488         * doc/posix-functions/glob.texi: Likewise.
7489         * doc/posix-functions/lseek.texi: Likewise.
7490         * doc/posix-functions/lstat.texi: Likewise.
7491         * doc/posix-functions/mkstemp.texi: Likewise.
7492         * doc/posix-functions/open.texi: Likewise.
7493         * doc/posix-functions/openat.texi: Likewise.
7494         * doc/posix-functions/pread.texi: Likewise.
7495         * doc/posix-functions/pwrite.texi: Likewise.
7496         * doc/posix-functions/scandir.texi: Likewise.
7497         * doc/posix-functions/stat.texi: Likewise.
7498         * doc/posix-functions/tmpfile.texi: Likewise.
7499         * doc/glibc-functions/mkostemp.texi: Likewise.
7500         * doc/glibc-functions/mkostemps.texi: Likewise.
7501         * doc/glibc-functions/mkstemps.texi: Likewise.
7502
7503 2011-07-25  Bruno Haible  <bruno@clisp.org>
7504
7505         fcntl: Move AC_LIBOBJ invocation to module description.
7506         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
7507         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
7508
7509         fcntl: Remove call-in from fchdir.m4.
7510         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
7511         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
7512
7513         dup3: Remove potential call-in from fchdir.m4.
7514         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
7515         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
7516
7517         dup2: Move AC_LIBOBJ invocation to module description.
7518         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
7519         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
7520         Don't invoke AC_LIBOBJ.
7521         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
7522
7523         dup2: Remove call-in from fchdir.m4.
7524         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
7525         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
7526
7527         fclose: Move AC_LIBOBJ invocation to module description.
7528         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
7529         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
7530         to 1.
7531         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
7532
7533         fclose: Remove call-in from close.m4.
7534         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
7535         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
7536
7537         close: Move AC_LIBOBJ invocation to module description.
7538         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
7539         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
7540         1.
7541         * modules/close (configure.ac): Invoke AC_LIBOBJ.
7542
7543         close: Remove call-in from fchdir.m4.
7544         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
7545         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
7546
7547         open: Move AC_LIBOBJ invocation to module description.
7548         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
7549         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
7550         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
7551
7552         open: Remove call-in from fchdir.m4.
7553         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
7554         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
7555
7556         fchdir: Start to remove gl_REPLACE_* idiom.
7557         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
7558         (gl_FUNC_FCHDIR): Invoke it.
7559
7560 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7561
7562         * lib/ftell.c (ftell): Comment out cast.
7563
7564         close: use gl_REPLACE_FCLOSE only if defined
7565         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
7566         is defined.  The close module doesn't depend on the fclose module
7567         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
7568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
7569         I reproduced the problem with "./gnulib-tool --test close sys_socket".
7570
7571 2011-07-24  Jim Meyering  <meyering@redhat.com>
7572
7573         test-select.h: avoid warning when using gcc's -Wmissing-declarations
7574         * tests/test-select.h (test_function): Declare as "static".
7575
7576 2011-07-24  Bruno Haible  <bruno@clisp.org>
7577
7578         doc: Mention the effects of AC_SYS_LARGEFILE.
7579         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
7580         on this function.
7581         * doc/posix-functions/aio_error.texi: Likewise.
7582         * doc/posix-functions/aio_fsync.texi: Likewise.
7583         * doc/posix-functions/aio_read.texi: Likewise.
7584         * doc/posix-functions/aio_return.texi: Likewise.
7585         * doc/posix-functions/aio_suspend.texi: Likewise.
7586         * doc/posix-functions/aio_write.texi: Likewise.
7587         * doc/posix-functions/fgetpos.texi: Likewise.
7588         * doc/posix-functions/fopen.texi: Likewise.
7589         * doc/posix-functions/freopen.texi: Likewise.
7590         * doc/posix-functions/fsetpos.texi: Likewise.
7591         * doc/posix-functions/fstatvfs.texi: Likewise.
7592         * doc/posix-functions/ftruncate.texi: Likewise.
7593         * doc/posix-functions/ftw.texi: Likewise.
7594         * doc/posix-functions/getrlimit.texi: Likewise.
7595         * doc/posix-functions/glob.texi: Likewise.
7596         * doc/posix-functions/lio_listio.texi: Likewise.
7597         * doc/posix-functions/lockf.texi: Likewise.
7598         * doc/posix-functions/mkstemp.texi: Likewise.
7599         * doc/posix-functions/mmap.texi: Likewise.
7600         * doc/posix-functions/nftw.texi: Likewise.
7601         * doc/posix-functions/openat.texi: Likewise.
7602         * doc/posix-functions/opendir.texi: Likewise.
7603         * doc/posix-functions/posix_fadvise.texi: Likewise.
7604         * doc/posix-functions/posix_fallocate.texi: Likewise.
7605         * doc/posix-functions/pread.texi: Likewise.
7606         * doc/posix-functions/pwrite.texi: Likewise.
7607         * doc/posix-functions/readdir.texi: Likewise.
7608         * doc/posix-functions/readdir_r.texi: Likewise.
7609         * doc/posix-functions/rewinddir.texi: Likewise.
7610         * doc/posix-functions/scandir.texi: Likewise.
7611         * doc/posix-functions/seekdir.texi: Likewise.
7612         * doc/posix-functions/setrlimit.texi: Likewise.
7613         * doc/posix-functions/statvfs.texi: Likewise.
7614         * doc/posix-functions/telldir.texi: Likewise.
7615         * doc/posix-functions/tmpfile.texi: Likewise.
7616         * doc/posix-functions/truncate.texi: Likewise.
7617         * doc/glibc-functions/fallocate.texi: Likewise.
7618         * doc/glibc-functions/fstatfs.texi: Likewise.
7619         * doc/glibc-functions/fts_children.texi: Likewise.
7620         * doc/glibc-functions/fts_read.texi: Likewise.
7621         * doc/glibc-functions/getdirentries.texi: Likewise.
7622         * doc/glibc-functions/mkostemp.texi: Likewise.
7623         * doc/glibc-functions/mkostemps.texi: Likewise.
7624         * doc/glibc-functions/mkstemps.texi: Likewise.
7625         * doc/glibc-functions/preadv.texi: Likewise.
7626         * doc/glibc-functions/pwritev.texi: Likewise.
7627         * doc/glibc-functions/sendfile.texi: Likewise.
7628         * doc/glibc-functions/statfs.texi: Likewise.
7629
7630 2011-07-24  Bruno Haible  <bruno@clisp.org>
7631
7632         doc: Fix typo.
7633         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
7634
7635 2011-07-24  Bruno Haible  <bruno@clisp.org>
7636
7637         doc: Mention fsusage.
7638         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
7639
7640 2011-07-24  Bruno Haible  <bruno@clisp.org>
7641
7642         doc: Mention new glibc headers and functions.
7643         * doc/glibc-headers/gshadow.texi: New file.
7644         * doc/glibc-functions/endsgent.texi: New file.
7645         * doc/glibc-functions/fgetsgent.texi: New file.
7646         * doc/glibc-functions/fgetsgent_r.texi: New file.
7647         * doc/glibc-functions/getsgent.texi: New file.
7648         * doc/glibc-functions/getsgent_r.texi: New file.
7649         * doc/glibc-functions/getsgnam.texi: New file.
7650         * doc/glibc-functions/getsgnam_r.texi: New file.
7651         * doc/glibc-functions/putsgent.texi: New file.
7652         * doc/glibc-functions/setsgent.texi: New file.
7653         * doc/glibc-functions/sgetsgent.texi: New file.
7654         * doc/glibc-functions/sgetsgent_r.texi: New file.
7655         * doc/glibc-functions/malloc_info.texi: New file.
7656         * doc/glibc-functions/preadv.texi: New file.
7657         * doc/glibc-functions/pwritev.texi: New file.
7658         * doc/glibc-functions/register_printf_modifier.texi: New file.
7659         * doc/glibc-functions/register_printf_specifier.texi: New file.
7660         * doc/glibc-functions/register_printf_type.texi: New file.
7661         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
7662         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
7663         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
7664         * doc/glibc-functions/pthread_getname_np.texi: New file.
7665         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
7666         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
7667         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
7668         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
7669         * doc/glibc-functions/pthread_setname_np.texi: New file.
7670         * doc/glibc-functions/pthread_sigqueue.texi: New file.
7671         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
7672         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
7673         * doc/glibc-functions/qsort_r.texi: New file.
7674         * doc/glibc-functions/quick_exit.texi: New file.
7675         * doc/glibc-functions/syncfs.texi: New file.
7676         * doc/gnulib.texi: Include them.
7677         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
7678         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
7679         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
7680         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
7681         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
7682         * doc/glibc-functions/execvpe.texi: Likewise.
7683
7684 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7685
7686         ftell: don't include <unistd.h>
7687         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
7688         guaranteed to define off_t, and the ftell module depends on the
7689         stdio module.
7690
7691         ftell: do not assume wraparound signed arithmetic
7692         * lib/ftell.c: Include <limits.h>.
7693         (ftell): Don't assume wraparound signed arithmetic.
7694
7695 2011-07-24  Bruno Haible  <bruno@clisp.org>
7696
7697         close: No longer depend on module 'fclose'.
7698         * modules/close (Depends-on): Remove fclose.
7699         * NEWS: Mention the change.
7700         Suggested by Sam Steingold <sds@gnu.org>.
7701
7702 2011-07-24  Bruno Haible  <bruno@clisp.org>
7703
7704         fsusage: Enable large volume support on AIX >= 5.2.
7705         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
7706         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
7707         instead of STAT_STATVFS.
7708         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
7709
7710         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
7711         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
7712         f_blocks field only on MacOS X.
7713
7714         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
7715         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
7716         * modules/fsusage (Depends-on): Add largefile.
7717
7718 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7719
7720         * README: Modernize discussion of signed integers.
7721         Assuming overflow wraparound is no longer safe.
7722         Mention ones' complement and signed magnitude.
7723
7724 2011-07-22  Bruno Haible  <bruno@clisp.org>
7725
7726         select tests, pselect tests: Refactor.
7727         * tests/test-select.h: New file, extracted from tests/test-select.c.
7728         (select_fn): New type.
7729         (test, do_select, do_select_nowait, do_select_wait, test_tty,
7730         test_connect_first, test_accept_first, test_pair, test_socket_pair,
7731         test_pipe): Add my_select argument.
7732         (test_function): Renamed from main. Add my_select argument.
7733         * tests/test-select.c: Move most code to tests/test-select.h. Include
7734         test-select.h.
7735         * modules/select-tests (Files): Add tests/test-select.h.
7736         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
7737         (my_select, main): New functions.
7738         * modules/pselect-tests (Files): Add tests/test-select.h,
7739         tests/macros.h, tests/signature.h.
7740         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
7741         (configure.ac): Check for <sys/wait.h>.
7742
7743 2011-07-22  Bruno Haible  <bruno@clisp.org>
7744
7745         sys_select tests: Check the signature of FD_*.
7746         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
7747         signature tests from here...
7748         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
7749         here.
7750         * modules/sys_select-tests (Files): Add tests/signature.h.
7751
7752 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7753
7754         largefile: new module, replacing large-inode
7755         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
7756         * MODULES.html.sh: Add largefile, remove large-inode.
7757         * modules/largefile, m4/largefile.m4: New files.
7758         * modules/large-inode, m4/large-inode.m4: Remove.
7759
7760         fsusage: port to MacOS X 10.7 with 4 TiB file systems
7761         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
7762         implementations that use only 32 bits to count blocks.
7763         On typical hosts with 1024-byte blocks, this fails with file
7764         systems as small as 4 TiB.  Problem reported by Herb Wartens
7765         <http://debbugs.gnu.org/9140> and this should also fix a similar
7766         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
7767
7768         large-inode: New module
7769         * MODULES.html.sh: Add it.
7770         * modules/large-inode, m4/large-inode.m4: New files.
7771
7772         extensions: Enable extensions on MacOS X 10.5 and later.
7773         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
7774
7775 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
7776
7777         file-has-acl: use acl_extended_file_nofollow if available
7778         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
7779         (acl_extended_file): New macro.
7780         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
7781         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
7782
7783 2011-07-21  Bruno Haible  <bruno@clisp.org>
7784
7785         Declare system functions in a way that works with C++.
7786         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
7787         declare fdopendir as extern "C".
7788         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
7789         declare frexpl as extern "C".
7790         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
7791         declare gai_strerror as extern "C".
7792         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
7793         programs, declare gai_strerror as extern "C".
7794         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
7795         declare getlogin_r as extern "C".
7796         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
7797         as extern "C".
7798         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
7799         declare ldexpl as extern "C".
7800         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
7801         as extern "C".
7802         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
7803         program, declare getmntinfo as extern "C".
7804         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
7805         stpncpy as extern "C".
7806         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
7807         program, declare __xpg_strerror_r as extern "C".
7808         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
7809         strndup as extern "C".
7810         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
7811         declare memset and bzero as extern "C".
7812         Reported by Sam Steingold <sds@gnu.org>.
7813
7814 2011-07-12  Jim Meyering  <meyering@redhat.com>
7815
7816         maint.mk: prohibit inclusion of "verify.h" without use
7817         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
7818
7819 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7820
7821         timer-time: A new module to check for timer_settime()
7822         * m4/timer_time.m4: Check for the posix function.
7823         * modules/timer-time: Add the new module.
7824         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
7825         Mention it.
7826
7827 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
7828             Bruno Haible  <bruno@clisp.org>
7829
7830         pthread_sigmask: assume POSIX threads if --avoid=threadlib
7831         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
7832         not defined, assume POSIX threads and look for pthread_sigmask in
7833         $LIBS, without changing $CPPFLAGS.
7834
7835 2011-07-19  Bruno Haible  <bruno@clisp.org>
7836
7837         strstr: Update cross-compilation guess.
7838         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
7839         CPUs, guess no, in view of glibc
7840         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
7841         Suggested by Eric Blake. Reported by Reuben Thomas.
7842
7843 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7844
7845         getopt-gnu: suppress core dumps from detection code
7846         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
7847         to suppress core dumps that may well occur on glibc systems.
7848         * modules/getopt-gnu: Depend on nocrash.
7849
7850 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7851
7852         pthread_sigmask: ensure usleep is declared
7853         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
7854         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
7855
7856 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
7857
7858         doc: Document NonStop portability issues.
7859         * doc/posix-functions/sigaction.texi (sigaction):
7860         * doc/posix-headers/signal.texi (signal.h):
7861         Document NonStop.  See Joachim Schmitz in
7862         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
7863
7864 2011-07-15  Bruno Haible  <bruno@clisp.org>
7865
7866         ffsl, ffsll: Avoid unportable behaviour.
7867         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
7868
7869 2011-07-15  Bruno Haible  <bruno@clisp.org>
7870
7871         ffs: More tests.
7872         * tests/test-ffs.c (NBITS): New macro.
7873         (main): Add more tests.
7874         * tests/test-ffsl.c (NBITS): New macro.
7875         (main): Add more tests.
7876         * tests/test-ffsll.c (NBITS): New macro.
7877         (main): Add more tests.
7878
7879 2011-07-15  Eric Blake  <eblake@redhat.com>
7880
7881         ffsl, ffsll: new modules
7882         * modules/ffsl: New file.
7883         * modules/ffsll: Likewise.
7884         * m4/ffsl.m4: Likewise.
7885         * m4/ffsll.m4: Likewise.
7886         * lib/ffsl.c: Likewise.
7887         * lib/ffsl.h: Likewise.
7888         * lib/ffsll.c: Likewise.
7889         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
7890         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
7891         * modules/string (Makefile.am): Substitute witnesses.
7892         * lib/strings.in.h (ffsl, ffsll): Declare.
7893         * modules/ffsl-tests: New test file.
7894         * modules/ffsll-tests: Likewise.
7895         * tests/test-ffsl.c: Likewise.
7896         * tests/test-ffsll.c: Likewise.
7897         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7898         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
7899         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
7900
7901         ffs: fix m4 prerequisite
7902         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
7903
7904         ffs: avoid undefined behavior
7905         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
7906         * tests/test-ffs.c (naive, main): Avoid signed shifts.
7907         Reported by Bruno Haible.
7908
7909 2011-07-12  Bruno Haible  <bruno@clisp.org>
7910
7911         pthread_sigmask: Rely on module 'threadlib'.
7912         * modules/pthread_sigmask (Depends-on): Add threadlib.
7913         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
7914         is defined.
7915
7916 2011-07-12  Bruno Haible  <bruno@clisp.org>
7917
7918         regex: Depend on module 'strcase'.
7919         * modules/regex (Depends-on): Add strcase, for strcasecmp().
7920
7921 2011-07-12  Jim Meyering  <meyering@redhat.com>
7922
7923         warn-on-use: fix typo in file name
7924         * modules/snippet/warn-on-use (Files): Correct file name:
7925         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
7926
7927 2011-07-12  Bruno Haible  <bruno@clisp.org>
7928
7929         strings: Document module.
7930         * doc/posix-headers/strings.texi: Mention module 'strings'.
7931
7932 2011-07-12  Bruno Haible  <bruno@clisp.org>
7933
7934         Rename module '_Noreturn' to 'snippet/_Noreturn'.
7935         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
7936         (Files, Makefile.am): Update.
7937         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
7938         * modules/stdlib (Depends-on): Update.
7939
7940 2011-07-12  Bruno Haible  <bruno@clisp.org>
7941
7942         * NEWS: Mention the changes.
7943
7944         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
7945         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
7946         (Files, Makefile.am): Update.
7947         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
7948         * modules/arpa_inet (Depends-on): Update.
7949         * modules/ctype (Depends-on): Update.
7950         * modules/dirent (Depends-on): Update.
7951         * modules/fcntl-h (Depends-on): Update.
7952         * modules/glob (Depends-on): Update.
7953         * modules/iconv-h (Depends-on): Update.
7954         * modules/inttypes-incomplete (Depends-on): Update.
7955         * modules/langinfo (Depends-on): Update.
7956         * modules/locale (Depends-on): Update.
7957         * modules/math (Depends-on): Update.
7958         * modules/netdb (Depends-on): Update.
7959         * modules/poll-h (Depends-on): Update.
7960         * modules/pty (Depends-on): Update.
7961         * modules/search (Depends-on): Update.
7962         * modules/signal (Depends-on): Update.
7963         * modules/spawn (Depends-on): Update.
7964         * modules/stdio (Depends-on): Update.
7965         * modules/stdlib (Depends-on): Update.
7966         * modules/string (Depends-on): Update.
7967         * modules/strings (Depends-on): Update.
7968         * modules/sys_file (Depends-on): Update.
7969         * modules/sys_ioctl (Depends-on): Update.
7970         * modules/sys_select (Depends-on): Update.
7971         * modules/sys_socket (Depends-on): Update.
7972         * modules/sys_stat (Depends-on): Update.
7973         * modules/sys_time (Depends-on): Update.
7974         * modules/sys_times (Depends-on): Update.
7975         * modules/sys_utsname (Depends-on): Update.
7976         * modules/sys_wait (Depends-on): Update.
7977         * modules/termios (Depends-on): Update.
7978         * modules/time (Depends-on): Update.
7979         * modules/unistd (Depends-on): Update.
7980         * modules/wchar (Depends-on): Update.
7981         * modules/wctype-h (Depends-on): Update.
7982         * MODULES.html.sh (Support for building libraries and executables):
7983         Update.
7984
7985         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
7986         * modules/snippet/unused-parameter: Renamed from
7987         modules/unused-parameter.
7988         (Files, Makefile.am): Update.
7989         * build-aux/snippet/unused-parameter.h: Renamed from
7990         build-aux/unused-parameter.h.
7991         * modules/selinux-h (Depends-on): Update.
7992         * modules/unistr/base (Depends-on): Update.
7993         * MODULES.html.sh (Core language properties): Update.
7994
7995         Rename module 'link-warning' to 'snippet/link-warning'.
7996         * modules/snippet/link-warning: Renamed from modules/link-warning.
7997         (Files, Makefile.am): Update.
7998         * build-aux/snippet/link-warning.h: Renamed from
7999         build-aux/link-warning.h.
8000         * MODULES.html.sh (Support for building libraries and executables):
8001         Update.
8002
8003         Rename module 'c++defs' to 'snippet/c++defs'.
8004         * modules/snippet/c++defs: Renamed from modules/c++defs.
8005         (Files, Makefile.am): Update.
8006         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
8007         * modules/arpa_inet (Depends-on): Update.
8008         * modules/ctype (Depends-on): Update.
8009         * modules/dirent (Depends-on): Update.
8010         * modules/fcntl-h (Depends-on): Update.
8011         * modules/glob (Depends-on): Update.
8012         * modules/iconv-h (Depends-on): Update.
8013         * modules/langinfo (Depends-on): Update.
8014         * modules/locale (Depends-on): Update.
8015         * modules/math (Depends-on): Update.
8016         * modules/netdb (Depends-on): Update.
8017         * modules/poll-h (Depends-on): Update.
8018         * modules/pty (Depends-on): Update.
8019         * modules/search (Depends-on): Update.
8020         * modules/signal (Depends-on): Update.
8021         * modules/spawn (Depends-on): Update.
8022         * modules/stdio (Depends-on): Update.
8023         * modules/stdlib (Depends-on): Update.
8024         * modules/string (Depends-on): Update.
8025         * modules/strings (Depends-on): Update.
8026         * modules/sys_ioctl (Depends-on): Update.
8027         * modules/sys_select (Depends-on): Update.
8028         * modules/sys_socket (Depends-on): Update.
8029         * modules/sys_stat (Depends-on): Update.
8030         * modules/sys_time (Depends-on): Update.
8031         * modules/sys_wait (Depends-on): Update.
8032         * modules/termios (Depends-on): Update.
8033         * modules/time (Depends-on): Update.
8034         * modules/unistd (Depends-on): Update.
8035         * modules/wchar (Depends-on): Update.
8036         * modules/wctype-h (Depends-on): Update.
8037
8038         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
8039         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
8040         (Files, Makefile.am): Update.
8041         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
8042         * modules/argv-iter (Depends-on): Update.
8043         * modules/arpa_inet (Depends-on): Update.
8044         * modules/dirent (Depends-on): Update.
8045         * modules/fcntl-h (Depends-on): Update.
8046         * modules/fnmatch (Depends-on): Update.
8047         * modules/getopt-posix (Depends-on): Update.
8048         * modules/glob (Depends-on): Update.
8049         * modules/iconv-h (Depends-on): Update.
8050         * modules/inttypes-incomplete (Depends-on): Update.
8051         * modules/locale (Depends-on): Update.
8052         * modules/math (Depends-on): Update.
8053         * modules/netdb (Depends-on): Update.
8054         * modules/search (Depends-on): Update.
8055         * modules/signal (Depends-on): Update.
8056         * modules/spawn (Depends-on): Update.
8057         * modules/stdio (Depends-on): Update.
8058         * modules/stdlib (Depends-on): Update.
8059         * modules/string (Depends-on): Update.
8060         * modules/strings (Depends-on): Update.
8061         * modules/sys_socket (Depends-on): Update.
8062         * modules/sys_stat (Depends-on): Update.
8063         * modules/sys_time (Depends-on): Update.
8064         * modules/sys_times (Depends-on): Update.
8065         * modules/sys_utsname (Depends-on): Update.
8066         * modules/time (Depends-on): Update.
8067         * modules/unistd (Depends-on): Update.
8068         * modules/wchar (Depends-on): Update.
8069         * MODULES.html.sh (Support for building libraries and executables):
8070         Update.
8071
8072 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8073
8074         Improvements on _Noreturn and related modules.
8075
8076         modules/_Exit-tests: test _Noreturn too
8077         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
8078         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
8079         (main): Use them.
8080
8081         stdnoreturn, stdnoreturn-tests: remove modules
8082         They're not needed here and a bit premature for use elsewhere.  See
8083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
8084         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8085         * tests/test-stdnoreturn.c: Remove files.
8086         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
8087         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
8088         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
8089         and using noreturn.
8090         * modules/openat, modules/sigpipe-die, modules/xalloc:
8091         * modules/xmemdup0, modules/xstrtol:
8092         Remove dependency on stdnoreturn.
8093
8094         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
8095         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
8096         Reparenthesize to avoid GCC warning.
8097         Support Microsoft's syntax.
8098         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
8099
8100         _Noreturn-tests: remove module
8101         * modules/_Noreturn-tests: Remove.
8102         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
8103         * tests/test-_Noreturn.c: Remove.
8104         * tests/test-stdnoreturn.c: Merge from the old
8105         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
8106
8107 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8108
8109         _Noreturn, stdnoreturn, and related modules.
8110
8111         * top/maint.mk: Adjust to new noreturn support.
8112         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
8113         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
8114
8115         xalloc: use stdnoreturn.h
8116         * lib/xalloc.h: Include <stdnoreturn.h>.
8117         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8118         * modules/xalloc (Depends-on): Add stdnoreturn.
8119
8120         xstrtol: use stdnoreturn.h
8121         * lib/xstrtol.h: Include <stdnoreturn.h>.
8122         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8123         * modules/xstrtol (Depends-on): Add stdnoreturn.
8124
8125         xmemdup0: use stdnoreturn.h
8126         * lib/xmemdup0.h: Include <stdnoreturn.h>.
8127         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8128         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
8129
8130         sigpipe-die: use stdnoreturn.h
8131         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
8132         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8133         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
8134
8135         openat: use stdnoreturn.h
8136         * lib/openat.h: Include <stdnoreturn.h>.
8137         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8138         * modules/openat (Depends-on): Add stdnoreturn.
8139
8140         * lib/openat-die.c (openat_save_fail): Modernize comment.
8141
8142         * lib/xalloc-die.c (xalloc_die): Modernize comment.
8143
8144         * lib/glthread/thread.h: Modernize comment.
8145
8146         obstack: use _Noreturn
8147         * lib/obstack.c (__attribute__): Remove macro.
8148         (print_and_abort): Use _Noreturn.
8149
8150         c-stack: use _Noreturn
8151         * lib/c-stack.c (die, overflow_handler, segv_handler):
8152         Use _Noreturn rather than __attribute__((noreturn)).
8153
8154         argmatch-tests, exclude_tests: use _Noreturn
8155         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
8156         Remove.
8157         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
8158
8159         stdlib: use _Noreturn
8160         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
8161         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
8162         * modules/stdlib (Depends-on): Add _Noreturn.
8163         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
8164
8165         stdnoreturn-tests: new module
8166         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
8167
8168         stdnoreturn: new module
8169         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
8170         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
8171
8172         _Noreturn-tests: new module
8173         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
8174
8175         _Noreturn: new module
8176         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
8177         New section, mentioning it.
8178         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
8179
8180         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
8181
8182 2011-07-11  Eric Blake  <eblake@redhat.com>
8183
8184         ffs: new module
8185         * modules/ffs: New file.
8186         * m4/ffs.m4: Likewise.
8187         * lib/ffs.c: Likewise.
8188         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
8189         * modules/strings (Makefile.am): Substitute witness.
8190         (Depends-on): Add c++defs.
8191         * lib/strings.in.h (ffs): Declare.
8192         * modules/ffs-tests: New test file.
8193         * tests/test-ffs.c: Test new module.
8194         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8195         * doc/posix-functions/ffs.texi (ffs): Likewise.
8196
8197         regex: avoid compiler warning
8198         * lib/regex.c (includes): Include <strings.h>, for use of
8199         strcasecmp in regcomp.c.
8200         Reported by Joachim Schmitz.
8201
8202 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8203
8204         stdint: respect system's intmax_t if INTMAX_MAX
8205         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
8206         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
8207         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
8208         long but int64_t is long long, and where we will clash with the
8209         system intmax_t if we override it.  See
8210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
8211         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
8212         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
8213         similarly for UINTMAX_C.
8214
8215 2011-07-08  Bruno Haible  <bruno@clisp.org>
8216
8217         pthread_sigmask tests: Avoid a compiler warning.
8218         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
8219         non-zero.
8220
8221         sigprocmask tests: A better way to avoid a compiler warning.
8222         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
8223         (main): Complain if system() returns non-zero.
8224         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
8225
8226 2011-07-08  Bruno Haible  <bruno@clisp.org>
8227
8228         pthread_sigmask: Work around IRIX bug.
8229         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
8230         bug.
8231         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
8232         there may be unblocked pending signals.
8233         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
8234
8235 2011-07-08  Bruno Haible  <bruno@clisp.org>
8236
8237         pthread_sigmask: Work around Cygwin bug.
8238         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
8239         bug.
8240         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
8241         the system's pthread_sigmask function.
8242         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
8243
8244 2011-07-08  Bruno Haible  <bruno@clisp.org>
8245
8246         pthread_sigmask: Work around bug in single-threaded implementation.
8247         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
8248         FreeBSD, HP-UX, Solaris bug.
8249         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
8250         * lib/pthread_sigmask.c: Include <stddef.h>.
8251         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
8252         the system's pthread_sigmask function.
8253         * modules/pthread_sigmask (configure.ac): Invoke
8254         gl_PREREQ_PTHREAD_SIGMASK.
8255         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
8256         HP-UX, Solaris.
8257
8258 2011-07-08  Eric Blake  <eblake@redhat.com>
8259
8260         test-sigprocmask: avoid compiler warning
8261         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
8262         * tests/test-sigprocmask.c (main): Use it to silence warning.
8263         Reported by Jim Meyering.
8264
8265         test-snprintf: avoid compiler warning
8266         * tests/test-snprintf.c (main): Avoid shadowed declaration.
8267         * tests/test-vsnprintf.c (main): Likewise.
8268         Reported by Jim Meyering.
8269
8270 2011-07-08  Bruno Haible  <bruno@clisp.org>
8271
8272         Tests for module 'pthread_sigmask'.
8273         * modules/pthread_sigmask-tests: New file.
8274         * tests/test-pthread_sigmask1.c: New file, based on
8275         tests/test-sigprocmask.c.
8276         * tests/test-pthread_sigmask2.c: New file.
8277
8278 2011-07-08  Jim Meyering  <meyering@redhat.com>
8279
8280         test-getopt.h: avoid warning about an unused variable
8281         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
8282
8283 2011-07-07  Jim Meyering  <meyering@redhat.com>
8284
8285         maint: reduce list of files exempt from sc_prohibit_leading_TABs
8286         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
8287         now that it no longer contains leading TABs.
8288         Remove unused "url=FIXME" statement.
8289
8290 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8291
8292         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
8293         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8294         When gl_THREADLIB is not in use, assume that the POSIX sematics
8295         are desired.  This is better for Emacs, which uses POSIX semantics
8296         on GNUish and/or POSIXish platforms, and does not use threads at
8297         all otherwise.
8298
8299         pthread_sigmask: fix typo when testing for libraries
8300         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8301         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
8302
8303 2011-07-08  Eric Blake  <eblake@redhat.com>
8304
8305         fts: introduce FTS_NOATIME
8306         * lib/fts_.h (FTS_NOATIME): New bit flag.
8307         (FTS_OPTIONMASK): Adjust.
8308         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
8309         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
8310
8311 2011-07-08  Bruno Haible  <bruno@clisp.org>
8312
8313         Tests for module 'thread'.
8314         * modules/thread-tests: New file.
8315         * tests/test-thread_self.c: New file.
8316         * tests/test-thread_create.cc: New file.
8317
8318 2011-07-08  Bruno Haible  <bruno@clisp.org>
8319
8320         thread: Avoid gcc warnings when using gl_thread_self().
8321         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
8322         'void *'.
8323         (gl_thread_self_pointer): Update.
8324
8325 2011-07-07  Bruno Haible  <bruno@clisp.org>
8326
8327         signal-c++-tests: Check declaration of pthread_sigmask.
8328         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
8329         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
8330         $(LIB_PTHREAD_SIGMASK).
8331
8332 2011-07-07  Bruno Haible  <bruno@clisp.org>
8333
8334         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
8335         * lib/signal.in.h (pthread_sigmask): Override if
8336         REPLACE_PTHREAD_SIGMASK is 1.
8337         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8338         REPLACE_PTHREAD_SIGMASK.
8339         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
8340         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
8341         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
8342         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8343         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
8344
8345 2011-07-07  Bruno Haible  <bruno@clisp.org>
8346
8347         pthread_sigmask: Ensure declaration in <signal.h>.
8348         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
8349         include <pthread.h>.
8350         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
8351         problem.
8352
8353 2011-07-07  Bruno Haible  <bruno@clisp.org>
8354
8355         pthread_sigmask: Document the module.
8356         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
8357
8358 2011-07-07  Bruno Haible  <bruno@clisp.org>
8359
8360         pthread_sigmask: Follow gnulib conventions.
8361         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
8362         gl_PTHREAD_SIGMASK.
8363         * modules/pthread_sigmask (configure.ac): Update.
8364
8365 2011-07-07  Bruno Haible  <bruno@clisp.org>
8366
8367         pthread_sigmask: Make declaration C++ safe.
8368         * lib/signal.in.h: In two special conditions, just do an #include_next.
8369         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8370         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
8371         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8372         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8373         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
8374         not REPLACE_PTHREAD_MASK.
8375         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
8376         not REPLACE_PTHREAD_MASK.
8377         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8378
8379 2011-07-07  Bruno Haible  <bruno@clisp.org>
8380
8381         pthread_sigmask: Fix return value.
8382         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
8383         * lib/pthread_sigmask.c: New file.
8384         * modules/pthread_sigmask (Files): Add it.
8385         (configure.ac): Invoke AC_LIBOBJ.
8386
8387 2011-07-07  Eric Blake  <eblake@redhat.com>
8388
8389         getopt: more portable argv creation
8390         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
8391         const, use char arrays rather than strings.
8392         Suggested by Paul Eggert.
8393
8394 2011-07-07  Bruno Haible  <bruno@clisp.org>
8395
8396         Tests for module 'sigprocmask'.
8397         * modules/sigprocmask-tests: New file.
8398         * tests/test-sigprocmask.c: New file.
8399
8400 2011-07-07  Bruno Haible  <bruno@clisp.org>
8401
8402         float tests: Tweak.
8403         * tests/test-float.c (main): Tweak skip message.
8404
8405 2011-07-07  Eric Blake  <eblake@redhat.com>
8406
8407         getopt: avoid compiler warning during configure
8408         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
8409         assigning string literals to non-const pointer.
8410
8411         getopt-gnu: avoid crash in glibc getopt
8412         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
8413         * tests/test-getopt.h (test_getopt): Enhance test.
8414         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8415         * doc/posix-functions/getopt.texi (getopt): Document it.
8416         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8417         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8418         Likewise.
8419
8420 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8421
8422         getopt: handle W; without long options in getopt [BZ #12922]
8423         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
8424         but no long options are defined, just return 'W'.
8425
8426 2011-07-07  Bruno Haible  <bruno@clisp.org>
8427
8428         Avoid literal tabs.
8429         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
8430         variable containing a tab instead of a literal tab.
8431         Reported by Jim Meyering.
8432
8433 2011-07-07  Bruno Haible  <bruno@clisp.org>
8434
8435         Comments.
8436         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
8437
8438 2011-07-06  Bruno Haible  <bruno@clisp.org>
8439
8440         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
8441         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
8442         <winsock2.h>.
8443         (rpl_fd_isset, FD_ISSET): New definitions, copied from
8444         lib/sys_socket.in.h.
8445         (close, gethostname): Hide declarations from <winsock2.h>.
8446         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8447         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
8448         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
8449         (select): Don't override if gnulib's <sys/select.h> was already
8450         included.
8451         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8452         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8453         setsockopt, shutdown, select): Tweak indentation.
8454
8455 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8456
8457         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
8458         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
8459         in an application that does not use the sys_select module.
8460
8461 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
8462
8463         poll: do not return 0 on timeout=-1
8464         * lib/poll.c: Loop with yield if no events occured
8465
8466 2011-07-06  Eric Blake  <eblake@redhat.com>
8467
8468         pthread_sigmask: always replace when not using pthread
8469         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
8470         replacement when using some threading other than pthread.  Fix
8471         logic bug.
8472
8473 2011-07-06  Bruno Haible  <bruno@clisp.org>
8474
8475         Comments.
8476         * m4/printf.m4: Update comments about mingw.
8477
8478 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8479
8480         sys_select: define sigset_t more portably
8481         * lib/sys_select.in.h: Always include <sys/types.h>, since
8482         we now need sigset_t and mingw defines it there.
8483         Include <signal.h> before split inclusion guard, to avoid
8484         mishaps on Solaris, whose <signal.h> eventually includes us.
8485         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
8486         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
8487         which come from ...
8488         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
8489         gl_CHECK_TYPE_SIGSET_T.
8490         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
8491         does the real work.
8492         * modules/sys_select (Depends-on): Add 'signal'.
8493
8494         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
8495         Suggested by Bruno Haible.
8496
8497         pselect: Use pthread_sigmask, not sigprocmask.
8498         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
8499         multithreaded apps better than sigprocmask does.
8500         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
8501         sigprocmask directly.
8502
8503 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8504
8505         * lib/pselect.c (pselect): Use plain name, without "rpl_".
8506         Don't #undef,  since we don't need any underlying pselect.
8507         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
8508         (Depends-on): Add select.
8509         (Link): Add $(LIBSOCKET).
8510         These changes suggested by Bruno Haible.
8511
8512         pselect: document better
8513         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8514         * doc/posix-functions/pselect.texi (pselect): Document new module.
8515
8516         pthread_sigmask: new module
8517         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8518         * doc/posix-functions/pthread_sigmask.texi: Document new module.
8519         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
8520         This is done only as a macro; I don't know how well that'll
8521         work for C++.  Move <sys/types.h> include before the include_next,
8522         to avoid mishap on Solaris.
8523         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
8524         * modules/signal (Makefile.am): Substitute the check's results.
8525         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
8526
8527         test-pselect: new module
8528         * modules/pselect-tests, tests/test-pselect.c: New files.
8529         * tests/test-select.c, tests/test-sys_select-c++.cc:
8530         If TEST_PSELECT is defined, test pselect instead of testing select.
8531
8532         * tests/test-sys_select.c (sigset_t): Test for it, too.
8533         Suggested by Bruno Haible.
8534
8535 2011-07-05  Eric Blake  <eblake@redhat.com>
8536
8537         snprintf: guarantee %1$d, for libintl
8538         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
8539         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
8540         * doc/posix-functions/snprintf.texi (snprintf): Update.
8541         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8542         * tests/test-snprintf.c (main): Enhance test.
8543         * tests/test-vsnprintf.c (main): Likewise.
8544
8545 2011-07-05  Jim Meyering  <meyering@redhat.com>
8546
8547         maint: exempt stdio-read.c and stdio-write.c from the cppi check
8548         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
8549         per Bruno's request, to accommodate this idiom (no space after "#")
8550         even when the function is inside an #if block:
8551         char *
8552         gets (char *s)
8553         #undef gets
8554         {
8555           ...
8556         }
8557
8558 2011-07-04  Jim Meyering  <meyering@redhat.com>
8559
8560         maint: indent with spaces, not TABs, and add a rule to check this
8561         * tests/test-userspec.c: Indent with spaces, not TABs.
8562         * tests/test-argp.c: Likewise.
8563         * tests/test-c-stack2.sh: Likewise.
8564         * tests/test-parse-duration.sh: Likewise
8565         * m4/strtod.m4: Likewise.
8566         * m4/alloca.m4: Likewise.
8567         * m4/pselect.m4: Likewise.
8568         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
8569
8570 2011-07-03  Jim Meyering  <meyering@redhat.com>
8571
8572         maint.mk: correct omissions in prohibit_argmatch_without_use check
8573         This rule would mistakenly report that argmatch.h is included without
8574         use even when both the argmatch and invalid_arg macro were used.
8575         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
8576         of argmatch and invalid_arg.
8577
8578 2011-07-03  Bruno Haible  <bruno@clisp.org>
8579
8580         Comments about EINTR.
8581         * lib/safe-read.h: Explain the purpose of this module.
8582         * lib/safe-write.h: Likewise.
8583         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
8584         module.
8585         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
8586         module.
8587         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8588
8589 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8590
8591         xnanosleep: Rewrite to use new dtotimespec module.
8592         It has the conversion code that used to be in xnanosleep.
8593         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
8594         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
8595         (TIME_T_MAX): Remove.
8596         (xnanosleep): Rewrite in terms of dtotimespec.
8597         * modules/xnanosleep (Depends-on): Add dtotimespec.
8598         Remove intprops, stdbool.
8599
8600         timespec-add, timespec-sub: new modules
8601         * lib/timespec.h (timespec_add, timespec_sub): New decls.
8602         * lib/timespec-add.c, lib/timespec-sub.c:
8603         * modules/timespec-add, modules/timespec-sub: New files.
8604
8605         dtotimespec: new module
8606         * lib/timespec.h (dtotimespec): New decl.
8607         * lib/dtotimespec.c, modules/dtotimespec: New files.
8608
8609         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
8610
8611         pselect: new module
8612         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
8613         (pselect): New decls.
8614         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
8615         since the standard pselect decl uses 'restrict'.
8616         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
8617         HAVE_PSELECT, REPLACE_PSELECT.
8618         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
8619         HAVE_PSELECT, REPLACE_PSELECT.
8620         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
8621
8622         sys_select: don't depend on sys_socket
8623         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
8624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
8625         This fix works on GNU and GNU-like platforms, but has not been tested
8626         on native Windows.
8627         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
8628         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
8629         gl_HEADER_SYS_SOCKET.
8630         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
8631         gl_PREREQ_SYS_H_WINSOCK2.
8632
8633 2011-06-29  Eric Blake  <eblake@redhat.com>
8634
8635         pipe2: fix C89 compile problem
8636         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
8637         Reported by Bruno Haible.
8638
8639         pipe, pipe2: don't corrupt fd on error
8640         * lib/pipe.c (pipe): Leave fd unchanged on error.
8641         * lib/pipe2.c (pipe2): Likewise.
8642         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
8643         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8644
8645 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
8646
8647         mmap-anon: do not use regular expressions inadvertently
8648         * m4/mmap-anon.m4: Remove trailing period from strings sought
8649         in the output.
8650
8651 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
8652
8653         nanosleep: fix integer overflow problem
8654         * lib/nanosleep.c (my_usleep): Don't assume signed integer
8655         arithmetic wraps around on overflow.
8656
8657         nanosleep: simplify carrying
8658         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
8659         first call to the underyling nanosleep, not for the last one.
8660         This doesn't fix any bugs, but it simplifies the computation of
8661         the remaining delay.  Found while auditing integer overflow issues.
8662
8663         dup2: remove test for existence of fcntl
8664         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
8665         "#if HAVE_FCNTL", in the configure-time test program.
8666         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
8667         and therefore speeds up "configure" a bit.  Found while
8668         adding the dup2 module to Emacs.
8669
8670 2011-06-24  Eric Blake  <eblake@redhat.com>
8671
8672         maint.mk: enhance useless header checks
8673         * top/maint.mk (_sc_header_without_use): Check both include
8674         styles.
8675         (sc_prohibit_assert_without_use)
8676         (sc_prohibit_close_stream_without_use)
8677         (sc_prohibit_getopt_without_use)
8678         (sc_prohibit_quotearg_without_use)
8679         (sc_prohibit_quote_without_use)
8680         (sc_prohibit_long_options_without_use)
8681         (sc_prohibit_inttostr_without_use)
8682         (sc_prohibit_ignore_value_without_use)
8683         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
8684         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
8685         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
8686         (sc_prohibit_hash_pjw_without_use)
8687         (sc_prohibit_safe_read_without_use)
8688         (sc_prohibit_argmatch_without_use)
8689         (sc_prohibit_canonicalize_without_use)
8690         (sc_prohibit_root_dev_ino_without_use)
8691         (sc_prohibit_openat_without_use)
8692         (sc_prohibit_c_ctype_without_use)
8693         (sc_prohibit_signal_without_use)
8694         (sc_prohibit_stdio--_without_use)
8695         (sc_prohibit_stdio-safer_without_use)
8696         (sc_prohibit_strings_without_use)
8697         (sc_prohibit_intprops_without_use)
8698         (sc_prohibit_stddef_without_use)
8699         (sc_prohibit_xfreopen_without_use): Update clients.
8700
8701 2011-06-24  Jim Meyering  <meyering@redhat.com>
8702
8703         syntax-check: keep one maint.mk rule in sync with its header
8704         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
8705         of the bug Eric has just fixed, with today's commit 25e4c2ec.
8706         I prefer to avoid temporary files here, so use <(...), but that
8707         is not supported by /bin/sh, so...
8708         (SHELL): Define to /bin/bash.
8709
8710 2011-06-24  Eric Blake  <eblake@redhat.com>
8711
8712         maint.mk: update sc_prohibit_intprops_without_use
8713         * top/maint.mk (_intprops_names): Match recent changes.
8714
8715 2011-06-24  Bruno Haible  <bruno@clisp.org>
8716
8717         strerror-override: No-op tweak.
8718         * lib/strerror-override.h (strerror_override): Reorder conditions,
8719         for consistency with lib/strerror-override.c.
8720
8721 2011-06-23  Eric Blake  <eblake@redhat.com>
8722
8723         maint.mk: test further PATH_MAX issues
8724         * top/maint.mk (sc_prohibit_path_max_array): Rename...
8725         (sc_prohibit_path_max_allocation): ...and also test alloca.
8726         Suggested by Jim Meyering.
8727
8728 2011-06-22  Eric Blake  <eblake@redhat.com>
8729
8730         maint.mk: add syntax-check to avoid char[PATH_MAX]
8731         * top/maint.mk (sc_prohibit_path_max_array): New rule.
8732
8733         stat: be robust to PATH_MAX definition
8734         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
8735         * modules/stat (Depends-on): Add verify.
8736
8737         link: work around IRIX bug
8738         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
8739         * lib/link.c (rpl_link): Work around it.
8740         * tests/test-link.h (test_link): Enhance test.
8741         * doc/posix-functions/link.texi (link): Document the bug.
8742
8743         getopt: silence clang warning
8744         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
8745         dereference.
8746         Reported by Gustavo Martin Domato.
8747
8748 2011-06-22  Jim Meyering  <meyering@redhat.com>
8749
8750         bootstrap: do not insert a blank line into each .gitignore file
8751         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
8752
8753 2011-06-21  Eric Blake  <eblake@redhat.com>
8754
8755         perror: test for output mismatch
8756         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
8757         perror on IRIX.
8758
8759         strerror_r: fix OpenBSD behavior on out-of-range
8760         * lib/strerror_r.c (strerror_r): Always use maximal string.
8761         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8762
8763         strerror_r: fix OpenBSD behavior on 0
8764         * lib/strerror-override.c (strerror_override): Also override 0
8765         when needed.
8766         * lib/strerror-override.h (strerror_override): Likewise.
8767         * lib/strerror.c (strerror): Simplify, now that 0 override is done
8768         earlier.
8769         * lib/strerror_r.c (strerror_r): Likewise.
8770         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
8771         behavior...
8772         (gl_FUNC_STRERROR_0): ...into new macro.
8773         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
8774         is overridden.
8775         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
8776         * modules/strerror-override (Files): Add strerror.m4.
8777         (configure.ac): Also provide override for 0 when needed.
8778         * doc/posix-functions/strerror.texi (strerror): Document this.
8779         * doc/posix-functions/perror.texi (perror): Likewise.
8780
8781         perror: adjust array size
8782         * modules/perror (Depends-on): Add strerror-override.
8783         * lib/perror.c (perror): Use it to avoid magic number.
8784
8785         strerror-override: reduce size
8786         * lib/strerror-override.c (strerror_override): Use fewer lines.
8787
8788 2011-06-20  Bruno Haible  <bruno@clisp.org>
8789
8790         pathmax: Ensure correct value for PATH_MAX on HP-UX.
8791         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
8792
8793 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8794
8795         alloca: port to compilers that can optimize like GCC 4.6.0
8796         * lib/alloca.c (find_stack_direction): New signature, taken from
8797         Autoconf git.  This works with GCC 4.6.0.  This code should never
8798         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
8799         be used with other compilers that optimize as well as GCC 4.6.0 does.
8800         (alloca): Adjust to new signature.
8801         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
8802         New macro, which patches Autoconf in a similar way.
8803
8804         c-stack: stop worrying about stack direction
8805         * lib/c-stack.c (find_stack_direction): Remove.
8806         (segv_handler): Don't worry about stack direction growth, as it's
8807         too much of a pain to configure this correctly, given how compilers
8808         are optimizing-away our stack-growth detection code.  Instead, assume
8809         that any access to just before or just after the stack is OK.
8810         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8811         Don't require AC_FUNC_ALLOCA; no longer needed.
8812
8813 2011-06-20  Eric Blake  <eblake@redhat.com>
8814
8815         test-stat: don't allocate PATH_MAX bytes
8816         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
8817         PATH_MAX-sized buffer.
8818         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
8819         * modules/stat-tests (Depends-on): Likewise.
8820         * tests/test-fstatat.c (includes): Drop pathmax.h.
8821         * tests/test-stat.c (includes): Likewise.
8822         Reported by Bruno Haible.
8823
8824 2011-06-20  Bruno Haible  <bruno@clisp.org>
8825
8826         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
8827         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
8828         * lib/float.c: New file.
8829         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
8830         REPLACE_FLOAT_LDBL.
8831         * modules/float (Files): Add lib/float.c.
8832         (configure.ac): Invoke AC_LIBOBJ.
8833         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
8834
8835 2011-06-20  Bruno Haible  <bruno@clisp.org>
8836
8837         Tests for module 'float'.
8838         * modules/float-tests: New file.
8839         * tests/test-float.c: New file.
8840
8841 2011-06-19  Bruno Haible  <bruno@clisp.org>
8842
8843         isinf: Coding style.
8844         * lib/isinf.c: Use GNU coding style.
8845
8846 2011-06-19  Bruno Haible  <bruno@clisp.org>
8847
8848         linkat test: Avoid test failure on AIX 7.1.
8849         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
8850         * tests/test-link.h (test_link): Likewise.
8851
8852 2011-06-19  Bruno Haible  <bruno@clisp.org>
8853
8854         pread test: Avoid test failure on OpenBSD 4.9.
8855         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
8856
8857 2011-06-19  Bruno Haible  <bruno@clisp.org>
8858
8859         sprintf-posix: Fix test failure on AIX 7.1.
8860         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
8861         * doc/posix-functions/dprintf.texi: Mention limited precision problem
8862         on AIX.
8863         * doc/posix-functions/fprintf.texi: Likewise.
8864         * doc/posix-functions/printf.texi: Likewise.
8865         * doc/posix-functions/snprintf.texi: Likewise.
8866         * doc/posix-functions/sprintf.texi: Likewise.
8867         * doc/posix-functions/vdprintf.texi: Likewise.
8868         * doc/posix-functions/vfprintf.texi: Likewise.
8869         * doc/posix-functions/vprintf.texi: Likewise.
8870         * doc/posix-functions/vsnprintf.texi: Likewise.
8871         * doc/posix-functions/vsprintf.texi: Likewise.
8872
8873 2011-06-19  Bruno Haible  <bruno@clisp.org>
8874
8875         roundl-ieee: Fix test failure on AIX 7.1.
8876         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
8877         * doc/posix-functions/roundl.texi: Mention problem with negative
8878         arguments.
8879
8880 2011-06-19  Bruno Haible  <bruno@clisp.org>
8881
8882         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8883         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
8884         * doc/posix-functions/round.texi: Mention problem with negative
8885         arguments.
8886         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
8887
8888 2011-06-19  Bruno Haible  <bruno@clisp.org>
8889
8890         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8891         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
8892         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
8893         * doc/posix-functions/roundf.texi: Mention problem with negative
8894         arguments.
8895         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
8896
8897 2011-06-19  Bruno Haible  <bruno@clisp.org>
8898
8899         ceilf-ieee: Work around bug on MacOS X 10.5.
8900         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
8901
8902         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
8903         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
8904         IEEE compliant, avoid compiler optimizations.
8905         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
8906         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8907         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
8908         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8909         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8910         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8911         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8912         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8913         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8914         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8915
8916 2011-06-19  Bruno Haible  <bruno@clisp.org>
8917
8918         ceilf-ieee: Work around bug on AIX 7.1.
8919         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
8920         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
8921
8922 2011-06-19  Bruno Haible  <bruno@clisp.org>
8923
8924         ceil-ieee: Work around bug on AIX 7.1.
8925         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
8926         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
8927
8928 2011-06-18  Bruno Haible  <bruno@clisp.org>
8929
8930         fsync test: Avoid test failure on MacOS X and AIX.
8931         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
8932         EINVAL.
8933
8934 2011-06-18  Bruno Haible  <bruno@clisp.org>
8935
8936         openat, fdopendir tests: Fix link errors.
8937         * modules/openat-tests (Depends-on): Add progname.
8938         * modules/fdopendir-tests (Depends-on): Likewise.
8939         * tests/test-fchownat.c: Include progname.h.
8940         (main): Call set_program_name.
8941         * tests/test-fstatat.c: Include progname.h.
8942         (main): Call set_program_name.
8943         * tests/test-mkdirat.c: Include progname.h.
8944         (main): Call set_program_name.
8945         * tests/test-openat.c: Include progname.h.
8946         (main): Call set_program_name.
8947         * tests/test-unlinkat.c: Include progname.h.
8948         (main): Call set_program_name.
8949         * tests/test-fdopendir.c: Include progname.h.
8950         (main): Call set_program_name.
8951
8952 2011-06-18  Bruno Haible  <bruno@clisp.org>
8953
8954         Doc update.
8955         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
8956         HP-UX.
8957         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
8958
8959 2011-06-18  Bruno Haible  <bruno@clisp.org>
8960
8961         getcwd tests: Avoid compilation error on HP-UX 11.31.
8962         * modules/getcwd-tests (Depends-on): Add pathmax.
8963         * tests/test-getcwd.c: Include pathmax.h.
8964
8965 2011-06-18  Bruno Haible  <bruno@clisp.org>
8966
8967         isfinite, isinf: Fix link error on AIX 6 and 7.
8968         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
8969         needed, also test the macro with a 'float' argument.
8970         * m4/isinf.m4 (gl_ISINF): Likewise.
8971
8972 2011-06-18  Bruno Haible  <bruno@clisp.org>
8973
8974         getloadavg: Don't clobber LIBS. Regression from previous commit.
8975         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
8976         AC_CHECK_LIB from here...
8977         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
8978         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
8979         gl_func_getloadavg_done.
8980         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8981
8982 2011-06-18  Bruno Haible  <bruno@clisp.org>
8983
8984         clean-temp: Improve documentation.
8985         * lib/clean-temp.h: Explain better how to use this module.
8986         Reported by John Darrington <john@darrington.wattle.id.au>.
8987
8988 2011-06-17  Bruno Haible  <bruno@clisp.org>
8989
8990         pread, pwrite: Avoid cc warning on AIX.
8991         * lib/unistd.in.h (pread): Undefine before defining as a macro.
8992         (pwrite): Likewise.
8993
8994 2011-06-17  Bruno Haible  <bruno@clisp.org>
8995
8996         spawn-pipe tests: Fix link error.
8997         * tests/test-spawn-pipe-child.c: Undefine fprintf.
8998         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8999
9000 2011-06-17  Bruno Haible  <bruno@clisp.org>
9001
9002         Tests: Remove unnecessary dependency.
9003         * modules/canonicalize-tests (Depends-on): Remove progname.
9004         * modules/chown-tests (Depends-on): Likewise.
9005         * modules/dirname-tests (Depends-on): Likewise.
9006         * modules/fdopendir-tests (Depends-on): Likewise.
9007         * modules/fdutimensat-tests (Depends-on): Likewise.
9008         * modules/hash-tests (Depends-on): Likewise.
9009         * modules/lchown-tests (Depends-on): Likewise.
9010         * modules/linkat-tests (Depends-on): Likewise.
9011         * modules/renameat-tests (Depends-on): Likewise.
9012         * modules/spawn-pipe-tests (Depends-on): Likewise.
9013         * modules/utimensat-tests (Depends-on): Likewise.
9014
9015 2011-06-17  Bruno Haible  <bruno@clisp.org>
9016
9017         spawn-pipe tests: Fix link error.
9018         * tests/test-spawn-pipe-child.c: Undefine fflush.
9019
9020 2011-06-17  Bruno Haible  <bruno@clisp.org>
9021
9022         Fix tests link errors.
9023         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
9024         * modules/chown-tests (Makefile.am): Don't link test-chown with
9025         LIBINTL.
9026         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
9027         LIBINTL.
9028         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
9029         LIBINTL.
9030         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
9031         LIBINTL.
9032
9033 2011-06-16  Bruno Haible  <bruno@clisp.org>
9034
9035         crypto/gc-sha1: Fix recent regression.
9036         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
9037         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
9038
9039         crypto/gc-md5: Fix recent regression.
9040         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
9041
9042         crypto/gc-md4: Fix recent regression.
9043         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
9044         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
9045
9046         crypto/gc-arctwo: Fix recent regression.
9047         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
9048         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
9049
9050         crypto/gc-rijndael: Fix recent regression.
9051         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
9052         (configure.ac): Invoke AC_LIBOBJ here.
9053         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
9054         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9055
9056         crypto/gc-hmac-sha1: Fix recent regression.
9057         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
9058         (configure.ac): Invoke AC_LIBOBJ here.
9059         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
9060         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9061
9062         crypto/gc-hmac-md5: Fix recent regression.
9063         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
9064         (configure.ac): Invoke AC_LIBOBJ here.
9065         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
9066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9067
9068         crypto/gc-des: Fix recent regression.
9069         * modules/crypto/gc-des (Files): Remove m4/des.m4.
9070         (configure.ac): Invoke AC_LIBOBJ here.
9071         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
9072         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9073
9074         crypto/gc-arcfour: Fix recent regression.
9075         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
9076         (configure.ac): Invoke AC_LIBOBJ here.
9077         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
9078         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9079
9080 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
9081
9082         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
9083         After the 2011-05-21 change, this macro requires
9084         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
9085         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9086
9087 2011-06-16  Bruno Haible  <bruno@clisp.org>
9088
9089         fprintftime: Move AC_LIBOBJ invocations to module description.
9090         * m4/fprintftime.m4: Remove file.
9091         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
9092         (configure.ac): Remove gl_FPRINTFTIME call.
9093         (Makefile.am): Augment lib_SOURCES.
9094         Reported by Jim Meyering.
9095
9096 2011-06-16  Bruno Haible  <bruno@clisp.org>
9097
9098         tmpfile-safer: Finish 2011-05-23 commit.
9099         * m4/stdio-safer.m4: Really remove file.
9100         Reported by Jim Meyering.
9101
9102 2011-06-16  Bruno Haible  <bruno@clisp.org>
9103
9104         syntax-check: Fix typo.
9105         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
9106         printf-posix.m4.
9107         Reported by Jim Meyering.
9108
9109 2011-06-13  Jim Meyering  <meyering@redhat.com>
9110
9111         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
9112         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
9113
9114 2011-05-23  Bruno Haible  <bruno@clisp.org>
9115
9116         yesno: Move AC_LIBOBJ invocations to module description.
9117         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
9118         * modules/yesno (Makefile.am): Augment lib_SOURCES.
9119
9120 2011-05-23  Bruno Haible  <bruno@clisp.org>
9121
9122         xstrtol: Move AC_LIBOBJ invocations to module description.
9123         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
9124         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
9125
9126 2011-05-23  Bruno Haible  <bruno@clisp.org>
9127
9128         xstrtold: Move AC_LIBOBJ invocations to module description.
9129         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
9130         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
9131
9132 2011-05-23  Bruno Haible  <bruno@clisp.org>
9133
9134         xstrtod: Move AC_LIBOBJ invocations to module description.
9135         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
9136         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
9137
9138 2011-05-23  Bruno Haible  <bruno@clisp.org>
9139
9140         xnanosleep: Move AC_LIBOBJ invocations to module description.
9141         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
9142         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
9143
9144 2011-05-23  Bruno Haible  <bruno@clisp.org>
9145
9146         xgetcwd: Move AC_LIBOBJ invocations to module description.
9147         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
9148         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
9149
9150 2011-05-23  Bruno Haible  <bruno@clisp.org>
9151
9152         xalloc: Move AC_LIBOBJ invocations to module description.
9153         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
9154         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
9155
9156 2011-05-23  Bruno Haible  <bruno@clisp.org>
9157
9158         write-any-file: Move AC_LIBOBJ invocations to module description.
9159         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
9160         invocation.
9161         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
9162
9163 2011-05-23  Bruno Haible  <bruno@clisp.org>
9164
9165         utimens: Move AC_LIBOBJ invocations to module description.
9166         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
9167         * modules/utimens (Makefile.am): Augment lib_SOURCES.
9168
9169 2011-05-23  Bruno Haible  <bruno@clisp.org>
9170
9171         utimecmp: Move AC_LIBOBJ invocations to module description.
9172         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
9173         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
9174
9175 2011-05-23  Bruno Haible  <bruno@clisp.org>
9176
9177         userspec: Move AC_LIBOBJ invocations to module description.
9178         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
9179         * modules/userspec (Makefile.am): Augment lib_SOURCES.
9180
9181 2011-05-23  Bruno Haible  <bruno@clisp.org>
9182
9183         unlinkdir: Move AC_LIBOBJ invocations to module description.
9184         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
9185         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
9186
9187 2011-05-23  Bruno Haible  <bruno@clisp.org>
9188
9189         unistd-safer: Move AC_LIBOBJ invocations to module description.
9190         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
9191         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
9192
9193 2011-05-23  Bruno Haible  <bruno@clisp.org>
9194
9195         tempname: Move AC_LIBOBJ invocations to module description.
9196         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
9197         * modules/tempname (Makefile.am): Augment lib_SOURCES.
9198
9199 2011-05-23  Bruno Haible  <bruno@clisp.org>
9200
9201         strftime: Move AC_LIBOBJ invocations to module description.
9202         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
9203         * modules/strftime (Makefile.am): Augment lib_SOURCES.
9204
9205 2011-05-23  Bruno Haible  <bruno@clisp.org>
9206
9207         stdlib-safer: Move AC_LIBOBJ invocations to module description.
9208         * m4/stdlib-safer.m4: Remove file.
9209         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
9210         (configure.ac): Remove gl_STDLIB_SAFER call.
9211         (Makefile.am): Augment lib_SOURCES.
9212
9213 2011-05-23  Bruno Haible  <bruno@clisp.org>
9214
9215         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
9216         * m4/stdio-safer.m4: Remove file.
9217         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
9218         (configure.ac): Remove gl_TMPFILE_SAFER call.
9219         (Makefile.am): Augment lib_SOURCES.
9220
9221 2011-05-23  Bruno Haible  <bruno@clisp.org>
9222
9223         popen-safer: Move AC_LIBOBJ invocations to module description.
9224         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
9225         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
9226         (configure.ac): Remove gl_POPEN_SAFER call.
9227         (Makefile.am): Augment lib_SOURCES.
9228
9229 2011-05-23  Bruno Haible  <bruno@clisp.org>
9230
9231         freopen-safer: Move AC_LIBOBJ invocations to module description.
9232         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
9233         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
9234         (configure.ac): Remove gl_FREOPEN_SAFER call.
9235         (Makefile.am): Augment lib_SOURCES.
9236
9237 2011-05-23  Bruno Haible  <bruno@clisp.org>
9238
9239         fopen-safer: Move AC_LIBOBJ invocations to module description.
9240         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
9241         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
9242         (configure.ac): Remove gl_FOPEN_SAFER call.
9243         (Makefile.am): Augment lib_SOURCES.
9244
9245 2011-05-23  Bruno Haible  <bruno@clisp.org>
9246
9247         crypto/sha512: Move AC_LIBOBJ invocations to module description.
9248         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
9249         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
9250
9251 2011-05-23  Bruno Haible  <bruno@clisp.org>
9252
9253         crypto/sha256: Move AC_LIBOBJ invocations to module description.
9254         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
9255         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
9256
9257 2011-05-23  Bruno Haible  <bruno@clisp.org>
9258
9259         crypto/sha1: Move AC_LIBOBJ invocations to module description.
9260         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
9261         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
9262
9263 2011-05-23  Bruno Haible  <bruno@clisp.org>
9264
9265         settime: Move AC_LIBOBJ invocations to module description.
9266         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
9267         * modules/settime (Makefile.am): Augment lib_SOURCES.
9268
9269 2011-05-23  Bruno Haible  <bruno@clisp.org>
9270
9271         savedir: Move AC_LIBOBJ invocations to module description.
9272         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
9273         * modules/savedir (Makefile.am): Augment lib_SOURCES.
9274
9275 2011-05-23  Bruno Haible  <bruno@clisp.org>
9276
9277         save-cwd: Move AC_LIBOBJ invocations to module description.
9278         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
9279         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
9280
9281 2011-05-23  Bruno Haible  <bruno@clisp.org>
9282
9283         same: Move AC_LIBOBJ invocations to module description.
9284         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
9285         * modules/same (Makefile.am): Augment lib_SOURCES.
9286
9287 2011-05-23  Bruno Haible  <bruno@clisp.org>
9288
9289         safe-write: Move AC_LIBOBJ invocations to module description.
9290         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
9291         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
9292         instead of gl_SAFE_WRITE.
9293         (Makefile.am): Augment lib_SOURCES.
9294
9295 2011-05-23  Bruno Haible  <bruno@clisp.org>
9296
9297         safe-read: Move AC_LIBOBJ invocations to module description.
9298         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
9299         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
9300         of gl_SAFE_READ.
9301         (Makefile.am): Augment lib_SOURCES.
9302
9303 2011-05-23  Bruno Haible  <bruno@clisp.org>
9304
9305         safe-alloc: Move AC_LIBOBJ invocations to module description.
9306         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
9307         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
9308
9309 2011-05-23  Bruno Haible  <bruno@clisp.org>
9310
9311         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
9312         * m4/rijndael.m4: Remove file.
9313         * modules/crypto/rijndael (Files): Remove it.
9314         (configure.ac): Remove gl_RIJNDAEL call.
9315         (Makefile.am): Augment lib_SOURCES.
9316
9317 2011-05-23  Bruno Haible  <bruno@clisp.org>
9318
9319         readtokens: Move AC_LIBOBJ invocations to module description.
9320         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
9321         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
9322
9323 2011-05-23  Bruno Haible  <bruno@clisp.org>
9324
9325         read-file: Move AC_LIBOBJ invocations to module description.
9326         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
9327         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
9328         of gl_FUNC_READ_FILE.
9329         (Makefile.am): Augment lib_SOURCES.
9330
9331 2011-05-23  Bruno Haible  <bruno@clisp.org>
9332
9333         quotearg: Move AC_LIBOBJ invocations to module description.
9334         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
9335         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
9336
9337 2011-05-23  Bruno Haible  <bruno@clisp.org>
9338
9339         quote: Move AC_LIBOBJ invocations to module description.
9340         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
9341         * modules/quote (Makefile.am): Augment lib_SOURCES.
9342
9343 2011-05-23  Bruno Haible  <bruno@clisp.org>
9344
9345         posixver: Move AC_LIBOBJ invocations to module description.
9346         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
9347         * modules/posixver (Makefile.am): Augment lib_SOURCES.
9348
9349 2011-05-23  Bruno Haible  <bruno@clisp.org>
9350
9351         posixtm: Move AC_LIBOBJ invocations to module description.
9352         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
9353         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
9354
9355 2011-05-23  Bruno Haible  <bruno@clisp.org>
9356
9357         physmem: Move AC_LIBOBJ invocations to module description.
9358         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
9359         * modules/physmem (Makefile.am): Augment lib_SOURCES.
9360
9361 2011-05-23  Bruno Haible  <bruno@clisp.org>
9362
9363         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
9364         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
9365         invocation.
9366         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
9367
9368 2011-05-23  Bruno Haible  <bruno@clisp.org>
9369
9370         mpsort: Move AC_LIBOBJ invocations to module description.
9371         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
9372         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
9373
9374 2011-05-23  Bruno Haible  <bruno@clisp.org>
9375
9376         modechange: Move AC_LIBOBJ invocations to module description.
9377         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
9378         * modules/modechange (Makefile.am): Augment lib_SOURCES.
9379
9380 2011-05-23  Bruno Haible  <bruno@clisp.org>
9381
9382         mkdir-p: Move AC_LIBOBJ invocations to module description.
9383         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
9384         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
9385
9386 2011-05-23  Bruno Haible  <bruno@clisp.org>
9387
9388         mkancesdirs: Move AC_LIBOBJ invocations to module description.
9389         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
9390         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
9391
9392 2011-05-23  Bruno Haible  <bruno@clisp.org>
9393
9394         mgetgroups: Move AC_LIBOBJ invocations to module description.
9395         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
9396         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
9397
9398 2011-05-23  Bruno Haible  <bruno@clisp.org>
9399
9400         memxor: Move AC_LIBOBJ invocations to module description.
9401         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
9402         * modules/memxor (Makefile.am): Augment lib_SOURCES.
9403
9404 2011-05-23  Bruno Haible  <bruno@clisp.org>
9405
9406         memcoll: Move AC_LIBOBJ invocations to module description.
9407         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
9408         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
9409
9410 2011-05-23  Bruno Haible  <bruno@clisp.org>
9411
9412         memcasecmp: Move AC_LIBOBJ invocations to module description.
9413         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
9414         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
9415
9416 2011-05-23  Bruno Haible  <bruno@clisp.org>
9417
9418         crypto/md5: Move AC_LIBOBJ invocations to module description.
9419         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
9420         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
9421
9422 2011-05-23  Bruno Haible  <bruno@clisp.org>
9423
9424         crypto/md4: Move AC_LIBOBJ invocations to module description.
9425         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
9426         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
9427
9428 2011-05-23  Bruno Haible  <bruno@clisp.org>
9429
9430         crypto/md2: Move AC_LIBOBJ invocations to module description.
9431         * m4/md2.m4: Remove file.
9432         * modules/crypto/md2 (Files): Remove it.
9433         (configure.ac): Remove gl_MD2 call.
9434         (Makefile.am): Augment lib_SOURCES.
9435
9436 2011-05-23  Bruno Haible  <bruno@clisp.org>
9437
9438         long-options: Move AC_LIBOBJ invocations to module description.
9439         * m4/long-options.m4: Remove file.
9440         * modules/long-options (Files): Remove it.
9441         (configure.ac): Remove gl_LONG_OPTIONS call.
9442         (Makefile.am): Augment lib_SOURCES.
9443
9444 2011-05-23  Bruno Haible  <bruno@clisp.org>
9445
9446         i-ring: Move AC_LIBOBJ invocations to module description.
9447         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
9448         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
9449
9450 2011-05-23  Bruno Haible  <bruno@clisp.org>
9451
9452         idcache: Move AC_LIBOBJ invocations to module description.
9453         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
9454         * modules/idcache (Makefile.am): Augment lib_SOURCES.
9455
9456 2011-05-23  Bruno Haible  <bruno@clisp.org>
9457
9458         human: Move AC_LIBOBJ invocations to module description.
9459         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
9460         * modules/human (Makefile.am): Augment lib_SOURCES.
9461
9462 2011-05-23  Bruno Haible  <bruno@clisp.org>
9463
9464         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
9465         * m4/hmac-sha1.m4: Remove file.
9466         * modules/crypto/hmac-sha1 (Files): Remove it.
9467         (configure.ac): Remove gl_HMAC_SHA1 call.
9468         (Makefile.am): Augment lib_SOURCES.
9469
9470 2011-05-23  Bruno Haible  <bruno@clisp.org>
9471
9472         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
9473         * m4/hmac-md5.m4: Remove file.
9474         * modules/crypto/hmac-md5 (Files): Remove it.
9475         (configure.ac): Remove gl_HMAC_MD5 call.
9476         (Makefile.am): Augment lib_SOURCES.
9477
9478 2011-05-23  Bruno Haible  <bruno@clisp.org>
9479
9480         hash: Move AC_LIBOBJ invocations to module description.
9481         * m4/hash.m4: Remove file.
9482         * modules/hash (Files): Remove it.
9483         (configure.ac): Remove gl_HASH call.
9484         (Makefile.am): Augment lib_SOURCES.
9485
9486 2011-05-23  Bruno Haible  <bruno@clisp.org>
9487
9488         hard-locale: Move AC_LIBOBJ invocations to module description.
9489         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
9490         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
9491
9492 2011-05-23  Bruno Haible  <bruno@clisp.org>
9493
9494         getugroups: Move AC_LIBOBJ invocations to module description.
9495         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
9496         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
9497
9498 2011-05-23  Bruno Haible  <bruno@clisp.org>
9499
9500         gettime: Move AC_LIBOBJ invocations to module description.
9501         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
9502         * modules/gettime (Makefile.am): Augment lib_SOURCES.
9503
9504 2011-05-23  Bruno Haible  <bruno@clisp.org>
9505
9506         getndelim2: Move AC_LIBOBJ invocations to module description.
9507         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
9508         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
9509
9510 2011-05-23  Bruno Haible  <bruno@clisp.org>
9511
9512         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
9513         * m4/gc-pbkdf2-sha1.m4: Remove file.
9514         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
9515         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
9516         (Makefile.am): Augment lib_SOURCES.
9517
9518 2011-05-23  Bruno Haible  <bruno@clisp.org>
9519
9520         fts: Move AC_LIBOBJ invocations to module description.
9521         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
9522         * modules/fts (configure.ac): ... to here.
9523
9524 2011-05-23  Bruno Haible  <bruno@clisp.org>
9525
9526         file-type: Move AC_LIBOBJ invocations to module description.
9527         * m4/file-type.m4: Remove file.
9528         * modules/file-type (Files): Remove it.
9529         (configure.ac): Remove gl_FILE_TYPE call.
9530         (Makefile.am): Augment lib_SOURCES.
9531
9532 2011-05-23  Bruno Haible  <bruno@clisp.org>
9533
9534         filenamecat*: Respect rules for use of AC_LIBOBJ.
9535         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
9536         Remove AC_LIBOBJ invocation.
9537         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
9538         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
9539
9540 2011-05-23  Bruno Haible  <bruno@clisp.org>
9541
9542         filemode: Move AC_LIBOBJ invocations to module description.
9543         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
9544         * modules/filemode (Makefile.am): Augment lib_SOURCES.
9545
9546 2011-05-23  Bruno Haible  <bruno@clisp.org>
9547
9548         openat-safer: Move AC_LIBOBJ invocations to module description.
9549         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
9550         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
9551
9552 2011-05-23  Bruno Haible  <bruno@clisp.org>
9553
9554         fcntl-safer: Move AC_LIBOBJ invocations to module description.
9555         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
9556         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
9557
9558 2011-05-23  Bruno Haible  <bruno@clisp.org>
9559
9560         exclude: Move AC_LIBOBJ invocations to module description.
9561         * m4/exclude.m4: Remove file.
9562         * modules/exclude (Files): Remove it.
9563         (configure.ac): Remove gl_EXCLUDE call.
9564         (Makefile.am): Augment lib_SOURCES.
9565
9566 2011-05-23  Bruno Haible  <bruno@clisp.org>
9567
9568         dirname*: Respect rules for use of AC_LIBOBJ.
9569         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
9570         invocations.
9571         * modules/dirname (Makefile.am): Augment lib_SOURCES.
9572         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
9573
9574 2011-05-23  Bruno Haible  <bruno@clisp.org>
9575
9576         dirent-safer: Move AC_LIBOBJ invocations to module description.
9577         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
9578         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
9579
9580 2011-05-23  Bruno Haible  <bruno@clisp.org>
9581
9582         crypto/des: Move AC_LIBOBJ invocations to module description.
9583         * m4/des.m4: Remove file.
9584         * modules/crypto/des (Files): Remove it.
9585         (configure.ac): Remove gl_DES call.
9586         (Makefile.am): Augment lib_SOURCES.
9587
9588 2011-05-23  Bruno Haible  <bruno@clisp.org>
9589
9590         cycle-check: Move AC_LIBOBJ invocations to module description.
9591         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
9592         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
9593
9594 2011-05-23  Bruno Haible  <bruno@clisp.org>
9595
9596         c-strtold: Move AC_LIBOBJ invocations to module description.
9597         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
9598         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
9599
9600 2011-05-23  Bruno Haible  <bruno@clisp.org>
9601
9602         c-strtod: Move AC_LIBOBJ invocations to module description.
9603         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
9604         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
9605
9606 2011-05-23  Bruno Haible  <bruno@clisp.org>
9607
9608         crc: Move AC_LIBOBJ invocations to module description.
9609         * m4/crc.m4: Remove file.
9610         * modules/crc (Files): Remove it.
9611         (configure.ac): Remove gl_CRC call.
9612         (Makefile.am): Augment lib_SOURCES.
9613
9614 2011-05-23  Bruno Haible  <bruno@clisp.org>
9615
9616         close-stream: Move AC_LIBOBJ invocations to module description.
9617         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
9618         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
9619
9620 2011-05-23  Bruno Haible  <bruno@clisp.org>
9621
9622         closeout: Move AC_LIBOBJ invocations to module description.
9623         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
9624         * modules/closeout (Makefile.am): Augment lib_SOURCES.
9625
9626 2011-05-23  Bruno Haible  <bruno@clisp.org>
9627
9628         closein: Move AC_LIBOBJ invocations to module description.
9629         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
9630         * modules/closein (Makefile.am): Augment lib_SOURCES.
9631
9632 2011-05-23  Bruno Haible  <bruno@clisp.org>
9633
9634         cloexec: Move AC_LIBOBJ invocations to module description.
9635         * m4/cloexec.m4: Remove file.
9636         * modules/cloexec (Files): Remove it.
9637         (configure.ac): Remove gl_CLOEXEC call.
9638         (Makefile.am): Augment lib_SOURCES.
9639
9640 2011-05-23  Bruno Haible  <bruno@clisp.org>
9641
9642         check-version: Move AC_LIBOBJ invocations to module description.
9643         * m4/check-version.m4: Remove file.
9644         * modules/check-version (Files): Remove it.
9645         (configure.ac): Remove gl_CHECK_VERSION call.
9646         (Makefile.am): Augment lib_SOURCES.
9647
9648 2011-05-23  Bruno Haible  <bruno@clisp.org>
9649
9650         chdir-safer: Move AC_LIBOBJ invocations to module description.
9651         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
9652         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
9653
9654 2011-05-23  Bruno Haible  <bruno@clisp.org>
9655
9656         canonicalize: Move AC_LIBOBJ invocations to module description.
9657         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
9658         AC_LIBOBJ invocation.
9659         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
9660
9661 2011-05-23  Bruno Haible  <bruno@clisp.org>
9662
9663         canon-host: Move AC_LIBOBJ invocations to module description.
9664         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
9665         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
9666         instead of gl_CANON_HOST.
9667         (Makefile.am): Augment lib_SOURCES.
9668
9669 2011-05-23  Bruno Haible  <bruno@clisp.org>
9670
9671         backupfile: Move AC_LIBOBJ invocations to module description.
9672         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
9673         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
9674
9675 2011-05-23  Bruno Haible  <bruno@clisp.org>
9676
9677         argmatch: Move AC_LIBOBJ invocations to module description.
9678         * m4/argmatch.m4: Remove file.
9679         * modules/argmatch (Files): Remove it.
9680         (configure.ac): Remove gl_ARGMATCH call.
9681         (Makefile.am): Augment lib_SOURCES.
9682
9683 2011-05-23  Bruno Haible  <bruno@clisp.org>
9684
9685         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
9686         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
9687         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
9688
9689 2011-05-23  Bruno Haible  <bruno@clisp.org>
9690
9691         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
9692         * m4/arcfour.m4: Remove file.
9693         * modules/crypto/arcfour (Files): Remove it.
9694         (configure.ac): Remove gl_ARCFOUR call.
9695         (Makefile.am): Augment lib_SOURCES.
9696
9697 2011-05-22  Bruno Haible  <bruno@clisp.org>
9698
9699         write: Move AC_LIBOBJ invocations to module description.
9700         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
9701         * modules/write (configure.ac): ... to here.
9702
9703 2011-05-22  Bruno Haible  <bruno@clisp.org>
9704
9705         wmemset: Move AC_LIBOBJ invocations to module description.
9706         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
9707         here...
9708         * modules/wmemset (configure.ac): ... to here.
9709
9710 2011-05-22  Bruno Haible  <bruno@clisp.org>
9711
9712         wmemmove: Move AC_LIBOBJ invocations to module description.
9713         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
9714         here...
9715         * modules/wmemmove (configure.ac): ... to here.
9716
9717 2011-05-22  Bruno Haible  <bruno@clisp.org>
9718
9719         wmemcpy: Move AC_LIBOBJ invocations to module description.
9720         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
9721         here...
9722         * modules/wmemcpy (configure.ac): ... to here.
9723
9724 2011-05-22  Bruno Haible  <bruno@clisp.org>
9725
9726         wmemcmp: Move AC_LIBOBJ invocations to module description.
9727         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
9728         here...
9729         * modules/wmemcmp (configure.ac): ... to here.
9730
9731 2011-05-22  Bruno Haible  <bruno@clisp.org>
9732
9733         wmemchr: Move AC_LIBOBJ invocations to module description.
9734         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
9735         here...
9736         * modules/wmemchr (configure.ac): ... to here.
9737
9738 2011-05-22  Bruno Haible  <bruno@clisp.org>
9739
9740         wcswidth: Move AC_LIBOBJ invocations to module description.
9741         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
9742         here...
9743         * modules/wcswidth (configure.ac): ... to here.
9744
9745 2011-05-22  Bruno Haible  <bruno@clisp.org>
9746
9747         wcwidth: Respect rules for use of AC_LIBOBJ.
9748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
9749         invocation from here...
9750         * modules/wcwidth (configure.ac): ... to here.
9751         (Depends-on): Update conditions.
9752
9753 2011-05-22  Bruno Haible  <bruno@clisp.org>
9754
9755         wctype: Move AC_LIBOBJ invocations to module description.
9756         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
9757         invocation from here...
9758         * modules/wctype (configure.ac): ... to here.
9759         (Depends-on): Update conditions.
9760
9761 2011-05-22  Bruno Haible  <bruno@clisp.org>
9762
9763         wctrans: Move AC_LIBOBJ invocations to module description.
9764         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
9765         invocation from here...
9766         * modules/wctrans (configure.ac): ... to here.
9767
9768 2011-05-22  Bruno Haible  <bruno@clisp.org>
9769
9770         wctomb: Move AC_LIBOBJ invocations to module description.
9771         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
9772         invocations from here...
9773         * modules/wctomb (configure.ac): ... to here.
9774
9775 2011-05-22  Bruno Haible  <bruno@clisp.org>
9776
9777         wctob: Move AC_LIBOBJ invocations to module description.
9778         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
9779         gl_PREREQ_WCTOB invocations from here...
9780         * modules/wctob (configure.ac): ... to here.
9781         (Depends-on): Update conditions.
9782
9783 2011-05-22  Bruno Haible  <bruno@clisp.org>
9784
9785         wcsxfrm: Move AC_LIBOBJ invocations to module description.
9786         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
9787         here...
9788         * modules/wcsxfrm (configure.ac): ... to here.
9789
9790 2011-05-22  Bruno Haible  <bruno@clisp.org>
9791
9792         wcstok: Move AC_LIBOBJ invocations to module description.
9793         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
9794         * modules/wcstok (configure.ac): ... to here.
9795
9796 2011-05-22  Bruno Haible  <bruno@clisp.org>
9797
9798         wcsstr: Move AC_LIBOBJ invocations to module description.
9799         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
9800         * modules/wcsstr (configure.ac): ... to here.
9801
9802 2011-05-22  Bruno Haible  <bruno@clisp.org>
9803
9804         wcsspn: Move AC_LIBOBJ invocations to module description.
9805         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
9806         * modules/wcsspn (configure.ac): ... to here.
9807
9808 2011-05-22  Bruno Haible  <bruno@clisp.org>
9809
9810         wcsrtombs: Move AC_LIBOBJ invocations to module description.
9811         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
9812         gl_PREREQ_WCSRTOMBS invocations from here...
9813         * modules/wcsrtombs (configure.ac): ... to here.
9814
9815 2011-05-22  Bruno Haible  <bruno@clisp.org>
9816
9817         wcsrchr: Move AC_LIBOBJ invocations to module description.
9818         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
9819         here...
9820         * modules/wcsrchr (configure.ac): ... to here.
9821
9822 2011-05-22  Bruno Haible  <bruno@clisp.org>
9823
9824         wcspbrk: Move AC_LIBOBJ invocations to module description.
9825         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
9826         here...
9827         * modules/wcspbrk (configure.ac): ... to here.
9828
9829 2011-05-22  Bruno Haible  <bruno@clisp.org>
9830
9831         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
9832         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
9833         gl_PREREQ_WCSNRTOMBS invocations from here...
9834         * modules/wcsnrtombs (configure.ac): ... to here.
9835
9836 2011-05-22  Bruno Haible  <bruno@clisp.org>
9837
9838         wcsnlen: Move AC_LIBOBJ invocations to module description.
9839         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
9840         here...
9841         * modules/wcsnlen (configure.ac): ... to here.
9842
9843 2011-05-22  Bruno Haible  <bruno@clisp.org>
9844
9845         wcsncpy: Move AC_LIBOBJ invocations to module description.
9846         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
9847         here...
9848         * modules/wcsncpy (configure.ac): ... to here.
9849
9850 2011-05-22  Bruno Haible  <bruno@clisp.org>
9851
9852         wcsncmp: Move AC_LIBOBJ invocations to module description.
9853         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
9854         here...
9855         * modules/wcsncmp (configure.ac): ... to here.
9856
9857 2011-05-22  Bruno Haible  <bruno@clisp.org>
9858
9859         wcsncat: Move AC_LIBOBJ invocations to module description.
9860         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
9861         here...
9862         * modules/wcsncat (configure.ac): ... to here.
9863
9864 2011-05-22  Bruno Haible  <bruno@clisp.org>
9865
9866         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
9867         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
9868         from here...
9869         * modules/wcsncasecmp (configure.ac): ... to here.
9870
9871 2011-05-22  Bruno Haible  <bruno@clisp.org>
9872
9873         wcslen: Move AC_LIBOBJ invocations to module description.
9874         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
9875         * modules/wcslen (configure.ac): ... to here.
9876
9877 2011-05-22  Bruno Haible  <bruno@clisp.org>
9878
9879         wcsdup: Move AC_LIBOBJ invocations to module description.
9880         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
9881         * modules/wcsdup (configure.ac): ... to here.
9882
9883 2011-05-22  Bruno Haible  <bruno@clisp.org>
9884
9885         wcscspn: Move AC_LIBOBJ invocations to module description.
9886         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
9887         here...
9888         * modules/wcscspn (configure.ac): ... to here.
9889
9890 2011-05-22  Bruno Haible  <bruno@clisp.org>
9891
9892         wcscpy: Move AC_LIBOBJ invocations to module description.
9893         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
9894         * modules/wcscpy (configure.ac): ... to here.
9895
9896 2011-05-22  Bruno Haible  <bruno@clisp.org>
9897
9898         wcscoll: Move AC_LIBOBJ invocations to module description.
9899         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
9900         here...
9901         * modules/wcscoll (configure.ac): ... to here.
9902
9903 2011-05-22  Bruno Haible  <bruno@clisp.org>
9904
9905         wcscmp: Move AC_LIBOBJ invocations to module description.
9906         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
9907         * modules/wcscmp (configure.ac): ... to here.
9908
9909 2011-05-22  Bruno Haible  <bruno@clisp.org>
9910
9911         wcschr: Move AC_LIBOBJ invocations to module description.
9912         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
9913         * modules/wcschr (configure.ac): ... to here.
9914
9915 2011-05-22  Bruno Haible  <bruno@clisp.org>
9916
9917         wcscat: Move AC_LIBOBJ invocations to module description.
9918         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
9919         * modules/wcscat (configure.ac): ... to here.
9920
9921 2011-05-22  Bruno Haible  <bruno@clisp.org>
9922
9923         wcscasecmp: Move AC_LIBOBJ invocations to module description.
9924         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
9925         here...
9926         * modules/wcscasecmp (configure.ac): ... to here.
9927
9928 2011-05-22  Bruno Haible  <bruno@clisp.org>
9929
9930         wcrtomb: Move AC_LIBOBJ invocations to module description.
9931         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
9932         invocations from here...
9933         * modules/wcrtomb (configure.ac): ... to here.
9934
9935 2011-05-22  Bruno Haible  <bruno@clisp.org>
9936
9937         wcpncpy: Move AC_LIBOBJ invocations to module description.
9938         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
9939         here...
9940         * modules/wcpncpy (configure.ac): ... to here.
9941
9942 2011-05-22  Bruno Haible  <bruno@clisp.org>
9943
9944         wcpcpy: Move AC_LIBOBJ invocations to module description.
9945         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
9946         * modules/wcpcpy (configure.ac): ... to here.
9947
9948 2011-05-22  Bruno Haible  <bruno@clisp.org>
9949
9950         waitpid: Move AC_LIBOBJ invocations to module description.
9951         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
9952         invocation from here...
9953         * modules/waitpid (configure.ac): ... to here.
9954
9955 2011-05-22  Bruno Haible  <bruno@clisp.org>
9956
9957         utimensat: Move AC_LIBOBJ invocations to module description.
9958         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
9959         here...
9960         * modules/utimensat (configure.ac): ... to here.
9961
9962 2011-05-22  Bruno Haible  <bruno@clisp.org>
9963
9964         usleep: Move AC_LIBOBJ invocations to module description.
9965         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
9966         here...
9967         * modules/usleep (configure.ac): ... to here.
9968
9969 2011-05-22  Bruno Haible  <bruno@clisp.org>
9970
9971         unlockpt: Move AC_LIBOBJ invocations to module description.
9972         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
9973         gl_PREREQ_UNLOCKPT invocations from here...
9974         * modules/unlockpt (configure.ac): ... to here.
9975
9976 2011-05-22  Bruno Haible  <bruno@clisp.org>
9977
9978         unlink: Respect rules for use of AC_LIBOBJ.
9979         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
9980         * modules/unlink (configure.ac): ... to here.
9981
9982 2011-05-22  Bruno Haible  <bruno@clisp.org>
9983
9984         uname: Move AC_LIBOBJ invocations to module description.
9985         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
9986         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
9987         here...
9988         * modules/uname (configure.ac): ... to here.
9989
9990 2011-05-22  Bruno Haible  <bruno@clisp.org>
9991
9992         ttyname_r: Move AC_LIBOBJ invocations to module description.
9993         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
9994         gl_PREREQ_TTYNAME_R invocations from here...
9995         * modules/ttyname_r (configure.ac): ... to here.
9996
9997 2011-05-22  Bruno Haible  <bruno@clisp.org>
9998
9999         tsearch: Move AC_LIBOBJ invocations to module description.
10000         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
10001         invocations from here...
10002         * modules/tsearch (configure.ac): ... to here.
10003
10004 2011-05-22  Bruno Haible  <bruno@clisp.org>
10005
10006         towctrans: Move AC_LIBOBJ invocations to module description.
10007         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
10008         AC_LIBOBJ invocation from here...
10009         * modules/towctrans (configure.ac): ... to here.
10010
10011 2011-05-22  Bruno Haible  <bruno@clisp.org>
10012
10013         tmpfile: Move AC_LIBOBJ invocations to module description.
10014         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
10015         invocations from here...
10016         * modules/tmpfile (configure.ac): ... to here.
10017
10018 2011-05-22  Bruno Haible  <bruno@clisp.org>
10019
10020         times: Move AC_LIBOBJ invocations to module description.
10021         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
10022         * modules/times (configure.ac): ... to here.
10023
10024 2011-05-22  Bruno Haible  <bruno@clisp.org>
10025
10026         time_r: Move AC_LIBOBJ invocations to module description.
10027         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
10028         invocations from here...
10029         * modules/time_r (configure.ac): ... to here.
10030
10031 2011-05-22  Bruno Haible  <bruno@clisp.org>
10032
10033         timegm: Move AC_LIBOBJ invocations to module description.
10034         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
10035         invocations from here...
10036         * modules/timegm (configure.ac): ... to here.
10037
10038 2011-05-22  Bruno Haible  <bruno@clisp.org>
10039
10040         tcgetsid: Move AC_LIBOBJ invocations to module description.
10041         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
10042         and gl_PREREQ_TCGETSID invocations from here...
10043         * modules/tcgetsid (configure.ac): ... to here.
10044         (Depends-on): Update conditions.
10045
10046 2011-05-22  Bruno Haible  <bruno@clisp.org>
10047
10048         symlinkat: Move AC_LIBOBJ invocations to module description.
10049         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
10050         here...
10051         * modules/symlinkat (configure.ac): ... to here.
10052
10053 2011-05-22  Bruno Haible  <bruno@clisp.org>
10054
10055         symlink: Move AC_LIBOBJ invocations to module description.
10056         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
10057         here...
10058         * modules/symlink (configure.ac): ... to here.
10059
10060 2011-05-22  Bruno Haible  <bruno@clisp.org>
10061
10062         strverscmp: Move AC_LIBOBJ invocations to module description.
10063         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
10064         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
10065         from here...
10066         * modules/strverscmp (configure.ac): ... to here.
10067
10068 2011-05-22  Bruno Haible  <bruno@clisp.org>
10069
10070         strtok_r: Move AC_LIBOBJ invocations to module description.
10071         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
10072         and gl_PREREQ_STRTOK_R invocations from here...
10073         * modules/strtok_r (configure.ac): ... to here.
10074         (Depends-on): Update conditions.
10075
10076 2011-05-22  Bruno Haible  <bruno@clisp.org>
10077
10078         strtoumax: Move AC_LIBOBJ invocations to module description.
10079         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
10080         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
10081         from here...
10082         * modules/strtoumax (configure.ac): ... to here.
10083
10084 2011-05-22  Bruno Haible  <bruno@clisp.org>
10085
10086         strtoimax: Move AC_LIBOBJ invocations to module description.
10087         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
10088         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
10089         from here...
10090         * modules/strtoimax (configure.ac): ... to here.
10091
10092 2011-05-22  Bruno Haible  <bruno@clisp.org>
10093
10094         strtoull: Move AC_LIBOBJ invocations to module description.
10095         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
10096         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
10097         from here...
10098         * modules/strtoull (configure.ac): ... to here.
10099
10100 2011-05-22  Bruno Haible  <bruno@clisp.org>
10101
10102         strtoll: Move AC_LIBOBJ invocations to module description.
10103         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
10104         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
10105         here...
10106         * modules/strtoll (configure.ac): ... to here.
10107
10108 2011-05-22  Bruno Haible  <bruno@clisp.org>
10109
10110         strtoul: Move AC_LIBOBJ invocations to module description.
10111         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
10112         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10113         * modules/strtoul (configure.ac): ... to here.
10114
10115 2011-05-22  Bruno Haible  <bruno@clisp.org>
10116
10117         strtol: Move AC_LIBOBJ invocations to module description.
10118         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
10119         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10120         * modules/strtol (configure.ac): ... to here.
10121
10122 2011-05-22  Bruno Haible  <bruno@clisp.org>
10123
10124         strtod: Move AC_LIBOBJ invocations to module description.
10125         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
10126         invocations from here...
10127         * modules/strtod (configure.ac): ... to here.
10128
10129 2011-05-22  Bruno Haible  <bruno@clisp.org>
10130
10131         strstr*: Move AC_LIBOBJ invocations to module description.
10132         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
10133         invocations from here...
10134         * modules/strstr-simple (configure.ac): ... to here.
10135         * modules/strstr (configure.ac): ... and here.
10136
10137 2011-05-22  Bruno Haible  <bruno@clisp.org>
10138
10139         strsignal: Move AC_LIBOBJ invocations to module description.
10140         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
10141         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
10142         * modules/strsignal (configure.ac): ... to here.
10143         (Depends-on): Update conditions.
10144
10145 2011-05-22  Bruno Haible  <bruno@clisp.org>
10146
10147         strsep: Move AC_LIBOBJ invocations to module description.
10148         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
10149         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
10150         here...
10151         * modules/strsep (configure.ac): ... to here.
10152
10153 2011-05-22  Bruno Haible  <bruno@clisp.org>
10154
10155         strptime: Move AC_LIBOBJ invocations to module description.
10156         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
10157         gl_PREREQ_STRPTIME invocations from here...
10158         * modules/strptime (configure.ac): ... to here.
10159
10160 2011-05-22  Bruno Haible  <bruno@clisp.org>
10161
10162         strpbrk: Move AC_LIBOBJ invocations to module description.
10163         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
10164         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
10165         here...
10166         * modules/strpbrk (configure.ac): ... to here.
10167
10168 2011-05-22  Bruno Haible  <bruno@clisp.org>
10169
10170         strnlen: Move AC_LIBOBJ invocations to module description.
10171         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
10172         invocations from here...
10173         * modules/strnlen (configure.ac): ... to here.
10174
10175 2011-05-22  Bruno Haible  <bruno@clisp.org>
10176
10177         strndup: Move AC_LIBOBJ invocations to module description.
10178         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
10179         invocations from here...
10180         * modules/strndup (configure.ac): ... to here.
10181         (Depends-on): Update conditions.
10182
10183 2011-05-22  Bruno Haible  <bruno@clisp.org>
10184
10185         strncat: Move AC_LIBOBJ invocations to module description.
10186         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
10187         invocations from here...
10188         * modules/strncat (configure.ac): ... to here.
10189
10190 2011-05-22  Bruno Haible  <bruno@clisp.org>
10191
10192         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
10193         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
10194         invocations from here...
10195         * modules/strdup (configure.ac): ... to here.
10196         * modules/strdup-posix (configure.ac): ... and here.
10197
10198 2011-05-22  Bruno Haible  <bruno@clisp.org>
10199
10200         strcspn: Move AC_LIBOBJ invocations to module description.
10201         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
10202         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
10203         here...
10204         * modules/strcspn (configure.ac): ... to here.
10205
10206 2011-05-22  Bruno Haible  <bruno@clisp.org>
10207
10208         strchrnul: Move AC_LIBOBJ invocations to module description.
10209         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
10210         gl_PREREQ_STRCHRNUL invocations from here...
10211         * modules/strchrnul (configure.ac): ... to here.
10212
10213 2011-05-22  Bruno Haible  <bruno@clisp.org>
10214
10215         strcasestr*: Move AC_LIBOBJ invocations to module description.
10216         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10217         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
10218         * modules/strcasestr-simple (configure.ac): ... to here.
10219         * modules/strcasestr (configure.ac): ... and here.
10220
10221 2011-05-22  Bruno Haible  <bruno@clisp.org>
10222
10223         strcase: Move AC_LIBOBJ invocations to module description.
10224         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
10225         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
10226         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
10227         gl_PREREQ_STRNCASECMP invocations from here...
10228         * modules/strcase (configure.ac): ... to here.
10229
10230 2011-05-22  Bruno Haible  <bruno@clisp.org>
10231
10232         stpncpy: Move AC_LIBOBJ invocations to module description.
10233         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
10234         here...
10235         * modules/stpncpy (configure.ac): ... to here.
10236
10237 2011-05-22  Bruno Haible  <bruno@clisp.org>
10238
10239         stpcpy: Move AC_LIBOBJ invocations to module description.
10240         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
10241         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
10242         here...
10243         * modules/stpcpy (configure.ac): ... to here.
10244
10245 2011-05-21  Bruno Haible  <bruno@clisp.org>
10246
10247         stat: Move AC_LIBOBJ invocations to module description.
10248         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
10249         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
10250         here...
10251         * modules/stat (configure.ac): ... to here.
10252
10253 2011-05-21  Bruno Haible  <bruno@clisp.org>
10254
10255         sleep: Move AC_LIBOBJ invocations to module description.
10256         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
10257         * modules/sleep (configure.ac): ... to here.
10258
10259 2011-05-21  Bruno Haible  <bruno@clisp.org>
10260
10261         signbit: Move AC_LIBOBJ invocations to module description.
10262         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
10263         * modules/signbit (configure.ac): ... to here.
10264
10265 2011-05-21  Bruno Haible  <bruno@clisp.org>
10266
10267         sigprocmask: Move AC_LIBOBJ invocations to module description.
10268         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
10269         gl_PREREQ_SIGPROMASK invocations from here...
10270         * modules/sigprocmask (configure.ac): ... to here.
10271
10272 2011-05-21  Bruno Haible  <bruno@clisp.org>
10273
10274         sigaction: Move AC_LIBOBJ invocations to module description.
10275         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
10276         gl_PREREQ_SIGACTION invocations from here...
10277         * modules/sigaction (configure.ac): ... to here.
10278
10279 2011-05-21  Bruno Haible  <bruno@clisp.org>
10280
10281         sig2str: Move AC_LIBOBJ invocations to module description.
10282         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
10283         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
10284         here...
10285         * modules/sig2str (configure.ac): ... to here.
10286
10287 2011-05-21  Bruno Haible  <bruno@clisp.org>
10288
10289         setlocale: Move AC_LIBOBJ invocations to module description.
10290         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
10291         gl_PREREQ_SETLOCALE invocations from here...
10292         * modules/setlocale (configure.ac): ... to here.
10293
10294 2011-05-21  Bruno Haible  <bruno@clisp.org>
10295
10296         unsetenv: Move AC_LIBOBJ invocations to module description.
10297         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
10298         and gl_PREREQ_UNSETENV invocations from here...
10299         * modules/unsetenv (configure.ac): ... to here.
10300         (Depends-on): Update.
10301
10302 2011-05-21  Bruno Haible  <bruno@clisp.org>
10303
10304         setenv: Move AC_LIBOBJ invocations to module description.
10305         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
10306         here...
10307         * modules/setenv (configure.ac): ... to here.
10308
10309 2011-05-21  Bruno Haible  <bruno@clisp.org>
10310
10311         selinux-h: Move AC_LIBOBJ invocations to module description.
10312         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
10313         AC_LIBOBJ invocation from here...
10314         * modules/selinux-h (configure.ac): ... to here.
10315
10316 2011-05-21  Bruno Haible  <bruno@clisp.org>
10317
10318         select: Respect rules for use of AC_LIBOBJ.
10319         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
10320         here...
10321         * modules/select (configure.ac): ... to here.
10322
10323 2011-05-21  Bruno Haible  <bruno@clisp.org>
10324
10325         scandir: Move AC_LIBOBJ invocations to module description.
10326         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
10327         invocations from here...
10328         * modules/scandir (configure.ac): ... to here.
10329
10330 2011-05-21  Bruno Haible  <bruno@clisp.org>
10331
10332         rpmatch: Move AC_LIBOBJ invocations to module description.
10333         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
10334         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
10335         here...
10336         * modules/rpmatch (configure.ac): ... to here.
10337
10338 2011-05-21  Bruno Haible  <bruno@clisp.org>
10339
10340         rmdir: Respect rules for use of AC_LIBOBJ.
10341         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
10342         * modules/rmdir (configure.ac): ... to here.
10343
10344 2011-05-21  Bruno Haible  <bruno@clisp.org>
10345
10346         renameat: Move AC_LIBOBJ invocations to module description.
10347         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
10348         here...
10349         * modules/renameat (configure.ac): ... to here.
10350
10351 2011-05-21  Bruno Haible  <bruno@clisp.org>
10352
10353         rename: Respect rules for use of AC_LIBOBJ.
10354         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
10355         here...
10356         * modules/rename (configure.ac): ... to here.
10357
10358 2011-05-21  Bruno Haible  <bruno@clisp.org>
10359
10360         remove: Move AC_LIBOBJ invocations to module description.
10361         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
10362         here...
10363         * modules/remove (configure.ac): ... to here.
10364
10365 2011-05-21  Bruno Haible  <bruno@clisp.org>
10366
10367         relocatable-lib: Move AC_LIBOBJ invocations to module description.
10368         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
10369         macro.
10370         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
10371         * modules/relocatable-lib (configure.ac): ... to here.
10372         * modules/relocatable-prog-wrapper (configure.ac): Invoke
10373         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
10374
10375 2011-05-21  Bruno Haible  <bruno@clisp.org>
10376
10377         relocatable-prog: Move AC_LIBOBJ invocations to module description.
10378         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
10379         here...
10380         * modules/relocatable-prog (configure.ac): ... to here.
10381
10382 2011-05-21  Bruno Haible  <bruno@clisp.org>
10383
10384         regex: Move AC_LIBOBJ invocations to module description.
10385         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
10386         invocations from here...
10387         * modules/regex (configure.ac): ... to here.
10388
10389 2011-05-21  Bruno Haible  <bruno@clisp.org>
10390
10391         realloc-*: Move AC_LIBOBJ invocations to module description.
10392         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
10393         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
10394         AC_LIBOBJ invocations from here...
10395         * modules/realloc-gnu (configure.ac): ... to here.
10396         * modules/realloc-posix (configure.ac): ... and here.
10397
10398 2011-05-21  Bruno Haible  <bruno@clisp.org>
10399
10400         readutmp: Move AC_LIBOBJ invocations to module description.
10401         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
10402         * modules/readutmp (configure.ac): ... to here.
10403
10404 2011-05-21  Bruno Haible  <bruno@clisp.org>
10405
10406         readlinkat: Move AC_LIBOBJ invocations to module description.
10407         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
10408         here...
10409         * modules/readlinkat (configure.ac): ... to here.
10410
10411 2011-05-21  Bruno Haible  <bruno@clisp.org>
10412
10413         readlink: Move AC_LIBOBJ invocations to module description.
10414         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
10415         gl_PREREQ_READLINK invocations from here...
10416         * modules/readlink (configure.ac): ... to here.
10417
10418 2011-05-21  Bruno Haible  <bruno@clisp.org>
10419
10420         readline: Move AC_LIBOBJ invocations to module description.
10421         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
10422         gl_PREREQ_READLINE invocations from here...
10423         * modules/readline (configure.ac): ... to here.
10424
10425 2011-05-21  Bruno Haible  <bruno@clisp.org>
10426
10427         read: Move AC_LIBOBJ invocations to module description.
10428         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
10429         * modules/read (configure.ac): ... to here.
10430
10431 2011-05-21  Bruno Haible  <bruno@clisp.org>
10432
10433         rawmemchr: Move AC_LIBOBJ invocations to module description.
10434         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
10435         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
10436         from here...
10437         * modules/rawmemchr (configure.ac): ... to here.
10438
10439 2011-05-21  Bruno Haible  <bruno@clisp.org>
10440
10441         random_r: Move AC_LIBOBJ invocations to module description.
10442         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
10443         gl_PREREQ_RANDOM_R invocations from here...
10444         * modules/random_r (configure.ac): ... to here.
10445
10446 2011-05-21  Bruno Haible  <bruno@clisp.org>
10447
10448         pwrite: Move AC_LIBOBJ invocations to module description.
10449         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
10450         * modules/pwrite (configure.ac): ... to here.
10451
10452 2011-05-21  Bruno Haible  <bruno@clisp.org>
10453
10454         putenv: Move AC_LIBOBJ invocations to module description.
10455         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
10456         * modules/putenv (configure.ac): ... to here.
10457
10458 2011-05-21  Bruno Haible  <bruno@clisp.org>
10459
10460         login_tty: Move AC_LIBOBJ invocations to module description.
10461         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
10462         * modules/login_tty (configure.ac): ... to here.
10463
10464 2011-05-21  Bruno Haible  <bruno@clisp.org>
10465
10466         openpty: Move AC_LIBOBJ invocations to module description.
10467         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
10468         * modules/openpty (configure.ac): ... to here.
10469
10470 2011-05-21  Bruno Haible  <bruno@clisp.org>
10471
10472         forkpty: Move AC_LIBOBJ invocations to module description.
10473         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
10474         * modules/forkpty (configure.ac): ... to here.
10475
10476 2011-05-21  Bruno Haible  <bruno@clisp.org>
10477
10478         ptsname: Move AC_LIBOBJ invocations to module description.
10479         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
10480         invocations from here...
10481         * modules/ptsname (configure.ac): ... to here.
10482
10483 2011-05-21  Bruno Haible  <bruno@clisp.org>
10484
10485         pread: Move AC_LIBOBJ invocations to module description.
10486         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
10487         * modules/pread (configure.ac): ... to here.
10488
10489 2011-05-21  Bruno Haible  <bruno@clisp.org>
10490
10491         posix_spawn*: Move AC_LIBOBJ invocations to module description.
10492         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
10493         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
10494         * modules/posix_spawn (configure.ac): ... to here.
10495         * modules/posix_spawnp (configure.ac): ... and here.
10496
10497 2011-05-21  Bruno Haible  <bruno@clisp.org>
10498
10499         popen: Move AC_LIBOBJ invocations to module description.
10500         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
10501         invocations from here...
10502         * modules/popen (configure.ac): ... to here.
10503
10504 2011-05-21  Bruno Haible  <bruno@clisp.org>
10505
10506         poll: Move AC_LIBOBJ invocations to module description.
10507         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
10508         invocations from here...
10509         * modules/poll (configure.ac): ... to here.
10510
10511 2011-05-21  Bruno Haible  <bruno@clisp.org>
10512
10513         pipe-posix: Move AC_LIBOBJ invocations to module description.
10514         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
10515         * modules/pipe-posix (configure.ac): ... to here.
10516
10517 2011-05-21  Bruno Haible  <bruno@clisp.org>
10518
10519         openat: Respect rules for use of AC_LIBOBJ.
10520         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
10521         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10522         * modules/openat (configure.ac): ... to here.
10523
10524 2011-05-21  Bruno Haible  <bruno@clisp.org>
10525
10526         obstack-printf*: Move AC_LIBOBJ invocations to module description.
10527         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
10528         invocation from here...
10529         * modules/obstack-printf (configure.ac): ... to here.
10530         * modules/obstack-printf-posix (configure.ac): ... and here.
10531
10532 2011-05-21  Bruno Haible  <bruno@clisp.org>
10533
10534         nl_langinfo: Move AC_LIBOBJ invocations to module description.
10535         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
10536         from here...
10537         * modules/nl_langinfo (configure.ac): ... to here.
10538
10539 2011-05-21  Bruno Haible  <bruno@clisp.org>
10540
10541         nanosleep: Move AC_LIBOBJ invocations to module description.
10542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
10543         gl_PREREQ_NANOSLEEP invocations from here...
10544         * modules/nanosleep (configure.ac): ... to here.
10545
10546 2011-05-21  Bruno Haible  <bruno@clisp.org>
10547
10548         mountlist: Move AC_LIBOBJ invocations to module description.
10549         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
10550         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
10551         * modules/mountlist (configure.ac): ... to here.
10552
10553 2011-05-21  Bruno Haible  <bruno@clisp.org>
10554
10555         mktime: Respect rules for use of AC_LIBOBJ.
10556         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
10557         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
10558         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
10559         (gl_FUNC_MKTIME_INTERNAL): ... and here...
10560         * modules/mktime (configure.ac): ... to here.
10561         * modules/mktime-internal (configure.ac): ... and here.
10562         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
10563
10564 2011-05-21  Bruno Haible  <bruno@clisp.org>
10565
10566         mkstemps: Move AC_LIBOBJ invocations to module description.
10567         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
10568         here...
10569         * modules/mkstemps (configure.ac): ... to here.
10570
10571 2011-05-21  Bruno Haible  <bruno@clisp.org>
10572
10573         mkstemp: Move AC_LIBOBJ invocations to module description.
10574         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
10575         gl_PREREQ_MKSTEMP invocations from here...
10576         * modules/mkstemp (configure.ac): ... to here.
10577
10578 2011-05-21  Bruno Haible  <bruno@clisp.org>
10579
10580         mkostemps: Move AC_LIBOBJ invocations to module description.
10581         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
10582         here...
10583         * modules/mkostemps (configure.ac): ... to here.
10584
10585 2011-05-21  Bruno Haible  <bruno@clisp.org>
10586
10587         mkostemp: Move AC_LIBOBJ invocations to module description.
10588         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
10589         gl_PREREQ_MKOSTEMP invocations from here...
10590         * modules/mkostemp (configure.ac): ... to here.
10591
10592 2011-05-21  Bruno Haible  <bruno@clisp.org>
10593
10594         mknod: Move AC_LIBOBJ invocations to module description.
10595         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
10596         * modules/mknod (configure.ac): ... to here.
10597
10598 2011-05-21  Bruno Haible  <bruno@clisp.org>
10599
10600         mkfifoat: Move AC_LIBOBJ invocations to module description.
10601         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
10602         here...
10603         * modules/mkfifoat (configure.ac): ... to here.
10604
10605 2011-05-21  Bruno Haible  <bruno@clisp.org>
10606
10607         mkfifo: Respect rules for use of AC_LIBOBJ.
10608         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
10609         here...
10610         * modules/mkfifo (configure.ac): ... to here.
10611
10612 2011-05-21  Bruno Haible  <bruno@clisp.org>
10613
10614         mkdtemp: Move AC_LIBOBJ invocations to module description.
10615         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
10616         invocations from here...
10617         * modules/mkdtemp (configure.ac): ... to here.
10618
10619 2011-05-21  Bruno Haible  <bruno@clisp.org>
10620
10621         mkdir: Move AC_LIBOBJ invocations to module description.
10622         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
10623         * modules/mkdir (configure.ac): ... to here.
10624
10625 2011-05-21  Bruno Haible  <bruno@clisp.org>
10626
10627         memset: Move AC_LIBOBJ invocations to module description.
10628         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
10629         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
10630         here...
10631         * modules/memset (configure.ac): ... to here.
10632
10633 2011-05-21  Bruno Haible  <bruno@clisp.org>
10634
10635         memrchr: Move AC_LIBOBJ invocations to module description.
10636         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
10637         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
10638         here...
10639         * modules/memrchr (configure.ac): ... to here.
10640
10641 2011-05-21  Bruno Haible  <bruno@clisp.org>
10642
10643         mempcpy: Move AC_LIBOBJ invocations to module description.
10644         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
10645         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
10646         here...
10647         * modules/mempcpy (configure.ac): ... to here.
10648
10649 2011-05-21  Bruno Haible  <bruno@clisp.org>
10650
10651         memmove: Move AC_LIBOBJ invocations to module description.
10652         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
10653         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
10654         here...
10655         * modules/memmove (configure.ac): ... to here.
10656
10657 2011-05-21  Bruno Haible  <bruno@clisp.org>
10658
10659         memmem*: Move AC_LIBOBJ invocations to module description.
10660         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
10661         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
10662         here...
10663         (gl_FUNC_MEMMEM): ... and here...
10664         * modules/memmem-simple (configure.ac): ... to here.
10665         * modules/memmem (configure.ac): ... and here.
10666
10667 2011-05-21  Bruno Haible  <bruno@clisp.org>
10668
10669         memcpy: Move AC_LIBOBJ invocations to module description.
10670         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
10671         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
10672         here...
10673         * modules/memcpy (configure.ac): ... to here.
10674
10675 2011-05-21  Bruno Haible  <bruno@clisp.org>
10676
10677         memcmp: Simplify autoconf macro.
10678         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
10679         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
10680         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
10681
10682 2011-05-21  Bruno Haible  <bruno@clisp.org>
10683
10684         memcmp: Move AC_LIBOBJ invocations to module description.
10685         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
10686         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
10687         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
10688         * modules/memcmp (configure.ac): ... to here.
10689         (Depends-on): Update conditions.
10690
10691 2011-05-21  Bruno Haible  <bruno@clisp.org>
10692
10693         memchr: Respect rules for use of AC_LIBOBJ.
10694         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
10695         invocations from here...
10696         * modules/memchr (configure.ac): ... to here.
10697
10698 2011-05-21  Bruno Haible  <bruno@clisp.org>
10699
10700         mbtowc: Move AC_LIBOBJ invocations to module description.
10701         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
10702         invocations from here...
10703         * modules/mbtowc (configure.ac): ... to here.
10704
10705 2011-05-21  Bruno Haible  <bruno@clisp.org>
10706
10707         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
10708         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
10709         gl_PREREQ_MBSRTOWCS invocations from here...
10710         * modules/mbsrtowcs (configure.ac): ... to here.
10711
10712 2011-05-21  Bruno Haible  <bruno@clisp.org>
10713
10714         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
10715         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
10716         gl_PREREQ_MBSNRTOWCS invocations from here...
10717         * modules/mbsnrtowcs (configure.ac): ... to here.
10718
10719 2011-05-21  Bruno Haible  <bruno@clisp.org>
10720
10721         mbsinit: Move AC_LIBOBJ invocations to module description.
10722         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
10723         invocations from here...
10724         * modules/mbsinit (configure.ac): ... to here.
10725
10726 2011-05-21  Bruno Haible  <bruno@clisp.org>
10727
10728         mbrlen: Move AC_LIBOBJ invocations to module description.
10729         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
10730         invocations from here...
10731         * modules/mbrlen (configure.ac): ... to here.
10732
10733 2011-05-21  Bruno Haible  <bruno@clisp.org>
10734
10735         mbrtowc: Respect rules for use of AC_LIBOBJ.
10736         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
10737         invocations from here...
10738         * modules/mbrtowc (configure.ac): ... to here.
10739
10740 2011-05-21  Bruno Haible  <bruno@clisp.org>
10741
10742         malloc-*: Move AC_LIBOBJ invocations to module description.
10743         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
10744         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
10745         AC_LIBOBJ invocations from here...
10746         * modules/malloc-gnu (configure.ac): ... to here.
10747         * modules/malloc-posix (configure.ac): ... and here.
10748
10749 2011-05-21  Bruno Haible  <bruno@clisp.org>
10750
10751         lstat, openat: Respect rules for use of AC_LIBOBJ.
10752         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
10753         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
10754         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
10755         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
10756         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
10757         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
10758         here.
10759         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
10760
10761 2011-05-21  Bruno Haible  <bruno@clisp.org>
10762
10763         lseek: Move AC_LIBOBJ invocations to module description.
10764         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
10765         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10766         * modules/lseek (configure.ac): ... to here.
10767
10768 2011-05-21  Bruno Haible  <bruno@clisp.org>
10769
10770         linkat: Move AC_LIBOBJ invocations to module description.
10771         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
10772         here...
10773         * modules/linkat (configure.ac): ... to here.
10774
10775 2011-05-21  Bruno Haible  <bruno@clisp.org>
10776
10777         link: Respect rules for use of AC_LIBOBJ.
10778         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
10779         * modules/link (configure.ac): ... to here.
10780
10781 2011-05-21  Bruno Haible  <bruno@clisp.org>
10782
10783         lchown: Move AC_LIBOBJ invocations to module description.
10784         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10785         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10786         * modules/lchown (configure.ac): ... to here.
10787
10788 2011-05-21  Bruno Haible  <bruno@clisp.org>
10789
10790         iswctype: Move AC_LIBOBJ invocations to module description.
10791         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
10792         here...
10793         * modules/iswctype (configure.ac): ... to here.
10794
10795 2011-05-21  Bruno Haible  <bruno@clisp.org>
10796
10797         iswblank: Move AC_LIBOBJ invocations to module description.
10798         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
10799         here...
10800         * modules/iswblank (configure.ac): ... to here.
10801
10802 2011-05-21  Bruno Haible  <bruno@clisp.org>
10803
10804         atanl: Move AC_LIBOBJ invocations to module description.
10805         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
10806         * modules/atanl (configure.ac): ... to here.
10807
10808 2011-05-21  Bruno Haible  <bruno@clisp.org>
10809
10810         acosl: Move AC_LIBOBJ invocations to module description.
10811         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
10812         * modules/acosl (configure.ac): ... to here.
10813
10814 2011-05-21  Bruno Haible  <bruno@clisp.org>
10815
10816         asinl: Respect rules for use of AC_LIBOBJ.
10817         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
10818         * modules/asinl (configure.ac): ... to here.
10819
10820 2011-05-21  Bruno Haible  <bruno@clisp.org>
10821
10822         tanl: Move AC_LIBOBJ invocations to module description.
10823         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
10824         * modules/tanl (configure.ac): ... to here.
10825
10826 2011-05-21  Bruno Haible  <bruno@clisp.org>
10827
10828         cosl: Move AC_LIBOBJ invocations to module description.
10829         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
10830         * modules/cosl (configure.ac): ... to here.
10831
10832 2011-05-21  Bruno Haible  <bruno@clisp.org>
10833
10834         sinl: Move AC_LIBOBJ invocations to module description.
10835         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
10836         * modules/sinl (configure.ac): ... to here.
10837
10838 2011-05-21  Bruno Haible  <bruno@clisp.org>
10839
10840         logl: Move AC_LIBOBJ invocations to module description.
10841         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
10842         * modules/logl (configure.ac): ... to here.
10843
10844 2011-05-21  Bruno Haible  <bruno@clisp.org>
10845
10846         expl: Move AC_LIBOBJ invocations to module description.
10847         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
10848         * modules/expl (configure.ac): ... to here.
10849
10850 2011-05-21  Bruno Haible  <bruno@clisp.org>
10851
10852         roundl: Move AC_LIBOBJ invocations to module description.
10853         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
10854         * modules/roundl (configure.ac): ... to here.
10855
10856 2011-05-21  Bruno Haible  <bruno@clisp.org>
10857
10858         round: Move AC_LIBOBJ invocations to module description.
10859         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
10860         * modules/round (configure.ac): ... to here.
10861
10862 2011-05-21  Bruno Haible  <bruno@clisp.org>
10863
10864         roundf: Move AC_LIBOBJ invocations to module description.
10865         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
10866         * modules/roundf (configure.ac): ... to here.
10867
10868 2011-05-21  Bruno Haible  <bruno@clisp.org>
10869
10870         truncl: Move AC_LIBOBJ invocations to module description.
10871         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
10872         * modules/truncl (configure.ac): ... to here.
10873
10874 2011-05-21  Bruno Haible  <bruno@clisp.org>
10875
10876         trunc: Move AC_LIBOBJ invocations to module description.
10877         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
10878         * modules/trunc (configure.ac): ... to here.
10879
10880 2011-05-21  Bruno Haible  <bruno@clisp.org>
10881
10882         truncf: Move AC_LIBOBJ invocations to module description.
10883         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
10884         * modules/truncf (configure.ac): ... to here.
10885
10886 2011-05-21  Bruno Haible  <bruno@clisp.org>
10887
10888         ceill: Move AC_LIBOBJ invocations to module description.
10889         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
10890         * modules/ceill (configure.ac): ... to here.
10891
10892 2011-05-21  Bruno Haible  <bruno@clisp.org>
10893
10894         ceil: Move AC_LIBOBJ invocations to module description.
10895         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
10896         * modules/ceil (configure.ac): ... to here.
10897
10898 2011-05-21  Bruno Haible  <bruno@clisp.org>
10899
10900         ceilf: Move AC_LIBOBJ invocations to module description.
10901         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
10902         * modules/ceilf (configure.ac): ... to here.
10903
10904 2011-05-21  Bruno Haible  <bruno@clisp.org>
10905
10906         floorl: Respect rules for use of AC_LIBOBJ.
10907         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
10908         * modules/floorl (configure.ac): ... to here.
10909
10910 2011-05-21  Bruno Haible  <bruno@clisp.org>
10911
10912         floor: Respect rules for use of AC_LIBOBJ.
10913         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
10914         * modules/floor (configure.ac): ... to here.
10915
10916 2011-05-21  Bruno Haible  <bruno@clisp.org>
10917
10918         floorf: Move AC_LIBOBJ invocations to module description.
10919         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
10920         * modules/floorf (configure.ac): ... to here.
10921
10922 2011-05-20  Bruno Haible  <bruno@clisp.org>
10923
10924         sqrtl: Respect rules for use of AC_LIBOBJ.
10925         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
10926         * modules/sqrtl (configure.ac): ... to here.
10927
10928 2011-05-20  Bruno Haible  <bruno@clisp.org>
10929
10930         ldexpl: Respect rules for use of AC_LIBOBJ.
10931         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
10932         * modules/ldexpl (configure.ac): ... to here.
10933
10934 2011-05-20  Bruno Haible  <bruno@clisp.org>
10935
10936         frexpl*: Respect rules for use of AC_LIBOBJ.
10937         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
10938         invocation from here...
10939         * modules/frexpl (configure.ac): ... to here.
10940         * modules/frexpl-nolibm (configure.ac): ... and here.
10941
10942 2011-05-20  Bruno Haible  <bruno@clisp.org>
10943
10944         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
10945         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
10946         invocation from here...
10947         * modules/frexp (configure.ac): ... to here.
10948         * modules/frexp-nolibm (configure.ac): ... and here.
10949
10950 2011-05-20  Bruno Haible  <bruno@clisp.org>
10951
10952         isnan: Respect rules for use of AC_LIBOBJ.
10953         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
10954         invocations here.
10955         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
10956         REPLACE_ISNAN.
10957         * modules/isnand (configure.ac): Likewise.
10958         * modules/isnanl (configure.ac): Likewise.
10959
10960 2011-05-20  Bruno Haible  <bruno@clisp.org>
10961
10962         isnanl*: Respect rules for use of AC_LIBOBJ.
10963         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
10964         invocation from here...
10965         * modules/isnanl (configure.ac): ... to here.
10966         * modules/isnanl-nolibm (configure.ac): ... and here.
10967
10968 2011-05-20  Bruno Haible  <bruno@clisp.org>
10969
10970         isnand*: Move AC_LIBOBJ invocations to module description.
10971         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
10972         invocation from here...
10973         * modules/isnand (configure.ac): ... to here.
10974         * modules/isnand-nolibm (configure.ac): ... and here.
10975
10976 2011-05-20  Bruno Haible  <bruno@clisp.org>
10977
10978         isnanf*: Move AC_LIBOBJ invocations to module description.
10979         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
10980         invocation from here...
10981         * modules/isnanf (configure.ac): ... to here.
10982         * modules/isnanf-nolibm (configure.ac): ... and here.
10983
10984 2011-05-20  Bruno Haible  <bruno@clisp.org>
10985
10986         isnan*: Separate the AC_LIBOBJ invocations.
10987         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
10988         AC_LIBOBJ invocation.
10989         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
10990         here.
10991         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
10992         AC_LIBOBJ invocation.
10993         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
10994         here.
10995         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
10996         AC_LIBOBJ invocation.
10997         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
10998         here.
10999         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
11000
11001 2011-05-08  Bruno Haible  <bruno@clisp.org>
11002
11003         isinf: Move AC_LIBOBJ invocations to module description.
11004         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
11005         * modules/isinf (configure.ac): ... to here.
11006
11007 2011-05-08  Bruno Haible  <bruno@clisp.org>
11008
11009         isfinite: Move AC_LIBOBJ invocations to module description.
11010         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
11011         * modules/isfinite (configure.ac): ... to here.
11012
11013 2011-05-08  Bruno Haible  <bruno@clisp.org>
11014
11015         isblank: Move AC_LIBOBJ invocations to module description.
11016         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
11017         here...
11018         * modules/isblank (configure.ac): ... to here.
11019
11020 2011-05-08  Bruno Haible  <bruno@clisp.org>
11021
11022         isapipe: Move AC_LIBOBJ invocations to module description.
11023         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
11024         gl_PREREQ_ISAPIPE invocations from here...
11025         * modules/isapipe (configure.ac): ... to here.
11026         (Depends-on): Update condition.
11027
11028 2011-05-08  Bruno Haible  <bruno@clisp.org>
11029
11030         ioctl: Move AC_LIBOBJ invocations to module description.
11031         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
11032         invocations from here...
11033         * modules/ioctl (configure.ac): ... to here.
11034         (Depends-on): Update condition.
11035
11036 2011-05-08  Bruno Haible  <bruno@clisp.org>
11037
11038         imaxdiv: Move AC_LIBOBJ invocations to module description.
11039         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
11040         invocations from here...
11041         * modules/imaxdiv (configure.ac): ... to here.
11042
11043 2011-05-08  Bruno Haible  <bruno@clisp.org>
11044
11045         imaxabs: Move AC_LIBOBJ invocations to module description.
11046         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
11047         invocations from here...
11048         * modules/imaxabs (configure.ac): ... to here.
11049
11050 2011-05-08  Bruno Haible  <bruno@clisp.org>
11051
11052         getaddrinfo: Move AC_LIBOBJ invocations to module description.
11053         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
11054         AC_LIBOBJ invocations from here...
11055         * modules/getaddrinfo (configure.ac): ... to here.
11056         (Depends-on): Add conditions.
11057
11058 2011-05-08  Bruno Haible  <bruno@clisp.org>
11059
11060         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11061         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
11062         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11063         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
11064         (gl_PREREQ_INET_PTON): ... from here.
11065         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
11066         gl_PREREQ_INET_PTON here.
11067         (Depends-on): Update condition.
11068
11069 2011-05-08  Bruno Haible  <bruno@clisp.org>
11070
11071         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11072         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
11073         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11074         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
11075         (gl_PREREQ_INET_NTOP): ... from here.
11076         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
11077         gl_PREREQ_INET_NTOP here.
11078         (Depends-on): Update condition.
11079
11080 2011-05-08  Bruno Haible  <bruno@clisp.org>
11081
11082         iconv_open: Move AC_LIBOBJ invocations to module description.
11083         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
11084         AC_LIBOBJ invocations from here...
11085         * modules/iconv_open (configure.ac): ... to here.
11086
11087 2011-05-08  Bruno Haible  <bruno@clisp.org>
11088
11089         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
11090         If module 'iconv_open' is among the main modules and module
11091         'iconv_open-utf' is among the tests dependencies, then
11092         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
11093         return the special iconv_t values. Therefore iconv() and iconv_close()
11094         must support these special iconv_t values, already in lib, not only in
11095         tests.
11096         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
11097         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
11098         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
11099         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
11100         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
11101         (Depends-on): Add the dependencies of iconv_open-utf.
11102         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
11103         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
11104         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
11105
11106 2011-05-08  Bruno Haible  <bruno@clisp.org>
11107
11108         group-member: Move AC_LIBOBJ invocations to module description.
11109         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
11110         gl_PREREQ_GROUP_MEMBER invocations from here...
11111         * modules/group-member (configure.ac): ... to here.
11112
11113 2011-05-08  Bruno Haible  <bruno@clisp.org>
11114
11115         grantpt: Move AC_LIBOBJ invocations to module description.
11116         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
11117         invocations from here...
11118         * modules/grantpt (configure.ac): ... to here.
11119
11120 2011-05-08  Bruno Haible  <bruno@clisp.org>
11121
11122         glob: Move AC_LIBOBJ invocations to module description.
11123         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
11124         from here...
11125         * modules/glob (configure.ac): ... to here.
11126
11127 2011-05-08  Bruno Haible  <bruno@clisp.org>
11128
11129         getusershell: Move AC_LIBOBJ invocations to module description.
11130         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
11131         Move AC_LIBOBJ invocation from here...
11132         * modules/getusershell (configure.ac): ... to here.
11133         (Depends-on): Update condition.
11134
11135 2011-05-08  Bruno Haible  <bruno@clisp.org>
11136
11137         gettimeofday: Move AC_LIBOBJ invocations to module description.
11138         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
11139         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
11140         gl_PREREQ_GETTIMEOFDAY invocations from here...
11141         * modules/gettimeofday (configure.ac): ... to here.
11142
11143 2011-05-08  Bruno Haible  <bruno@clisp.org>
11144
11145         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
11146         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
11147         just gl_FUNC_TZSET.
11148         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
11149         (gl_FUNC_TZSET_CLOBBER): Remove actions.
11150         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
11151         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
11152
11153 2011-05-08  Bruno Haible  <bruno@clisp.org>
11154
11155         getsubopt: Move AC_LIBOBJ invocations to module description.
11156         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
11157         gl_PREREQ_GETSUBOPT invocations from here...
11158         * modules/getsubopt (configure.ac): ... to here.
11159
11160 2011-05-08  Bruno Haible  <bruno@clisp.org>
11161
11162         getpass-gnu: Move AC_LIBOBJ invocations to module description.
11163         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
11164         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
11165         * modules/getpass-gnu (configure.ac): ... to here.
11166
11167 2011-05-08  Bruno Haible  <bruno@clisp.org>
11168
11169         getpass: Move AC_LIBOBJ invocations to module description.
11170         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
11171         gl_PREREQ_GETPASS invocations from here...
11172         * modules/getpass (configure.ac): ... to here.
11173
11174 2011-05-08  Bruno Haible  <bruno@clisp.org>
11175
11176         getpagesize: Move AC_LIBOBJ invocations to module description.
11177         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
11178         from here...
11179         * modules/getpagesize (configure.ac): ... to here.
11180
11181 2011-05-08  Bruno Haible  <bruno@clisp.org>
11182
11183         getopt: Move AC_LIBOBJ invocations to module description.
11184         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
11185         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
11186         invocations from here...
11187         * modules/getopt-gnu (configure.ac): ... to here.
11188         * modules/getopt-posix (configure.ac): ... and here.
11189         (Depends-on): Update condition.
11190
11191 2011-05-08  Bruno Haible  <bruno@clisp.org>
11192
11193         getopt, argp: Respect rules for use of AC_LIBOBJ.
11194         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
11195         (gl_REPLACE_GETOPT_ALWAYS): New macro.
11196         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
11197         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
11198
11199 2011-05-08  Bruno Haible  <bruno@clisp.org>
11200
11201         getlogin_r: Move AC_LIBOBJ invocations to module description.
11202         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
11203         gl_PREREQ_GETLOGIN_R invocations from here...
11204         * modules/getlogin_r (configure.ac): ... to here.
11205
11206 2011-05-08  Bruno Haible  <bruno@clisp.org>
11207
11208         getlogin: Move AC_LIBOBJ invocations to module description.
11209         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
11210         here...
11211         * modules/getlogin (configure.ac): ... to here.
11212
11213 2011-05-08  Bruno Haible  <bruno@clisp.org>
11214
11215         getloadavg: Move AC_LIBOBJ invocations to module description.
11216         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
11217         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
11218         * modules/getloadavg (configure.ac): ... to here.
11219
11220 2011-05-08  Bruno Haible  <bruno@clisp.org>
11221
11222         gethrxtime: Move AC_LIBOBJ invocations to module description.
11223         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
11224         LIB_GETHRXTIME from here...
11225         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
11226         invocations from here...
11227         * modules/gethrxtime (configure.ac): ... to here.
11228
11229 2011-05-08  Bruno Haible  <bruno@clisp.org>
11230
11231         gethostname: Move AC_LIBOBJ invocations to module description.
11232         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
11233         gl_PREREQ_GETHOSTNAME invocations from here...
11234         * modules/gethostname (configure.ac): ... to here.
11235
11236 2011-05-08  Bruno Haible  <bruno@clisp.org>
11237
11238         getgroups: Move AC_LIBOBJ invocations to module description.
11239         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
11240         here...
11241         * modules/getgroups (configure.ac): ... to here.
11242
11243 2011-05-08  Bruno Haible  <bruno@clisp.org>
11244
11245         getdtablesize: Move AC_LIBOBJ invocations to module description.
11246         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
11247         invocation from here...
11248         * modules/getdtablesize (configure.ac): ... to here.
11249
11250 2011-05-08  Bruno Haible  <bruno@clisp.org>
11251
11252         getdomainname: Move AC_LIBOBJ invocations to module description.
11253         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
11254         gl_PREREQ_GETDOMAINNAME invocations from here...
11255         * modules/getdomainname (configure.ac): ... to here.
11256
11257 2011-05-08  Bruno Haible  <bruno@clisp.org>
11258
11259         getline: Move AC_LIBOBJ invocations to module description.
11260         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
11261         invocations from here...
11262         * modules/getline (configure.ac): ... to here.
11263
11264 2011-05-08  Bruno Haible  <bruno@clisp.org>
11265
11266         getline: Simplify.
11267         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
11268         It's already handled through the module dependency.
11269
11270 2011-05-08  Bruno Haible  <bruno@clisp.org>
11271
11272         getdelim: Move AC_LIBOBJ invocations to module description.
11273         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
11274         and gl_PREREQ_GETDELIM invocations from here...
11275         * modules/getdelim (configure.ac): ... to here.
11276         (Depends-on): Fix condition.
11277
11278 2011-05-08  Bruno Haible  <bruno@clisp.org>
11279
11280         getcwd: Move AC_LIBOBJ invocations to module description.
11281         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
11282         invocations from here...
11283         * modules/getcwd (configure.ac): ... to here.
11284
11285 2011-05-08  Bruno Haible  <bruno@clisp.org>
11286
11287         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
11288         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
11289         here...
11290         * modules/getcwd-lgpl (configure.ac): ... to here.
11291
11292 2011-05-07  Bruno Haible  <bruno@clisp.org>
11293
11294         crypto/gc: Move AC_LIBOBJ invocations to module description.
11295         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
11296         * modules/crypto/gc (configure.ac): ... to here.
11297
11298 2011-05-07  Bruno Haible  <bruno@clisp.org>
11299
11300         fwriting: Move AC_LIBOBJ invocations to module description.
11301         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
11302         here...
11303         * modules/fwriting (configure.ac): ... to here.
11304
11305 2011-05-07  Bruno Haible  <bruno@clisp.org>
11306
11307         fwritable: Move AC_LIBOBJ invocations to module description.
11308         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
11309         here...
11310         * modules/fwritable (configure.ac): ... to here.
11311
11312 2011-05-07  Bruno Haible  <bruno@clisp.org>
11313
11314         futimens: Move AC_LIBOBJ invocations to module description.
11315         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
11316         here...
11317         * modules/futimens (configure.ac): ... to here.
11318
11319 2011-05-07  Bruno Haible  <bruno@clisp.org>
11320
11321         ftruncate: Move AC_LIBOBJ invocations to module description.
11322         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
11323         gl_PREREQ_FTRUNCATE invocations from here...
11324         * modules/ftruncate (configure.ac): ... to here.
11325
11326 2011-05-07  Bruno Haible  <bruno@clisp.org>
11327
11328         fsync: Move AC_LIBOBJ invocations to module description.
11329         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
11330         invocations from here...
11331         * modules/fsync (configure.ac): ... to here.
11332
11333 2011-05-07  Bruno Haible  <bruno@clisp.org>
11334
11335         fsusage: Move AC_LIBOBJ invocations to module description.
11336         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
11337         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
11338         * modules/fsusage (configure.ac): ... to here.
11339
11340 2011-05-07  Bruno Haible  <bruno@clisp.org>
11341
11342         freopen: Move AC_LIBOBJ invocations to module description.
11343         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
11344         invocations from here...
11345         * modules/freopen (configure.ac): ... to here.
11346
11347 2011-05-07  Bruno Haible  <bruno@clisp.org>
11348
11349         free: Move AC_LIBOBJ invocations to module description.
11350         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
11351         invocations from here...
11352         * modules/free (configure.ac): ... to here.
11353
11354 2011-05-07  Bruno Haible  <bruno@clisp.org>
11355
11356         freadable: Move AC_LIBOBJ invocations to module description.
11357         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
11358         here...
11359         * modules/freadable (configure.ac): ... to here.
11360
11361 2011-05-07  Bruno Haible  <bruno@clisp.org>
11362
11363         fpurge: Move AC_LIBOBJ invocations to module description.
11364         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
11365         invocations from here...
11366         * modules/fpurge (configure.ac): ... to here.
11367
11368 2011-05-07  Bruno Haible  <bruno@clisp.org>
11369
11370         fpending: Move AC_LIBOBJ invocations to module description.
11371         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
11372         gl_FUNC_FPENDING.
11373         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
11374         invocations from here...
11375         * modules/fpending (configure.ac): ... to here.
11376
11377 2011-05-07  Bruno Haible  <bruno@clisp.org>
11378
11379         fopen: Move AC_LIBOBJ invocations to module description.
11380         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
11381         invocations from here...
11382         * modules/fopen (configure.ac): ... to here.
11383
11384 2011-05-07  Bruno Haible  <bruno@clisp.org>
11385
11386         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
11387         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
11388         gl_FUNC_FNMATCH_POSIX.
11389         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
11390         invocations from here...
11391         * modules/fnmatch (configure.ac): ... to here.
11392         * modules/fnmatch-gnu (configure.ac): ... and here.
11393
11394 2011-05-07  Bruno Haible  <bruno@clisp.org>
11395
11396         flock: Move AC_LIBOBJ invocations to module description.
11397         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
11398         invocations from here...
11399         * modules/flock (configure.ac): ... to here.
11400
11401 2011-05-07  Bruno Haible  <bruno@clisp.org>
11402
11403         fileblocks: Move AC_LIBOBJ invocations to module description.
11404         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
11405         gl_PREREQ_FILEBLOCKS invocations from here...
11406         * modules/fileblocks (configure.ac): ... to here.
11407
11408 2011-05-06  Bruno Haible  <bruno@clisp.org>
11409
11410         fflush: Move AC_LIBOBJ invocations to module description.
11411         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
11412         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
11413         invocations from here...
11414         * modules/fflush (configure.ac): ... to here.
11415
11416 2011-05-06  Bruno Haible  <bruno@clisp.org>
11417
11418         fdopendir: Move AC_LIBOBJ invocations to module description.
11419         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
11420         here...
11421         * modules/fdopendir (configure.ac): ... to here.
11422         (Depends-on): Improve conditions.
11423
11424 2011-05-06  Bruno Haible  <bruno@clisp.org>
11425
11426         _Exit: Move AC_LIBOBJ invocations to module description.
11427         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
11428         invocations from here...
11429         * modules/_Exit (configure.ac): ... to here.
11430
11431 2011-05-21  Bruno Haible  <bruno@clisp.org>
11432
11433         euidaccess: Respect rules for use of AC_LIBOBJ.
11434         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11435         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
11436         from here...
11437         * modules/euidaccess (configure.ac): ... to here.
11438
11439 2011-05-06  Bruno Haible  <bruno@clisp.org>
11440
11441         error: Move AC_LIBOBJ invocations to module description.
11442         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
11443         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
11444         invocations from here...
11445         * modules/error (configure.ac): ... to here.
11446
11447 2011-05-06  Bruno Haible  <bruno@clisp.org>
11448
11449         duplocale: Move AC_LIBOBJ invocations to module description.
11450         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
11451         gl_PREREQ_DUPLOCALE invocations from here...
11452         * modules/duplocale (configure.ac): ... to here.
11453
11454 2011-05-05  Bruno Haible  <bruno@clisp.org>
11455
11456         dirfd: Move AC_LIBOBJ invocations to module description.
11457         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
11458         gl_FUNC_DIRFD.
11459         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
11460         here...
11461         * modules/dirfd (configure.ac): ... to here.
11462         (Depends-on): Fix condition.
11463
11464 2011-05-05  Bruno Haible  <bruno@clisp.org>
11465
11466         chown: Respect rules for use of AC_LIBOBJ.
11467         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
11468         * modules/chown (configure.ac): ... to here.
11469
11470 2011-05-05  Bruno Haible  <bruno@clisp.org>
11471
11472         chdir-long: Move AC_LIBOBJ invocations to module description.
11473         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
11474         gl_PREREQ_CHDIR_LONG invocations from here...
11475         * modules/chdir-long (configure.ac): ... to here.
11476
11477 2011-05-05  Bruno Haible  <bruno@clisp.org>
11478
11479         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
11480         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
11481         from here...
11482         * modules/canonicalize-lgpl (configure.ac): ... to here.
11483
11484 2011-05-05  Bruno Haible  <bruno@clisp.org>
11485
11486         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
11487         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
11488         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
11489         REPLACE_CALLOC.
11490         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
11491         * modules/calloc-gnu (configure.ac): Likewise.
11492
11493 2011-05-05  Bruno Haible  <bruno@clisp.org>
11494
11495         btowc: Move AC_LIBOBJ invocations to module description.
11496         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
11497         invocations from here...
11498         * modules/btowc (configure.ac): ... to here.
11499
11500 2011-05-21  Bruno Haible  <bruno@clisp.org>
11501
11502         atexit: Move AC_LIBOBJ invocations to module description.
11503         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
11504         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
11505         here...
11506         * modules/atexit (configure.ac): ... to here.
11507
11508 2011-05-05  Bruno Haible  <bruno@clisp.org>
11509
11510         atoll: Move AC_LIBOBJ invocations to module description.
11511         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
11512         invocations from here...
11513         * modules/atoll (configure.ac): ... to here.
11514
11515 2011-05-05  Bruno Haible  <bruno@clisp.org>
11516
11517         argz: Move AC_LIBOBJ invocations to module description.
11518         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
11519         * modules/argz (configure.ac): ... to here.
11520
11521 2011-05-05  Bruno Haible  <bruno@clisp.org>
11522
11523         alphasort: Move AC_LIBOBJ invocations to module description.
11524         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
11525         gl_PREREQ_ALPHASORT invocations from here...
11526         * modules/alphasort (configure.ac): ... to here.
11527
11528 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11529
11530         verify: new macro verify_expr; verify_true deprecated
11531         * NEWS: Mention this.
11532         * doc/verify.texi (Compile-time Assertions): Document this.
11533         * lib/verify.h (verify_true): Deprecate.
11534         (verify_expr): New macro.
11535         * tests/test-verify.c (function): Test verify_expr.
11536
11537 2011-06-14  Jim Meyering  <meyering@redhat.com>
11538
11539         init.sh: give more portable redirection-related advice in a comment
11540         * tests/init.sh (stderr_fileno_): Update the advice in comments.
11541         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
11542         for lots of discussion.  Stefano Lattarini suggested the solution
11543         of putting "9>&2" after the command.  Reported by Bruno Haible.
11544
11545 2011-06-13  Bruno Haible  <bruno@clisp.org>
11546
11547         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
11548         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
11549         'none'.
11550
11551 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11552
11553         ftoastr: use strtof only if HAVE_STRTOF
11554         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
11555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
11556         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
11557         * modules/ftoastr (configure.ac): Check for strtof.
11558
11559 2011-06-13  Bruno Haible  <bruno@clisp.org>
11560
11561         gnulib-tool: Addendum to 2011-06-08 commit.
11562         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
11563         and --witness-c-macro have been given, augment AM_CPPFLAGS.
11564
11565 2011-06-13  Bruno Haible  <bruno@clisp.org>
11566
11567         fseeko: Provide a non-inline replacement of fseek().
11568         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
11569         * modules/fseeko (Depends-on): Add fseek.
11570         * modules/fseek (License): Change to LGPLv2+.
11571
11572 2011-06-13  Bruno Haible  <bruno@clisp.org>
11573
11574         ftello: Provide a non-inline replacement of ftell().
11575         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
11576         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
11577         not have ftello() (such as on mingw).
11578         * modules/ftello (Depends-on): Add ftell.
11579         * modules/ftell (License): Change to LGPLv2+.
11580
11581 2011-05-07  Bruno Haible  <bruno@clisp.org>
11582
11583         ftell: Move AC_LIBOBJ invocations to module description.
11584         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
11585         * modules/ftell (configure.ac): ... to here.
11586
11587 2011-05-07  Bruno Haible  <bruno@clisp.org>
11588
11589         ftello: Respect rules for use of AC_LIBOBJ.
11590         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
11591         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
11592         here...
11593         * modules/ftello (configure.ac): ... to here.
11594
11595 2011-05-07  Bruno Haible  <bruno@clisp.org>
11596
11597         fseeko: Simplify.
11598         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
11599         (gl_FUNC_FSEEKO): Inline it here.
11600
11601 2011-05-07  Bruno Haible  <bruno@clisp.org>
11602
11603         fseek: Move AC_LIBOBJ invocations to module description.
11604         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
11605         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11606         * modules/fseek (configure.ac): ... to here.
11607
11608 2011-05-07  Bruno Haible  <bruno@clisp.org>
11609
11610         fseek: Respect rules for use of AC_LIBOBJ.
11611         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
11612         here...
11613         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
11614
11615 2011-05-07  Bruno Haible  <bruno@clisp.org>
11616
11617         fseeko: Respect rules for use of AC_LIBOBJ.
11618         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
11619         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
11620         here...
11621         * modules/fseeko (configure.ac): ... to here.
11622
11623 2011-06-13  Bruno Haible  <bruno@clisp.org>
11624
11625         gnulib-tool: Allow comments in the 'Depends-on' section.
11626         * doc/gnulib.texi (Module description): Mention comment syntax in the
11627         Depends-on section.
11628         * gnulib-tool (func_get_dependencies): Filter out comment lines.
11629
11630 2011-06-13  Bruno Haible  <bruno@clisp.org>
11631
11632         file-set.h: guard __attibute__ use, now that it's not always defined
11633         * lib/file-set.h (record_file): Use __attribute__ only with compiler
11634         versions that support it.  This fixes a coreutils build failure with
11635         the vendor cc on HP-UX 11.31.
11636
11637 2011-06-12  Bruno Haible  <bruno@clisp.org>
11638
11639         acl: Add support for HP-UX >= 11.11 JFS ACLs.
11640         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
11641         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
11642         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
11643         (acl, aclsort): New declarations.
11644         (aclv_nontrivial): New declaration.
11645         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
11646         (file_has_acl): Read also the second kind of HP-UX ACLs.
11647         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
11648         kind of HP-UX ACLs if the first kind fails.
11649         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
11650         second kind of HP-UX ACLs.
11651         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
11652         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
11653         agree.
11654         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11655         hpuxjfs.
11656         Handle hpuxjfs.
11657         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11658         hpuxjfs.
11659         Handle hpuxjfs.
11660         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11661         (func_test_same_acls): Use both lsacl and getacl.
11662         Handle hpuxjfs.
11663         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11664         (func_test_same_acls): Use both lsacl and getacl.
11665         Handle hpuxjfs.
11666
11667 2011-06-12  Bruno Haible  <bruno@clisp.org>
11668
11669         acl: Complete the 2010-08-10 fix.
11670         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
11671         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
11672         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
11673         explicitly.
11674         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
11675         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
11676
11677 2011-06-12  Bruno Haible  <bruno@clisp.org>
11678
11679         spawn-pipe tests: Comments.
11680         * tests/test-spawn-pipe-child.c (main): Update comment.
11681         Reported by James Youngman <jay@gnu.org>.
11682
11683 2011-06-11  James Youngman  <jay@gnu.org>
11684
11685         New module 'stat-size'.
11686         * modules/stat-size: New module.  Provides macros for accessing
11687         file size information in instances of struct stat.  Depends on the
11688         fileblocks module because it calls st_blocks.
11689         * lib/stat-size.h: New file, adapted from coreutils' system.h.
11690         * doc/gnulib.texi: Include stat-size.texi.
11691         * doc/stat-size.texi: Documentation for this module.
11692         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
11693         * m4/fileblocks.m4: Mention that stat-size depends on the call to
11694         AC_STRUCT_ST_BLOCKS.
11695
11696 2011-06-09  Bruno Haible  <bruno@clisp.org>
11697
11698         thread: Support pthreads-win32.
11699         * lib/glthread/thread.h (gl_thread_self): Define differently on
11700         pthreads-win32.
11701         (gl_null_thread): New declaration.
11702         (gl_thread_self_pointer): New macro.
11703         * lib/glthread/thread.c (gl_null_thread): New constant.
11704         * tests/test-lock.c: Use gl_thread_self_pointer instead of
11705         gl_thread_self.
11706         * tests/test-tls.c: Likewise.
11707         Suggested by Paul Eggert. Reported by Eric Blake.
11708
11709 2011-06-09  Bruno Haible  <bruno@clisp.org>
11710
11711         thread: Fix confusion between NULL and 0.
11712         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
11713         Reported by Paul Eggert.
11714
11715 2011-06-09  Bruno Haible  <bruno@clisp.org>
11716
11717         spawn-pipe tests: Avoid test failure on HP-UX 11.
11718         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
11719         is closed.
11720
11721 2011-06-09  Bruno Haible  <bruno@clisp.org>
11722
11723         acl tests: Fix compilation error on HP-UX 11.
11724         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11725
11726 2011-06-09  Bruno Haible  <bruno@clisp.org>
11727
11728         rmdir: Avoid test failure on HP-UX 10.20.
11729         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
11730         EEXIST.
11731
11732 2011-06-08  Eric Blake  <eblake@redhat.com>
11733
11734         perror: fix test on mingw
11735         * modules/perror-tests (Depends-on): Add dup2.
11736
11737         strerror_r-posix: fix on MacOS
11738         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
11739         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
11740         logic bug.
11741         * lib/strerror_r.c (strerror_r): Fix the bug.
11742         * lib/strerror.c (strerror): Likewise.
11743         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11744         problem.
11745         * doc/posix-functions/strerror.texi (strerror): Likewise.
11746         * doc/posix-functions/perror.texi (perror): Likewise.
11747         * tests/test-strerror.c (main): Enhance test.
11748         * tests/test-strerror_r.c (main): Likewise.
11749
11750 2011-06-08  Bruno Haible  <bruno@clisp.org>
11751
11752         gnulib-tool: Better isolation between different gnulib-tool invocations.
11753         * gnulib-tool: New option --witness-c-macro.
11754         (witness_c_macro): New variable.
11755         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
11756         AM_CPPFLAGS define it as a C macro.
11757         (func_emit_tests_Makefile_am): Likewise.
11758         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
11759         read it from there.
11760         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
11761         m4_define, not AC_DEFUN.
11762         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
11763         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
11764         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
11765         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
11766         s|...|...|, to substitute the values of the GNULIB_* module indicator
11767         variables.
11768         * modules/dirent (Makefile.am): Likewise.
11769         * modules/fcntl-h (Makefile.am): Likewise.
11770         * modules/iconv-h (Makefile.am): Likewise.
11771         * modules/langinfo (Makefile.am): Likewise.
11772         * modules/locale (Makefile.am): Likewise.
11773         * modules/math (Makefile.am): Likewise.
11774         * modules/netdb (Makefile.am): Likewise.
11775         * modules/poll-h (Makefile.am): Likewise.
11776         * modules/pty (Makefile.am): Likewise.
11777         * modules/search (Makefile.am): Likewise.
11778         * modules/signal (Makefile.am): Likewise.
11779         * modules/spawn (Makefile.am): Likewise.
11780         * modules/stdio (Makefile.am): Likewise.
11781         * modules/stdlib (Makefile.am): Likewise.
11782         * modules/string (Makefile.am): Likewise.
11783         * modules/sys_ioctl (Makefile.am): Likewise.
11784         * modules/sys_select (Makefile.am): Likewise.
11785         * modules/sys_socket (Makefile.am): Likewise.
11786         * modules/sys_stat (Makefile.am): Likewise.
11787         * modules/sys_times (Makefile.am): Likewise.
11788         * modules/sys_utsname (Makefile.am): Likewise.
11789         * modules/sys_wait (Makefile.am): Likewise.
11790         * modules/termios (Makefile.am): Likewise.
11791         * modules/time (Makefile.am): Likewise.
11792         * modules/unistd (Makefile.am): Likewise.
11793         * modules/wchar (Makefile.am): Likewise.
11794
11795 2011-06-08  Eric Blake  <eblake@redhat.com>
11796
11797         strerror: simplify replacement
11798         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
11799         * modules/strerror (configure.ac): No prereqs needed here...
11800         * modules/strerror-override (configure.ac): ...but this needs it.
11801         (Files): Add file for needed prereq macro.
11802
11803 2011-06-08  Bruno Haible  <bruno@clisp.org>
11804
11805         strerror_r-posix: Tweaks.
11806         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
11807         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
11808         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
11809         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
11810         (gl_FUNC_STRERROR_R): ... to here.
11811         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
11812
11813 2011-06-07  Eric Blake  <eblake@redhat.com>
11814
11815         perror: document fixed bugs
11816         * doc/posix-functions/perror.texi (perror): Document recent
11817         patches.
11818
11819 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
11820
11821         stat-time: get_stat_birthtime failure is better-defined
11822         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
11823         return a timestamp whose tv_sec and tv_nsec values are both -1.
11824         Previously, the spec said only that the tv_nsec value was negative.
11825         This upward-compatible change simplifies GNU tar a bit.
11826
11827 2011-06-07  Eric Blake  <eblake@redhat.com>
11828
11829         strerror_r-posix: work around cygwin 1.7.9
11830         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
11831         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
11832         bug without replacing strerror_r.
11833         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
11834         strerror_r is buggy, but without requiring strerror_r compilation.
11835         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
11836
11837         test-perror: relax test to ignore cygwin bug
11838         * tests/test-perror2.c (main): Relax test on requiring detection
11839         of stream errors, and use unbuffered stream.
11840         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
11841         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
11842         * doc/posix-functions/fputc.texi (fputc): Likewise.
11843         * doc/posix-functions/fputs.texi (fputs): Likewise.
11844         * doc/posix-functions/fputws.texi (fputws): Likewise.
11845         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
11846         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
11847         * doc/posix-functions/getopt.texi (getopt): Likewise.
11848         * doc/posix-functions/perror.texi (perror): Likewise.
11849         * doc/posix-functions/printf.texi (printf): Likewise.
11850         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
11851         * doc/posix-functions/psignal.texi (psignal): Likewise.
11852         * doc/posix-functions/putc.texi (putc): Likewise.
11853         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
11854         Likewise.
11855         * doc/posix-functions/putchar.texi (putchar): Likewise.
11856         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
11857         Likewise.
11858         * doc/posix-functions/puts.texi (puts): Likewise.
11859         * doc/posix-functions/putwc.texi (putwc): Likewise.
11860         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
11861         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
11862         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11863         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
11864         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11865         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
11866         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11867         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
11868
11869 2011-05-22  Bruno Haible  <bruno@clisp.org>
11870
11871         strerror: Move AC_LIBOBJ invocations to module description.
11872         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
11873         gl_PREREQ_STRERROR invocations from here...
11874         * modules/strerror (configure.ac): ... to here.
11875
11876 2011-05-21  Bruno Haible  <bruno@clisp.org>
11877
11878         perror: Use common idiom.
11879         * modules/perror (configure.ac): Reorder statements.
11880
11881 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11882
11883         tests: fix usage message in 'mktempd_'
11884         * tests/init.sh (mktempd_): In the usage message, use literal
11885         'mktempd_', not '$ME' (which is even undefined), as the name of
11886         the subroutine.
11887
11888 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11889
11890         tests init: new function 'fatal_', for hard errors
11891         Before this patch, the only way offered by tests/init.sh to
11892         properly signal a hard error was the `framework_failure_'
11893         function.  But the error message issued by that function,
11894         as its name would suggest, refers to a set-up failure in the
11895         testsuite, while hard errors can obviously also be due to
11896         other reasons.  The best way to fix this inconsistency is to
11897         introduce a new function with a more general error message.
11898         * tests/init.sh (fatal_): New function.
11899
11900 2011-06-06  Eric Blake  <eblake@redhat.com>
11901
11902         canonicalize-lgpl: use common idiom
11903         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
11904         over newer POSIX -Rf.
11905         Reported by Bruno Haible.
11906
11907         canonicalize-lgpl: work around AIX realpath bug
11908         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
11909         * doc/posix-functions/realpath.texi (realpath): Document it.
11910         Reported by Bruno Haible.
11911
11912         strerror: work around FreeBSD bug
11913         * lib/strerror.c (strerror): Special case 0.
11914         Reported by Bruno Haible.
11915
11916         strerror-override: avoid bloating errno module
11917         * modules/errno (Files, configure.ac): Move replacement strings...
11918         * modules/strerror-override: ...to new module.
11919         * modules/strerror (Depends-on): Add strerror-override.
11920         * modules/strerror_r-posix (Depends-on): Likewise.
11921         * MODULES.html.sh: Document new module.
11922         Reported by Bruno Haible.
11923
11924 2011-06-06  Bruno Haible  <bruno@clisp.org>
11925
11926         spawn-pipe tests: Rename program.
11927         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
11928         * tests/test-spawn-pipe-child.c: Update comment.
11929         * tests/test-spawn-pipe.sh: Update.
11930         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
11931
11932         spawn-pipe tests: Link the child program only against libc.
11933         * tests/test-spawn-pipe-child.c: New file, extracted from
11934         tests/test-spawn-pipe.c.
11935         (main): Expect only one argument.
11936         (is_open): New function, copied from tests/test-pipe.c.
11937         * tests/test-spawn-pipe.c: Don't include <errno.h>.
11938         (child_main): Remove function.
11939         (test_pipe): Pass only one argument to the child program.
11940         (main): Remove child process code. Expect the child program's name as
11941         first argument.
11942         * tests/test-spawn-pipe.sh: Pass the child program's name as first
11943         argument.
11944         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
11945         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
11946         test-spawn-pipe-child against no libraries.
11947
11948 2011-06-06  Bruno Haible  <bruno@clisp.org>
11949
11950         careadlinkat: Avoid mismatch between ssize_t and int.
11951         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
11952         * lib/careadlinkat.c (careadlinkatcwd): Define always.
11953
11954 2011-06-06  Jim Meyering  <meyering@redhat.com>
11955
11956         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
11957         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
11958         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
11959
11960 2011-06-05  Bruno Haible  <bruno@clisp.org>
11961
11962         ansi-c++-opt: Interoperability with libtool.
11963         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
11964         set the variable to "no", not to ":".
11965         * NEWS: Mention the change.
11966
11967 2011-06-05  Bruno Haible  <bruno@clisp.org>
11968
11969         acl: Fix test failure on AIX 7.
11970         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
11971         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
11972
11973 2011-06-05  Bruno Haible  <bruno@clisp.org>
11974
11975         pipe-filter-ii: Fix test failure on AIX and IRIX.
11976         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
11977         with EAGAIN, retry with a smaller buffer size.
11978
11979 2011-06-05  Bruno Haible  <bruno@clisp.org>
11980
11981         localename: Fix link dependencies.
11982         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
11983         * modules/localename-tests (Makefile.am): Link test-localename with
11984         $(LIBTHREAD).
11985
11986 2011-06-05  Bruno Haible  <bruno@clisp.org>
11987
11988         error: Avoid gcc warning.
11989         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
11990
11991 2011-06-05  Bruno Haible  <bruno@clisp.org>
11992
11993         unsetenv: Avoid gcc warning.
11994         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
11995
11996 2011-06-05  Bruno Haible  <bruno@clisp.org>
11997
11998         setenv: Avoid gcc warning.
11999         * lib/setenv.c (setenv): Provide declaration if system lacks it.
12000
12001 2011-06-05  Bruno Haible  <bruno@clisp.org>
12002
12003         sys_select: Ensure memset is declared also on AIX 7.
12004         * lib/sys_select.in.h: Include <string.h> also on AIX.
12005         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
12006         self-contained also on AIX 7.1.
12007
12008 2011-06-04  Jim Meyering  <meyering@redhat.com>
12009
12010         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
12011         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
12012         function name, "error".
12013         (_gl_translatable_diag_func_re): New configurable variable.
12014
12015 2011-06-04  Bruno Haible  <bruno@clisp.org>
12016
12017         getopt: Avoid gcc warning.
12018         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
12019
12020 2011-06-04  Bruno Haible  <bruno@clisp.org>
12021
12022         strerror_r: Fix comments.
12023         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
12024         commit.
12025
12026 2011-06-04  Bruno Haible  <bruno@clisp.org>
12027
12028         perror: Fix compilation error.
12029         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
12030         Undefine fprintf, not sprintf.
12031         * modules/perror (Depends-on): Remove intprops, verify.
12032
12033 2011-06-04  Bruno Haible  <bruno@clisp.org>
12034
12035         setlocale: Enable replacement on Cygwin 1.5.
12036         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
12037         Cygwin 1.5.x.
12038         * doc/posix-functions/setlocale.texi: Mention that the problem with the
12039         LC_CTYPE category also exists on Cygwin 1.5.x.
12040
12041 2011-06-04  Bruno Haible  <bruno@clisp.org>
12042
12043         strerror-override: Don't disable symbol renamings.
12044         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
12045         * lib/strerror-override.c: Include config.h.
12046         (strerror_override): Don't undefine.
12047
12048 2011-06-03  Bruno Haible  <bruno@clisp.org>
12049
12050         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
12051         * lib/localename.h: Update copyright header.
12052         * lib/localename.c: Likewise.
12053         * lib/relocatable.h: Likewise.
12054         * lib/relocatable.c: Likewise.
12055
12056 2011-06-02  Bruno Haible  <bruno@clisp.org>
12057
12058         doc: Fix a module name.
12059         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
12060
12061 2011-06-02  Bruno Haible  <bruno@clisp.org>
12062
12063         pipe2: Remove dependency on 'nonblocking' module.
12064         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
12065         O_NONBLOCK is defined by gnulib.
12066         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
12067         is zero.
12068         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
12069         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
12070         defined by gnulib.
12071         (get_nonblocking_flag): New function.
12072         (main): Test O_NONBLOCK flag only if it is nonzero.
12073         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
12074
12075 2011-06-03  Jim Meyering  <meyering@redhat.com>
12076
12077         maint: three new prohibit-header-without-use rules
12078         Prohibit use of cloexec.h, posixver.h, same.h without use.
12079         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
12080         (sc_prohibit_posixver_without_use): Likewise.
12081         (sc_prohibit_same_without_use): Likewise.
12082
12083 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12084
12085         allocator: 'die' routine is now given requested size
12086         * lib/allocator.h (struct allocator.die): New size arg.
12087         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
12088         If the actual problem is an ssize_t limitation, not a size_t or
12089         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
12090
12091 2011-06-01  Eric Blake  <eblake@redhat.com>
12092
12093         strerror: drop strerror_r dependency
12094         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
12095         * lib/strerror-override.c (strerror_override): ...to new file.
12096         * lib/strerror-override.h: Add prototype.
12097         * lib/strerror-impl.h: Delete.
12098         * lib/strerror.c (strerror): New implementation.
12099         * modules/errno (Files): Add new files.
12100         (configure.ac): Compile new file as appropriate.
12101         * modules/strerror (Files): Drop unused file.
12102         (Depends-on): Drop strerror_r-posix.
12103         * MODULES.html.sh: Document strerror_r-posix.
12104         Requested by Sam Steingold.
12105
12106         perror: call strerror_r directly
12107         * modules/perror (Files): Drop strerror-impl.h.
12108         * lib/perror.c (perror): Use our own stack buffer, rather than
12109         calling a wrapper that uses static storage.
12110         * doc/posix-functions/perror.texi (perror): Document a limitation
12111         of our replacement.
12112
12113         strerror_r: fix includes for FreeBSD
12114         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
12115         since we use abort on some platforms.
12116         Reported by Matthias Bolte.
12117
12118 2011-05-31  Bruno Haible  <bruno@clisp.org>
12119
12120         Fix link errors in tests: openat-die uses gettext-h.
12121         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
12122         against $(LIBINTL).
12123         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
12124         against $(LIBINTL).
12125         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
12126         $(LIBINTL).
12127         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
12128         against $(LIBINTL).
12129         * modules/linkat-tests (Makefile.am): Link test-linkat against
12130         $(LIBINTL).
12131         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
12132         $(LIBINTL).
12133         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
12134         against $(LIBINTL).
12135         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
12136         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
12137         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
12138         $(LIBINTL).
12139         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
12140         $(LIBINTL).
12141         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
12142         $(LIBINTL).
12143         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12144
12145 2011-05-31  Bruno Haible  <bruno@clisp.org>
12146
12147         Fix link errors in tests: wait-process uses gettext-h.
12148         * modules/nonblocking-pipe-tests (Makefile.am): Set
12149         test_nonblocking_pipe_main_LDADD.
12150         * modules/nonblocking-socket-tests (Makefile.am): Link
12151         test-nonblocking-socket-main against $(LIBINTL).
12152         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12153
12154 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12155
12156         assert-h: work around 'verify' incompatibility
12157         * lib/verify.h: Use @...@ directives, not ifdef.
12158         * modules/assert-h (assert.h): Implement the directives.
12159         (assert.h): Substitute the symbol-prefix more consistently.
12160
12161 2011-05-29  Jim Meyering  <meyering@redhat.com>
12162
12163         trim: remove three superfluous assignments
12164         * lib/trim.c (trim2): Remove three superfluous assignments
12165         and correct brace positioning.
12166
12167 2011-05-29  Bruno Haible  <bruno@clisp.org>
12168
12169         wctype-h: Avoid namespace pollution on Solaris 2.6.
12170         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
12171         identifiers.
12172         * doc/posix-headers/wctype.texi: Mention the problem.
12173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12174
12175 2011-05-28  Jim Meyering  <meyering@redhat.com>
12176
12177         parse-datetime.y: accommodate -Wstrict-overflow
12178         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
12179         placate -Wstrict-overflow.
12180
12181         trim: avoid a warning from -O2 -Wstrict-overflow
12182         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
12183
12184 2011-05-29  Bruno Haible  <bruno@clisp.org>
12185
12186         gnulib-tool: Fix bug in yesterday's commit.
12187         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
12188         twice.
12189
12190 2011-05-29  Bruno Haible  <bruno@clisp.org>
12191
12192         Allow multiple gnulib generated include files to be combined.
12193         * gnulib-tool (func_compute_include_guard_prefix): New function.
12194         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
12195         ${gl_include_guard_prefix} references.
12196         (func_import, func_create_testdir): Invoke
12197         func_compute_include_guard_prefix.
12198         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
12199         * lib/ctype.in.h: Likewise.
12200         * lib/dirent.in.h: Likewise.
12201         * lib/errno.in.h: Likewise.
12202         * lib/fcntl.in.h: Likewise.
12203         * lib/float.in.h: Likewise.
12204         * lib/getopt.in.h: Likewise.
12205         * lib/iconv.in.h: Likewise.
12206         * lib/langinfo.in.h: Likewise.
12207         * lib/locale.in.h: Likewise.
12208         * lib/math.in.h: Likewise.
12209         * lib/netdb.in.h: Likewise.
12210         * lib/netinet_in.in.h: Likewise.
12211         * lib/poll.in.h: Likewise.
12212         * lib/pthread.in.h: Likewise.
12213         * lib/pty.in.h: Likewise.
12214         * lib/sched.in.h: Likewise.
12215         * lib/se-selinux.in.h: Likewise.
12216         * lib/search.in.h: Likewise.
12217         * lib/signal.in.h: Likewise.
12218         * lib/spawn.in.h: Likewise.
12219         * lib/stdarg.in.h: Likewise.
12220         * lib/stddef.in.h: Likewise.
12221         * lib/stdint.in.h: Likewise.
12222         * lib/stdio.in.h: Likewise.
12223         * lib/stdlib.in.h: Likewise.
12224         * lib/string.in.h: Likewise.
12225         * lib/strings.in.h: Likewise.
12226         * lib/sys_file.in.h: Likewise.
12227         * lib/sys_ioctl.in.h: Likewise.
12228         * lib/sys_select.in.h: Likewise.
12229         * lib/sys_socket.in.h: Likewise.
12230         * lib/sys_stat.in.h: Likewise.
12231         * lib/sys_time.in.h: Likewise.
12232         * lib/sys_times.in.h: Likewise.
12233         * lib/sys_uio.in.h: Likewise.
12234         * lib/sys_utsname.in.h: Likewise.
12235         * lib/sys_wait.in.h: Likewise.
12236         * lib/sysexits.in.h: Likewise.
12237         * lib/termios.in.h: Likewise.
12238         * lib/time.in.h: Likewise.
12239         * lib/unistd.in.h: Likewise.
12240         * lib/wchar.in.h: Likewise.
12241         * lib/wctype.in.h: Likewise.
12242         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
12243         * modules/ctype (Makefile.am): Likewise.
12244         * modules/dirent (Makefile.am): Likewise.
12245         * modules/errno (Makefile.am): Likewise.
12246         * modules/fcntl-h (Makefile.am): Likewise.
12247         * modules/float (Makefile.am): Likewise.
12248         * modules/getopt-posix (Makefile.am): Likewise.
12249         * modules/iconv-h (Makefile.am): Likewise.
12250         * modules/langinfo (Makefile.am): Likewise.
12251         * modules/locale (Makefile.am): Likewise.
12252         * modules/math (Makefile.am): Likewise.
12253         * modules/netdb (Makefile.am): Likewise.
12254         * modules/netinet_in (Makefile.am): Likewise.
12255         * modules/poll-h (Makefile.am): Likewise.
12256         * modules/pthread (Makefile.am): Likewise.
12257         * modules/pty (Makefile.am): Likewise.
12258         * modules/sched (Makefile.am): Likewise.
12259         * modules/search (Makefile.am): Likewise.
12260         * modules/selinux-h (Makefile.am): Likewise.
12261         * modules/signal (Makefile.am): Likewise.
12262         * modules/spawn (Makefile.am): Likewise.
12263         * modules/stdarg (Makefile.am): Likewise.
12264         * modules/stddef (Makefile.am): Likewise.
12265         * modules/stdint (Makefile.am): Likewise.
12266         * modules/stdio (Makefile.am): Likewise.
12267         * modules/stdlib (Makefile.am): Likewise.
12268         * modules/string (Makefile.am): Likewise.
12269         * modules/strings (Makefile.am): Likewise.
12270         * modules/sys_file (Makefile.am): Likewise.
12271         * modules/sys_ioctl (Makefile.am): Likewise.
12272         * modules/sys_select (Makefile.am): Likewise.
12273         * modules/sys_socket (Makefile.am): Likewise.
12274         * modules/sys_stat (Makefile.am): Likewise.
12275         * modules/sys_time (Makefile.am): Likewise.
12276         * modules/sys_times (Makefile.am): Likewise.
12277         * modules/sys_uio (Makefile.am): Likewise.
12278         * modules/sys_utsname (Makefile.am): Likewise.
12279         * modules/sys_wait (Makefile.am): Likewise.
12280         * modules/sysexits (Makefile.am): Likewise.
12281         * modules/termios (Makefile.am): Likewise.
12282         * modules/time (Makefile.am): Likewise.
12283         * modules/unistd (Makefile.am): Likewise.
12284         * modules/wchar (Makefile.am): Likewise.
12285         * modules/wctype-h (Makefile.am): Likewise.
12286         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
12287
12288 2011-05-29  Bruno Haible  <bruno@clisp.org>
12289
12290         assert-h: Allow multiple gnulib generated replacements to coexist.
12291         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
12292
12293 2011-05-29  Bruno Haible  <bruno@clisp.org>
12294
12295         argp: Allow coexistence with strerror_r-posix module.
12296         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
12297         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
12298         by gnulib's <string.h> replacement), assume it has the POSIX signature,
12299         not the glibc signature.
12300
12301 2011-05-28  Bruno Haible  <bruno@clisp.org>
12302
12303         gnulib-tool: Alternative structure of testdirs, similar to --import.
12304         * gnulib-tool: New option --single-configure.
12305         (func_usage): Document it.
12306         (single_configure): New variable.
12307         (func_modules_transitive_closure_separately,
12308         func_modules_transitive_closure_separately,
12309         func_determine_use_libtests, func_modules_add_dummy_separately,
12310         func_modules_to_filelist_separately): New functions, extracted from
12311         func_import.
12312         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
12313         (func_import): Use the new functions.
12314         (func_create_testdir): Set final_modules. Handle $single_configure =
12315         true case.
12316
12317 2011-05-28  Bruno Haible  <bruno@clisp.org>
12318
12319         getloadavg: Remove an unreliable safety check.
12320         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
12321         getloadavg.c is in place.
12322         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
12323         Reported by Sam Steingold <sds@gnu.org>.
12324
12325 2011-05-28  Bruno Haible  <bruno@clisp.org>
12326
12327         doc: Cleanup yet another file produced by texinfo.tex.
12328         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
12329
12330 2011-05-28  Bruno Haible  <bruno@clisp.org>
12331
12332         Finish the conditional dependencies mechanism.
12333         * gnulib-tool: New option --no-conditional-dependencies.
12334         (func_usage): Document it. Don't mark --conditional-dependencies as
12335         experimental.
12336         (cond_dependencies): The possible values can now be true, false, empty.
12337         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
12338         (func_import): Store setting in gnulib-cache.m4 and read it from there.
12339         * doc/gnulib-tool.texi (Conditional dependencies): New section.
12340
12341 2011-05-28  Bruno Haible  <bruno@clisp.org>
12342
12343         doc: Use a recent texinfo.tex.
12344         * doc/Makefile (tex_opts): New variable.
12345         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
12346
12347 2011-05-28  Jim Meyering  <meyering@redhat.com>
12348
12349         intprops.h: adjust comment to match code change
12350         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
12351         only once, it *may* have side effects.  Also fix an unrelated typo.
12352         (_GL_INT_SIGNED): Likewise.
12353
12354 2011-05-26  Simon Josefsson  <simon@josefsson.org>
12355
12356         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
12357
12358 2011-05-26  Bruno Haible  <bruno@clisp.org>
12359
12360         mbsrchr: Avoid collision with system function on Interix.
12361         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
12362         Reported by Markus Duft <mduft@gentoo.org>.
12363
12364 2011-05-15  James Youngman  <jay@gnu.org>
12365
12366         getopt: for ambiguous options, enumerate the possibilities.
12367         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
12368         the ambiguous options when an ambiguous prefix is given. This was
12369         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
12370         glibc change was
12371         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
12372
12373 2011-05-25  Eric Blake  <eblake@redhat.com>
12374
12375         getcwd: work around mingw bug
12376         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
12377         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12378         Reported by Matthias Bolte.
12379
12380 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
12381
12382         test-intprops: disable -Wtype-limits diagnostics
12383         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
12384         diagnostics.  Otherwise, the integer overflow macros generate many
12385         diagnostics.  Reported by Jim Meyering in
12386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12387
12388         intprops: shorten, to pacify gcc -Woverlength-strings
12389         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
12390         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
12391         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
12392         likely to run afoul of C compiler limits for string constant lengths.
12393         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12394
12395 2011-05-24  Eric Blake  <eblake@redhat.com>
12396
12397         docs: document recently fixed glibc printf bug
12398         * doc/posix-functions/fprintf.texi (fprintf): Document it.
12399         * doc/posix-functions/printf.texi (printf): Likewise.
12400         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12401         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12402
12403         closein-tests: convert to init.sh
12404         * modules/closein-tests (Files): Add init.sh
12405         * tests/test-closein.sh Use it.
12406
12407         yesno-tests: convert to init.sh
12408         * modules/yesno-tests (Files): Add init.sh.
12409         * tests/test-yesno.sh: Use it.
12410
12411         atexit-tests: ensure reliable exit status
12412         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
12413         Reported by Bruno Haible.
12414
12415 2011-05-24  Bruno Haible  <bruno@clisp.org>
12416
12417         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
12418         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
12419         gl_PREREQ_STRERROR_R invocations from here...
12420         * modules/strerror_r-posix (configure.ac): ... to here.
12421
12422 2011-05-24  Eric Blake  <eblake@redhat.com>
12423
12424         strerror_r: fix missing header
12425         * lib/strerror_r.c: Avoid compiler warning about snprintf.
12426
12427         strerror_r: fix AIX test failures
12428         * lib/strerror_r.c (strerror_r): Convert silent truncation to
12429         ERANGE failure.
12430
12431         strerror_r: fix Solaris test failures
12432         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
12433         failures.
12434         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12435
12436         strerror_r: enforce POSIX recommendations
12437         * lib/strerror_r.c (safe_copy): New helper method.
12438         (strerror_r): Guarantee a non-empty string.
12439         * tests/test-strerror_r.c (main): Enhance tests to incorporate
12440         recent POSIX rulings and to match our strerror guarantees.
12441         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12442
12443 2011-05-24  Jim Meyering  <meyering@redhat.com>
12444
12445         test-perror2.c: avoid warning about unused variable
12446         * tests/test-perror2.c (main): Remove declaration of unused "fp".
12447
12448 2011-05-24  Eric Blake  <eblake@redhat.com>
12449
12450         perror: avoid spurious test failure on HP-UX
12451         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
12452
12453         tests: fix logic bug in init.sh
12454         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
12455         shell.
12456
12457 2011-05-24  Jim Meyering  <meyering@redhat.com>
12458
12459         utimensat: do not reference an out-of-scope buffer
12460         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
12461         declared in an inner scope, yet "times" would be dereferenced outside
12462         the scope in which "ts" was valid.
12463         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
12464         of ts[2] "out/up", so that the use of aliased "times" (via
12465         "times = ts;") does not end up referencing an out-of-scope "ts"
12466
12467         opendir-safer.c: don't clobber errno; don't close negative FD
12468         * lib/opendir-safer.c (opendir_safer):
12469         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
12470         file descriptor, and more importantly, don't clobber the
12471         offending errno value with EINVAL.  Before, upon failure
12472         of dup_safer, we would pass the negative file descriptor to
12473         fdopendir, which would clobber errno.
12474
12475 2011-05-23  Bruno Haible  <bruno@clisp.org>
12476
12477         idcache: Fix module description.
12478         * modules/idcache (Include): Set to "idcache.h".
12479
12480 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
12481
12482         gnulib-tool: fix portability problem with MacOS sed
12483         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
12484         before the "}".  Problem reported by Leo in
12485         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
12486         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
12487         sed_extract_condition1, sed_extract_condition2.
12488
12489 2011-05-23  Bruno Haible  <bruno@clisp.org>
12490
12491         hash: Simplify autoconf macro.
12492         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
12493
12494 2011-05-23  Bruno Haible  <bruno@clisp.org>
12495
12496         getugroups: Fix module description.
12497         * modules/getugroups (Include): Set to "getugroups.h".
12498
12499 2011-05-23  Bruno Haible  <bruno@clisp.org>
12500
12501         linkat: Simplify autoconf macro.
12502         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
12503
12504 2011-05-23  Bruno Haible  <bruno@clisp.org>
12505             Eric Blake  <eblake@redhat.com>
12506
12507         linkat, renameat: Update dependencies.
12508         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
12509         * modules/linkat (Depends-on): Likewise. Remove also readlink,
12510         symlinkat.
12511
12512 2011-05-23  Jim Meyering  <meyering@redhat.com>
12513
12514         maint.mk: more tight_scope improvements
12515         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
12516         (_gl_TS_headers): Define only in if-0'd block.
12517         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
12518         sometimes we must *not* use it.  Adjust uses accordingly.
12519         (sc_tight_scope): Use much simpler grep-based test to determine
12520         whether we skip this rule.
12521
12522         maint.mk: generalize/improve the tight-scope rule
12523         * top/maint.mk: Emit a warning when the test is skipped.
12524         (_gl_TS_dir): Add $(srcdir)/ prefix.
12525         (_gl_TS_function_match): Simplify, rather than trying
12526         to enumerate common types.  Otherwise, it would fail to match an
12527         "extern unsigned char const *" declaration in idutils.
12528         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
12529         a way to support use of that type of macro.
12530         (_gl_TS_var_match): Simplify regexp.
12531         (_gl_TS_obj_files): New configurable variable.
12532         (_gl_TS_headers): Likewise.
12533
12534 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12535
12536         verify: fix bug when gnulib <assert.h> is also included
12537         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
12538         is defined, not if _GL_STATIC_ASSERT_H is not defined.
12539         Perhaps there's a better way, but this fixes the immediate problem.
12540         Problem reported by Bruno Haible in
12541         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
12542
12543 2011-05-22  Bruno Haible  <bruno@clisp.org>
12544
12545         xgetcwd: Simplify autoconf macro.
12546         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
12547
12548 2011-05-22  Bruno Haible  <bruno@clisp.org>
12549
12550         New module 'mktime-internal'.
12551         * modules/mktime-internal: New file.
12552         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
12553         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
12554         mktime_internal as a C macro if libc has __mktime_internal.
12555         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
12556         conditions.
12557         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
12558
12559 2011-05-22  Bruno Haible  <bruno@clisp.org>
12560
12561         timegm: Correct mktime replacement statements.
12562         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
12563         defining mktime as a C macro. This completes a 2009-07-28 commit.
12564
12565 2011-05-22  Bruno Haible  <bruno@clisp.org>
12566
12567         timegm: Simplify autoconf macro.
12568         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
12569
12570 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
12571
12572         clock-time: change to LGPLv2+.
12573         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
12574         BSD-like but we have no mark for that; this is good enough for now.
12575
12576 2011-05-21  Bruno Haible  <bruno@clisp.org>
12577
12578         strerror_r: Fix comments.
12579         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
12580
12581 2011-05-21  Bruno Haible  <bruno@clisp.org>
12582
12583         relocatable-prog-wrapper: Fix possible link error.
12584         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
12585         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
12586         (gl_FUNC_SETENV): ... to here.
12587         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
12588         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
12589
12590 2011-05-21  Bruno Haible  <bruno@clisp.org>
12591
12592         relocatable-prog-wrapper: Assume strerror() exists.
12593         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
12594         m4/strerror.m4.
12595         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
12596         * lib/relocwrapper.c: Remove mention of strerror module.
12597         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
12598         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
12599         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
12600         C macro.
12601
12602 2011-05-21  Bruno Haible  <bruno@clisp.org>
12603
12604         select: Simplify replacement idiom.
12605         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
12606         Win32 platforms.
12607         * lib/sys_select.in.h (select): Simplify accordingly.
12608         * modules/select (Depends-on): Likewise.
12609
12610 2011-05-21  Bruno Haible  <bruno@clisp.org>
12611
12612         mkdir-p: Simplify autoconf macro.
12613         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
12614         gl_FUNC_LCHOWN.
12615
12616 2011-05-21  Eric Blake  <eblake@redhat.com>
12617
12618         strerror_r: avoid clobbering strerror on cygwin
12619         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
12620         fall back instead to sys_errlist.
12621         * modules/strerror (configure.ac): Add witness.
12622         * tests/test-strerror_r.c (main): Enhance test.
12623         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12624         * tests/test-perror2.c (main): Free memory before exit.
12625
12626 2011-05-21  Bruno Haible  <bruno@clisp.org>
12627
12628         mkdtemp: Use gnulib naming conventions.
12629         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
12630         * modules/mkdtemp (configure.ac): Update.
12631
12632 2011-05-20  Eric Blake  <eblake@redhat.com>
12633
12634         strerror_r: avoid corrupting errno on Solaris
12635         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
12636         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12637
12638         strerror_r: avoid compiler warning
12639         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
12640
12641         strerror_r: simplify AIX code
12642         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
12643
12644         test-perror: avoid spurious failure on FreeBSD
12645         * modules/perror-tests (Depends-on): Add strerror, now that
12646         strerror_r no longer pulls it in.
12647
12648 2011-05-20  Bruno Haible  <bruno@clisp.org>
12649
12650         strerror_r-posix: Remove unused dependencies.
12651         * modules/strerror_r-posix (Depends-on): Remove strerror.
12652         Reported by Eric Blake.
12653
12654 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12655
12656         intprops: remove assumption about A|B representation
12657         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
12658         is a valid integer if both A and B are.  Although this is true for
12659         all known practical hosts, the C standard doesn't guarantee it,
12660         and the code need not assume it.  Also, this change may work around
12661         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
12662         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
12663
12664 2011-05-20  Eric Blake  <eblake@redhat.com>
12665
12666         perror: work around FreeBSD bug
12667         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
12668         is broken.  Move AC_LIBOBJ...
12669         * modules/perror (configure.ac): Here.
12670         * doc/posix-functions/perror.texi (perror): Document this.
12671         * tests/test-perror2.c (main): Enhance test.
12672
12673         test-perror: check for strerror interactions
12674         * tests/macros.h (STREQ): Add macro.
12675         * modules/perror-tests (Files): Add second test.
12676         * tests/test-perror2.c (main): New file.
12677         * doc/posix-functions/perror.texi (perror): Document glibc bug.
12678
12679         test-perror: rewrite to use init script
12680         * modules/perror-tests (Files): Add init.sh.
12681         * tests/test-perror.sh: Use temporary directory.
12682
12683 2011-05-20  Jim Meyering  <meyering@redhat.com>
12684
12685         maint: replace misused "a" with "an"
12686         * doc/intprops.texi: "a integer"
12687         * doc/regex.texi: "a explanation"
12688         * lib/alignof.h: "a object"
12689         * lib/argmatch.h: "a explanation"
12690         * lib/argp-help.c: "a option" and "a OPTION_DOC"
12691         * lib/stdint.in.h: "a integer"
12692         * lib/userspec.c: "a owner"
12693         * doc/gnulib.texi: Fix "a idea", and reword.
12694
12695 2011-05-19  Jim Meyering  <meyering@redhat.com>
12696
12697         maint: correct misuse of "a" and "an"
12698         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
12699         * lib/argp-help.c: "an docum...": s/an/a/
12700         * lib/argp-parse.c: "An vector": s/An/A/
12701         * lib/execute.c: "an native": s/an/a/
12702         * lib/spawn-pipe.c: Likewise.
12703         * lib/gc.h: "an Gc_rc": s/an/a/
12704         * lib/unigbrk.in.h: "an grapheme": s/an/a/
12705         * lib/fts.c: "an stat.st_dev": s/an/a/
12706
12707 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12708
12709         intprops-tests: work around HP-UX 11.23 cc bug with constants
12710         * tests/test-intprops.c (VERIFY): New macro.
12711         (main): Use it, instead of verify, to work around the compiler bug; see
12712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12713
12714         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
12715         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
12716         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
12717         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
12718         (_GL_REMAINDER_OVERFLOW): Use it.
12719
12720         intprops-tests: revert unsigned part of previous change
12721         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
12722         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
12723         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
12724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
12725
12726 2011-05-19  Bruno Haible  <bruno@clisp.org>
12727
12728         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
12729         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
12730         strerror_r() returned without filling the buffer.
12731         Reported by Eric Blake.
12732
12733 2011-05-19  Eric Blake  <eblake@redhat.com>
12734
12735         strerror_r: guarantee unchanged errno
12736         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
12737         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
12738         failure.
12739         * tests/test-strerror_r.c (main): Enhance test.
12740
12741 2011-05-19  Bruno Haible  <bruno@clisp.org>
12742
12743         strerror_r: Reorder #if blocks.
12744         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
12745         for consistency with the previous commit.
12746
12747 2011-05-19  Bruno Haible  <bruno@clisp.org>
12748
12749         perror: Avoid clobbering the strerror buffer when possible.
12750         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
12751         * lib/strerror.c: Include it.
12752         * modules/strerror (Files): Add lib/strerror-impl.h.
12753         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
12754         (my_strerror): New function, defined through lib/strerror-impl.h.
12755         (perror): Use it instead of strerror.
12756         * modules/perror (Files): Add lib/strerror-impl.h.
12757         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
12758
12759 2011-05-19  Eric Blake  <eblake@redhat.com>
12760
12761         strerror_r: fix on newer cygwin
12762         * lib/strerror_r.c (strerror_r): Cygwin now has
12763         __xpg_strerror_r, use it.
12764
12765 2011-05-19  Bruno Haible  <bruno@clisp.org>
12766
12767         strerror_r: Avoid clobbering the strerror buffer when possible.
12768         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
12769         (sys_nerr, sys_errlist): New declarations.
12770         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
12771         HP-UX, native Win32, IRIX, and 32-bit Solaris.
12772         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
12773
12774 2011-05-19  Bruno Haible  <bruno@clisp.org>
12775
12776         strerror_r: Fix test failure on mingw.
12777         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
12778         EXTEND_STRERROR_R.
12779         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
12780         macros from errno.in.h instead.
12781
12782 2011-05-19  Eric Blake  <eblake@redhat.com>
12783
12784         strerror: relax test for Solaris
12785         * tests/test-strerror.c (main): Permit Solaris behavior.
12786         * tests/test-strerror_r.c (main): Likewise.
12787
12788         strerror: enforce POSIX ruling on strerror(0)
12789         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
12790         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12791         * lib/strerror_r.c (rpl_strerror_r): Work around it.
12792         * doc/posix-functions/strerror.texi (strerror): Document it.
12793         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
12794         * tests/test-strerror.c (main): Strengthen test.
12795         * tests/test-strerror_r.c (main): Likewise.
12796
12797 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12798
12799         intprop-tests: port to older and more-pedantic compilers
12800         * modules/intprops-tests (Files): Add tests/macros.h.
12801         * tests/test-intprops.c: Include macros.h.
12802         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
12803         it's no longer documented to expand to an integer constant expression.
12804         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
12805         argument is floating point, as it's no longer documented to expand
12806         to an integer constant expression in that case.
12807         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
12808         compiler bugs reported by Bruno Haible.  See
12809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12810         (U0, U1): New constants, to work around the same bugs.  Also,
12811         in tests, use e.g., "(unsigned int) 39" rather than "39u".
12812
12813         intprops: work around C compiler bugs
12814         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
12815         bug in Sun C 5.11 2010/08/13 and other compilers; see
12816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12817
12818         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
12819         * doc/intprops.texi (Integer Type Determination): Fix
12820         documentation for TYPE_IS_INTEGER: it returns an constant
12821         expression, not an integer constant expression.  Fix doc for
12822         TYPE_SIGNED: it returns an integer constant expression only if its
12823         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
12824         hardly worth documented that way....)
12825
12826 2011-05-18  Bruno Haible  <bruno@clisp.org>
12827
12828         strerror_r: Avoid clobbering the strerror buffer when possible.
12829         * lib/strerror_r.c (strerror_r): Merge the three implementations.
12830         Handle gnulib defined errno values here. When strerror() returns NULL
12831         or an empty string, return EINVAL.
12832         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
12833         gnulib defined errno values here.
12834         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
12835
12836 2011-05-18  Eric Blake  <eblake@redhat.com>
12837
12838         fnmatch: avoid compiler warning
12839         * lib/fnmatch_loop.c (FCT): Use correct type.
12840         Reported by Matthias Bolte.
12841
12842 2011-05-13  Jim Meyering  <meyering@redhat.com>
12843
12844         maint.mk: three new prohibit_<HDR>_without_use rules
12845         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
12846         (sc_prohibit_stdio-safer_without_use): Likewise.
12847         (sc_prohibit_xfreopen_without_use): Likewise.
12848
12849 2011-05-17  Jim Meyering  <meyering@redhat.com>
12850
12851         announce-gen: fail if the NEWS delta is empty
12852         If there's nothing noteworthy in NEWS, then either you forgot
12853         or you shouldn't be releasing.
12854         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
12855
12856 2011-05-17  Pádraig Brady <P@draigBrady.com>
12857
12858         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
12859         reserved symbols starting with double underscore from the check.
12860
12861 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12862
12863         intprops: add doc
12864         * doc/intprops.texi: New file, documenting intprops.
12865         * doc/gnulib.texi (Particular Modules): Include it.
12866
12867         verify: add doc to gnulib manual and fix example
12868         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
12869         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
12870         (Compile-time Assertions): Fix example so it can't overflow.
12871
12872 2011-05-17  Jim Meyering  <meyering@redhat.com>
12873
12874         warnings.m4: don't usurp save_CPPFLAGS variable name
12875         * m4/warnings.m4: Prefix local temporary variable name with gl_.
12876
12877         doc: fix typo
12878         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
12879
12880 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12881             Bruno Haible  <bruno@clisp.org>
12882
12883         doc: Tweak recent change.
12884         * README (Portability guidelines): Tweak new text.
12885         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
12886         Interix 6.1.
12887
12888 2011-05-16  Eric Blake  <eblake@redhat.com>
12889
12890         inttypes: avoid autoconf warning
12891         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
12892         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12893
12894 2011-05-16  Sam Steingold <sds@gnu.org>
12895         and Eric Blake  <eblake@redhat.com>
12896
12897         vc-list-files: accept multiple directory operands
12898         * build-aux/vc-list-files: Iterate over all remaining operands.
12899
12900 2011-05-16  Bruno Haible  <bruno@clisp.org>
12901
12902         Fix confusion regarding deprecated modules.
12903         * modules/calloc (Status, Notice): Mark module as deprecated, not
12904         obsolete.
12905         * modules/fnmatch-posix (Status, Notice): Likewise.
12906         * modules/getdate (Status, Notice): Likewise.
12907         * modules/getopt (Status, Notice): Likewise.
12908         * modules/malloc (Status, Notice): Likewise.
12909         * modules/pipe (Status, Notice): Likewise.
12910         * modules/realloc (Status, Notice): Likewise.
12911         * modules/rename-dest-slash (Status, Notice): Likewise.
12912         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
12913         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
12914         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
12915         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
12916         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
12917
12918 2011-05-16  Bruno Haible  <bruno@clisp.org>
12919
12920         doc: List the target platforms.
12921         * doc/gnulib-intro.texi (Target Platforms): New section.
12922         * doc/gnulib.texi (Introduction): Update menu.
12923         * README (Portability guidelines): Refer to the new section. Update
12924         statement about oldest supported environment. Remove rationale why
12925         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
12926         unportable C89 function.
12927         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
12928         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
12929
12930 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12931
12932         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
12933
12934 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12935
12936         intprops-tests: new module
12937         * modules/intprops-tests, tests/test-intprops.c: New files.
12938
12939         intprops: add safe, portable integer overflow checking
12940         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
12941         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
12942         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
12943         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
12944         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
12945         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
12946         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
12947         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
12948         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12949         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
12950         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
12951
12952 2011-05-12  James Youngman  <jay@gnu.org>
12953
12954         Add a test for glibc's Bugzilla bug #12378.
12955         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
12956         doesn't allow the literal matching of a lone "[" (which is
12957         required by POSIX).
12958         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
12959
12960 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12961
12962         Sync glibc change fixing Bugzilla bug #12378.
12963         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
12964         beginning and fall back to matching as normal character if the
12965         string ends before the matching ']' is found.  This is what POSIX
12966         requires.
12967
12968 2011-05-13  Eric Blake  <eblake@redhat.com>
12969
12970         getcwd-lgpl: relax test for FreeBSD
12971         * doc/posix-functions/getcwd.texi (getcwd): Document portability
12972         issue.
12973         * tests/test-getcwd-lgpl.c (main): Relax test.
12974         Reported by Matthias Bolte.
12975
12976 2011-05-11  Eric Blake  <eblake@redhat.com>
12977
12978         test-fflush: silence compiler warning
12979         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
12980
12981 2011-05-11  Bruno Haible  <bruno@clisp.org>
12982
12983         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
12984         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
12985         * modules/canonicalize (Depends-on): Add 'nocrash'.
12986         * modules/canonicalize-lgpl (Depends-on): Likewise.
12987         * doc/posix-functions/realpath.texi: Update platforms list.
12988         Reported by Ryan Schmidt <ryandesign@macports.org>.
12989
12990 2011-05-11  Bruno Haible  <bruno@clisp.org>
12991
12992         group-member: Declare function in <unistd.h>.
12993         * lib/unistd.in.h (group_member): New declaration.
12994         * lib/group-member.h: Remove file.
12995         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
12996         * tests/test-unistd-c++.cc: Check signature of group_member.
12997         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
12998         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
12999         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
13000         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
13001         HAVE_GROUP_MEMBER.
13002         * modules/group-member (Files): Remove lib/group-member.h.
13003         (Depends-on): Add unistd. Specify conditions.
13004         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13005         (Include): Change to <unistd.h>.
13006         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
13007         HAVE_GROUP_MEMBER.
13008         * NEWS: Mention the change.
13009         * lib/euidaccess.c: Don't include group-member.h.
13010
13011 2011-05-11  Bruno Haible  <bruno@clisp.org>
13012
13013         group-member: Document module.
13014         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
13015         module.
13016
13017 2011-05-11  Bruno Haible  <bruno@clisp.org>
13018
13019         fclose: Fix mistake earlier today.
13020         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
13021
13022 2011-05-11  Eric Blake  <eblake@redhat.com>
13023
13024         fclose: preserve fflush errors
13025         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
13026         Reported by Jim Meyering.
13027
13028         bootstrap: support a prereq of 'rpcgen -' on RHEL5
13029         * build-aux/bootstrap (check_versions): When no specific version
13030         is required, merely check that the app produces an exit status
13031         that indicates its existence.
13032
13033         maint.mk: drop redundant check
13034         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
13035         the same but better.
13036
13037 2011-05-11  Bruno Haible  <bruno@clisp.org>
13038
13039         fclose: Fix possible link error.
13040         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
13041         unregister_shadow_fd. Improve comments.
13042         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
13043         Eric Blake.
13044
13045 2011-05-11  Jim Meyering  <meyering@redhat.com>
13046
13047         maint.mk: improve "can not" detection and generalize rule name
13048         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
13049         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
13050         Use the same technique as in sc_prohibit_doubled_word, so that
13051         we recognize "can not" also when the words are separated by a newline.
13052         Suggested by Eric Blake.
13053         (perl_filename_lineno_text_): Define.  Factored out of...
13054         (prohibit_doubled_word_): ...here.  Use the new definition.
13055         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
13056         (prohibit_undesirable_word_seq_RE_): New overridable variable.
13057         (ignore_undesirable_word_sequence_RE_): New overridable variable.
13058
13059 2011-05-10  Eric Blake  <eblake@redhat.com>
13060
13061         fclose: avoid double close race when possible
13062         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
13063         all but WINDOWS_SOCKETS.
13064
13065 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
13066
13067         openat: correct new comment
13068         * lib/openat-proc.c (openat_proc_name): Correct the comment.
13069
13070 2011-05-10  Jim Meyering  <meyering@redhat.com>
13071
13072         openat: add comments
13073         * lib/openat-proc.c (openat_proc_name): Add comments,
13074         mostly from Eric Blake.
13075
13076 2011-05-09  Eric Blake  <eblake@redhat.com>
13077
13078         openat: reduce syscalls in first probe of /proc
13079         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
13080         be a directory.  Simplify the probe for .. bugs.
13081         * modules/openat (Depends-on): Drop same-inode.
13082         Reported by Bastien ROUCARIES.
13083
13084 2011-05-09  Jim Meyering  <meyering@redhat.com>
13085
13086         maint.mk: change semantics/name of tight_scope variables
13087         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
13088         Rename variables to align with semantics that make them more useful.
13089
13090         maint.mk: tweak new rule's name not to impinge
13091         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
13092         (sc_tight_scope): Use new rule name rather than $@-0.
13093
13094         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
13095         * top/maint.mk (sc_tight_scope): New rule.
13096         (sc_tight_scope-0): New rule, ifdef'd out.
13097         (_gl_TS_dir): Default.
13098         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
13099         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
13100
13101 2011-05-09  Simon Josefsson  <simon@josefsson.org>
13102
13103         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
13104         Haible <bruno@clisp.org>.
13105
13106 2011-05-08  Bruno Haible  <bruno@clisp.org>
13107
13108         Comments.
13109         * m4/isnanf.m4: Add comment.
13110         * m4/isnanl.m4: Likewise.
13111
13112 2011-05-08  Bruno Haible  <bruno@clisp.org>
13113
13114         glob: Remove obsolete macro.
13115         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
13116
13117 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13118
13119         intprops: Sun C 5.11 supports __typeof__
13120         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
13121         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
13122         which is new.
13123         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
13124
13125         intprops: switch to usual gnulib indenting and naming
13126         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
13127         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
13128
13129         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
13130
13131 2011-05-08  Jim Meyering  <meyering@redhat.com>
13132
13133         maint.mk: suppress "Entering/Leaving directory" diag in announcement
13134         * top/maint.mk (release-prep): Use make's --no-print-directory
13135         option when generating the announcement.  This eliminates the
13136         pesky "make[2]: Entering/Leaving directory" diagnostics in the
13137         generated announcement template.
13138
13139 2011-05-08  Bruno Haible  <bruno@clisp.org>
13140
13141         tzset: Fix gettimeofday wrapper on Solaris 2.6.
13142         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
13143         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
13144
13145 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13146
13147         ignore-value, verify: Omit include files from lib_SOURCES.
13148         * modules/ignore-value, modules/verify (Makefile.am):
13149         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
13150         that leads Automake to duplicate use of am__objects_... variables
13151         in Makefile.in.  See
13152         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
13153
13154 2011-05-07  Bruno Haible  <bruno@clisp.org>
13155
13156         fclose: Simplify autoconf macro.
13157         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
13158         defined.
13159
13160 2011-05-07  Bruno Haible  <bruno@clisp.org>
13161
13162         canonicalize-lgpl: Fix autoconf macro ordering bug.
13163         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
13164         gl_STDLIB_H_DEFAULTS.
13165
13166 2011-05-06  Eric Blake  <eblake@redhat.com>
13167
13168         maintainer-makefile: make sc_po_check easier to tune
13169         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
13170         to probe for strings, such as an alternate location for gnulib.
13171
13172         fclose: guarantee behavior on seekable stdin
13173         * modules/fclose (Depends-on): Add fflush.
13174         * doc/posix-functions/fclose.texi (fclose): Document this.
13175         * tests/test-fclose.c (main): Make test for this unconditional.
13176
13177 2011-05-06  Bruno Haible  <bruno@clisp.org>
13178
13179         fflush, fpurge: Relicense under LGPLv2+.
13180         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
13181         * modules/fpurge (License): Likewise.
13182         With permission from Eric Blake and Jim Meyering.
13183         Suggested by Eric Blake.
13184
13185 2011-05-06  Karl Berry  <karl@gnu.org>
13186
13187         * MODULES.html.sh (func_all_modules): remove exit.
13188
13189 2011-05-06  Jim Meyering  <meyering@redhat.com>
13190
13191         maint.mk: use info-gnu@ as the default only for a stable release
13192         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
13193         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
13194         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
13195         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
13196
13197 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13198
13199         assert-h: new module, which supports C1X-style static_assert
13200         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
13201         * lib/verify.h: Revamp so that this can be copied into assert.h,
13202         while retaining the ability to use it standalone as before.
13203         Rename private identifiers so as not to encroach on the
13204         standard C namespace, since this is now used by assert.h.
13205         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
13206         the old verify_true.
13207         (_GL_VERIFY_TRUE): New macro, with much of the contents of
13208         the old verify_true.  Use _GL_VERIFY_TYPE.
13209         (_GL_VERIFY): New macro, with much of the contents of the old verify.
13210         (static_assert): New macro, if _GL_STATIC_ASSERT_H
13211         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
13212         defined when this file is copied into the replacement assert.h.
13213         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
13214         and _Static_assert is not built in.
13215         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
13216         defined, and use the new macros mentioned above.
13217         * doc/posix-headers/assert.texi: Document this.
13218
13219 2011-05-05  Bruno Haible  <bruno@clisp.org>
13220
13221         fclose, fflush: Respect rules for use of AC_LIBOBJ.
13222         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
13223         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
13224         gl_REPLACE_FCLOSE here.
13225         * modules/fflush (Depends-on): Remove fclose.
13226         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
13227         combination with module 'fclose'.
13228
13229 2011-05-05  Bruno Haible  <bruno@clisp.org>
13230
13231         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
13232         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
13233         gl_FUNC_FFLUSH.
13234         (gl_FUNC_FFLUSH): Use it.
13235         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
13236         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
13237         gl_REPLACE_FSEEKO here.
13238
13239 2011-05-05  Bruno Haible  <bruno@clisp.org>
13240
13241         tzset: Relicense under LGPL.
13242         * modules/tzset (License): Change to LGPL.
13243         No agreement needed; it's a no-op.
13244
13245         strtoimax, strtoumax: Relicense under LGPL.
13246         * modules/strtoimax (License): Change to LGPL.
13247         * modules/strtoumax (License): Likewise.
13248         With permission from Jim Meyering, Paul Eggert:
13249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
13250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
13251
13252         getgroups: Relicense under LGPL.
13253         * modules/getgroups (License): Change to LGPL.
13254         With permission from Jim Meyering, Paul Eggert, Eric Blake:
13255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13258
13259         nanosleep: Relicense under LGPL.
13260         * modules/nanosleep (License): Change to LGPL.
13261         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
13262         Haible:
13263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13267
13268         futimens: Relicense under LGPL.
13269         * modules/futimens (License): Change to LGPL.
13270         With permission from Eric Blake:
13271         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13272
13273         fflush: Relicense under LGPL.
13274         * modules/fflush (License): Change to LGPL.
13275         With permission from Eric Blake, Bruno Haible, Jim Meyering:
13276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
13279
13280         tmpfile: Relicense under LGPL.
13281         * modules/tmpfile (License): Change to LGPL.
13282         With permission from Ben Pfaff:
13283         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13284
13285         isfinite: Relicense under LGPL.
13286         * modules/isfinite (License): Change to LGPL.
13287         With permission from Ben Pfaff, Bruno Haible:
13288         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
13290
13291         acosl..tanl: Relicense under LGPL.
13292         * modules/acosl (License): Change to LGPL.
13293         * modules/asinl (License): Likewise.
13294         * modules/atanl (License): Likewise.
13295         * modules/cosl (License): Likewise.
13296         * modules/expl (License): Likewise.
13297         * modules/logl (License): Likewise.
13298         * modules/sinl (License): Likewise.
13299         * modules/sqrtl (License): Likewise.
13300         * modules/tanl (License): Likewise.
13301         Source code originally from glibc and Paolo Bonzini. Agreements:
13302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
13303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
13304
13305 2011-05-05  Bruno Haible  <bruno@clisp.org>
13306
13307         signal: Define sighandler_t.
13308         * lib/signal.in.h (sighandler_t): New type.
13309         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
13310         whether sighandler_t is defined.
13311         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
13312         * modules/signal (Depends-on): Add extensions.
13313         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
13314         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
13315         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
13316
13317 2011-05-05  Eric Blake  <eblake@redhat.com>
13318
13319         maint: remove useless REPLACE_*_H macros
13320         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
13321         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13322         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13323         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
13324         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13325         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13326         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
13327         * m4/btowc.m4: Update callers.
13328         * m4/dirfd.m4: Likewise.
13329         * m4/duplocale.m4: Likewise.
13330         * m4/fchdir.m4: Likewise.
13331         * m4/fdopendir.m4: Likewise.
13332         * m4/inet_ntop.m4: Likewise.
13333         * m4/inet_pton.m4: Likewise.
13334         * m4/ioctl.m4: Likewise.
13335         * m4/mbrlen.m4: Likewise.
13336         * m4/mbrtowc.m4: Likewise.
13337         * m4/mbsinit.m4: Likewise.
13338         * m4/mbsnrtowcs.m4: Likewise.
13339         * m4/mbsrtowcs.m4: Likewise.
13340         * m4/poll.m4: Likewise.
13341         * m4/setlocale.m4: Likewise.
13342         * m4/wcrtomb.m4: Likewise.
13343         * m4/wcsnrtombs.m4: Likewise.
13344         * m4/wcsrtombs.m4: Likewise.
13345         * m4/wctob.m4: Likewise.
13346         * m4/wcwidth.m4: Likewise.
13347         * modules/posix_spawn: Likewise.
13348         * modules/posix_spawn_file_actions_addclose: Likewise.
13349         * modules/posix_spawn_file_actions_adddup2: Likewise.
13350         * modules/posix_spawn_file_actions_addopen: Likewise.
13351         * modules/posix_spawn_file_actions_destroy: Likewise.
13352         * modules/posix_spawn_file_actions_init: Likewise.
13353         * modules/posix_spawnattr_destroy: Likewise.
13354         * modules/posix_spawnattr_getflags: Likewise.
13355         * modules/posix_spawnattr_getpgroup: Likewise.
13356         * modules/posix_spawnattr_getschedparam: Likewise.
13357         * modules/posix_spawnattr_getschedpolicy: Likewise.
13358         * modules/posix_spawnattr_getsigdefault: Likewise.
13359         * modules/posix_spawnattr_getsigmask: Likewise.
13360         * modules/posix_spawnattr_init: Likewise.
13361         * modules/posix_spawnattr_setflags: Likewise.
13362         * modules/posix_spawnattr_setpgroup: Likewise.
13363         * modules/posix_spawnattr_setschedparam: Likewise.
13364         * modules/posix_spawnattr_setschedpolicy: Likewise.
13365         * modules/posix_spawnattr_setsigdefault: Likewise.
13366         * modules/posix_spawnattr_setsigmask: Likewise.
13367         * modules/posix_spawnp: Likewise.
13368
13369 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
13370
13371         Add option to do-release-commit-and-tag to specify branch.
13372         * build-aux/do-release-commit-and-tag: Add --branch.
13373
13374 2011-05-03  Bruno Haible  <bruno@clisp.org>
13375
13376         Avoid unnecessary compilation units, through conditional dependencies.
13377         * modules/accept (Depends-on): Add conditions to the dependencies.
13378         * modules/acosl (Depends-on): Likewise.
13379         * modules/argz (Depends-on): Likewise.
13380         * modules/asinl (Depends-on): Likewise.
13381         * modules/atanl (Depends-on): Likewise.
13382         * modules/atoll (Depends-on): Likewise.
13383         * modules/bind (Depends-on): Likewise.
13384         * modules/btowc (Depends-on): Likewise.
13385         * modules/canonicalize-lgpl (Depends-on): Likewise.
13386         * modules/ceil (Depends-on): Likewise.
13387         * modules/ceilf (Depends-on): Likewise.
13388         * modules/ceill (Depends-on): Likewise.
13389         * modules/chdir-long (Depends-on): Likewise.
13390         * modules/chown (Depends-on): Likewise.
13391         * modules/close (Depends-on): Likewise.
13392         * modules/connect (Depends-on): Likewise.
13393         * modules/cosl (Depends-on): Likewise.
13394         * modules/dirfd (Depends-on): Likewise.
13395         * modules/dprintf (Depends-on): Likewise.
13396         * modules/dprintf-posix (Depends-on): Likewise.
13397         * modules/error (Depends-on): Likewise.
13398         * modules/euidaccess (Depends-on): Likewise.
13399         * modules/expl (Depends-on): Likewise.
13400         * modules/faccessat (Depends-on): Likewise.
13401         * modules/fchdir (Depends-on): Likewise.
13402         * modules/fclose (Depends-on): Likewise.
13403         * modules/fcntl (Depends-on): Likewise.
13404         * modules/fdopendir (Depends-on): Likewise.
13405         * modules/fflush (Depends-on): Likewise.
13406         * modules/floor (Depends-on): Likewise.
13407         * modules/floorf (Depends-on): Likewise.
13408         * modules/floorl (Depends-on): Likewise.
13409         * modules/fnmatch (Depends-on): Likewise.
13410         * modules/fopen (Depends-on): Likewise.
13411         * modules/fprintf-posix (Depends-on): Likewise.
13412         * modules/frexp (Depends-on): Likewise.
13413         * modules/frexp-nolibm (Depends-on): Likewise.
13414         * modules/frexpl (Depends-on): Likewise.
13415         * modules/frexpl-nolibm (Depends-on): Likewise.
13416         * modules/fseek (Depends-on): Likewise.
13417         * modules/fsusage (Depends-on): Likewise.
13418         * modules/ftell (Depends-on): Likewise.
13419         * modules/ftello (Depends-on): Likewise.
13420         * modules/futimens (Depends-on): Likewise.
13421         * modules/getcwd (Depends-on): Likewise.
13422         * modules/getcwd-lgpl (Depends-on): Likewise.
13423         * modules/getdelim (Depends-on): Likewise.
13424         * modules/getdomainname (Depends-on): Likewise.
13425         * modules/getgroups (Depends-on): Likewise.
13426         * modules/gethostname (Depends-on): Likewise.
13427         * modules/getline (Depends-on): Likewise.
13428         * modules/getlogin_r (Depends-on): Likewise.
13429         * modules/getopt-posix (Depends-on): Likewise.
13430         * modules/getpeername (Depends-on): Likewise.
13431         * modules/getsockname (Depends-on): Likewise.
13432         * modules/getsockopt (Depends-on): Likewise.
13433         * modules/getsubopt (Depends-on): Likewise.
13434         * modules/getusershell (Depends-on): Likewise.
13435         * modules/glob (Depends-on): Likewise.
13436         * modules/grantpt (Depends-on): Likewise.
13437         * modules/iconv_open (Depends-on): Likewise.
13438         * modules/iconv_open-utf (Depends-on): Likewise.
13439         * modules/inet_ntop (Depends-on): Likewise.
13440         * modules/inet_pton (Depends-on): Likewise.
13441         * modules/ioctl (Depends-on): Likewise.
13442         * modules/isapipe (Depends-on): Likewise.
13443         * modules/isfinite (Depends-on): Likewise.
13444         * modules/isinf (Depends-on): Likewise.
13445         * modules/lchown (Depends-on): Likewise.
13446         * modules/ldexpl (Depends-on): Likewise.
13447         * modules/link (Depends-on): Likewise.
13448         * modules/linkat (Depends-on): Likewise.
13449         * modules/listen (Depends-on): Likewise.
13450         * modules/logl (Depends-on): Likewise.
13451         * modules/lstat (Depends-on): Likewise.
13452         * modules/mbrlen (Depends-on): Likewise.
13453         * modules/mbrtowc (Depends-on): Likewise.
13454         * modules/mbsinit (Depends-on): Likewise.
13455         * modules/mbsnrtowcs (Depends-on): Likewise.
13456         * modules/mbsrtowcs (Depends-on): Likewise.
13457         * modules/mbtowc (Depends-on): Likewise.
13458         * modules/memcmp (Depends-on): Likewise.
13459         * modules/mkdir (Depends-on): Likewise.
13460         * modules/mkdtemp (Depends-on): Likewise.
13461         * modules/mkfifo (Depends-on): Likewise.
13462         * modules/mkfifoat (Depends-on): Likewise.
13463         * modules/mknod (Depends-on): Likewise.
13464         * modules/mkostemp (Depends-on): Likewise.
13465         * modules/mkostemps (Depends-on): Likewise.
13466         * modules/mkstemp (Depends-on): Likewise.
13467         * modules/mkstemps (Depends-on): Likewise.
13468         * modules/mktime (Depends-on): Likewise.
13469         * modules/nanosleep (Depends-on): Likewise.
13470         * modules/open (Depends-on): Likewise.
13471         * modules/openat (Depends-on): Likewise.
13472         * modules/perror (Depends-on): Likewise.
13473         * modules/poll (Depends-on): Likewise.
13474         * modules/popen (Depends-on): Likewise.
13475         * modules/posix_spawn (Depends-on): Likewise.
13476         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
13477         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
13478         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
13479         * modules/posix_spawnp (Depends-on): Likewise.
13480         * modules/pread (Depends-on): Likewise.
13481         * modules/printf-posix (Depends-on): Likewise.
13482         * modules/ptsname (Depends-on): Likewise.
13483         * modules/putenv (Depends-on): Likewise.
13484         * modules/pwrite (Depends-on): Likewise.
13485         * modules/readline (Depends-on): Likewise.
13486         * modules/readlink (Depends-on): Likewise.
13487         * modules/readlinkat (Depends-on): Likewise.
13488         * modules/recv (Depends-on): Likewise.
13489         * modules/recvfrom (Depends-on): Likewise.
13490         * modules/regex (Depends-on): Likewise.
13491         * modules/remove (Depends-on): Likewise.
13492         * modules/rename (Depends-on): Likewise.
13493         * modules/renameat (Depends-on): Likewise.
13494         * modules/rmdir (Depends-on): Likewise.
13495         * modules/round (Depends-on): Likewise.
13496         * modules/roundf (Depends-on): Likewise.
13497         * modules/roundl (Depends-on): Likewise.
13498         * modules/rpmatch (Depends-on): Likewise.
13499         * modules/select (Depends-on): Likewise.
13500         * modules/send (Depends-on): Likewise.
13501         * modules/sendto (Depends-on): Likewise.
13502         * modules/setenv (Depends-on): Likewise.
13503         * modules/setlocale (Depends-on): Likewise.
13504         * modules/setsockopt (Depends-on): Likewise.
13505         * modules/shutdown (Depends-on): Likewise.
13506         * modules/sigaction (Depends-on): Likewise.
13507         * modules/signbit (Depends-on): Likewise.
13508         * modules/sigprocmask (Depends-on): Likewise.
13509         * modules/sinl (Depends-on): Likewise.
13510         * modules/sleep (Depends-on): Likewise.
13511         * modules/snprintf (Depends-on): Likewise.
13512         * modules/snprintf-posix (Depends-on): Likewise.
13513         * modules/socket (Depends-on): Likewise.
13514         * modules/sprintf-posix (Depends-on): Likewise.
13515         * modules/sqrtl (Depends-on): Likewise.
13516         * modules/stat (Depends-on): Likewise.
13517         * modules/strchrnul (Depends-on): Likewise.
13518         * modules/strdup-posix (Depends-on): Likewise.
13519         * modules/strerror (Depends-on): Likewise.
13520         * modules/strerror_r-posix (Depends-on): Likewise.
13521         * modules/strndup (Depends-on): Likewise.
13522         * modules/strnlen (Depends-on): Likewise.
13523         * modules/strptime (Depends-on): Likewise.
13524         * modules/strsep (Depends-on): Likewise.
13525         * modules/strsignal (Depends-on): Likewise.
13526         * modules/strstr-simple (Depends-on): Likewise.
13527         * modules/strtod (Depends-on): Likewise.
13528         * modules/strtoimax (Depends-on): Likewise.
13529         * modules/strtok_r (Depends-on): Likewise.
13530         * modules/strtoumax (Depends-on): Likewise.
13531         * modules/symlink (Depends-on): Likewise.
13532         * modules/symlinkat (Depends-on): Likewise.
13533         * modules/tanl (Depends-on): Likewise.
13534         * modules/tcgetsid (Depends-on): Likewise.
13535         * modules/tmpfile (Depends-on): Likewise.
13536         * modules/trunc (Depends-on): Likewise.
13537         * modules/truncf (Depends-on): Likewise.
13538         * modules/truncl (Depends-on): Likewise.
13539         * modules/uname (Depends-on): Likewise.
13540         * modules/unlink (Depends-on): Likewise.
13541         * modules/unlockpt (Depends-on): Likewise.
13542         * modules/unsetenv (Depends-on): Likewise.
13543         * modules/usleep (Depends-on): Likewise.
13544         * modules/utimensat (Depends-on): Likewise.
13545         * modules/vasprintf (Depends-on): Likewise.
13546         * modules/vdprintf (Depends-on): Likewise.
13547         * modules/vdprintf-posix (Depends-on): Likewise.
13548         * modules/vfprintf-posix (Depends-on): Likewise.
13549         * modules/vprintf-posix (Depends-on): Likewise.
13550         * modules/vsnprintf (Depends-on): Likewise.
13551         * modules/vsnprintf-posix (Depends-on): Likewise.
13552         * modules/vsprintf-posix (Depends-on): Likewise.
13553         * modules/wcrtomb (Depends-on): Likewise.
13554         * modules/wcscasecmp (Depends-on): Likewise.
13555         * modules/wcscspn (Depends-on): Likewise.
13556         * modules/wcsdup (Depends-on): Likewise.
13557         * modules/wcsncasecmp (Depends-on): Likewise.
13558         * modules/wcsnrtombs (Depends-on): Likewise.
13559         * modules/wcspbrk (Depends-on): Likewise.
13560         * modules/wcsrtombs (Depends-on): Likewise.
13561         * modules/wcsspn (Depends-on): Likewise.
13562         * modules/wcsstr (Depends-on): Likewise.
13563         * modules/wcstok (Depends-on): Likewise.
13564         * modules/wcswidth (Depends-on): Likewise.
13565         * modules/wctob (Depends-on): Likewise.
13566         * modules/wctomb (Depends-on): Likewise.
13567         * modules/wctype (Depends-on): Likewise.
13568         * modules/wcwidth (Depends-on): Likewise.
13569         * modules/write (Depends-on): Likewise.
13570
13571 2011-05-03  Bruno Haible  <bruno@clisp.org>
13572
13573         Support for conditional dependencies.
13574         * doc/gnulib.texi (Module description): Document the syntax of
13575         conditional dependencies.
13576         * gnulib-tool: New option --conditional-dependencies.
13577         (func_usage): Document it.
13578         (cond_dependencies): New variable.
13579         (func_get_automake_snippet_conditional,
13580         func_get_automake_snippet_unconditional): New functions, extracted from
13581         func_get_automake_snippet.
13582         (func_get_automake_snippet): Use them.
13583         (sed_first_32_chars): New variable.
13584         (func_module_shellfunc_name): New function.
13585         (func_module_shellvar_name): New function.
13586         (func_module_conditional_name): New function.
13587         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
13588         func_cond_module_condition): New functions.
13589         (func_modules_transitive_closure): Add support for conditional
13590         dependencies.
13591         (func_emit_lib_Makefile_am): For a conditional module, enclose the
13592         conditional automake snippet in an automake conditional.
13593         (func_emit_autoconf_snippets): Emit shell functions that contain the
13594         code for conditional modules.
13595         (func_import, func_create_testdir): Update specification.
13596
13597 2011-05-03  Eric Blake  <eblake@redhat.com>
13598
13599         test-getaddrinfo: report error information
13600         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
13601
13602 2011-05-03  Jim Meyering  <meyering@redhat.com>
13603
13604         bootstrap: avoid build failure when $GZIP is set
13605         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
13606         program name.  If defined at all, it is supposed to list gzip options.
13607         Reported by Alan Curry in http://debbugs.gnu.org/8609
13608
13609 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
13610
13611         readme-release: new module with release instructions
13612         * modules/readme-release: New module.
13613         * top/README-release: New file, from coreutils, grep, diffutils.
13614         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13615
13616 2011-05-02  Eric Blake  <eblake@redhat.com>
13617
13618         fflush: also replace fclose when fixing fflush
13619         * modules/fflush (Depends-on): Add fclose.
13620         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
13621         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
13622         memstreams with no backing fd.
13623         * doc/posix-functions/fclose.texi (fclose): Document the use of
13624         fflush module to fix the bug.
13625         * tests/test-fclose.c (main): Relax test when fclose is used in
13626         isolation.
13627
13628         fclose: add some tests
13629         * modules/fclose-tests: New test module.
13630         * tests/test-fclose.c: New file.
13631         * doc/posix-functions/fclose.texi (fclose): Document the bug.
13632
13633         fclose: reduced dependencies
13634         * modules/fclose (Depends-on): Switch from fflush/fseeko to
13635         simpler lseek.
13636         * lib/fclose.c (rpl_fclose): Likewise.
13637         Reported by Simon Josefsson.
13638
13639         exit: drop remaining clients
13640         * modules/argmatch (Depends-on): Replace exit with stdlib.
13641         * modules/copy-file (Depends-on): Likewise.
13642         * modules/execute (Depends-on): Likewise.
13643         * modules/exitfail (Depends-on): Likewise.
13644         * modules/obstack (Depends-on): Likewise.
13645         * modules/pagealign_alloc (Depends-on): Likewise.
13646         * modules/pipe-filter-gi (Depends-on): Likewise.
13647         * modules/pipe-filter-ii (Depends-on): Likewise.
13648         * modules/savewd (Depends-on): Likewise.
13649         * modules/spawn-pipe (Depends-on): Likewise.
13650         * modules/wait-process (Depends-on): Likewise.
13651         * modules/xsetenv (Depends-on): Likewise.
13652         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
13653         * modules/git-merge-changelog (Depends-on): Likewise.
13654         * modules/long-options (Depends-on): Likewise.
13655         * modules/pt_chown (Depends-on): Likewise.
13656         * modules/sysexits (Depends-on): Likewise.
13657
13658         freading: relax license from LGPLv3+ to LGPLv2+
13659         * modules/freading (License): Relax LGPL version.
13660
13661 2011-05-02  Bruno Haible  <bruno@clisp.org>
13662
13663         fchdir: Remove unused dependencies.
13664         * modules/fchdir (Depends-on): Remove include_next.
13665
13666 2011-05-02  Bruno Haible  <bruno@clisp.org>
13667
13668         gnulib-tool: Refactor.
13669         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
13670         from func_emit_autoconf_snippets.
13671         (func_emit_autoconf_snippets): Use it.
13672
13673 2011-05-02  Simon Josefsson  <simon@josefsson.org>
13674
13675         * NEWS: Document removal of 'exit'.
13676         * modules/exit: Remove file.
13677
13678 2011-05-01  Bruno Haible  <bruno@clisp.org>
13679
13680         Update DEPENDENCIES.
13681         * DEPENDENCIES (gettext): Recommend the newest release.
13682         Reported by Simon Josefsson.
13683
13684 2011-05-01  Bruno Haible  <bruno@clisp.org>
13685
13686         gnulib-tool: Reduce code duplication.
13687         * gnulib-tool (func_emit_autoconf_snippets): New function.
13688         (func_import, func_create_testdir): Use it.
13689
13690 2011-04-30  Eric Blake  <eblake@redhat.com>
13691
13692         fclose: don't fail on non-seekable input stream
13693         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
13694         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
13695         since fflush is allowed to fail in that case.
13696
13697 2011-04-30  Bruno Haible  <bruno@clisp.org>
13698
13699         dup3: cleanup
13700         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
13701
13702 2011-04-30  Bruno Haible  <bruno@clisp.org>
13703
13704         netdb: Make it work in C++ mode.
13705         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
13706         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
13707         module.
13708         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
13709         gl_MODULE_INDICATOR_FOR_TESTS.
13710         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
13711         * modules/netdb-c++-tests: New file.
13712         * tests/test-netdb-c++.cc: New file.
13713
13714 2011-04-30  Bruno Haible  <bruno@clisp.org>
13715
13716         New modules 'vfscanf', 'vscanf'.
13717         * modules/vfscanf: New file.
13718         * modules/vscanf: New file.
13719         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
13720         here.
13721         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
13722         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
13723
13724 2011-04-30  Bruno Haible  <bruno@clisp.org>
13725
13726         passfd: Add comments.
13727         * lib/passfd.c: Add comments about platforms.
13728
13729 2011-04-30  Bruno Haible  <bruno@clisp.org>
13730
13731         sys_uio: Make <sys/uio.h> self-contained.
13732         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
13733         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
13734
13735 2011-04-30  Bruno Haible  <bruno@clisp.org>
13736
13737         sys_socket: Ensure 'struct iovec' definition.
13738         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
13739         <sys/socket.h>.
13740         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
13741
13742 2011-04-30  Bruno Haible  <bruno@clisp.org>
13743
13744         sys_uio: Protect definition of 'struct iovec'.
13745         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
13746         it as a C struct.
13747
13748 2011-04-30  Bruno Haible  <bruno@clisp.org>
13749
13750         manywarnings: fix indentation
13751         * m4/manywarnings.m4: Indent by 2 spaces consistently.
13752
13753 2011-04-30  Pádraig Brady <P@draigBrady.com>
13754
13755         manywarnings: add -Wno-missing-field-initializers if needed.
13756         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
13757         option if it's needed to allow initialization with { 0, }
13758
13759 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
13760
13761         announce-gen: cosmetic improvement
13762         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
13763
13764 2011-04-29  Jim Meyering  <meyering@redhat.com>
13765
13766         vc-list-files: indent with spaces, not TABs
13767         * build-aux/vc-list-files: Convert leading TABs to spaces,
13768         to match the style of most other files in gnulib.
13769
13770         announce-gen: indent with spaces, not TABs
13771         * build-aux/announce-gen: Convert all TABs to spaces, to match
13772         the style of most other files in gnulib.
13773
13774 2011-04-29  Eric Blake  <eblake@redhat.com>
13775
13776         quotearg: avoid uninitialized variable use
13777         * lib/quotearg.c (quoting_options_from_style): Initialize
13778         remaining fields, and ensure that custom styles are only used via
13779         quoting_options rather than quoting_style.
13780
13781 2011-04-29  Jim Meyering  <meyering@redhat.com>
13782
13783         maint.mk: remove unused VC-tag variable
13784         * top/maint.mk (VC-tag): Remove unused variable.
13785
13786 2011-04-29  Bruno Haible  <bruno@clisp.org>
13787
13788         netdb: fix gai_strerror replacements
13789         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
13790         * modules/netdb: Substitute it.
13791
13792 2011-04-29  Jim Meyering  <meyering@redhat.com>
13793
13794         test-getcwd.c: avoid new set-but-not-used warning
13795         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
13796         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
13797         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
13798         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
13799
13800         test-hash.c: avoid a new shadowing warning
13801         * tests/test-hash.c (main): Don't shadow "dup".
13802
13803 2011-04-28  Eric Blake  <eblake@redhat.com>
13804
13805         getaddrinfo: fix gai_strerror signature
13806         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
13807         and work around mingw with UNICODE defined.
13808         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
13809         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
13810         * modules/netdb (Makefile.am): Substitute it.
13811         * lib/netdb.in.h (gai_strerror): Declare replacement.
13812         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
13813         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
13814         the fix.
13815
13816         getsockopt: avoid compiler warning
13817         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
13818         Reported by Matthias Bolte.
13819
13820         tests: drop unused link dependency
13821         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
13822         * modules/dirent-safer-tests (Makefile.am): Likewise.
13823         * modules/fdopendir-tests (Makefile.am): Likewise.
13824         * modules/mkfifoat-tests (Makefile.am): Likewise.
13825         * modules/openat-safer-tests (Makefile.am): Likewise.
13826         * modules/openat-tests (Makefile.am): Likewise.
13827         * modules/readlinkat-tests (Makefile.am): Likewise.
13828         * modules/symlinkat-tests (Makefile.am): Likewise.
13829         * modules/linkat-tests (Makefile.am): Likewise.
13830         (Depends-on): Switch to filenamecat-lgpl.
13831         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
13832         LIBINTL.
13833         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
13834         * tests/test-linkat.c (main): Don't require xalloc.
13835
13836         hash, mgetgroups: drop xalloc dependency
13837         * lib/hash.c (includes): Adjust includes.
13838         * lib/mgetgroups.c (includes): Likewise.
13839         (xgetgroups): Move...
13840         * lib/xgetgroups.c: ...to new file.
13841         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
13842         * modules/xgetgroups: New file, split from...
13843         * modules/mgetgroups: ...here.
13844         (Depends-on): Add xalloc-oversized.
13845         * modules/hash (Depends-on): Likewise.
13846         * modules/hash-tests (Depends-on): Drop xalloc.
13847         (test_hash_LDADD): Drop unused library.
13848         * tests/test-hash.c (main): Break xalloc dependency.
13849         (includes): Drop unused include.
13850
13851         xalloc-oversized: new module
13852         * modules/xalloc-oversized: New module.
13853         * modules/xalloc (Depends-on): Add it.
13854         * lib/xalloc.h (xalloc_oversized): Move...
13855         * lib/xalloc-oversized.h: ...into new file.
13856
13857         utimecmp: drop dependency on xmalloc
13858         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
13859         due to memory pressure.
13860         * modules/utimecmp (Depends-on): Drop xalloc.
13861
13862 2011-04-27  Eric Blake  <eblake@redhat.com>
13863
13864         getcwd: fix mingw bugs
13865         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
13866         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
13867         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
13868
13869 2011-04-27  Bruno Haible  <bruno@clisp.org>
13870
13871         mkstemps: Ensure declaration on MacOS X 10.5.
13872         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
13873         * doc/glibc-functions/mkstemps.texi: Document header file problem on
13874         MacOS X.
13875
13876 2011-04-27  Bruno Haible  <bruno@clisp.org>
13877
13878         mkstemp: More documentation.
13879         * doc/posix-functions/mkstemp.texi: Document header file problem on
13880         MacOS X.
13881
13882 2011-04-27  Bruno Haible  <bruno@clisp.org>
13883
13884         mkstemp: Tweak configure message when cross-compiling.
13885         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
13886         result as a guess.
13887
13888 2011-04-27  Bruno Haible  <bruno@clisp.org>
13889
13890         clean-temp: Clarify what it does.
13891         * lib/clean-temp.h: Add more comments.
13892         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
13893         module.
13894         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
13895         * doc/glibc-functions/mkstemps.texi: Likewise.
13896         * doc/glibc-functions/mkostemps.texi: Likewise.
13897
13898 2011-04-27  Eric Blake  <eblake@redhat.com>
13899
13900         fchdir: avoid extra chdir and fix test
13901         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
13902         getcwd-lgpl.
13903         * lib/fchdir.c (get_name): Any absolute name will do; it does not
13904         have to be canonical.
13905         (canonicalize_file_name): Drop unused macro.
13906         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
13907
13908         filenamecat-lgpl: fix licence
13909         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
13910         when it was first created.
13911
13912         linkat, renameat: add missing dependency
13913         * modules/linkat (Depends-on): Require getcwd-lgpl.
13914         * modules/renameat (Depends-on): Likewise.
13915
13916         tests: reduce dependencies
13917         * tests/test-linkat.c (main): Use lighter-weight getcwd.
13918         * tests/test-renameat.c (main): Likewise.
13919         * modules/linkat-tests (Depends-on): Relax dependency.
13920         * modules/renameat-tests (Depends-on): Likewise.
13921         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
13922         dependency explicit.
13923
13924         save-cwd: reduce default dependency
13925         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
13926         * lib/save-cwd.c: Update comments.
13927         * NEWS: Document the semantic change.
13928
13929         getcwd: enhance tests
13930         * tests/test-getcwd-lgpl.c: New file, taken from...
13931         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
13932         repeat long path stress tests from m4 probe.
13933         * modules/getcwd-lgpl-tests: New module.
13934         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
13935         * m4/getcwd-abort-bug.m4: Update comment.
13936         * m4/getcwd-path-max.m4: Likewise.
13937
13938         getcwd-lgpl: new module
13939         * modules/getcwd-lgpl: New module.
13940         * lib/getcwd-lgpl.c: New file.
13941         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13942         * MODULES.html.sh (lacking POSIX:2008): Likewise.
13943         * modules/getcwd (configure.ac): Set C witness.
13944         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
13945
13946         getcwd: tweak comments
13947         * m4/getcwd-abort-bug.m4: Fix comments.
13948         * m4/getcwd-path-max.m4: Likewise.
13949         * m4/getcwd.m4: Likewise.
13950
13951 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13952         and Eric Blake  <eblake@redhat.com>
13953
13954         mkstemp: replace if system version uses wrong permissions
13955         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
13956         read/write mode bits set in file created by mkstemp.
13957         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
13958
13959 2011-04-27  Eric Blake  <eblake@redhat.com>
13960
13961         passfd: avoid compiler warning
13962         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
13963         Reported by Laine Stump.
13964
13965 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
13966
13967         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
13968         required by the NetBSD (and perhaps other 4.4BSD derived) join.
13969
13970 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13971         and Eric Blake  <eblake@redhat.com>
13972
13973         mkstemp: mention clean-temp module
13974         * lib/mkstemp.c: Add comment.
13975         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
13976
13977 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13978
13979         inttypes: also provide default values for 32-bit tests
13980         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
13981         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
13982
13983 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13984
13985         strtoumax: remove dependency on strtoimax
13986         This is like the strtoull change of yesterday.
13987         * modules/strtoumax (Files): Add lib/strtoimax.c.
13988         (Depends-on): Remove strtoimax and add verify.
13989
13990         inttypes-incomplete: new module
13991         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
13992         all but the PRI* and SCN* parts of gl_INTTYPES_H.
13993         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
13994         of gl_INTTYPES_H.
13995         (gl_INTTYPES_H): Rewrite in terms of these new macros.
13996         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
13997         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
13998         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
13999         * modules/strtoumax, modules/xstrtol (Depends-on):
14000         Depend on inttypes-incomplete, not inttypes.
14001         * modules/inttypes-incomplete: New module, containing the contents
14002         of the old modules/inttypes module, except that the Files: section
14003         omits m4/inttypes-pri.m4, and the configure.ac section invokes
14004         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
14005         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
14006         (Depends-on): Depend only on inttypes-incomplete.
14007         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
14008
14009         inttypes: omit now-redundant strtoimax and strtoumax work
14010         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
14011         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
14012
14013         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
14014         This supports apps that need pointers to strtoimax and strtoumax,
14015         and ports to HP-UX 11.00 64.bit, which has macros that expand to
14016         nonexistent functions.  See
14017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
14018         et seq.
14019         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
14020         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
14021         a macro.
14022         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14023
14024 2011-04-25  Simon Josefsson  <simon@josefsson.org>
14025
14026         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
14027
14028 2011-04-25  Bruno Haible  <bruno@clisp.org>
14029
14030         strtol, strtoul: Mark modules as obsolete.
14031         * modules/strtol (Status, Notice): New sections.
14032         * modules/strtoul (Status, Notice): New sections.
14033
14034 2011-04-25  Bruno Haible  <bruno@clisp.org>
14035
14036         strtod: Remove check for strtod, unless supporting old platforms.
14037         * modules/strtod-obsolete: New file.
14038         * m4/strtod-obsolete.m4: New file.
14039         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
14040         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
14041         * modules/strtod (Depends-on): Add strtod-obsolete.
14042         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
14043
14044 2011-04-25  Bruno Haible  <bruno@clisp.org>
14045
14046         strcase: Make module obsolete.
14047         * modules/strcase (Status, Notice): New sections.
14048
14049 2011-04-25  Bruno Haible  <bruno@clisp.org>
14050
14051         dup2: Remove check for dup2, unless supporting old obsolete platforms.
14052         * modules/dup2-obsolete: New file.
14053         * m4/dup2-obsolete.m4: New file.
14054         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
14055         gl_FUNC_DUP2_OBSOLETE is not also defined.
14056         * modules/dup2 (Depends-on): Add dup2-obsolete.
14057         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
14058
14059 2011-04-25  Bruno Haible  <bruno@clisp.org>
14060
14061         strnlen: Avoid memchr related link error on old obsolete platforms.
14062         * modules/memchr-obsolete: New file.
14063         * m4/memchr-obsolete.m4: New file.
14064         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
14065         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
14066         * modules/memchr (Depends-on): Add memchr-obsolete.
14067         * modules/strnlen (Depends-on): Likewise.
14068         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
14069
14070 2011-04-25  Jim Meyering  <meyering@redhat.com>
14071
14072         maint.mk: makefile_at_at_check extend and clean up
14073         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
14074         in addition to */Makefile.am.
14075         Exempt legitimate uses of @VAR@ notation, e.g.,
14076         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
14077         Remove obsolete coreutils-specific comment.
14078         Prompted by discussion here:
14079         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
14080
14081 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14082
14083         strtoul: remove dependency on strtol
14084         This is so that 'configure' need not check for strtol merely because
14085         the application needs strtoul.
14086         * modules/strtoul (Files): Add lib/strtol.c.
14087         (Depends-on): Remove strtol.
14088
14089         strtoull: remove dependency on strtoul
14090         This is like the strtoll change.
14091         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
14092         (Depends-on): Remove strtoul.
14093
14094         strtoll: remove dependency on strtol
14095         This is so that 'configure' need not check for strtol merely because
14096         the application needs strtoll.
14097         * modules/strtoll (Files): Add lib/strtol.c.
14098         (Depends-on): Remove strtol.
14099
14100 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14101
14102         inttypes: Move some configure check to module 'imaxdiv'.
14103         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
14104         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
14105         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
14106
14107 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14108
14109         inttypes: Move some configure check to module 'imaxabs'.
14110         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
14111         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
14112         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
14113
14114 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14115
14116         inttypes: Remove configure tests that are not needed since 2009-12-31.
14117         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
14118         gl_cv_header_working_inttypes_h.
14119
14120 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14121
14122         * modules/strnlen (Depends-on): Remove memchr.
14123         The strnlen implementation doesn't need the memchr module's fixes; see
14124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
14125
14126         strtol: remove dependency on wchar
14127         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
14128         * modules/strtol (Depends-on): Remove wchar.
14129
14130 2011-04-21  Eric Blake  <eblake@redhat.com>
14131
14132         passfd: fix test regression on Linux
14133         * modules/passfd-tests (configure.ac): Correct socketpair check.
14134
14135         passfd: speed up configure and drop unused code
14136         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
14137         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
14138         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
14139         Instead of probing at configure for unix_scm_rights_bsd44_way,
14140         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
14141         check to a struct member probe.
14142         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
14143         (sendfd, recvfd): Update preprocessor checks.
14144         * modules/passfd (Files): Reflect rename, and drop unused file.
14145         (Depends-on): Drop unused dependency.
14146
14147         passfd: allow compilation on mingw
14148         * modules/sys_socket (Depends-on): Add sys_uio.
14149         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
14150         iovec and a minimal struct msghdr.
14151         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
14152         * tests/test-sys_socket.c (main): Enhance test.
14153         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
14154         guaranteed to provide what we need.
14155         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
14156         * modules/passfd-tests (Depends-on): Add sys_wait.
14157         * tests/test-passfd.c (main): Skip test on mingw, for now.
14158         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
14159         partial 'struct msghdr' implementation.
14160
14161         sys_uio: new module
14162         * modules/sys_uio: New module.
14163         * modules/sys_uio-tests: Likewise.
14164         * lib/sys_uio.in.h: New file.
14165         * m4/sys_uio_h.m4: Likewise.
14166         * tests/test-sys_uio.c: Likewise.
14167         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
14168         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
14169
14170 2011-04-20  Jim Meyering  <meyering@redhat.com>
14171
14172         useless-if-before-free: avoid false-positive
14173         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
14174         disjunct so that it too requires a terminating ";".  Without that,
14175         this script would identify as useless one statement from gcc that
14176         was not:
14177           if (aligned_ptr)
14178             free (((void **) aligned_ptr) [-1]);
14179
14180 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
14181
14182         doc: update users.txt.
14183         * users.txt: Add barcode.
14184
14185 2011-04-19  Bruno Haible  <bruno@clisp.org>
14186
14187         ioctl: Remove link dependency on native Windows.
14188         * lib/fd-hook.h: Renamed from lib/close-hook.h.
14189         (gl_close_fn, gl_ioctl_fn): New types.
14190         (struct fd_hook): Renamed from struct close_hook. Change type of
14191         private_close_fn field. Add private_ioctl_fn field.
14192         (close_hook_fn): Add parameter for primary close method.
14193         (execute_close_hooks, execute_all_close_hooks): Likewise.
14194         (ioctl_hook_fn): New type.
14195         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
14196         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14197         argument.
14198         (unregister_fd_hook): Renamed from unregister_close_hook.
14199         * lib/fd-hook.c: Renamed from lib/close-hook.c.
14200         Don't include <unistd.h>.
14201         (close): Remove undef.
14202         (anchor): Update.
14203         (execute_close_hooks): Add argument for primary close method.
14204         (execute_all_close_hooks): Likewise.
14205         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
14206         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14207         argument. Allow each argument to be NULL.
14208         (unregister_fd_hook): Renamed from unregister_close_hook.
14209         * lib/close.c (rpl_close): Pass 'close' function pointer to
14210         execute_all_close_hooks.
14211         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
14212         (primary_ioctl): New function.
14213         (ioctl): Don't call ioctlsocket here. Instead, call
14214         execute_all_ioctl_hooks.
14215         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
14216         close method.
14217         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
14218         (fd_sockets_hook): Renamed from close_sockets_hook.
14219         (gl_sockets_startup, gl_sockets_cleanup): Update.
14220         * modules/fd-hook: Renamed from modules/close-hook. Update.
14221         * modules/close (Depends-on): Add fd-hook, remove close-hook.
14222         * modules/sockets (Depends-on): Likewise.
14223         * modules/ioctl (Depends-on): Add fd-hook.
14224         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
14225         GNULIB_SOCKET.
14226
14227 2011-04-19  Bruno Haible  <bruno@clisp.org>
14228
14229         Move the support of O_NONBLOCK in open() to the 'open' module.
14230         * modules/nonblocking (Depends-on): Remove 'open'.
14231         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
14232         gl_cv_have_open_O_NONBLOCK.
14233         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
14234         O_NONBLOCK support.
14235         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
14236
14237 2011-04-17  Bruno Haible  <bruno@clisp.org>
14238
14239         pipe2: Simplify code.
14240         * lib/pipe2.c (pipe2): Reduce code duplication.
14241
14242 2011-04-17  Bruno Haible  <bruno@clisp.org>
14243
14244         nonblocking: Add comment.
14245         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
14246
14247 2011-04-17  Bruno Haible  <bruno@clisp.org>
14248
14249         nonblocking: Add tests for sockets.
14250         * tests/test-nonblocking-socket.sh: New file.
14251         * tests/test-nonblocking-socket-main.c: New file.
14252         * tests/test-nonblocking-socket-child.c: New file.
14253         * tests/test-nonblocking-socket.h: New file.
14254         * tests/socket-server.h: New file.
14255         * tests/socket-client.h: New file.
14256         * modules/nonblocking-socket-tests: New file.
14257         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
14258
14259 2011-04-17  Bruno Haible  <bruno@clisp.org>
14260
14261         nonblocking: Add tests for pipes.
14262         * tests/test-nonblocking-pipe.sh: New file.
14263         * tests/test-nonblocking-pipe-main.c: New file.
14264         * tests/test-nonblocking-pipe-child.c: New file.
14265         * tests/test-nonblocking-pipe.h: New file.
14266         * tests/test-nonblocking-writer.h: New file.
14267         * tests/test-nonblocking-reader.h: New file.
14268         * tests/test-nonblocking-misc.h: New file.
14269         * modules/nonblocking-pipe-tests: New file.
14270         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
14271
14272 2011-04-16  Bruno Haible  <bruno@clisp.org>
14273
14274         gettext: Clarify the needed programmer actions.
14275         * modules/gettext (Notice): New field.
14276         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
14277
14278 2011-04-16  Bruno Haible  <bruno@clisp.org>
14279
14280         strchrnul: Tweak last commit.
14281         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
14282         bug.
14283         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
14284         as in _GL_FUNCDECL_SYS.
14285         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
14286         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
14287
14288 2011-04-15  Eric Blake  <eblake@redhat.com>
14289
14290         strchrnul: work around cygwin bug
14291         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
14292         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
14293         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
14294         * modules/string (Makefile.am): Substitute it.
14295         * lib/string.in.h (strchrnul): Use it.
14296
14297 2011-04-15  Bruno Haible  <bruno@clisp.org>
14298
14299         Don't require lib/stdio-write.c when only module 'stdio' is used.
14300         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
14301         invocation.
14302         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
14303
14304 2011-04-14  Bruno Haible  <bruno@clisp.org>
14305
14306         Support non-blocking pipe I/O in read() on native Windows.
14307         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
14308         (read): New declaration.
14309         * lib/read.c: New file.
14310         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
14311         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
14312         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
14313         vscanf): New declarations.
14314         * lib/stdio-read.c: New file.
14315         * m4/read.m4: New file.
14316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
14317         REPLACE_READ.
14318         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
14319         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14320         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
14321         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
14322         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
14323         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14324         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14325         * modules/read: New file.
14326         * modules/nonblocking (Files): Add lib/stdio-read.c.
14327         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
14328         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
14329         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14330         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14331         * modules/pread (Depends-on): Add read.
14332         * modules/safe-read (Depends-on): Likewise.
14333         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
14334         gets, scanf, vfscanf, vscanf): Verify signatures.
14335         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
14336         problem with non-blocking pipes.
14337         * doc/posix-functions/fgetc.texi: Likewise.
14338         * doc/posix-functions/fgets.texi: Likewise.
14339         * doc/posix-functions/fread.texi: Likewise.
14340         * doc/posix-functions/fscanf.texi: Likewise.
14341         * doc/posix-functions/getc.texi: Likewise.
14342         * doc/posix-functions/getchar.texi: Likewise.
14343         * doc/posix-functions/gets.texi: Likewise.
14344         * doc/posix-functions/scanf.texi: Likewise.
14345         * doc/posix-functions/vfscanf.texi: Likewise.
14346         * doc/posix-functions/vscanf.texi: Likewise.
14347
14348 2011-04-14  Bruno Haible  <bruno@clisp.org>
14349
14350         Support non-blocking pipe I/O in write() on native Windows.
14351         * lib/write.c (rpl_write): Split a write request that failed merely
14352         because the byte count was larger than the pipe buffer's size.
14353         * doc/posix-functions/write.texi: Mention the problem with large byte
14354         counts.
14355
14356 2011-04-14  Bruno Haible  <bruno@clisp.org>
14357
14358         wchar: Ensure that wchar_t gets defined on uClibc.
14359         * lib/wchar.in.h: On uClibc, include <stddef.h>.
14360         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
14361
14362 2011-04-13  Bruno Haible  <bruno@clisp.org>
14363
14364         safe-write, full-read: Avoid unnecessary compilation units.
14365         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
14366         (Depends-on): Remove safe-read. Add ssize_t.
14367         * modules/full-read (Files): Add lib/full-write.c.
14368         (Depends-on): Add full-write.
14369
14370 2011-04-13  Bruno Haible  <bruno@clisp.org>
14371
14372         Support non-blocking pipe I/O and SIGPIPE in pwrite().
14373         * modules/pwrite (Depends-on): Add 'write'.
14374
14375 2011-04-13  Bruno Haible  <bruno@clisp.org>
14376
14377         Support non-blocking pipe I/O in write() on native Windows.
14378         * lib/unistd.in.h (write): Enable replacement also if
14379         GNULIB_UNISTD_H_NONBLOCKING is 1.
14380         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
14381         (rpl_write): When failing to write on a non-blocking pipe, change
14382         errno from ENOSPC to EAGAIN.
14383         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
14384         putchar, puts, vfprintf, vprintf): Enable replacement also if
14385         GNULIB_STDIO_H_NONBLOCKING is 1.
14386         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
14387         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
14388         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
14389         CALL_WITH_SIGPIPE_EMULATION.
14390         (CALL_WITH_SIGPIPE_EMULATION): Use them.
14391         * m4/nonblocking.m4: New file.
14392         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
14393         for non-blocking I/O support.
14394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14395         GNULIB_UNISTD_H_NONBLOCKING.
14396         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
14397         required for non-blocking I/O support.
14398         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
14399         * modules/nonblocking (Files): Add m4/nonblocking.m4,
14400         lib/stdio-write.c, m4/asm-underscore.m4.
14401         (Depends-on): Add stdio, unistd.
14402         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
14403         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
14404         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
14405         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
14406         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
14407         problem with non-blocking pipes.
14408         * doc/posix-functions/fputc.texi: Likewise.
14409         * doc/posix-functions/fputs.texi: Likewise.
14410         * doc/posix-functions/fwrite.texi: Likewise.
14411         * doc/posix-functions/printf.texi: Likewise.
14412         * doc/posix-functions/putc.texi: Likewise.
14413         * doc/posix-functions/putchar.texi: Likewise.
14414         * doc/posix-functions/puts.texi: Likewise.
14415         * doc/posix-functions/vfprintf.texi: Likewise.
14416         * doc/posix-functions/vprintf.texi: Likewise.
14417         * doc/posix-functions/write.texi: Likewise.
14418
14419 2011-04-10  Jim Meyering  <meyering@redhat.com>
14420
14421         maint.mk: prohibit doubled words
14422         Detect them also when they're separated by a newline.
14423         There are 3 ways to customize it:
14424           - disable the test on a per file basis, as usual with rules using
14425             $(VC_LIST_EXCEPT)
14426           - replace the default doubled-word-selecting regexp (affects all files)
14427           - ignore a particular file-vs-doubled-word match
14428         I nearly used that last one to ignore the "is is" match in
14429         coreutils' NEWS file, since the text was "ls -is is ..."
14430         To do that, I would have added this line to cfg.mk:
14431           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
14432         but it would have ignored any "is is" match in NEWS.
14433         Low probability, but still...
14434         Instead, I changed the text, slightly:
14435           -  ls -is is now consistent with ls -lis in ignoring values returned
14436           +  "ls -is" is now consistent with ls -lis in ignoring values returned
14437         * top/maint.mk (prohibit_double_word_RE_): Provide default.
14438         (prohibit_doubled_word_): Define.
14439         (sc_prohibit_doubled_word): New rule.
14440         (sc_prohibit_the_the): Remove.  Subsumed by the above.
14441
14442 2011-04-10  Jim Meyering  <meyering@redhat.com>
14443
14444         maint: fix doubled-word typo in comment
14445         * m4/gethostname.m4: s/is is/it is/
14446         * m4/getdomainname.m4: Likewise.
14447
14448 2011-04-10  Jim Meyering  <meyering@redhat.com>
14449
14450         maint: remove doubled word: s/it it/it/
14451         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
14452
14453 2011-04-10  Jim Meyering  <meyering@redhat.com>
14454
14455         maint.mk: remove useless semicolon and backslash
14456         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
14457         semicolon and backslash.
14458
14459 2011-04-10  Bruno Haible  <bruno@clisp.org>
14460
14461         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
14462         * modules/stdint-tests (Depends-on): Add wchar.
14463
14464 2011-04-10  Jim Meyering  <meyering@redhat.com>
14465
14466         maint: remove doubled words in comments, e.g., s/a a/a/
14467         * lib/strptime.c (day_of_the_week): s/the the/the/
14468         * tests/test-chown.h (test_chown): s/a a/a/
14469
14470         test-chown.h: correct a cast
14471         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
14472         when the destination is a stat.st_gid.
14473
14474 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
14475
14476         getaddrinfo: Fix test for sa_len member.
14477         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
14478         include <sys/types.h> before <sys/socket.h>.
14479
14480 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14481
14482         maint: change "can not" to "cannot"
14483         * doc/posix-functions/iconv.texi (iconv): This one crossed line
14484         boundaries.
14485
14486 2011-04-09  Jim Meyering  <meyering@redhat.com>
14487
14488         maint: change "a a" to "a"
14489         * tests/test-lchown.h (test_lchown): s/a a/a/
14490
14491         maint.mk: prohibit \<the the\>
14492         * top/maint.mk (sc_prohibit_the_the): New rule.
14493
14494         maint: fix "the the" in comment
14495         * lib/count-one-bits.h: s/the the/the/
14496
14497         maint: change "can not" to "cannot"
14498         But do not change the occurrences in maintain.texi or in
14499         build-aux/po/Makefile.in.in, which I presume comes from gettext.
14500         * doc/gnulib-tool.texi: s/can not/cannot/
14501         * doc/posix-functions/accept.texi (accept): Likewise.
14502         * doc/posix-functions/socket.texi (socket): Likewise.
14503         * lib/mbrtowc.c: Likewise.
14504
14505         maint.mk: prohibit use of "can not"
14506         * top/maint.mk (sc_prohibit_can_not): New rule.
14507         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
14508
14509 2011-04-09  Bruno Haible  <bruno@clisp.org>
14510
14511         careadlinkat: Guard against misuse of careadlinkatcwd.
14512         * lib/careadlinkat.c: Include <stdlib.h>.
14513         (careadlinkatcwd): Check that the fd argument is as expected.
14514
14515 2011-04-09  Bruno Haible  <bruno@clisp.org>
14516
14517         careadlinkat: Use common coding style.
14518         * lib/careadlinkat.c: Move gnulib includes after system includes.
14519
14520 2011-04-09  Bruno Haible  <bruno@clisp.org>
14521
14522         careadlinkat: Clarify specification.
14523         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
14524         (careadlinkatcwd): Add comment.
14525         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
14526
14527 2011-04-09  Bruno Haible  <bruno@clisp.org>
14528
14529         areadlinkat: Avoid link error on many platforms.
14530         * modules/areadlinkat (Depends-on): Add areadlink.
14531
14532 2011-04-09  Bruno Haible  <bruno@clisp.org>
14533
14534         allocator, careadlinkat: Fix double-inclusion guard.
14535         * lib/allocator.h: Fix double-inclusion guard.
14536         * lib/careadlinkat.h: Likewise.
14537
14538 2011-04-09  Bruno Haible  <bruno@clisp.org>
14539
14540         relocatable-prog-wrapper: Update after module 'areadlink' changed.
14541         * lib/relocwrapper.c: Update dependencies hierarchy.
14542         * build-aux/install-reloc: Update list of files to be compiled.
14543         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
14544         lib/allocator.[hc].
14545
14546 2011-04-08  Eric Blake  <eblake@redhat.com>
14547
14548         strftime: silence gnulib-tool warning
14549         * modules/strftime-tests (Depends-on): Drop automatic dependency.
14550
14551 2011-04-08  Bruno Haible  <bruno@clisp.org>
14552
14553         verify: Fix syntax error with GCC 4.6 in C++ mode.
14554         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
14555         (HAVE_STATIC_ASSERT): New macro.
14556         (verify_true, verify): Use 'static_assert' if it is supported and
14557         '_Static_assert' is not supported.
14558
14559 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
14560
14561         allocator: New module.
14562         * modules/allocator, lib/allocator.c: New files.
14563         * lib/allocator.h (stdlib_allocator): New decl.
14564         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
14565         Remove.  Do not include <stdlib.h>.
14566         (careadlinkat): Use stdlib_allocator instead of rolling our own.
14567         * modules/careadlinkat (Files): Remove lib/allocator.h.
14568         (Depends-on): Add allocator.
14569
14570         stdlib: let modules use system malloc, realloc
14571         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
14572         if !_GL_USE_STDLIB_ALLOC.
14573         (malloc, realloc): Limit this change to a smaller scope.
14574
14575         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
14576         (malloc, realloc): Don't #undef; no longer needed.
14577         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14578         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14579         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14580         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14581         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14582         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14583         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14584         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14585
14586         careadlinkat: rename members to avoid problem
14587         * lib/allocator.h (struct allocator): Rename members from
14588         malloc/realloc to allocate/reallocate, to avoid problems if malloc
14589         and realloc are #define'd.  Reported by Eric Blake in
14590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
14591         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
14592
14593 2011-04-08  Eric Blake  <eblake@redhat.com>
14594
14595         nonblocking: reduce dependency
14596         * tests/test-nonblocking.c: Only test sockets when in use.
14597         * modules/nonblocking-tests (Depends-on): Drop socket.
14598         (Makefile.am): Link even if sockets are not present.
14599         * modules/pipe2-tests (Makefile.am): Likewise.
14600         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
14601
14602         pipe2: fix O_NONBLOCK support on mingw
14603         * modules/pipe2 (Depends-on): Add nonblocking.
14604         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
14605         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
14606         * tests/test-nonblocking.c (main): Likewise.
14607         * modules/pipe2-tests (Makefile.am): Avoid link failure.
14608
14609         fcntl-h: fix O_ACCMODE on cygwin
14610         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
14611         * lib/fcntl.in.h (O_ACCMODE): Fix it.
14612
14613         pipe-filter: drop O_NONBLOCK workarounds
14614         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
14615         * modules/pipe-filter-ii (Depends-on): Likewise.
14616         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
14617
14618         nonblocking: provide O_NONBLOCK for mingw
14619         * modules/nonblocking (Depends-on): Add open.
14620         (configure.ac): Set new witness macro.
14621         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
14622         * modules/fcntl-h (Makefile.am): Substitute it.
14623         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
14624         nonblocking module is in use.
14625         * lib/nonblocking.c: Adjust portability test.
14626         * lib/open.c (open): Don't let native open see gnulib flag.
14627         * tests/test-fcntl-h.c (main): Enhance test.
14628         * tests/test-open.h (test_open): Likewise.
14629         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
14630
14631         careadlinkat: fix compilation error on mingw
14632         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
14633         within struct allocator.
14634
14635 2011-04-06  Eric Blake  <eblake@redhat.com>
14636
14637         binary-io: relicense under LGPLv2+
14638         * modules/binary-io (License): Relax to LGPLv2+.
14639         Requested for libvirt, and required by pipe2.
14640
14641 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
14642
14643         verify: use _Static_assert if available
14644         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
14645         (verify_true, verify): Use it if available.  This generates better
14646         diagnostics with GCC 4.6.0 and later.
14647
14648 2011-04-05  Bruno Haible  <bruno@clisp.org>
14649
14650         Remove leftover generated .h files after config.status changed.
14651
14652         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
14653         GL_GENERATE_ALLOCA_H.
14654         * modules/alloca-opt (Makefile.am): Remove alloca.h if
14655         GL_GENERATE_ALLOCA_H evaluates to false.
14656
14657         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
14658         GL_GENERATE_ARGZ_H.
14659         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
14660         evaluates to false.
14661
14662         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
14663         GL_GENERATE_BYTESWAP_H.
14664         * modules/byteswap (Makefile.am): Remove byteswap.h if
14665         GL_GENERATE_BYTESWAP_H evaluates to false.
14666
14667         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
14668         GL_GENERATE_ERRNO_H.
14669         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
14670         evaluates to false.
14671
14672         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
14673         GL_GENERATE_FLOAT_H.
14674         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
14675         evaluates to false.
14676
14677         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
14678         GL_GENERATE_FNMATCH_H.
14679         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
14680         GL_GENERATE_FNMATCH_H evaluates to false.
14681
14682         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
14683         GL_GENERATE_GLOB_H.
14684         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
14685         evaluates to false.
14686
14687         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
14688         automake conditional GL_GENERATE_ICONV_H.
14689         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
14690         evaluates to false.
14691
14692         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
14693         GL_GENERATE_NETINET_IN_H.
14694         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
14695         GL_GENERATE_NETINET_IN_H evaluates to false.
14696
14697         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
14698         conditional GL_GENERATE_PTHREAD_H.
14699         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
14700         * modules/pthread (Makefile.am): Remove pthread.h if
14701         GL_GENERATE_PTHREAD_H evaluates to false.
14702
14703         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
14704         GL_GENERATE_SCHED_H.
14705         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
14706         evaluates to false.
14707
14708         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
14709         conditional GL_GENERATE_SELINUX_CONTEXT_H.
14710         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
14711         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
14712
14713         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
14714         GL_GENERATE_STDARG_H.
14715         * modules/stdarg (Makefile.am): Remove stdarg.h if
14716         GL_GENERATE_STDARG_H evaluates to false.
14717
14718         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
14719         GL_GENERATE_STDBOOL_H.
14720         * modules/stdbool (Makefile.am): Remove stdbool.h if
14721         GL_GENERATE_STDBOOL_H evaluates to false.
14722
14723         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
14724         conditional GL_GENERATE_STDDEF_H.
14725         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
14726         * modules/stddef (Makefile.am): Remove stddef.h if
14727         GL_GENERATE_STDDEF_H evaluates to false.
14728
14729         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
14730         GL_GENERATE_STDINT_H.
14731         * modules/stdint (Makefile.am): Remove stdint.h if
14732         GL_GENERATE_STDINT_H evaluates to false.
14733
14734         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
14735         GL_GENERATE_SYSEXITS_H.
14736         * modules/sysexits (Makefile.am): Remove sysexits.h if
14737         GL_GENERATE_SYSEXITS_H evaluates to false.
14738
14739         Reported by Karl Berry and Ralf Wildenhues.
14740
14741 2011-04-05  Bruno Haible  <bruno@clisp.org>
14742
14743         Ensure to rebuild generated .h files when config.status has changed.
14744         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
14745         config.status.
14746         * modules/ctype (Makefile.am): Likewise.
14747         * modules/dirent (Makefile.am): Likewise.
14748         * modules/errno (Makefile.am): Likewise.
14749         * modules/fcntl-h (Makefile.am): Likewise.
14750         * modules/float (Makefile.am): Likewise.
14751         * modules/getopt-posix (Makefile.am): Likewise.
14752         * modules/glob (Makefile.am): Likewise.
14753         * modules/iconv-h (Makefile.am): Likewise.
14754         * modules/inttypes (Makefile.am): Likewise.
14755         * modules/langinfo (Makefile.am): Likewise.
14756         * modules/locale (Makefile.am): Likewise.
14757         * modules/math (Makefile.am): Likewise.
14758         * modules/netdb (Makefile.am): Likewise.
14759         * modules/netinet_in (Makefile.am): Likewise.
14760         * modules/poll-h (Makefile.am): Likewise.
14761         * modules/pthread (Makefile.am): Likewise.
14762         * modules/pty (Makefile.am): Likewise.
14763         * modules/sched (Makefile.am): Likewise.
14764         * modules/search (Makefile.am): Likewise.
14765         * modules/selinux-h (Makefile.am): Likewise.
14766         * modules/signal (Makefile.am): Likewise.
14767         * modules/spawn (Makefile.am): Likewise.
14768         * modules/stdarg (Makefile.am): Likewise.
14769         * modules/stdbool (Makefile.am): Likewise.
14770         * modules/stddef (Makefile.am): Likewise.
14771         * modules/stdint (Makefile.am): Likewise.
14772         * modules/stdio (Makefile.am): Likewise.
14773         * modules/stdlib (Makefile.am): Likewise.
14774         * modules/string (Makefile.am): Likewise.
14775         * modules/strings (Makefile.am): Likewise.
14776         * modules/sys_file (Makefile.am): Likewise.
14777         * modules/sys_ioctl (Makefile.am): Likewise.
14778         * modules/sys_select (Makefile.am): Likewise.
14779         * modules/sys_socket (Makefile.am): Likewise.
14780         * modules/sys_stat (Makefile.am): Likewise.
14781         * modules/sys_time (Makefile.am): Likewise.
14782         * modules/sys_times (Makefile.am): Likewise.
14783         * modules/sys_utsname (Makefile.am): Likewise.
14784         * modules/sys_wait (Makefile.am): Likewise.
14785         * modules/sysexits (Makefile.am): Likewise.
14786         * modules/termios (Makefile.am): Likewise.
14787         * modules/time (Makefile.am): Likewise.
14788         * modules/unistd (Makefile.am): Likewise.
14789         * modules/wchar (Makefile.am): Likewise.
14790         * modules/wctype-h (Makefile.am): Likewise.
14791         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
14792
14793 2011-04-05  Bruno Haible  <bruno@clisp.org>
14794
14795         pipe2: Relicense under LGPLv2+.
14796         * modules/pipe2 (License): Change to LGPLv2+.
14797         Requested by Eric Blake, for libvirt.
14798
14799 2011-04-05  Bruce Korb  <bkorb@gnu.org>
14800
14801         bootstrap: compute gnulib_extra_files after updating build_aux
14802         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
14803         change build_aux or also supply gnulib_extra_files.  Handle correctly.
14804
14805 2011-04-05  Eric Blake  <eblake@redhat.com>
14806
14807         bootstrap: preserve git whitelist item sorting
14808         * build-aux/bootstrap (sort_patterns): New function.
14809         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
14810
14811 2011-04-05  Simon Josefsson  <simon@josefsson.org>
14812
14813         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
14814         sc_space_tab check.
14815
14816 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
14817
14818         areadlink, areadlinkat: rewrite in terms of careadlinkat
14819         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
14820         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
14821         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
14822         (malloc, realloc): Remove #undefs.
14823         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
14824         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
14825         readlink, ssize_t, stdint, unistd.
14826         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
14827         areadlink, stdint.
14828
14829         careadlinkat: new module
14830         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
14831         * modules/careadlinkat: New files, written by me with
14832         a review and feedback from Ben Pfaff in
14833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
14834
14835 2011-04-01  Bruno Haible  <bruno@clisp.org>
14836
14837         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
14838         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
14839         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
14840         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
14841         Reported by Bruce Korb <bruce.korb@gmail.com>.
14842
14843 2011-04-01  Bruno Haible  <bruno@clisp.org>
14844
14845         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
14846         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
14847         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
14848         * modules/wcpcpy (Depends-on): Add extensions.
14849         * modules/wcpncpy (Depends-on): Likewise.
14850         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
14851         systems.
14852         * doc/posix-functions/wcpncpy.texi: Likewise.
14853         * doc/posix-functions/wcwidth.texi: Likewise.
14854
14855 2011-03-31  Eric Blake  <eblake@redhat.com>
14856
14857         nonblocking: fix mingw test failures
14858         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
14859         non-blocking flag on regular file.
14860         (get_nonblocking_flag): Set errno on invalid fd.
14861         * tests/test-nonblocking.c (main): Avoid test failure on
14862         directories if fchdir is not active.
14863         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
14864
14865 2011-03-31  Bruno Haible  <bruno@clisp.org>
14866
14867         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
14868         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
14869         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
14870         Reported by Simon Josefsson <simon@josefsson.org>.
14871
14872 2011-03-31  Bruno Haible  <bruno@clisp.org>
14873         and Eric Blake  <eblake@redhat.com>
14874
14875         nonblocking: new module
14876         * modules/nonblocking: New module.
14877         * modules/nonblocking-tests: Likewise.
14878         * lib/nonblocking.h: New file.
14879         * lib/nonblocking.c: Likewise.
14880         * tests/test-nonblocking.c: New test.
14881         * lib/ioctl.c (ioctl) [mingw]: Update comment.
14882
14883 2011-03-30  Bruno Haible  <bruno@clisp.org>
14884
14885         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
14886         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
14887         instead of 'printf' format for GCC >= 4.4.
14888         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
14889         (fprintf, printf, vfprintf, vprintf): Declare with
14890         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
14891         the system's vfprintf() function.
14892         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
14893
14894 2011-03-30  Eric Blake  <eblake@redhat.com>
14895
14896         passfd: fix scoping bug
14897         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
14898         before sendmsg/recvmsg.
14899
14900         passfd: standardize coding conventions
14901         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
14902         can be learned at compile time.
14903         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
14904         ifdefs.
14905         (sendfd, recvfd): Follow gnulib code conventions.
14906
14907         passfd: fix incorrect sendmsg arguments
14908         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
14909         incorrect msg_controllen value.
14910         * modules/passfd-tests (Depends-on): Check for alarm.
14911         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
14912         Reported by Bastien ROUCARIES.
14913
14914 2011-03-30  Bruno Haible  <bruno@clisp.org>
14915
14916         c-strcasestr: Relicense under LGPLv2+.
14917         * modules/c-strcasestr (License): Change to LGPLv2+.
14918         Requested by Eric Blake, for libvirt.
14919
14920 2011-03-30  Simon Josefsson  <simon@josefsson.org>
14921
14922         * users.txt: Add libidn2.  Fix libtasn1 link.
14923
14924 2011-03-30  Jim Meyering  <meyering@redhat.com>
14925
14926         tests: readlink* ("",... fails with EINVAL on newer kernels
14927         readlink and readlinkat have typically failed with ENOENT for
14928         the invalid, empty file name,  "".  However, with the advent
14929         of linux-2.6.39, they fail with EINVAL.
14930         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
14931         when operating on the empty file name.
14932         * tests/test-readlink.h (test_readlink): Likewise.
14933
14934 2011-03-29  Bruno Haible  <bruno@clisp.org>
14935
14936         Relicense some modules under LGPLv2+, for libidn2.
14937         * modules/array-mergesort (License): Change to LGPLv2+.
14938         * modules/c-strcaseeq (License): Likewise.
14939         * modules/striconveh (License): Likewise.
14940         * modules/striconveha (License): Likewise.
14941         * modules/uniconv/base (License): Likewise.
14942         * modules/uniconv/u8-conv-from-enc (License): Likewise.
14943         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
14944         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
14945         * modules/unictype/base (License): Likewise.
14946         * modules/unictype/bidiclass-of (License): Likewise.
14947         * modules/unictype/category-M (License): Likewise.
14948         * modules/unictype/category-none (License): Likewise.
14949         * modules/unictype/category-of (License): Likewise.
14950         * modules/unictype/category-test (License): Likewise.
14951         * modules/unictype/category-test-withtable (License): Likewise.
14952         * modules/unictype/combining-class (License): Likewise.
14953         * modules/unictype/joiningtype-of (License): Likewise.
14954         * modules/unictype/scripts (License): Likewise.
14955         * modules/uninorm/base (License): Likewise.
14956         * modules/uninorm/canonical-decomposition (License): Likewise.
14957         * modules/uninorm/composition (License): Likewise.
14958         * modules/uninorm/decompose-internal (License): Likewise.
14959         * modules/uninorm/decomposition-table (License): Likewise.
14960         * modules/uninorm/nfc (License): Likewise.
14961         * modules/uninorm/nfd (License): Likewise.
14962         * modules/uninorm/u32-normalize (License): Likewise.
14963         * modules/unistr/base (License): Likewise.
14964         * modules/unistr/u32-cpy (License): Likewise.
14965         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
14966         * modules/unistr/u32-to-u8 (License): Likewise.
14967         * modules/unistr/u32-uctomb (License): Likewise.
14968         * modules/unistr/u8-check (License): Likewise.
14969         * modules/unistr/u8-mblen (License): Likewise.
14970         * modules/unistr/u8-mbtouc (License): Likewise.
14971         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
14972         * modules/unistr/u8-mbtoucr (License): Likewise.
14973         * modules/unistr/u8-prev (License): Likewise.
14974         * modules/unistr/u8-strlen (License): Likewise.
14975         * modules/unistr/u8-to-u32 (License): Likewise.
14976         * modules/unistr/u8-uctomb (License): Likewise.
14977         * modules/unitypes (License): Likewise.
14978         Requested by Simon Josefsson.
14979
14980 2011-03-29  Simon Josefsson  <simon@josefsson.org>
14981
14982         lib-symbol-visibility: Add a notice.
14983         * modules/lib-symbol-visibility (Notice): New field.
14984
14985 2011-03-29  Bruno Haible  <bruno@clisp.org>
14986
14987         getaddrinfo: Doc fix.
14988         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
14989         section "fixed in Gnulib".
14990
14991 2011-03-28  Simon Josefsson  <simon@josefsson.org>
14992
14993         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
14994         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
14995
14996 2011-03-26  Bruno Haible  <bruno@clisp.org>
14997
14998         unictype/property-byname: Reduce the number of load-time relocations.
14999         * lib/unictype/pr_byname.c: Include <stdlib.h>.
15000         (UC_PROPERTY_INDEX_*): New enumeration values.
15001         (uc_property_byname): Convert an index from the lookup table to an
15002         uc_property_t.
15003         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
15004         values.
15005
15006 2011-03-26  Bruno Haible  <bruno@clisp.org>
15007
15008         unictype/property-byname: Allow omitted word separators and aliases.
15009         * lib/unictype/pr_byname.gperf: Add property names without word
15010         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
15011         for 'space'.
15012
15013 2011-03-26  Bruno Haible  <bruno@clisp.org>
15014
15015         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
15016         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
15017         also hyphens to space.
15018         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
15019         without spaces.
15020         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
15021
15022 2011-03-26  Bruno Haible  <bruno@clisp.org>
15023
15024         unictype/joiningtype-byname: Recognize long names as well.
15025         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
15026         a long name.
15027         * lib/unictype/joiningtype_byname.c: Include <string.h>,
15028         unictype/joiningtype_byname.h.
15029         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
15030         * lib/unictype/joiningtype_byname.gperf: New file.
15031         * modules/unictype/joiningtype-byname (Files): Add
15032         lib/unictype/joiningtype_byname.gperf.
15033         (Depends-on): Add gperf.
15034         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
15035         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
15036         long names.
15037
15038         Tests for module 'unictype/joiningtype-longname'.
15039         * modules/unictype/joiningtype-longname-tests: New file.
15040         * tests/unictype/test-joiningtype_longname.c: New file.
15041
15042         New module 'unictype/joiningtype-longname'.
15043         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
15044         * lib/unictype/joiningtype_longname.c: New file.
15045         * modules/unictype/joiningtype-longname: New file.
15046         * modules/unictype/joiningtype-all (Depends-on): Add
15047         unictype/joiningtype-longname.
15048
15049 2011-03-26  Bruno Haible  <bruno@clisp.org>
15050
15051         unictype/bidiclass-byname: Recognize long names as well.
15052         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
15053         name.
15054         * lib/unictype/bidi_byname.c: Include <string.h>,
15055         unictype/bidi_byname.h.
15056         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
15057         * lib/unictype/bidi_byname.gperf: New file.
15058         * modules/unictype/bidiclass-byname (Files): Add
15059         lib/unictype/bidi_byname.gperf.
15060         (Depends-on): Add gperf.
15061         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
15062         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
15063         long names.
15064
15065         Tests for module 'unictype/bidiclass-longname'.
15066         * modules/unictype/bidiclass-longname-tests: New file.
15067         * tests/unictype/test-bidi_longname.c: New file.
15068
15069         New module 'unictype/bidiclass-longname'.
15070         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
15071         * lib/unictype/bidi_longname.c: New file.
15072         * modules/unictype/bidiclass-longname: New file.
15073         * modules/unictype/bidiclass-all (Depends-on): Add
15074         unictype/bidiclass-longname.
15075
15076 2011-03-26  Bruno Haible  <bruno@clisp.org>
15077
15078         unictype/bidi*: Rename modules.
15079         * modules/unictype/bidiclass-all: Renamed from
15080         modules/unictype/bidicategory-all.
15081         * modules/unictype/bidiclass-name: Renamed from
15082         modules/unictype/bidiclass-name.
15083         (Description): Update.
15084         * modules/unictype/bidiclass-name-tests: Renamed from
15085         modules/unictype/bidicategory-name-tests.
15086         * modules/unictype/bidiclass-byname: Renamed from
15087         modules/unictype/bidicategory-byname.
15088         (Description): Update.
15089         * modules/unictype/bidiclass-byname-tests: Renamed from
15090         modules/unictype/bidicategory-byname-tests.
15091         * modules/unictype/bidiclass-of: Renamed from
15092         modules/unictype/bidicategory-of.
15093         (Description): Update.
15094         * modules/unictype/bidiclass-of-tests: Renamed from
15095         modules/unictype/bidicategory-of-tests.
15096         * modules/unictype/bidiclass-test: Renamed from
15097         modules/unictype/bidicategory-test.
15098         (Description): Update.
15099         * modules/unictype/bidiclass-test-tests: Renamed from
15100         modules/unictype/bidicategory-test-tests.
15101         * modules/unictype/bidicategory-all: New file, a simple redirection.
15102         * modules/unictype/bidicategory-name: Likewise.
15103         * modules/unictype/bidicategory-byname: Likewise.
15104         * modules/unictype/bidicategory-of: Likewise.
15105         * modules/unictype/bidicategory-test: Likewise.
15106         * modules/unictype/property-bidi-* (Dependencies): Update.
15107         * lib/unictype/bidi_*.c: Update comment.
15108
15109 2011-03-26  Bruno Haible  <bruno@clisp.org>
15110
15111         unictype/bidi*: Rename functions, part 2.
15112         * modules/unictype/bidicategory-name (configure.ac): Update required
15113         libunistring version.
15114         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
15115
15116 2011-03-25  Bruno Haible  <bruno@clisp.org>
15117
15118         New module 'unictype/combining-class-all'.
15119         * modules/unictype/combining-class-all: New file.
15120
15121         Tests for module 'unictype/combining-class-byname'.
15122         * modules/unictype/combining-class-byname-tests: New file.
15123         * tests/unictype/test-combiningclass_byname.c: New file.
15124
15125         New module 'unictype/combining-class-byname'.
15126         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
15127         * lib/unictype/combiningclass_byname.c: New file.
15128         * lib/unictype/combiningclass_byname.gperf: New file.
15129         * modules/unictype/combining-class-byname: New file.
15130
15131         Tests for module 'unictype/combining-class-longname'.
15132         * modules/unictype/combining-class-longname-tests: New file.
15133         * tests/unictype/test-combiningclass_longname.c: New file.
15134
15135         New module 'unictype/combining-class-longname'.
15136         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
15137         * lib/unictype/combiningclass_longname.c: New file.
15138         * modules/unictype/combining-class-longname: New file.
15139
15140         Tests for module 'unictype/combining-class-name'.
15141         * modules/unictype/combining-class-name-tests: New file.
15142         * tests/unictype/test-combiningclass_name.c: New file.
15143
15144         New module 'unictype/combining-class-name'.
15145         * lib/unictype.in.h (uc_combining_class_name): New declaration.
15146         * lib/unictype/combiningclass_name.c: New file.
15147         * modules/unictype/combining-class-name: New file.
15148
15149 2011-03-25  Bruno Haible  <bruno@clisp.org>
15150
15151         unictype/combining-class: Rename source files.
15152         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
15153         of unictype/combining.h.
15154         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
15155         Update.
15156         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
15157         * modules/unictype/combining-class (Description): Fix.
15158         (Files, Makefile.am): Update.
15159         * tests/unictype/test-combiningclass.c: Renamed from
15160         tests/unictype/test-combining.c.
15161         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
15162
15163 2011-03-25  Bruno Haible  <bruno@clisp.org>
15164
15165         unictype: Update list of canonical combining classes.
15166         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
15167
15168 2011-03-25  Bruno Haible  <bruno@clisp.org>
15169
15170         unictype/category-byname: Recognize long names as well.
15171         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
15172         a long name.
15173         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
15174         unictype/categ_byname.h.
15175         (UC_CATEGORY_INDEX_*): New enumeration values.
15176         (uc_general_category_byname): Use uc_general_category_lookup and
15177         convert from index to value.
15178         * lib/unictype/categ_byname.gperf: New file.
15179         * modules/unictype/category-byname (Files): Add
15180         lib/unictype/categ_byname.gperf.
15181         (Depends-on): Add gperf.
15182         (Makefile.am): Add rule for generating unictype/categ_byname.h.
15183         * tests/unictype/test-categ_byname.c (main): Test the recognition of
15184         long names.
15185
15186         Tests for module 'unictype/category-longname'.
15187         * modules/unictype/category-longname-tests: New file.
15188         * tests/unictype/test-categ_longname.c: New file.
15189
15190         New module 'unictype/category-longname'.
15191         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
15192         * lib/unictype/categ_longname.c: New file.
15193         * modules/unictype/category-longname: New file.
15194         * modules/unictype/category-all (Depends-on): Add it.
15195
15196 2011-03-25  Bruno Haible  <bruno@clisp.org>
15197
15198         Tests for module 'unictype/category-LC'.
15199         * modules/unictype/category-LC-tests: New file.
15200         * tests/unictype/test-categ_LC.c: New file, automatically generated.
15201
15202         New module 'unictype/category-LC'.
15203         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
15204         (UC_CATEGORY_LC): New declaration.
15205         (UC_CASED_LETTER): New macro.
15206         * lib/gen-uni-tables.c (is_category_LC): New function.
15207         (output_categories): Also handle category LC.
15208         (UC_CATEGORY_MASK_LC): New enumeration value.
15209         (general_category_byname): Also handle category LC.
15210         * lib/unictype/categ_LC.c: New file.
15211         * lib/unictype/categ_LC.h: New file, automatically generated.
15212         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
15213         category LC.
15214         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
15215         * modules/unictype/category-LC: New file.
15216         * modules/unictype/category-byname (Depends-on): Add
15217         unictype/category-LC.
15218         * modules/unictype/category-all (Depends-on): Likewise.
15219
15220 2011-03-25  Eric Blake  <eblake@redhat.com>
15221
15222         xmalloc: revert yesterday's regression
15223         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
15224         realloc's underlying behavior (allowing allocation of zero-size
15225         objects, especially if malloc-gnu is also in use).
15226
15227 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
15228
15229         maint.mk: add missing version to VC-tag
15230         * top/maint.mk: git tag was missing actual tag name; add it.
15231
15232         valgrind: do leak checking, and exit with code 1 on error (not 0)
15233         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
15234         to VALGRIND.
15235
15236 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
15237
15238         posix-modules: say what it does.
15239         * posix-modules: Add a line to the --help output saying what it does.
15240
15241 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15242
15243         xmalloc: Do not leak if underlying realloc is C99 compatible.
15244         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
15245         This avoids a leak on C99-based systems.  See
15246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
15247
15248 2011-03-24  Eric Blake  <eblake@redhat.com>
15249
15250         realloc: document portability problem
15251         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
15252         passing 0 size to realloc.
15253
15254 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
15255
15256         doc: update users.txt
15257         * users.txt: Add cvsps, tmpwatch
15258
15259 2011-03-23  Matt Rice  <ratmice@gmail.com>
15260
15261         doc: update users.txt
15262         * users.txt: Add gdb.
15263
15264 2011-03-23  Jim Meyering  <meyering@redhat.com>
15265
15266         doc: update users.txt
15267         Looking through matches up to the following URL (there are still
15268         several more pages), I found several projects that use gnulib:
15269         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
15270         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
15271         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
15272
15273 2011-03-22  Bruno Haible  <bruno@clisp.org>
15274
15275         unictype/bidi*: Rename functions.
15276         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
15277         uc_bidi_class, uc_is_bidi_class): New declarations.
15278         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
15279         uc_bidi_category_byname.
15280         (uc_bidi_category_byname): New function.
15281         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
15282         u_bidi_category_name.
15283         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
15284         (uc_bidi_category_name): New function.
15285         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
15286         uc_bidi_category.
15287         (uc_bidi_category): New function.
15288         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
15289         uc_is_bidi_category. Invoke uc_bidi_class.
15290         (uc_is_bidi_category): New function.
15291         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
15292         instead of uc_bidi_category_byname.
15293         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
15294         instead of uc_bidi_category_name.
15295         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
15296         uc_bidi_category.
15297         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
15298         instead of uc_is_bidi_category.
15299
15300 2011-03-21  Bruno Haible  <bruno@clisp.org>
15301
15302         New module 'unictype/joininggroup-all'.
15303         * modules/unictype/joininggroup-all: New file.
15304
15305         Tests for module 'unictype/joininggroup-of'.
15306         * modules/unictype/joininggroup-of-tests: New file.
15307         * tests/unictype/test-joininggroup_of.c: New file.
15308         * tests/unictype/test-joininggroup_of.h: New file, automatically
15309         generated by gen-uni-tables.
15310
15311         New module 'unictype/joininggroup-of'.
15312         * modules/unictype/joininggroup-of: New file.
15313         * lib/unictype/joininggroup_of.c: New file.
15314         * lib/unictype/joininggroup_of.h: New file, automatically generated by
15315         gen-uni-tables.
15316
15317         Tests for module 'unictype/joininggroup-byname'.
15318         * modules/unictype/joininggroup-byname-tests: New file.
15319         * tests/unictype/test-joininggroup_byname.c: New file.
15320
15321         New module 'unictype/joininggroup-byname'.
15322         * modules/unictype/joininggroup-byname: New file.
15323         * lib/unictype/joininggroup_byname.c: New file.
15324         * lib/unictype/joininggroup_byname.gperf: New file.
15325
15326         Tests for module 'unictype/joininggroup-name'.
15327         * modules/unictype/joininggroup-name-tests: New file.
15328         * tests/unictype/test-joininggroup_name.c: New file.
15329
15330         New module 'unictype/joininggroup-name'.
15331         * modules/unictype/joininggroup-name: New file.
15332         * lib/unictype/joininggroup_name.c: New file.
15333         * lib/unictype/joininggroup_name.h: New file.
15334
15335         New module 'unictype/joiningtype-all'.
15336         * modules/unictype/joiningtype-all: New file.
15337
15338         Tests for module 'unictype/joiningtype-of'.
15339         * modules/unictype/joiningtype-of-tests: New file.
15340         * tests/unictype/test-joiningtype_of.c: New file.
15341         * tests/unictype/test-joiningtype_of.h: New file, automatically
15342         generated by gen-uni-tables.
15343
15344         New module 'unictype/joiningtype-of'.
15345         * modules/unictype/joiningtype-of: New file.
15346         * lib/unictype/joiningtype_of.c: New file.
15347         * lib/unictype/joiningtype_of.h: New file, automatically generated by
15348         gen-uni-tables.
15349
15350         Tests for module 'unictype/joiningtype-byname'.
15351         * modules/unictype/joiningtype-byname-tests: New file.
15352         * tests/unictype/test-joiningtype_byname.c: New file.
15353
15354         New module 'unictype/joiningtype-byname'.
15355         * modules/unictype/joiningtype-byname: New file.
15356         * lib/unictype/joiningtype_byname.c: New file.
15357
15358         Tests for module 'unictype/joiningtype-name'.
15359         * modules/unictype/joiningtype-name-tests: New file.
15360         * tests/unictype/test-joiningtype_name.c: New file.
15361
15362         New module 'unictype/joiningtype-name'.
15363         * modules/unictype/joiningtype-name: New file.
15364         * lib/unictype/joiningtype_name.c: New file.
15365
15366         unictype: Add support for Arabic shaping properties.
15367         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
15368         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
15369         declarations.
15370         (UC_JOINING_GROUP_*): New enumeration values.
15371         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
15372         declarations.
15373         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
15374         (unicode_joining_type): New variable.
15375         (UC_JOINING_GROUP_*): New enumeration values.
15376         (unicode_joining_group): New variable.
15377         (fill_arabicshaping, joining_type_as_c_identifier,
15378         output_joining_type_test, output_joining_type,
15379         joining_group_as_c_identifier, output_joining_group_test,
15380         output_joining_group): New functions.
15381         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
15382         fill_arabicshaping and output_joining_type_test, output_joining_type,
15383         output_joining_group_test, output_joining_group.
15384         Reported by Simon Josefsson.
15385
15386 2011-03-21  Jim Meyering  <meyering@redhat.com>
15387
15388         strftime: fix a bug in yesterday's change
15389         * lib/strftime.c (add): Accommodate width's initial value of -1.
15390         Otherwise, nstrftime would copy uninitialized data into
15391         the result buffer.
15392
15393 2011-03-21  Jim Meyering  <meyering@redhat.com>
15394
15395         tests: add strftime-tests module
15396         * tests/test-strftime.c: New file.
15397         * modules/strftime-tests: New module.
15398
15399 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15400
15401         strftime: don't assume a byte count fits in 'int'
15402         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
15403         found this problem by static analysis, using gcc -Wstrict-overflow
15404         (GCC 4.5.2, x86-64).  This reported an optimization that depended
15405         on an integer overflow having undefined behavior, but it turns out
15406         that the argument is a size, which might not fit in 'int' anyway,
15407
15408 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15409
15410         stdio: don't require ignore_value around fwrite
15411
15412         This patch works around libc bug 11959
15413         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
15414         Without this patch, applications must often write
15415         ignore_value (fwrite (...)) even though the ignore_value is
15416         not helpful here.  It's common to write many objects, using
15417         fwrite/printf/etc., and then use ferror to detect output error.
15418
15419         I considered making this patch optional, but decided against it,
15420         because libc is obviously being inconsistent here: there is no
15421         reason libc should insist that user code must inspect fwrite
15422         return's value without also insisting that it inspect printf's,
15423         putchar's, etc.  If user code wants to have a strict style where
15424         all these functions' values are checked (so that ferror need not
15425         be checked), we could add support for that style in a new gnulib
15426         module, but in the meantime it's better to be consistent and to
15427         support common usage.
15428
15429         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
15430         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
15431         that we are compiling in checking mode, and if not C++, and
15432         if not already wrapping fwrite for some other reason.
15433         (fwrite): #define to rpl_fwrite if the latter is defined.
15434
15435 2011-03-20  Bruno Haible  <bruno@clisp.org>
15436
15437         verror: Fix compilation error introduced on 2011-02-13.
15438         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
15439         instead of __attribute__.
15440         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15441
15442 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15443             Bruno Haible  <bruno@clisp.org>
15444
15445         socklen: do not depend on sys_socket
15446         While trying to modify Emacs to use gnulib's socklen module,
15447         I discovered a circular dependency: socklen depends on sys_socket
15448         and vice versa.  Emacs can use socklen, but it does not need
15449         sys_socket because it has its own substitute for sys/socket.h.
15450         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
15451         gl_TYPE_SOCKLEN_T.
15452         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
15453         gl_PREREQ_SYS_H_SOCKET.
15454         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
15455         gl_PREREQ_SYS_H_SOCKET.
15456         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
15457         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
15458         * modules/socklen (Depends-on): Do not depend on sys_socket.
15459         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
15460
15461 2011-03-20  Jim Meyering  <meyering@redhat.com>
15462
15463         maint.mk: sort file names *after* new transformation
15464         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
15465         prefix would have led to an unwarranted failure in GNU parted.
15466         Sort after that transformation.
15467
15468 2011-03-19  Jim Meyering  <meyering@redhat.com>
15469
15470         maint.mk: fix po-file syntax-check rule
15471         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
15472         Patch by Bruno Haible.
15473
15474 2011-03-19  Bruno Haible  <bruno@clisp.org>
15475
15476         socklen: Update comment.
15477         * m4/socklen.m4: Update comment about platforms.
15478
15479 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15480             Bruno Haible  <bruno@clisp.org>
15481
15482         inet_ntop, inet_pton: Simplify.
15483         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
15484         documented to provide socklen_t and we already depend on sys_socket.
15485         * modules/inet_pton (Depends-on): Likewise.
15486         * lib/arpa_inet.in.h: Adjust comment.
15487
15488 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15489             Bruno Haible  <bruno@clisp.org>
15490
15491         netdb: Simplify.
15492         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
15493         documented to provide socklen_t and we already depend on sys_socket.
15494         * lib/netdb.in.h: Adjust comment.
15495
15496 2011-03-19  Bruno Haible  <bruno@clisp.org>
15497
15498         sys_socket, netdb: Document problem with socklen_t.
15499         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
15500         platforms.
15501         * doc/posix-headers/netdb.texi: Likewise.
15502
15503 2011-03-18  Eric Blake  <eblake@redhat.com>
15504
15505         maint.mk: let po check work in VPATH build
15506         * top/maint.mk (po_file): Allow cfg.mk override.
15507         (sc_po_check): Allow VPATH use.
15508         Reported by Jiri Denemark.
15509
15510 2011-03-16  Jim Meyering  <meyering@redhat.com>
15511
15512         maint.mk: allow fine-grained syntax-check exclusion via Make variables
15513         Before, you would have had to create one .x-sc_ file per rule in order
15514         to exempt offending files.  Now, you may instead use a Make variable --
15515         usually defined in cfg.mk -- whose name identifies the affected rule.
15516         * top/maint.mk (_sc_excl): Define.
15517         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
15518         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
15519
15520 2011-03-13  Bruno Haible  <bruno@clisp.org>
15521
15522         ignore-value tests: Avoid warnings.
15523         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
15524         empty for gcc < 3.4.
15525
15526 2011-03-13  Bruno Haible  <bruno@clisp.org>
15527
15528         passfd: Fix link error on Solaris.
15529         * modules/passfd (Description): Correct.
15530         (Depends-on): Add socketlib.
15531         (Link): New section.
15532         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
15533
15534 2011-03-13  Bruno Haible  <bruno@clisp.org>
15535
15536         passfd: Fix link error on AIX 5.2.
15537         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
15538
15539 2011-03-13  Bruno Haible  <bruno@clisp.org>
15540
15541         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
15542         * lib/sys_socket.in.h: Include <stddef.h>.
15543         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
15544         CMSG_FIRSTHDR. Remove unused variable.
15545
15546 2011-03-13  Bruno Haible  <bruno@clisp.org>
15547
15548         passfd: Fix compilation error on OpenBSD.
15549         * lib/passfd.c: Include <sys/uio.h>.
15550
15551 2011-03-13  Bruno Haible  <bruno@clisp.org>
15552
15553         passfd test: Fix warnings.
15554         * tests/test-passfd.c: Include <sys/wait.h>.
15555         (main): Fix typo.
15556
15557 2011-03-13  Bruno Haible  <bruno@clisp.org>
15558
15559         passfd module, part 4, tweaks.
15560         * tests/test-passfd.c: Reorder includes.
15561         (main): Fix perror and printf calls.
15562
15563 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15564
15565         passfd module, part 4.
15566         * modules/passfd-tests: New file.
15567         * tests/test-passfd.c: New file.
15568
15569 2011-03-13  Jim Meyering  <meyering@redhat.com>
15570
15571         Makefile: rely on GNU make; derive syntax-check rule names
15572         Rather than requiring that each sc_ rule be listed as a dependent
15573         of "check", use features of GNU make to derive the list.
15574         * Makefile (syntax-check-rules): Define.
15575         (check): Depend on the new variable, not the hard-coded list.
15576
15577 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
15578             Bruno Haible  <bruno@clisp.org>
15579
15580         passfd module, part 3.
15581         * lib/passfd.h (recvfd): Add a flags argument.
15582         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
15583         (recvfd): Add a flags argument.
15584         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
15585         exists.
15586         * modules/passfd (Depends-on): Add cloexec.
15587         Suggested by Eric Blake.
15588
15589 2011-03-13  Bruno Haible  <bruno@clisp.org>
15590
15591         passfd module, part 2, tweaks.
15592         * modules/passfd (Files): Reorder.
15593         (Depends-on): Remove errno.
15594         (Include): Remove <sys/socket.h>, <sys/un.h>.
15595         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
15596         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
15597         specification header. Include <sys/socket.h> always. Don't include
15598         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
15599         (sendfd): Clarify that it sets errno when it fails.
15600         (recvfd): Fix specification.
15601
15602 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15603
15604         passfd module, part 2.
15605         * modules/passfd: New file.
15606         * lib/passfd.h: New file.
15607         * lib/passfd.c: New file.
15608
15609 2011-03-12  Bruno Haible  <bruno@clisp.org>
15610
15611         wcswidth, mbswidth: Avoid integer overflow.
15612         * lib/wcswidth.c: Include <limits.h>.
15613         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
15614         * lib/mbswidth.c: Include <limits.h>.
15615         (mbsnwidth): Avoid 'int' overflow.
15616         Reported by Jim Meyering.
15617
15618 2011-03-12  Bruno Haible  <bruno@clisp.org>
15619
15620         futimens, utimensat: Avoid endless recursion on Solaris 10.
15621         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
15622         Solaris.
15623         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
15624         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
15625
15626 2011-03-11  Jim Meyering  <meyering@redhat.com>
15627
15628         maint.mk: relax a regexp to accommodate other formatting styles
15629         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
15630         between "ngettext" and the following "(".
15631
15632 2011-03-11  Pádraig Brady <P@draigBrady.com>
15633
15634         maint.mk: suppress a false positive warning
15635         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
15636         diagnostics are marked with ngettext.
15637
15638 2011-03-10  Eric Blake  <eblake@redhat.com>
15639
15640         wchar: add explicit dependencies, for Tru64
15641         * modules/mbmemcasecoll (Depends-on): Add wchar.
15642         * modules/mbtowc (Depends-on): Likewise.
15643         * modules/vasnprintf (Depends-on): Likewise.
15644         * modules/unistdio/u-printf-args (Depends-on): Likewise.
15645         * modules/wctomb (Depends-on): Likewise.
15646         Reported by Peter O'Gorman.
15647
15648 2011-03-08  Bruno Haible  <bruno@clisp.org>
15649
15650         passfd module, part 1, tweaks.
15651         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
15652         Improve indentation. Improve AC_MSG_CHECKING messages.
15653         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
15654         gl_SOCKET_FAMILIES.
15655
15656 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15657
15658         passfd module, part 1.
15659         * m4/afunix.m4: New file.
15660         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
15661         sockets.
15662
15663 2011-03-08  Bruno Haible  <bruno@clisp.org>
15664
15665         regex-quote: New API.
15666         * lib/regex-quote.h: Include <stdbool.h>.
15667         (struct regex_quote_spec): New type.
15668         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15669         New declarations.
15670         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15671         'const struct regex_quote_spec *' argument.
15672         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
15673         (pcre_special): New constant.
15674         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15675         New functions.
15676         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15677         'const struct regex_quote_spec *' argument.
15678         * modules/regex-quote (Depends-on): Add stdbool.
15679         * tests/test-regex-quote.c (check): Update for new API. Add test for
15680         anchored results.
15681         * NEWS: Mention the API change.
15682         Reported by Reuben Thomas and Eric Blake.
15683
15684 2011-03-06  Bruno Haible  <bruno@clisp.org>
15685
15686         regex-quote: Fix creation of POSIX extended regular expressions.
15687         * lib/regex-quote.c (ere_special): Add grouping and alternation
15688         operators.
15689
15690 2011-03-05  Bruno Haible  <bruno@clisp.org>
15691
15692         doc: Improve doc regarding autopoint vs. gnulib.
15693         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
15694         disable autopoint while running autoreconf.
15695         Suggested by Ralf Wildenhues.
15696
15697 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15698
15699         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
15700         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
15701
15702 2011-03-03  Bruce Korb  <bkorb@gnu.org>
15703
15704         parse-duration: remove xalloc.h dependency
15705         * lib/parse-duration.c (parse_period): handle NULL return from
15706         strdup instead of calling xstrdup().
15707         * modules/parse-duration: remove "xalloc" dependency
15708
15709 2011-03-03  Matthew Booth  <mbooth@redhat.com>
15710
15711         bootstrap: honor m4_base when running aclocal
15712         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
15713
15714 2011-03-02  Jim Meyering  <meyering@redhat.com>
15715
15716         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
15717         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
15718         on request from Matt Booth.
15719
15720 2011-03-01  Eric Blake  <eblake@redhat.com>
15721
15722         test-link: work on Hurd
15723         * tests/test-link.h (test_link): Hurd rejects linking directories
15724         with EISDIR instead of the POSIX-mandated EPERM.
15725
15726 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
15727
15728         stdio: simplify by moving files to printf-posix, sigpipe
15729         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
15730         since this symbol is needed only if printf is replaced.
15731         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
15732         Require gl_ASM_SYMBOL_PREFIX.
15733         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
15734         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
15735         (Depends-on): Add 'raise'.
15736         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
15737         * modules/stdio (Files): Remove lib/stdio-write.c,
15738         m4/asm-underscore.m4.
15739         (Depends-on): Remove 'raise'.
15740
15741         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
15742         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
15743         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
15744         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
15745
15746 2011-02-28  Bruno Haible  <bruno@clisp.org>
15747
15748         localcharset: Assume ANSI C behaviour of free().
15749         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
15750         calling free().
15751         Suggested by Simon Josefsson <simon@josefsson.org>.
15752
15753 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
15754             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
15755             Bruno Haible  <bruno@clisp.org>  (tiny change)
15756
15757         On Cygwin, use /proc file system instead of win32 API.
15758         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
15759         Win32 file names.
15760         (DllMain): Simplify by removing Cygwin specific code.
15761         (find_shared_library_fullname): Use Linux specific implementation also
15762         for Cygwin.
15763         (get_shared_library_fullname): Update accordingly.
15764         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
15765         Win32 file names.
15766         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
15767         Cygwin specific code.
15768
15769 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
15770             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
15771
15772         Fix OpenMP flag detection for various Fortran compilers.
15773         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
15774         OpenMP-conditional compilation construct, to force compile
15775         failure with missing OpenMP flag.
15776         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
15777
15778 2011-02-25  Eric Blake  <eblake@redhat.com>
15779
15780         strstr: expand test coverage
15781         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
15782         compilation.
15783         * tests/test-memmem.c (main): Duplicate tests.
15784         * tests/test-strcasestr.c (main): Likewise.
15785         * tests/test-c-strcasestr.c (main): Likewise.
15786
15787 2011-02-25  Jim Meyering  <meyering@redhat.com>
15788
15789         maint.mk: detect missing-NL-at-EOF, too
15790         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
15791         it also detects when a file lacks a newline at EOF.
15792         (require_exactly_one_NL_at_EOF_): Renamed from
15793         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
15794         since people may well have .x-sc_... file names tied to the
15795         existing name.  Suggested by Eric Blake.
15796
15797 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15798
15799         dirname: move m4/dos.m4 functionality into lib/dosname.h
15800
15801         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
15802         extracts symbols from it, puts them into config.h; but it's much
15803         easier to use the symbols directly.  filename.h already does this,
15804         but it disagrees with dos.m4 in some respects.  This patch
15805         introduces a different include file dosname.h that packages up
15806         dos.m4, and then later we can work on merging filename.h and
15807         dosname.h.  Applications that need only the easy-to-configure
15808         symbols should consider including dosname.h rather than dirname.h.
15809         * NEWS: Mention incompatible changes.
15810         * m4/dos.m4: Remove.
15811         * lib/dosname.h, modules/dosname: New files.
15812         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
15813         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
15814         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
15815         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
15816         Include dosname.h, not dirname.h.
15817         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
15818         Include dosname.h, for definitions of symbols like ISSLASH
15819         that used to be in config.h.
15820         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
15821         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15822         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15823         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15824         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
15825         * modules/rmdir (Files): Likewise.
15826         * modules/stat (Files): Likewise.
15827         * modules/unlink (Files): Likewise.
15828         * modules/dirname-lgpl (Depends-on): Add dosname.
15829         * modules/lstat (Depends-on): Likewise.
15830         * modules/openat (Depends-on): Likewise.
15831         * modules/rmdir (Depends-on): Likewise.
15832         * modules/savewd (Depends-on): Likewise.
15833         * modules/stat (Depends-on): Likewise.
15834         * modules/unlink (Depends-on): Likewise.
15835         * modules/openat (Depends-on): Remove dirname-lgpl.
15836         * modules/savewd (Depends-on): Likewise.
15837         * tests/test-dirname.c: Do not use removed symbols like
15838         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
15839         the remaining symbols, e.g., ISSLASH ('\\').
15840
15841 2011-02-25  Eric Blake  <eblake@redhat.com>
15842
15843         strstr: revert patches that introduced bug and pessimization
15844         * lib/str-two-way.h: Add another reference.
15845         (two_way_short_needle, two_way_long_needle): Revert changes from
15846         2011-02-24; they pessimize search speed.
15847         (critical_factorization): Partially revert changes from
15848         2010-06-22; they violate the requirement that the left half of the
15849         needle be smaller than the period of the needle.
15850
15851 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15852
15853         filenamecat: remove unnecessary dependency on dirname-lgpl
15854         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
15855         is no direct dependency, just an indirect one via filenamecat-lgpl.
15856
15857         remove: remove unnecessary use of m4/dos.m4
15858         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
15859         * modules/remove (FILES): Remove m4/dos.m4.
15860
15861         * lib/openat-proc.c: Don't include dirname.h; not needed.
15862
15863         backupfile: remove unnecessary use of m4/dos.m4
15864         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
15865         of its symbols are used by the backupfile code.  backupfile.c does
15866         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
15867         for the rare case of programs that want all their backup file
15868         names to live within 8+3 limits, and dos.m4 doesn't address that.
15869         * modules/backupfile (Files): Remove m4/dos.m4.
15870
15871 2011-02-24  Jim Meyering  <meyering@redhat.com>
15872
15873         strstr: fix a bug whereby strstr would mistakenly return NULL
15874         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
15875         in period calculation.
15876         (two_way_long_needle): Likewise.
15877         The original problem was reported by Mike Stump in
15878         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
15879         Ralf Wildenhues provided the short needle and haystack.
15880         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
15881         Add a more involved test to trigger the bug in two_way_long_needle.
15882
15883 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15884
15885         gnulib-tool: remove use of bold display in help screen
15886         * gnulib-tool (func_usage): Do not use bold display anymore in the
15887         help screen.  That was just meant to be a temporary emphasis for a
15888         backward-incompatible change.
15889
15890 2011-02-23  Bruno Haible  <bruno@clisp.org>
15891
15892         Fix misindentation of preprocessor directives.
15893         * lib/argp-namefrob.h: Reindent preprocessor directives.
15894         * lib/getopt_int.h (struct _getopt_data): Likewise.
15895         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
15896         * lib/vasnprintf.c (decode_long_double): Likewise.
15897         * tests/test-argmatch.c: Insert blank lines, for clarity.
15898         * tests/test-exclude.c: Likewise.
15899
15900 2011-02-22  Bruno Haible  <bruno@clisp.org>
15901
15902         ioctl: Fix for MacOS X in 64-bit mode.
15903         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
15904         value.
15905         Suggested by Eric Blake.
15906         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
15907
15908 2011-02-22  Jim Meyering  <meyering@redhat.com>
15909
15910         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
15911         * Makefile (sc_cpp_indent_check): Don't limit the check to files
15912         in lib/.
15913
15914 2011-02-22  Eric Blake  <eblake@redhat.com>
15915
15916         maint: avoid any CDPATH issue
15917         * Makefile (sc_cpp_indent_check): Anchor cd argument.
15918
15919         maint: adjust cpp indentation for my modules, as well
15920         * Makefile (sc_cpp_indent_check): Add my name.
15921         * lib/fbufmode.c: Filter through cppi.
15922         * lib/fpurge.c: Likewise.
15923         * lib/freadable.c: Likewise.
15924         * lib/freading.c: Likewise.
15925         * lib/fwritable.c: Likewise.
15926         * lib/fwriting.c: Likewise.
15927         * lib/sigaction.c: Likewise.
15928
15929 2011-02-22  Jim Meyering  <meyering@redhat.com>
15930
15931         maint: adjust cpp indentation to reflect nesting depth
15932         I.e., in a block of code that begins with an unnested "#if",
15933         put one space between the "#" in column 1 and following token.
15934         For example,
15935         -#include <sys/vfs.h>
15936         +# include <sys/vfs.h>
15937         Do this only in .c files that are part of a module I maintain.
15938         * lib/linkat.c: Filter through cppi.
15939         * lib/nanosleep.c: Likewise.
15940         * lib/openat.c: Likewise.
15941         * lib/openat-die.c: Likewise.
15942         * lib/dup3.c: Likewise.
15943         * lib/fchownat.c: Likewise.
15944         * lib/flock.c: Likewise.
15945         * lib/fsync.c: Likewise.
15946         * lib/fts.c: Likewise.
15947         * lib/getpass.c: Likewise.
15948         * lib/gettimeofday.c: Likewise.
15949         * lib/userspec.c: Likewise.
15950         * Makefile (sc_cpp_indent_check): New rule, to check this.
15951
15952 2011-02-22  Bruno Haible  <bruno@clisp.org>
15953
15954         New module 'wctomb'.
15955         * lib/stdlib.in.h (wctomb): New declaration.
15956         * lib/wctomb.c: New file.
15957         * lib/wctomb-impl.h: New file.
15958         * m4/wctomb.m4: New file.
15959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
15960         REPLACE_WCTOMB.
15961         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
15962         REPLACE_WCTOMB.
15963         * modules/wctomb: New file.
15964         * tests/test-stdlib-c++.cc: Test signature of wctomb.
15965         * doc/posix-functions/wctomb.texi: Mention the new module.
15966         * modules/wctob (Depends-on): Add wctomb.
15967
15968 2011-02-22  Bruno Haible  <bruno@clisp.org>
15969
15970         New module 'mbtowc'.
15971         * lib/stdlib.in.h (mbtowc): New declaration.
15972         * lib/mbtowc.c: New file.
15973         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
15974         * m4/mbtowc.m4: New file.
15975         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
15976         REPLACE_MBTOWC.
15977         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
15978         REPLACE_MBTOWC.
15979         * modules/mbtowc: New file.
15980         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
15981         * doc/posix-functions/mbtowc.texi: Mention the new module.
15982         * modules/btowc (Depends-on): Add mbtowc.
15983
15984 2011-02-22  Bruno Haible  <bruno@clisp.org>
15985
15986         wcrtomb: Add more tests for native Windows platforms.
15987         * tests/test-wcrtomb-w32-1.sh: New file.
15988         * tests/test-wcrtomb-w32-2.sh: New file.
15989         * tests/test-wcrtomb-w32-3.sh: New file.
15990         * tests/test-wcrtomb-w32-4.sh: New file.
15991         * tests/test-wcrtomb-w32-5.sh: New file.
15992         * tests/test-wcrtomb-w32.c: New file.
15993         * modules/wcrtomb-tests (Files): Add them.
15994         (Makefile.am): Arrange to run these tests.
15995         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
15996         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
15997
15998 2011-02-20  Bruno Haible  <bruno@clisp.org>
15999
16000         wcrtomb: Enhance test.
16001         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
16002
16003 2011-02-20  Bruno Haible  <bruno@clisp.org>
16004
16005         mbrtowc: Tiny optimization.
16006         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
16007
16008 2011-02-20  Jim Meyering  <meyering@redhat.com>
16009
16010         test-exclude.c: remove unmatched #endif
16011         * tests/test-exclude.c: Remove stray #endif, left over from
16012         the change of a week ago.
16013
16014 2011-02-19  Jim Meyering  <meyering@redhat.com>
16015
16016         git-version-gen: skip "-dirty" check when appropriate
16017         * build-aux/git-version-gen: Don't run any git commands when the
16018         version string comes from .tarball-version.  Prior to this, we
16019         would run git update-index --refresh even from a just-unpacked
16020         tarball directory, and that could affect a .git/ directory in a
16021         parent of the build directory.  Reported by Mike Frysinger.
16022
16023 2011-02-19  Bruno Haible  <bruno@clisp.org>
16024
16025         unictype/property-byname: Reduce the size of the 'data' segment.
16026         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
16027
16028 2011-02-19  Bruno Haible  <bruno@clisp.org>
16029
16030         unictype/scripts: Reduce the size of the 'data' segment.
16031         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
16032         '%pic'.
16033         * lib/unictype/scripts_byname.gperf: Regenerated.
16034
16035 2011-02-19  Bruno Haible  <bruno@clisp.org>
16036
16037         stdint: Update documentation.
16038         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
16039
16040 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16041
16042         stdint: omit redundant check for wchar.h
16043         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
16044         always tests whether wchar.h exists, so remove the now-redundant test.
16045
16046 2011-02-18  Bruno Haible  <bruno@clisp.org>
16047
16048         stdint: Cut dependency to module 'wchar'.
16049         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
16050         include the necessary prerequisites.
16051         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
16052         * modules/stdint (Depends-on): Remove wchar.
16053         (Makefile.am): Substitute HAVE_WCHAR_H.
16054         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
16055
16056 2011-02-18  Eric Blake  <eblake@redhat.com>
16057
16058         longlong: skip, rather than fail, on cross-compilation
16059         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
16060         when cross-compiling; regression from 2011-02-16.
16061
16062 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16063
16064         * NEWS: Mention 2011-02-08 change to stdlib.
16065
16066 2011-02-17  Bruno Haible  <bruno@clisp.org>
16067
16068         getloadavg: Add comments about platforms.
16069         * m4/getloadavg.m4: Add comment.
16070         * lib/getloadavg.c: Likewise.
16071
16072 2011-02-17  Bruno Haible  <bruno@clisp.org>
16073
16074         getloadavg: Fix link error on Solaris 2.6.
16075         * modules/getloadavg (Link): New section.
16076         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
16077         linking test-getloadavg.
16078         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
16079         getloadavg.
16080
16081 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16082
16083         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
16084         It was 'int', but this doesn't match the IRIX 6.5 manual.
16085         Suggested by Bruno Haible in
16086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
16087
16088 2011-02-17  Bruno Haible  <bruno@clisp.org>
16089
16090         havelib: Fix comments.
16091         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
16092         change.
16093
16094 2011-02-17  Bruno Haible  <bruno@clisp.org>
16095
16096         havelib: Update config.rpath.
16097         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
16098
16099 2011-02-17  Bruno Haible  <bruno@clisp.org>
16100
16101         getloadavg test: Add some plausibility checks.
16102         * tests/test-getloadavg.c (check_avg): Print a warning when the value
16103         is improbable.
16104
16105 2011-02-16  Eric Blake  <eblake@redhat.com>
16106
16107         maintainer-makefile: make syntax-check a no-op from tarballs
16108         * top/maint.mk (no-vc-detected): New rule.
16109         (local-checks-available): Use it to avoid hanging if someone tries
16110         'make syntax-check' from a tarball.  Also append to any non-syntax
16111         checks already defined in cfg.mk.
16112
16113 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
16114
16115         longlong: tune, particularly for common case of c99
16116
16117         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
16118         or running anything if c99, or if unsigned long long int does not
16119         work.  In either case, we know the answer without further tests.
16120         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
16121         it at most once, and use its results for both long long int and
16122         unsigned long long int.  This is more likely to be efficient in
16123         the common case where the program wants to check for both long
16124         long int and unsigned long long int.
16125         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
16126         since the answer is already known.
16127
16128 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
16129
16130         getloadavg: set errno
16131         * lib/getloadavg.c: Set errno when returning -1.  If no other
16132         error number looks appropriate, set it to ENOSYS if the getloadavg
16133         looks like it can't possibly ever work, ENOTSUP otherwise.
16134         Suggested by Bruno Haible in
16135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
16136
16137         getloadavg: trim unused parts and speed up 'configure'
16138         * NEWS: Document this.
16139         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
16140         always compiled if getloadavg is absent.
16141         Move test code to ...
16142         * tests/test-getloadavg.c: New file, containing previous
16143         contents of test from lib/getloadavg.c.  It also contains
16144         suggestions by Bruno Haible in
16145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
16146         * modules/getloadavg-tests: New file.
16147         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
16148         Do tests in the same order as they're needed for getloadavg.c.
16149         Omit setgid-related tests that generate symbols KMEM_GROUP,
16150         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
16151         Do only the tests that are needed to see whether the system has
16152         getloadavg, moving the other tests into ...
16153         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
16154         NLIST_NAME_UNION; nobody should be using it.  Do not define
16155         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
16156         relevant, as the user of this module shouldn't care how getloadavg
16157         is implemented.
16158
16159         getloadavg: omit unused var
16160         * lib/getloadavg.c (getloadavg): Omit unused local variable.
16161
16162 2011-02-15  Jim Meyering  <meyering@redhat.com>
16163
16164         doc: update users.txt
16165         * users.txt: Update iwhd's URL.
16166
16167 2011-02-13  Bruno Haible  <bruno@clisp.org>
16168
16169         Consistent macro naming for macros that use GCC __attribute__.
16170         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
16171         _ATTRIBUTE_NONNULL_.
16172         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
16173         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
16174         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
16175         ATTRIBUTE_DEPRECATED.
16176         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
16177         ATTRIBUTE_NORETURN.
16178         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16179         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16180         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16181         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16182         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
16183         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
16184         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
16185         ATTRIBUTE_SENTINEL.
16186         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
16187         ATTRIBUTE_RETURN_CHECK.
16188         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
16189         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
16190         ATTRIBUTE_NORETURN.
16191         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
16192         Reported by Paul Eggert.
16193
16194 2011-02-13  Bruno Haible  <bruno@clisp.org>
16195
16196         Don't interfere with a program's definition of __attribute__.
16197         * lib/argp.h (__attribute__): Remove definition.
16198         (_GL_ATTRIBUTE_FORMAT): New macro.
16199         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
16200         * lib/argp-fmtstream.h (__attribute__): Remove definition.
16201         (_GL_ATTRIBUTE_FORMAT): New macro.
16202         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
16203         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
16204         GCC 3 or newer.
16205         * lib/error.h (__attribute__): Remove definition.
16206         (_GL_ATTRIBUTE_FORMAT): New macro.
16207         (error, error_at_line): Use it.
16208         * lib/hash.h (__attribute__): Remove definition.
16209         (ATTRIBUTE_WUR): Update definition. Define always.
16210         * lib/openat.h (__attribute__): Remove definition.
16211         (ATTRIBUTE_NORETURN): Update definition. Define always.
16212         * lib/sigpipe-die.h (__attribute__): Remove definition.
16213         (ATTRIBUTE_NORETURN): Update definition. Define always.
16214         * lib/vasnprintf.h (__attribute__): Remove definition.
16215         (_GL_ATTRIBUTE_FORMAT): New macro.
16216         (asnprintf, vasnprintf): Use it.
16217         * lib/xalloc.h (__attribute__): Remove definition.
16218         (ATTRIBUTE_NORETURN): Update definition. Define always.
16219         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
16220         * lib/xmemdup0.h (__attribute__): Remove definition.
16221         (ATTRIBUTE_NORETURN): Update definition. Define always.
16222         * lib/xprintf.h (__attribute__): Remove definition.
16223         (_GL_ATTRIBUTE_FORMAT): New macro.
16224         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
16225         * lib/xstrtol.h (__attribute__): Remove definition.
16226         (ATTRIBUTE_NORETURN): Update definition. Define always.
16227         * lib/xvasprintf.h (__attribute__): Remove definition.
16228         (_GL_ATTRIBUTE_FORMAT): New macro.
16229         (xasprintf, xvasprintf): Use it.
16230         * tests/test-argmatch.c (__attribute__): Remove definition.
16231         (ATTRIBUTE_NORETURN): Update definition. Define always.
16232         * tests/test-exclude.c (__attribute__): Remove definition.
16233         (ATTRIBUTE_NORETURN): Update definition. Define always.
16234         Reported by Paul Eggert.
16235
16236 2011-02-13  Bruno Haible  <bruno@clisp.org>
16237
16238         mbrtowc: Add more tests for native Windows platforms.
16239         * tests/test-mbrtowc-w32-1.sh: New file.
16240         * tests/test-mbrtowc-w32-2.sh: New file.
16241         * tests/test-mbrtowc-w32-3.sh: New file.
16242         * tests/test-mbrtowc-w32-4.sh: New file.
16243         * tests/test-mbrtowc-w32-5.sh: New file.
16244         * tests/test-mbrtowc-w32.c: New file.
16245         * modules/mbrtowc-tests (Files): Add them.
16246         (Makefile.am): Arrange to run these tests.
16247         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
16248         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
16249
16250 2011-02-13  Bruno Haible  <bruno@clisp.org>
16251
16252         mbrtowc: Work around native Windows bug.
16253         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
16254         guess when no suitable locale for testing was found.
16255         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
16256
16257 2011-02-13  Bruno Haible  <bruno@clisp.org>
16258
16259         mbsinit: Work around mingw bug.
16260         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
16261         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
16262         Windows.
16263         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
16264
16265 2011-02-13  Bruno Haible  <bruno@clisp.org>
16266
16267         mbsinit: Don't crash for a NULL argument.
16268         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
16269         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
16270
16271 2011-02-13  Bruno Haible  <bruno@clisp.org>
16272
16273         Don't interfere with a program's definition of __attribute__.
16274         * lib/stdio.in.h (__attribute__): Remove definition.
16275         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
16276         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
16277         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
16278         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
16279         * lib/string.in.h (__attribute__): Remove definition.
16280         Reported by Paul Eggert.
16281
16282 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16283
16284         stdlib: don't get in the way of non-GCC __attribute__
16285         See thread starting at
16286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
16287         Revert previous stdlib change, installing the following instead:
16288         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
16289         to get in the way of a non-GCC compiler that supports __attribute__.
16290         (_GL_ATTRIBUTE_RETURN): New macro.
16291         (_Exit): Use it instead of __attribute__.
16292
16293 2011-02-12  Bruno Haible  <bruno@clisp.org>
16294
16295         quotearg test: Avoid test failure on mingw.
16296         * tests/test-quotearg.sh: Convert the locale identifier from native
16297         Windows syntax to Unix syntax.
16298
16299 2011-02-12  Bruno Haible  <bruno@clisp.org>
16300
16301         setlocale: Prefer gnulib's override over libintl's override.
16302         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
16303         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
16304         GNULIB_defined_setlocale is set.
16305
16306 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16307
16308         stdlib: support non-GCC __attribute__
16309
16310         Fix a serious and tricky problem encountered when attempting to
16311         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
16312         5.5, but it crashed due to memory corruption on Solaris 10 with
16313         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
16314         bits that are otherwise zero.  This tagging is optional inside
16315         Emacs but is preferred and is used when __attribute__ ((__aligned
16316         (8))) works, as it does with both recent-enough GCC and with Sun C
16317         5.11.  However, Sun C 5.11 is not GCC and does not #define
16318         __GNUC__ and __GNUC_MINOR__.
16319
16320         When I added the getloadavg module to Emacs, it brought in
16321         stdlib.in.h, which contained this fragment:
16322
16323            #ifndef __attribute__
16324            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
16325            #  define __attribute__(Spec)   /* empty */
16326            # endif
16327            #endif
16328
16329         When files that include <stdlib.h> were compiled with Sun C 5.11,
16330         the above code disabled __attribute__ ((__aligned (8))), which
16331         caused variables to not be properly aligned, which eventually led
16332         to the pointer corruption mentioned above.  (This was a bit hard
16333         to diagnose, unfortunately.)
16334
16335         Several "#define __attribute__(X) /* empty */" code snippets need
16336         to be eradicated from Gnulib to work with non-GCC compilers that
16337         support __attribute__.  The Autoconf way to do this is to test for
16338         each kind of attribute that we want support for, and selectively
16339         enable that in source code.
16340
16341         Fix this problem just for stdlib.h, by adding a test for the
16342         __noreturn__ attribute, and change stdlib.in.h to use that test
16343         when needed.  This technique can be easily generalized to the
16344         other *.in.h files and attributes, and a similar technique can be
16345         used for *.h and *.c files.  This patch is enough to solve the
16346         problem for Emacs + getloadavg, and I thought I'd publish it for
16347         feedback before undertaking further, similar fixes in other
16348         modules.
16349
16350         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
16351         because it's not needed for stdlib.h.  It merely substitutes the
16352         value directly into stdlib.h.  We may well need to #define it, or
16353         similar symbols, for other modules, but it's nice to also have an
16354         option to not #define it for applications like Emacs that do not
16355         need it.
16356
16357         * lib/stdlib.in.h (__attribute__): Do not #define.
16358         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
16359         be defined only if the _Exit module is also used.
16360         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
16361         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
16362         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
16363         platforms.
16364         * modules/_Exit (Files): Add m4/attribute.m4.
16365         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
16366         * m4/attribute.m4: New file.
16367
16368 2011-02-12  Bruno Haible  <bruno@clisp.org>
16369
16370         wcsrtombs: Work around bug on native Windows.
16371         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
16372         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
16373         instead of len.
16374         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
16375
16376 2011-02-12  Bruno Haible  <bruno@clisp.org>
16377
16378         mbsrtowcs: Work around bug on native Windows.
16379         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
16380         against mingw bug.
16381         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
16382
16383 2011-02-12  Bruno Haible  <bruno@clisp.org>
16384
16385         Avoid setlocale bugs in tests.
16386         * modules/btowc (Dependencies): Add setlocale.
16387         * modules/c-strcase (Dependencies): Likewise.
16388         * modules/mbmemcasecmp (Dependencies): Likewise.
16389         * modules/mbmemcasecoll (Dependencies): Likewise.
16390         * modules/mbrtowc (Dependencies): Likewise.
16391         * modules/mbscasecmp (Dependencies): Likewise.
16392         * modules/mbscasestr (Dependencies): Likewise.
16393         * modules/mbschr (Dependencies): Likewise.
16394         * modules/mbscspn (Dependencies): Likewise.
16395         * modules/mbsinit (Dependencies): Likewise.
16396         * modules/mbsncasecmp (Dependencies): Likewise.
16397         * modules/mbsnrtowcs (Dependencies): Likewise.
16398         * modules/mbspbrk (Dependencies): Likewise.
16399         * modules/mbspcasecmp (Dependencies): Likewise.
16400         * modules/mbsrchr (Dependencies): Likewise.
16401         * modules/mbsrtowcs (Dependencies): Likewise.
16402         * modules/mbsspn (Dependencies): Likewise.
16403         * modules/mbsstr (Dependencies): Likewise.
16404         * modules/nl_langinfo (Dependencies): Likewise.
16405         * modules/quotearg (Dependencies): Likewise.
16406         * modules/unicase/locale-language (Dependencies): Likewise.
16407         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
16408         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
16409         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
16410         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
16411         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
16412         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
16413         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
16414         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
16415         * modules/vasnprintf-posix (Dependencies): Likewise.
16416         * modules/wcrtomb (Dependencies): Likewise.
16417         * modules/wcsnrtombs (Dependencies): Likewise.
16418         * modules/wcsrtombs (Dependencies): Likewise.
16419
16420 2011-02-12  Bruno Haible  <bruno@clisp.org>
16421
16422         setlocale: Workaround native Windows bug.
16423         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
16424         succeeds but sets LC_CTYPE to "C", report a failure.
16425         * tests/test-setlocale2.sh: New file.
16426         * tests/test-setlocale2.c: New file.
16427         * modules/setlocale-tests (Files): Add the new files.
16428         (Makefile.am): Enable test-setlocale2.sh test.
16429         * doc/posix-functions/setlocale.texi: Mention workaround.
16430
16431 2011-02-11  Bruno Haible  <bruno@clisp.org>
16432
16433         Tests for module 'setlocale'.
16434         * modules/setlocale-tests: New file.
16435         * tests/test-setlocale1.sh: New file.
16436         * tests/test-setlocale1.c: New file.
16437
16438         New module 'setlocale'.
16439         * lib/locale.in.h (setlocale): New declaration.
16440         * lib/setlocale.c: New file, based on
16441         gettext/gettext-runtime/intl/setlocale.c.
16442         * m4/setlocale.m4: New file.
16443         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
16444         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
16445         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
16446         REPLACE_SETLOCALE.
16447         * modules/setlocale: New file.
16448         * tests/test-locale-c++.cc: Test the declaration of setlocale.
16449         * doc/posix-functions/setlocale.texi: Mention the new module.
16450
16451 2011-02-11  Bruno Haible  <bruno@clisp.org>
16452
16453         Prepare for locale dependent tests on mingw.
16454         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
16455         because it has the wrong locale encoding.
16456         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
16457         French_France.1252 instead of "fr".
16458         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
16459         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
16460         because it has the wrong locale encoding.
16461         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
16462         native Windows, try Turkish_Turkey.65001.
16463         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
16464         Chinese_China.54936.
16465
16466         Prepare for locale dependent tests on mingw.
16467         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
16468         differently.
16469         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16470         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16471         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16472         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16473
16474 2011-02-11  Eric Blake  <eblake@redhat.com>
16475
16476         strptime: avoid compiler warnings
16477         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
16478         compiler warnings about dead code.
16479         Reported by Daniel P. Berrange.
16480
16481 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
16482
16483         doc: update users.txt
16484         * users.txt: Add rcs.
16485
16486 2011-02-10  John W. Eaton  <jwe@gnu.org>
16487
16488         doc: update users.txt
16489         * users.txt: Add octave.
16490
16491 2011-02-10  Jim Meyering  <meyering@redhat.com>
16492
16493         doc: update users.txt
16494         * users.txt: Add iwhd.
16495
16496 2011-02-09  Bruno Haible  <bruno@clisp.org>
16497
16498         gnulib-tool: Make copyright notice adjustment more robust.
16499         * gnulib-tool (func_import): In sed_transform_main_lib_file,
16500         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
16501         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
16502         License".
16503         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
16504
16505 2011-02-06  Bruno Haible  <bruno@clisp.org>
16506
16507         New module 'towctrans'.
16508         * modules/towctrans: New file.
16509         * lib/wctype.in.h (towctrans): New declaration.
16510         * lib/towctrans.c: New file.
16511         * lib/towctrans-impl.h: New file.
16512         * m4/towctrans.m4: New file.
16513         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
16514         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
16515         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
16516         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
16517         * doc/posix-functions/towctrans.texi: Mention the new module.
16518
16519 2011-02-06  Bruno Haible  <bruno@clisp.org>
16520
16521         New module 'wctrans'.
16522         * modules/wctrans: New file.
16523         * lib/wctype.in.h (wctrans): New declaration.
16524         * lib/wctrans.c: New file.
16525         * lib/wctrans-impl.h: New file.
16526         * m4/wctrans.m4: New file.
16527         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
16528         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
16529         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
16530         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
16531         * doc/posix-functions/wctrans.texi: Mention the new module.
16532
16533 2011-02-06  Bruno Haible  <bruno@clisp.org>
16534
16535         New module 'iswctype'.
16536         * modules/iswctype: New file.
16537         * lib/wctype.in.h (iswctype): New declaration.
16538         * lib/iswctype.c: New file.
16539         * lib/iswctype-impl.h: New file.
16540         * m4/iswctype.m4: New file.
16541         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
16542         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
16543         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
16544         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
16545         * doc/posix-functions/iswctype.texi: Mention the new module and the
16546         HP-UX 11.00 problem.
16547
16548 2011-02-06  Bruno Haible  <bruno@clisp.org>
16549
16550         New module 'wctype'.
16551         * modules/wctype: Change to represent the wctype() substitute.
16552         * lib/wctype.in.h (wctype): New declaration.
16553         * lib/wctype.c: New file.
16554         * lib/wctype-impl.h: New file.
16555         * m4/wctype.m4: New file.
16556         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
16557         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
16558         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
16559         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
16560         * doc/posix-functions/wctype.texi: Mention the new module and the
16561         HP-UX 11.00 problem.
16562
16563 2011-02-06  Bruno Haible  <bruno@clisp.org>
16564
16565         wctype-h: Ensure wctype_t and wctrans_t are defined.
16566         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
16567         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16568         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16569         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
16570         HAVE_WCTRANS_T.
16571         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
16572
16573 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16574
16575         flock: fix license typo
16576
16577         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
16578         omitted.
16579
16580 2011-02-08  Bruno Haible  <bruno@clisp.org>
16581
16582         Split large sed scripts, for HP-UX sed.
16583         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
16584         to avoid HP-UX limit of 99 commands, in the near future.
16585         * modules/stdlib (Makefile.am): Likewise.
16586         * modules/unistd (Makefile.am): Likewise.
16587         * modules/wchar (Makefile.am): Likewise.
16588         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16589         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
16590         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
16591
16592 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16593             Bruno Haible  <bruno@clisp.org>
16594
16595         stdlib: improve random_r modularization
16596         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
16597         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
16598         you also need the random_r module to get this material right.
16599         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
16600         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
16601         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
16602
16603 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16604
16605         stdlib: don't depend on stdint
16606         * lib/stdlib.in.h: Don't include <stdint.h> merely because
16607         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
16608         be independent of whether stdint.h is needed.
16609         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
16610         here, instead of ...
16611         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
16612         struct random_data should be using the random_r module, not just
16613         the stdlib module (which wouldn't make sense: what package needs
16614         just struct random_data without also needing random_r?).
16615         * modules/stdlib (Depends-on): Remove stdint.
16616
16617         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
16618         See the thread rooted at
16619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
16620         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
16621         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
16622         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
16623         __VMS)); previously it was always included (via fcntl--.h).
16624         (getloadavg): Do not use c_strtod.  Instead, approximate it by
16625         hand; this is good enough for load averages.  Also, do not use
16626         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
16627         flags directly if available and don't bother otherwise.  (Packages
16628         that need the extra reliability should use the modules that define
16629         these flags on older platforms that lack them.)
16630         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
16631         fcntl-safer.
16632
16633 2011-02-08  Jim Meyering  <meyering@redhat.com>
16634
16635         di-set.h, ino-map.h: add multiple-inclusion guard
16636         Technically, the guard is required only for ino-map.h, due to its
16637         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
16638         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
16639         * lib/ino-map.h: Likewise.
16640
16641 2011-02-06  Bruno Haible  <bruno@clisp.org>
16642
16643         iswblank: Ensure declaration on glibc systems.
16644         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
16645         * modules/iswblank (Dependencies): Add 'extensions'.
16646         * doc/posix-functions/iswblank.texi: Document the glibc problem.
16647
16648 2011-02-06  Bruno Haible  <bruno@clisp.org>
16649
16650         New module 'iswblank'.
16651         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
16652         * modules/iswblank: New file.
16653         * modules/wctype-h (Files): Remove lib/iswblank.c.
16654         (Makefile.am): Substitute GNULIB_ISWBLANK.
16655         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
16656         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
16657         (gl_WCTYPE_H_DEFAULTS): New macro.
16658         (gl_WCTYPE_H): Require it. Remove iswblank related code.
16659         * modules/iswblank-tests: New file.
16660         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
16661         * tests/test-wctype-h.c (main): Remove iswblank tests.
16662         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
16663         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
16664         of 'wctype-h'.
16665         * NEWS: Mention the change.
16666         * modules/mbchar (Depends-on): Add iswblank.
16667
16668 2011-02-08  Bruno Haible  <bruno@clisp.org>
16669
16670         di-set tests: Refactor.
16671         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
16672         unnecessary includes.
16673         (ASSERT): Remove macro.
16674         (main): Make C90 compliant by avoiding variable declaration after
16675         statement.
16676         * modules/di-set-tests (Files): Add tests/macros.h.
16677
16678 2011-02-08  Bruno Haible  <bruno@clisp.org>
16679
16680         ino-map tests: Refactor.
16681         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
16682         unnecessary includes.
16683         (ASSERT): Remove macro.
16684         (main): Make C90 compliant by avoiding variable declaration after
16685         statement.
16686         * modules/ino-map-tests (Files): Add tests/macros.h.
16687
16688 2011-02-08  Jim Meyering  <meyering@redhat.com>
16689
16690         di-set: add "const" to a cast
16691         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
16692         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
16693
16694 2011-02-06  Bruno Haible  <bruno@clisp.org>
16695
16696         Rename module 'wctype' to 'wctype-h'.
16697         * modules/wctype-h: Renamed from modules/wctype.
16698         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
16699         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
16700         (Files, Depends-on, Makefile.am): Update.
16701         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
16702         (Files, Makefile.am): Update.
16703         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
16704         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
16705         * doc/posix-headers/wctype.texi: Update.
16706         * doc/posix-functions/iswalnum.texi: Update.
16707         * doc/posix-functions/iswalpha.texi: Update.
16708         * doc/posix-functions/iswblank.texi: Update.
16709         * doc/posix-functions/iswcntrl.texi: Update.
16710         * doc/posix-functions/iswdigit.texi: Update.
16711         * doc/posix-functions/iswgraph.texi: Update.
16712         * doc/posix-functions/iswlower.texi: Update.
16713         * doc/posix-functions/iswprint.texi: Update.
16714         * doc/posix-functions/iswpunct.texi: Update.
16715         * doc/posix-functions/iswspace.texi: Update.
16716         * doc/posix-functions/iswupper.texi: Update.
16717         * doc/posix-functions/iswxdigit.texi: Update.
16718         * doc/posix-functions/towlower.texi: Update.
16719         * doc/posix-functions/towupper.texi: Update.
16720         * NEWS: Mention the change.
16721         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
16722         * modules/mbchar (Dependencies): Likewise.
16723         * modules/mbswidth (Dependencies): Likewise.
16724         * modules/quotearg (Dependencies): Likewise.
16725         * modules/regex (Dependencies): Likewise.
16726         * modules/wcscasecmp (Dependencies): Likewise.
16727         * modules/wcsncasecmp (Dependencies): Likewise.
16728         * modules/wcwidth (Dependencies): Likewise.
16729
16730 2011-02-06  Bruno Haible  <bruno@clisp.org>
16731
16732         New module 'wcswidth'.
16733         * modules/wcswidth: New file.
16734         * lib/wchar.in.h (wcswidth): New declaration.
16735         * lib/wcswidth.c: New file.
16736         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
16737         * m4/wcswidth.m4: New file.
16738         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
16739         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
16740         REPLACE_WCSWIDTH.
16741         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
16742         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
16743         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
16744         * doc/posix-functions/wcswidth.texi: Mention the new module.
16745
16746 2011-02-06  Bruno Haible  <bruno@clisp.org>
16747
16748         New module 'wcstok'.
16749         * modules/wcstok: New file.
16750         * lib/wchar.in.h (wcstok): New declaration.
16751         * lib/wcstok.c: New file.
16752         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
16753         * m4/wcstok.m4: New file.
16754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
16755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
16756         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
16757         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
16758         * doc/posix-functions/wcstok.texi: Mention the new module.
16759
16760 2011-02-06  Bruno Haible  <bruno@clisp.org>
16761
16762         New module 'wcsstr'.
16763         * modules/wcsstr: New file.
16764         * lib/wchar.in.h (wcsstr): New declaration.
16765         * lib/wcsstr.c: New file.
16766         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
16767         * m4/wcsstr.m4: New file.
16768         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
16769         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
16770         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
16771         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
16772         * doc/posix-functions/wcsstr.texi: Mention the new module.
16773
16774 2011-02-06  Bruno Haible  <bruno@clisp.org>
16775
16776         New module 'wcspbrk'.
16777         * modules/wcspbrk: New file.
16778         * lib/wchar.in.h (wcspbrk): New declaration.
16779         * lib/wcspbrk.c: New file.
16780         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
16781         * m4/wcspbrk.m4: New file.
16782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
16783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
16784         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
16785         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
16786         * doc/posix-functions/wcspbrk.texi: Mention the new module.
16787
16788 2011-02-06  Bruno Haible  <bruno@clisp.org>
16789
16790         New module 'wcsspn'.
16791         * modules/wcsspn: New file.
16792         * lib/wchar.in.h (wcsspn): New declaration.
16793         * lib/wcsspn.c: New file.
16794         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
16795         * m4/wcsspn.m4: New file.
16796         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
16797         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
16798         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
16799         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
16800         * doc/posix-functions/wcsspn.texi: Mention the new module.
16801
16802 2011-02-06  Bruno Haible  <bruno@clisp.org>
16803
16804         New module 'wcscspn'.
16805         * modules/wcscspn: New file.
16806         * lib/wchar.in.h (wcscspn): New declaration.
16807         * lib/wcscspn.c: New file.
16808         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
16809         * m4/wcscspn.m4: New file.
16810         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
16811         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
16812         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
16813         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
16814         * doc/posix-functions/wcscspn.texi: Mention the new module.
16815
16816 2011-02-06  Bruno Haible  <bruno@clisp.org>
16817
16818         New module 'wcsrchr'.
16819         * modules/wcsrchr: New file.
16820         * lib/wchar.in.h (wcsrchr): New declaration.
16821         * lib/wcsrchr.c: New file.
16822         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
16823         * m4/wcsrchr.m4: New file.
16824         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
16825         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
16826         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
16827         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
16828         * doc/posix-functions/wcsrchr.texi: Mention the new module.
16829
16830 2011-02-06  Bruno Haible  <bruno@clisp.org>
16831
16832         New module 'wcschr'.
16833         * modules/wcschr: New file.
16834         * lib/wchar.in.h (wcschr): New declaration.
16835         * lib/wcschr.c: New file.
16836         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
16837         * m4/wcschr.m4: New file.
16838         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
16839         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
16840         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
16841         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
16842         * doc/posix-functions/wcschr.texi: Mention the new module.
16843
16844 2011-02-06  Bruno Haible  <bruno@clisp.org>
16845
16846         New module 'wcsdup'.
16847         * modules/wcsdup: New file.
16848         * lib/wchar.in.h (wcsdup): New declaration.
16849         * lib/wcsdup.c: New file.
16850         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
16851         * m4/wcsdup.m4: New file.
16852         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
16853         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
16854         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
16855         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
16856         * doc/posix-functions/wcsdup.texi: Mention the new module.
16857
16858 2011-02-06  Bruno Haible  <bruno@clisp.org>
16859
16860         New module 'wcsxfrm'.
16861         * modules/wcsxfrm: New file.
16862         * lib/wchar.in.h (wcsxfrm): New declaration.
16863         * lib/wcsxfrm.c: New file.
16864         * lib/wcsxfrm-impl.h: New file.
16865         * m4/wcsxfrm.m4: New file.
16866         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
16867         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
16868         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
16869         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
16870         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
16871
16872 2011-02-06  Bruno Haible  <bruno@clisp.org>
16873
16874         New module 'wcscoll'.
16875         * modules/wcscoll: New file.
16876         * lib/wchar.in.h (wcscoll): New declaration.
16877         * lib/wcscoll.c: New file.
16878         * lib/wcscoll-impl.h: New file.
16879         * m4/wcscoll.m4: New file.
16880         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
16881         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
16882         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
16883         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
16884         * doc/posix-functions/wcscoll.texi: Mention the new module.
16885
16886 2011-02-06  Bruno Haible  <bruno@clisp.org>
16887
16888         New module 'wcsncasecmp'.
16889         * modules/wcsncasecmp: New file.
16890         * lib/wchar.in.h (wcsncasecmp): New declaration.
16891         * lib/wcsncasecmp.c: New file.
16892         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
16893         * m4/wcsncasecmp.m4: New file.
16894         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
16895         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
16896         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
16897         HAVE_WCSNCASECMP.
16898         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
16899         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
16900
16901 2011-02-06  Bruno Haible  <bruno@clisp.org>
16902
16903         New module 'wcscasecmp'.
16904         * modules/wcscasecmp: New file.
16905         * lib/wchar.in.h (wcscasecmp): New declaration.
16906         * lib/wcscasecmp.c: New file.
16907         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
16908         * m4/wcscasecmp.m4: New file.
16909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
16910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
16911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
16912         HAVE_WCSCASECMP.
16913         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
16914         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
16915
16916 2011-02-05  Bruno Haible  <bruno@clisp.org>
16917
16918         New module 'wcsncmp'.
16919         * modules/wcsncmp: New file.
16920         * lib/wchar.in.h (wcsncmp): New declaration.
16921         * lib/wcsncmp.c: New file.
16922         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
16923         * m4/wcsncmp.m4: New file.
16924         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
16925         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
16926         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
16927         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
16928         * doc/posix-functions/wcsncmp.texi: Mention the new module.
16929
16930 2011-02-05  Bruno Haible  <bruno@clisp.org>
16931
16932         New module 'wcscmp'.
16933         * modules/wcscmp: New file.
16934         * lib/wchar.in.h (wcscmp): New declaration.
16935         * lib/wcscmp.c: New file.
16936         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
16937         * m4/wcscmp.m4: New file.
16938         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
16939         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
16940         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
16941         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
16942         * doc/posix-functions/wcscmp.texi: Mention the new module.
16943
16944 2011-02-05  Bruno Haible  <bruno@clisp.org>
16945
16946         New module 'wcsncat'.
16947         * modules/wcsncat: New file.
16948         * lib/wchar.in.h (wcsncat): New declaration.
16949         * lib/wcsncat.c: New file.
16950         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
16951         * m4/wcsncat.m4: New file.
16952         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
16953         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
16954         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
16955         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
16956         * doc/posix-functions/wcsncat.texi: Mention the new module.
16957
16958 2011-02-05  Bruno Haible  <bruno@clisp.org>
16959
16960         New module 'wcscat'.
16961         * modules/wcscat: New file.
16962         * lib/wchar.in.h (wcscat): New declaration.
16963         * lib/wcscat.c: New file.
16964         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
16965         * m4/wcscat.m4: New file.
16966         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
16967         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
16968         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
16969         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
16970         * doc/posix-functions/wcscat.texi: Mention the new module.
16971
16972 2011-02-05  Bruno Haible  <bruno@clisp.org>
16973
16974         New module 'wcpncpy'.
16975         * modules/wcpncpy: New file.
16976         * lib/wchar.in.h (wcpncpy): New declaration.
16977         * lib/wcpncpy.c: New file.
16978         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
16979         * m4/wcpncpy.m4: New file.
16980         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
16981         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
16982         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
16983         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
16984         * doc/posix-functions/wcpncpy.texi: Mention the new module.
16985
16986 2011-02-05  Bruno Haible  <bruno@clisp.org>
16987
16988         New module 'wcsncpy'.
16989         * modules/wcsncpy: New file.
16990         * lib/wchar.in.h (wcsncpy): New declaration.
16991         * lib/wcsncpy.c: New file.
16992         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
16993         * m4/wcsncpy.m4: New file.
16994         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
16995         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
16996         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
16997         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
16998         * doc/posix-functions/wcsncpy.texi: Mention the new module.
16999
17000 2011-02-05  Bruno Haible  <bruno@clisp.org>
17001
17002         New module 'wcpcpy'.
17003         * modules/wcpcpy: New file.
17004         * lib/wchar.in.h (wcpcpy): New declaration.
17005         * lib/wcpcpy.c: New file.
17006         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
17007         * m4/wcpcpy.m4: New file.
17008         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
17009         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
17010         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
17011         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
17012         * doc/posix-functions/wcpcpy.texi: Mention the new module.
17013
17014 2011-02-05  Bruno Haible  <bruno@clisp.org>
17015
17016         New module 'wcscpy'.
17017         * modules/wcscpy: New file.
17018         * lib/wchar.in.h (wcscpy): New declaration.
17019         * lib/wcscpy.c: New file.
17020         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
17021         * m4/wcscpy.m4: New file.
17022         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
17023         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
17024         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
17025         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
17026         * doc/posix-functions/wcscpy.texi: Mention the new module.
17027
17028 2011-02-05  Bruno Haible  <bruno@clisp.org>
17029
17030         New module 'wcsnlen'.
17031         * modules/wcsnlen: New file.
17032         * lib/wchar.in.h (wcsnlen): New declaration.
17033         * lib/wcsnlen.c: New file.
17034         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
17035         * m4/wcsnlen.m4: New file.
17036         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
17037         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
17038         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
17039         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
17040         * doc/posix-functions/wcsnlen.texi: Mention the new module.
17041
17042 2011-02-05  Bruno Haible  <bruno@clisp.org>
17043
17044         New module 'wcslen'.
17045         * modules/wcslen: New file.
17046         * lib/wchar.in.h (wcslen): New declaration.
17047         * lib/wcslen.c: New file.
17048         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
17049         * m4/wcslen.m4: New file.
17050         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
17051         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
17052         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
17053         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
17054         * doc/posix-functions/wcslen.texi: Mention the new module.
17055
17056 2011-02-05  Bruno Haible  <bruno@clisp.org>
17057
17058         New module 'wmemset'.
17059         * modules/wmemset: New file.
17060         * lib/wchar.in.h (wmemset): New declaration.
17061         * lib/wmemset.c: New file.
17062         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
17063         * m4/wmemset.m4: New file.
17064         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
17065         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
17066         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
17067         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
17068         * doc/posix-functions/wmemset.texi: Mention the new module.
17069
17070 2011-02-05  Bruno Haible  <bruno@clisp.org>
17071
17072         New module 'wmemmove'.
17073         * modules/wmemmove: New file.
17074         * lib/wchar.in.h (wmemmove): New declaration.
17075         * lib/wmemmove.c: New file.
17076         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
17077         * m4/wmemmove.m4: New file.
17078         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
17079         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
17080         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
17081         HAVE_WMEMMOVE.
17082         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
17083         * doc/posix-functions/wmemmove.texi: Mention the new module.
17084
17085 2011-02-05  Bruno Haible  <bruno@clisp.org>
17086
17087         New module 'wmemcpy'.
17088         * modules/wmemcpy: New file.
17089         * lib/wchar.in.h (wmemcpy): New declaration.
17090         * lib/wmemcpy.c: New file.
17091         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
17092         * m4/wmemcpy.m4: New file.
17093         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
17094         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
17095         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
17096         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
17097         * doc/posix-functions/wmemcpy.texi: Mention the new module.
17098
17099 2011-02-05  Bruno Haible  <bruno@clisp.org>
17100
17101         New module 'wmemcmp'.
17102         * modules/wmemcmp: New file.
17103         * lib/wchar.in.h (wmemcmp): New declaration.
17104         * lib/wmemcmp.c: New file.
17105         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
17106         * m4/wmemcmp.m4: New file.
17107         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
17108         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
17109         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
17110         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
17111         * doc/posix-functions/wmemcmp.texi: Mention the new module.
17112
17113 2011-02-07  Jim Meyering  <meyering@redhat.com>
17114
17115         di-set, ino-map: new modules, from coreutils
17116         * lib/di-set.c: New file.
17117         * lib/di-set.h: Likewise.
17118         * lib/ino-map.c: Likewise.
17119         * lib/ino-map.h: Likewise.
17120         * modules/di-set: Likewise.
17121         * modules/di-set-tests: Likewise.
17122         * modules/ino-map: Likewise.
17123         * modules/ino-map-tests: Likewise.
17124         * tests/test-di-set.c: Likewise.
17125         * tests/test-ino-map.c: Likewise.
17126
17127 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17128
17129         getloadavg: merge minor changes from Emacs
17130
17131         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
17132         (getloadavg): Use memset, not bzero.
17133
17134         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
17135         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17136         clash (bug#86).
17137
17138 2010-11-14  Bruno Haible  <bruno@clisp.org>
17139
17140         Allow multiple gnulib generated replacements to coexist.
17141         * lib/getopt.in.h (struct option): Avoid identical redefinition.
17142         * lib/inttypes.in.h (imaxdiv_t): Likewise.
17143         * lib/langinfo.in.h (nl_item): Likewise.
17144         * lib/math.in.h (_NaN, NAN): Likewise.
17145         * lib/netdb.in.h (struct addrinfo): Likewise.
17146         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
17147         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
17148         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
17149         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
17150         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
17151         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
17152         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
17153         pthread_mutexattr_init, pthread_mutexattr_settype,
17154         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
17155         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
17156         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
17157         pthread_spin_trylock, pthread_spin_unlock): Likewise.
17158         * lib/sched.in.h (struct sched_param): Likewise.
17159         * lib/se-selinux.in.h (security_class_t, security_context_t,
17160         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
17161         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
17162         lsetfilecon, fsetfilecon, security_check_context,
17163         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
17164         Likewise.
17165         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
17166         Likewise.
17167         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
17168         _gl_function_taking_int_returning_void_t, union sigval,
17169         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
17170         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
17171         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17172         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
17173         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
17174         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
17175         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
17176         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
17177         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
17178         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
17179         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
17180         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
17181         socklen_t, rpl_fd_isset): Likewise.
17182         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
17183         * lib/sys_time.in.h (struct timeval): Likewise.
17184         * lib/sys_times.in.h (struct tms): Likewise.
17185         * lib/sys_utsname.in.h (struct utsname):
17186         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
17187         * lib/unistd.in.h (getpagesize): Likewise.
17188         * lib/wchar.in.h (mbstate_t): Likewise.
17189         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17190         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
17191         towlower, towupper): Likewise.
17192         Reported by Sam Steingold <sds@gnu.org>.
17193
17194 2011-02-05  Eric Blake  <eblake@redhat.com>
17195
17196         unsetenv: work around Haiku issues
17197         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
17198         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
17199
17200 2010-12-30  Bruce Korb  <bkorb@gnu.org>
17201
17202         libposix: avoid calling error() within libposix
17203         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
17204         is defined.
17205
17206 2011-02-05  Eric Blake  <eblake@redhat.com>
17207
17208         strerror_r-posix: port to cygwin
17209         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
17210         implementation.
17211         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
17212         * tests/test-strerror_r.c (main): Fix test.
17213         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17214         issue.
17215
17216 2011-02-05  Bruno Haible  <bruno@clisp.org>
17217
17218         New module 'wmemchr'.
17219         * modules/wmemchr: New file.
17220         * lib/wchar.in.h (wmemchr): New declaration.
17221         * lib/wmemchr.c: New file.
17222         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
17223         * m4/wmemchr.m4: New file.
17224         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
17225         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
17226         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
17227         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
17228         * doc/posix-functions/wmemchr.texi: Mention the new module.
17229
17230 2011-02-04  Eric Blake  <eblake@redhat.com>
17231
17232         fdopendir: detect FreeBSD bug
17233         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
17234         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
17235
17236 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17237
17238         stdbool: do not define HAVE_STDBOOL_H
17239         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
17240         AC_HEADER_STDBOOL.  All uses changed.  Do not define
17241         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
17242         imported from the latest Autoconf git.  It was motivated by Emacs,
17243         which uses gnulib but does not need HAVE_STDBOOL_H.
17244
17245 2011-02-04  Bruno Haible  <bruno@clisp.org>
17246
17247         wcsnrtombs: Prepare for new module wwcsnrtombs.
17248         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
17249         * lib/wcsnrtombs.c: Include it.
17250         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
17251
17252         wcsrtombs: Prepare for new module wwcsrtombs.
17253         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
17254         * lib/wcsrtombs.c: Include it.
17255         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
17256
17257         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
17258         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
17259         * lib/mbsnrtowcs.c: Include it.
17260         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
17261
17262         mbsrtowcs: Prepare for new module mbsrtowwcs.
17263         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
17264         * lib/mbsrtowcs.c: Include it.
17265         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
17266
17267 2011-02-04  Bruno Haible  <bruno@clisp.org>
17268
17269         vasnprintf: Reduce use of malloc for small format strings.
17270         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
17271         (arguments): Add room for the first 7 arguments.
17272         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
17273         (char_directives, u8_directives, u16_directives, u32_directives): Add
17274         room for the first 7 directives.
17275         * lib/printf-parse.c: Include <string.h>.
17276         (PRINTF_PARSE): Change memory handling code so that it uses the first
17277         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
17278         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
17279         Reported by Pádraig Brady <P@draigbrady.com>.
17280
17281 2011-01-31  Eric Blake  <eblake@redhat.com>
17282
17283         dup2: work around Haiku bug
17284         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
17285         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
17286         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17287         * tests/test-dup2.c (main): Enhance test.
17288
17289 2011-01-31  Simon Josefsson  <simon@josefsson.org>
17290
17291         doc: off_t is not available in eglibc 2.11.2 stdio.h.
17292         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
17293         declared by eglibc 2.11.2.
17294         * lib/stdio.in.h: Likewise.
17295
17296 2011-01-31  Eric Blake  <eblake@redhat.com>
17297
17298         ignore-value: add missing test dependency
17299         * tests/test-ignore-value.c: Revert previous change; stdio.h
17300         provides off_t.
17301         * modules/ignore-value-tests (Depends-on): Add missing dependency.
17302
17303 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17304
17305         mktime: clarify long_int width checking
17306         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
17307         the top level, to make it clearer that the assumption about
17308         long_int width is being checked.  See
17309         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
17310
17311 2011-01-30  Simon Josefsson  <simon@josefsson.org>
17312
17313         ignore-value: Fix self-test.
17314         * tests/test-ignore-value.c: Include sys/types.h for off_t.
17315
17316 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17317
17318         TYPE_MAXIMUM: avoid theoretically undefined behavior
17319         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
17320         negative number, which the C Standard says has undefined behavior.
17321         In practice this is not a problem, but might as well do it by the book.
17322         Reported by Rich Felker and Eric Blake; see
17323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
17324         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
17325         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17327         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
17328         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17329         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
17330
17331         mktime: #undef mktime before #defining it
17332         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
17333
17334         mktime: systematically normalize tm_isdst comparisons
17335         * lib/mktime.c (isdst_differ): New function.
17336         (__mktime_internal): Use it systematically for all isdst comparisons.
17337         This completes the fix for libc BZ #6723, and removes the need for
17338         normalizing tm_isdst.  See
17339         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
17340         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
17341
17342         mktime: fix some integer overflow issues and sidestep the rest
17343
17344         This was prompted by a bug report by Benjamin Lindner for MinGW
17345         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
17346         His bug is due to signed integer overflow (0 - INT_MIN), and I
17347         I scanned through mktime.c looking for other integer overflow
17348         problems, fixing all the bugs I found.
17349
17350         Although the C Standard says the resulting code is still not safe
17351         in the presence of integer overflow, in practice it should be good
17352         enough for all real-world two's-complement implementations, except
17353         for debugging environments that deliberately trap on integer
17354         overflow (e.g., gcc -ftrapv).
17355
17356         * lib/mktime.c (WRAPV): New macro.
17357         (SHR): Also check that long_int and time_t shift right in the
17358         usual way, before using the fast-but-unportable method.
17359         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
17360         used.  The code already assumed two's complement, so there's
17361         no need to test for alternatives.  All uses removed.
17362         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
17363         the C standard.  Problem reported by Rich Felker in
17364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
17365         (twos_complement_arithmetic): Also check long_int and time_t.
17366         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
17367         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
17368         (__mktime_internal): Avoid integer overflow with unary subtraction
17369         in two instances where -1 - X is an adequate replacement for -X,
17370         since the calculations are approximate.
17371
17372 2011-01-29  Eric Blake  <eblake@redhat.com>
17373
17374         mktime: avoid infinite loop
17375         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
17376         type; behavior is still undefined but portable to all known targets.
17377         Reported by Rich Felker.
17378
17379 2011-01-29  Simon Josefsson  <simon@josefsson.org>
17380
17381         rename, unlink, same-inode: Relicense.
17382         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
17383         * modules/unlink (License): Likewise.
17384         * modules/same-inode (License): Likewise.
17385
17386 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17387
17388         mktime: avoid problems on NetBSD 5 / i386
17389         * lib/mktime.c (long_int): New type.  This works around a problem
17390         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
17391         but time_t is 64 bits, and where I expect the existing code is
17392         wrong in some cases.
17393         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
17394         (ydhms_diff): Bring back the compile-time check for wide-enough
17395         year and yday.
17396
17397         mktime: fix misspelling in comment
17398         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
17399         This merges all recent glibc changes of importance.
17400
17401 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17402
17403         move-if-change: cope with concurrent mv of identical file.
17404         * build-aux/move-if-change (CMPPROG): Accept environment
17405         variable as an override for `cmp'.
17406         (usage): Document CMPPROG.
17407         Adjust comparison to drop stdout.  Cope with failure of mv if
17408         the target file exists and is identical to the source, for
17409         parallel builds.
17410         Report from H.J. Lu against binutils in PR binutils/12283.
17411
17412 2011-01-28  Bruce Korb  <bkorb@gnu.org>
17413
17414         * users.txt: Mention sharutils.
17415
17416 2011-01-28  Simon Josefsson  <simon@josefsson.org>
17417
17418         * users.txt: Mention OATH Toolkit.
17419
17420 2011-01-27  Bruno Haible  <bruno@clisp.org>
17421
17422         Prepare for supporting FreeBSD 10.
17423         * build-aux/config.libpath: Remove handling of freebsd1*.
17424
17425 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
17426
17427         Prepare for supporting FreeBSD 10.
17428         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
17429         match FreeBSD 10.0.
17430
17431 2011-01-27  Bruno Haible  <bruno@clisp.org>
17432
17433         vma-iter, get-rusage-as: Add OpenBSD support.
17434         * modules/vma-iter (configure.ac): Test for mquery.
17435         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
17436         * lib/vma-iter.c: Include <sys/mman.h>.
17437         (vma_iterate): Add an implementation based on mquery().
17438         * lib/resource-ext.h (get_rusage_as): Update comments.
17439         * lib/get-rusage-as.c: Likewise.
17440         * lib/get-rusage-data.c: Likewise.
17441
17442 2011-01-26  Karl Berry  <karl@gnu.org>
17443
17444         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
17445         variables to make it easier to override the makeinfo program used.
17446
17447 2011-01-26  Eric Blake  <eblake@redhat.com>
17448
17449         fcntl: work around Haiku F_DUPFD bugs
17450         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
17451         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
17452         cloexec bit on duplication.
17453         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
17454
17455 2011-01-26  Bruno Haible  <bruno@clisp.org>
17456
17457         Enable memory leak tests on AIX.
17458         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
17459         * tests/test-fprintf-posix3.c (main): Likewise.
17460
17461 2011-01-26  Bruno Haible  <bruno@clisp.org>
17462
17463         Tests for module 'get-rusage-data'.
17464         * modules/get-rusage-data-tests: New file.
17465         * tests/test-get-rusage-data.c: New file.
17466
17467         New module 'get-rusage-data'.
17468         * lib/resource-ext.h (get_rusage_data): New declaration.
17469         * lib/get-rusage-data.c: New file.
17470         * modules/get-rusage-data: New file.
17471
17472 2011-01-25  Bruno Haible  <bruno@clisp.org>
17473
17474         get-rusage-as: Allow for easier testing.
17475         * lib/resource-ext.h (get_rusage_as): Add comment.
17476         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
17477         (main): New function for interactive testing.
17478
17479 2011-01-25  Bruno Haible  <bruno@clisp.org>
17480
17481         vma-iter: Treat Haiku like BeOS.
17482         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
17483         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
17484
17485 2011-01-25  Eric Blake  <eblake@redhat.com>
17486
17487         c-stack: fix regression on cygwin when libsigsegv is present
17488         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
17489
17490 2011-01-24  Bruno Haible  <bruno@clisp.org>
17491
17492         vma-iter: Avoid empty intervals.
17493         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
17494         on an empty interval.
17495
17496 2011-01-24  Jim Meyering  <meyering@redhat.com>
17497
17498         u64: remove unnecessary #include
17499         * lib/u64.h: Don't include <stddef.h>.  It was not used.
17500
17501 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17502
17503         Allow the user to avoid the HAVE_RAW_DECL_* macros.
17504         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
17505
17506 2011-01-23  Bruno Haible  <bruno@clisp.org>
17507
17508         New module 'vma-iter'.
17509         * lib/vma-iter.h: New file.
17510         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
17511         * modules/vma-iter: New file.
17512         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
17513         for get_rusage_as_via_iterator.
17514         (vma_iterate_callback): New function.
17515         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
17516         * modules/get-rusage-as (Depends-on): Add vma-iter.
17517
17518 2011-01-23  Bruno Haible  <bruno@clisp.org>
17519
17520         uninorm: Tweak includes.
17521         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
17522         Reported by Jim Meyering.
17523
17524 2011-01-23  Bruno Haible  <bruno@clisp.org>
17525
17526         get-rusage-as: Improve on NetBSD.
17527         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
17528         /proc, like on FreeBSD.
17529
17530 2011-01-23  Jim Meyering  <meyering@redhat.com>
17531
17532         xreadlink.h: remove unnecessary #include
17533         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
17534
17535         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
17536         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
17537
17538 2011-01-23  Bruno Haible  <bruno@clisp.org>
17539
17540         get-rusage-as: Fix bug.
17541         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
17542         original limit when aborting the first loop.
17543
17544 2011-01-23  Bruno Haible  <bruno@clisp.org>
17545
17546         wctype: Ensure valid C syntax.
17547         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
17548         unconditionally, instead of gl_NEXT_HEADERS conditionally.
17549
17550 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17551
17552         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
17553         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
17554         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
17555         as they are needed only for configure's test case.
17556         This removes two unnecessary symbols from config.h.
17557
17558         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
17559         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
17560         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
17561         AC_CHECK_HEADERS_ONCE on a header that we also invoke
17562         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
17563         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
17564         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
17565         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
17566         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17567         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17568         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17569         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17570         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17571         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17572         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
17573         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17574         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17575         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17576
17577 2011-01-21  Eric Blake  <eblake@redhat.com>
17578
17579         maintainer-makefile: work with older git for submodule check
17580         * top/maint.mk (public-submodule-commit): Rewrite to avoid
17581         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
17582         Reported by Matthias Bolte.
17583
17584         bootstrap: minor portability fixes
17585         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
17586         (usage): Omit leading capital and trailing . on help phrases, per
17587         GNU Coding Standards.
17588         (check_versions, top level): Prefix messages with script name.
17589
17590 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
17591
17592         bootstrap: support --no-git option
17593         * build-aux/bootstrap: Add --no-git option, to be used when
17594         --gnulib-srcdir points to the exact desired checkout.
17595
17596 2011-01-21  Eric Blake  <eblake@redhat.com>
17597
17598         strerror_r-posix: work with glibc 2.13
17599         * lib/strerror_r.c (strerror_r): Fix return type.
17600
17601 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17602             Bruno Haible  <bruno@clisp.org>
17603
17604         uN_strstr: New unit tests.
17605         * modules/unistr/u8-strstr-tests: New file.
17606         * modules/unistr/u16-strstr-tests: New file.
17607         * modules/unistr/u32-strstr-tests: New file.
17608         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
17609         * tests/unistr/test-u8-strstr.c: New file.
17610         * tests/unistr/test-u16-strstr.c: New file.
17611         * tests/unistr/test-u32-strstr.c: New file.
17612
17613 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17614             Bruno Haible  <bruno@clisp.org>
17615
17616         Make uN_strstr functions O(n) worst-case.
17617         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
17618         16-bit and 32-bit unit cases, use the unibyte algorithm from
17619         lib/mbsstr.c.
17620         * lib/unistr/u8-strstr.c: Include <string.h>.
17621         (UNIT_IS_UINT8_T): New macro.
17622         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
17623         (U_STRLEN, U_STRNLEN): New macros.
17624         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
17625         (U_STRLEN, U_STRNLEN): New macros.
17626         * modules/unistr/u8-strstr (Depends-on): Add strstr.
17627         (configure.ac): Update required libunistring version.
17628         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
17629         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
17630         malloca.
17631         (configure.ac): Update required libunistring version.
17632         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
17633         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
17634         malloca.
17635         (configure.ac): Update required libunistring version.
17636
17637 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17638             Bruno Haible  <bruno@clisp.org>
17639
17640         Prepare for faster uN_strstr functions.
17641         * lib/str-kmp.h: Support definable UNITs.
17642         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
17643         needle_len argument.
17644         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
17645         * lib/mbscasestr.c (mbscasestr): Likewise.
17646
17647 2011-01-21  Pádraig Brady <P@draigBrady.com>
17648
17649         malloca-tests: make faster by unsetting MALLOC_PERTURB_
17650         * tests/test-malloca.c (main): Unset the environment variable
17651         to greatly speed up the test.
17652         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
17653         * modules/malloca-tests: Depend on unsetenv.
17654
17655 2011-01-21  Pádraig Brady <P@draigBrady.com>
17656
17657         ignore-value: remove stdint dependency
17658         * lib/ignore-value.h: Remove <stdint.h>
17659         * modules/ignore-value: Remove stdint dependency.
17660
17661 2011-01-21  Jim Meyering  <meyering@redhat.com>
17662
17663         maint.mk: adjust variable name to be consistent with other gl_ vars
17664         * top/maint.mk (gl_public_submodule_commit): Rename the variable
17665         to be lower case.
17666
17667 2011-01-20  Jim Meyering  <meyering@redhat.com>
17668
17669         maint.mk: make "check" depend on public-submodule-commit by default
17670         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
17671
17672 2011-01-20  Bruno Haible  <bruno@clisp.org>
17673
17674         mbfile, mbiter: Complete change from 2008-12-21.
17675         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
17676         * m4/mbiter.m4 (gl_MBITER): Likewise.
17677
17678 2011-01-20  Jim Meyering  <meyering@redhat.com>
17679
17680         init.sh: insert space between each function name and "()"
17681         * tests/init.sh: Make it a little easier to see that a function's
17682         name is "warn_", and not "warn" when looking at the first part of
17683         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
17684
17685 2011-01-20  Jim Meyering  <meyering@redhat.com>
17686
17687         mountlist: clean up code formatting
17688         * lib/mountlist.c (read_file_system_list): Split a long line,
17689         correct bracing style, use NULL in place of "(struct statfs *)0",
17690         don't parenthesize return value, add spaces around "=" and after
17691         ";-in-for-stmt".
17692
17693 2011-01-14  Markus Duft <mduft@gentoo.org>
17694
17695         mountlist: add support for Interix
17696         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
17697         Apply statvfs to all entries of /dev/fs.
17698         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
17699         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
17700
17701 2011-01-20  Jim Meyering  <meyering@redhat.com>
17702
17703         maint.mk: improve the public-submodule-commit rule
17704         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
17705         to suppress printing of its commands... unless V=1.
17706         Add git submodule's --quiet option to suppress printing of e.g.,
17707         "Entering gnulib" output.
17708         "cd" into $(srcdir) before running git submodule.
17709
17710 2011-01-20  Bruno Haible  <bruno@clisp.org>
17711
17712         include_next: Fix bug introduced on 2011-01-18.
17713         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
17714         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
17715         ac_cv_header_... variable if the second argument is not 'check'.
17716         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
17717         gl_NEXT_HEADERS_INTERNAL.
17718
17719 2011-01-20  Bruno Haible  <bruno@clisp.org>
17720
17721         Allow the user to avoid the GNULIB_TEST_* macros.
17722         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
17723         Suggested by Paul Eggert.
17724
17725 2011-01-14  Jim Meyering  <meyering@redhat.com>
17726
17727         bootstrap: avoid failure when there is no .gitmodules file
17728         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
17729         has been assigned to, even when its value is the empty string.
17730         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
17731         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
17732         Reported by John W. Eaton <jwe@gnu.org>.
17733
17734 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17735
17736         assume <ctype.h>, ..., <time.h> exist
17737         For years gnulib has been assuming the existence of the headers
17738         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
17739         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
17740         them, since they don't appear to be needed.
17741         * README (Portability guidelines): Document this.
17742         * lib/flock.c: Assume <fcntl.h> exists.
17743         * lib/regex_internal.h: Assume <locale.h> exists.
17744         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
17745         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
17746         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
17747         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
17748         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
17749         * m4/regex.m4 (gl_REGEX): Likewise.
17750         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
17751         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
17752         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
17753         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
17754         * tests/test-argp.c: Likewise.
17755         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
17756
17757         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
17758         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
17759         AA_APPLE_UNIVERSAL_BUILD.  See
17760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
17761         * NEWS: Document this.
17762
17763 2011-01-19  Eric Blake  <eblake@redhat.com>
17764
17765         c-stack: assume stack overflow if SA_SIGINFO unsupported
17766         * lib/c-stack.c (SIGACTION_WORKS): Rename...
17767         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
17768         sigaction will work.
17769         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
17770         behavior match Linux.
17771         * tests/test-c-stack.c (main): Prefer NULL for pointers.
17772
17773         stdbool-tests: accomodate Haiku
17774         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
17775
17776         binary-io: fix O_TEXT on Haiku
17777         * modules/binary-io (Depends-on): Add fcntl-h.
17778         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
17779         than blindly undefining O_TEXT.
17780         Reported by Scott McCreary.
17781
17782 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17783
17784         include_next: do not check for standard headers like stddef.h
17785
17786         I found this problem when modifying Emacs to use gnulib.
17787         I noticed that it added HAVE_STDDEF_H to config.h, even though
17788         gnulib always assumes <stddef.h> exists as per README and this
17789         symbol is unnecessary.
17790         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
17791         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
17792         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
17793         faster for headers like stddef.h that are known to exist.
17794         (gl_CHECK_NEXT_HEADERS): Use it.
17795         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
17796         rather than gl_CHECK_NEXT_HEADERS.
17797         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
17798         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
17799
17800 2011-01-18  Eric Blake  <eblake@redhat.com>
17801
17802         ansi-c++-opt: skip C++ dependency style if C++ is unused
17803         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
17804         tests when we know C++ compilation is not desired.
17805         Reported by Scott McCreary.
17806
17807 2011-01-18  Bruno Haible  <bruno@clisp.org>
17808
17809         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
17810         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
17811         (main): Perform test also when getrlimit and setrlimit don't exist or
17812         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
17813         limiting the address space size using setrlimit, compare the address
17814         space size before and after the the test.
17815         * tests/test-dprintf-posix2.c: Likewise.
17816         * tests/test-fprintf-posix3.sh: Update skip messages.
17817         * tests/test-dprintf-posix2.sh: Likewise.
17818         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
17819         * modules/dprintf-posix-tests (Depends-on): Likewise.
17820         Reported by Bruce Korb <bkorb@gnu.org> and
17821         Gary V. Vaughan <gary@gnu.org>.
17822
17823 2011-01-18  Bruno Haible  <bruno@clisp.org>
17824
17825         get-rusage-as: Improvement for Cygwin.
17826         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
17827         areas that are merely reserved.
17828
17829 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17830
17831         strftime: remove dependencies on multibyte modules
17832
17833         strftime depended on mbrlen, mbsinit, and wchar, but these modules
17834         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
17835         only if __osf__ is defined, and I suspect OSF doesn't need these
17836         other modules.  If my guess is wrong, we'll need to come up with a
17837         variant of strftime that doesn't need the multibyte modules.
17838
17839         I discovered this problem when attempting modify Emacs to use the
17840         strftime module.  With the previous gnulib, this caused Emacs to
17841         need 31 new files, ranging from lib/config.charset to
17842         m4/wint_t.m4.  This was overkill and I expect would be offputting
17843         to the Emacs maintainers.  After this change, only 6 new files are
17844         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
17845         stdbool.m4, and tm_gmtoff.m4.
17846
17847         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
17848         Suggested by Bruno Haible in
17849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
17850         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
17851         and do not check for wchar.h.
17852         * modules/strftime (Files): Remove m4/mbstate_t.m4.
17853         (Depends-on): Remove mbrlen, mbsinit, wchar.
17854
17855 2011-01-18  Bruno Haible  <bruno@clisp.org>
17856
17857         Tests for module 'get-rusage-as'.
17858         * modules/get-rusage-as-tests: New file.
17859         * tests/test-get-rusage-as.c: New file.
17860
17861         New module 'get-rusage-as'.
17862         * modules/get-rusage-as: New file.
17863         * lib/resource-ext.h: New file.
17864         * lib/get-rusage-as.c: New file.
17865
17866 2011-01-17  Eric Blake  <eblake@redhat.com>
17867
17868         sigaction: relax license from LGPLv3+ to LGPLv2+
17869         * modules/sigaction (License): Relax to LGPLv2+.
17870
17871 2011-01-14  Bruno Haible  <bruno@clisp.org>
17872
17873         filemode: Make function declarations usable in C++ mode.
17874         * lib/filemode.h: Enclose function declarations in extern "C" block.
17875         Reported by John W. Eaton <jwe@gnu.org>.
17876
17877 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
17878
17879         save-cwd: no longer include "xgetcwd.h"
17880         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
17881         This avoids a compilation failure in projects that use save-cwd
17882         without also using the xgetcwd module.
17883
17884 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17885
17886         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
17887         This is so that a program like Emacs, which needs only dtoastr,
17888         does not have to bother with distributing and compiling ftoastr
17889         and ldtoastr.
17890         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
17891         * modules/dtoastr, modules/ldtoastr: New files.
17892         * modules/ftoastr: Now works just for 'float'.
17893         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
17894         (Makefile.am): Remove ftoastr.h (not needed and no effect),
17895         dtoastr.c, ldtoastr.c.
17896
17897 2011-01-11  Jim Meyering  <meyering@redhat.com>
17898
17899         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
17900         There is no need to work around the lack of the fchdir function,
17901         since gnulib can now provide a replacement when required.
17902         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
17903         * modules/save-cwd (Depends-on): Add fchdir.
17904
17905 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17906
17907         openat, save-cwd: avoid xmalloc
17908
17909         This removes a direct (but undocumented) dependency of openat on
17910         xalloc, along with an indirect dependency via save-cwd.  It also
17911         removes a dependency of save-cwd on xgetcwd, and thereby
17912         indirectly on xalloc.  This change causes the openat substitute
17913         to fall back on save_cwd when memory is tight, and for save_cwd to
17914         fail instead of dying when memory is tight, but that's good enough.
17915         Problem and initial idea for fix reported by Bastien Roucaries in
17916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
17917
17918         * lib/openat-proc.c: Include stdlib.h (for malloc), not
17919         xalloc.h (for xmalloc).
17920         (openat_proc_name): Use malloc, not xmalloc.
17921         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
17922         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
17923
17924         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
17925         This avoids heap allocation for file names whose lengths are in
17926         the range 512..1023, with the upper bound increasing to at most
17927         4031 depending on the platform's PATH_MAX.  (We do not want
17928         pathmax.h here as it might supply a non-constant PATH_MAX.)
17929         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
17930         Perhaps they should be moved to malloca.h?
17931         (OPENAT_BUFFER_SIZE): Use them.
17932
17933 2011-01-10  Bruno Haible  <bruno@clisp.org>
17934
17935         doc: Update users.txt.
17936         * users.txt: Add recutils.
17937
17938 2011-01-09  Karl Berry  <karl@gnu.org>
17939
17940         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
17941
17942         * doc/configmake.texi: New file.
17943         * doc/gnulib.texi: Include it.
17944         * modules/configmake: Move documentation from here.
17945
17946 2011-01-09  Bruno Haible  <bruno@clisp.org>
17947
17948         Update to Unicode 6.0.0.
17949         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
17950         (get_lbp): Update for Unicode 6.0.0.
17951         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
17952         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
17953         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
17954         U+11001, U+11038..U+11046. Remove U+06DE.
17955         (uc_width): Fix bounds of planes.
17956         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17957         lib/uniwidth/width.c.
17958         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
17959         trailing whitespace removed.
17960         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
17961         without comments, but with the original copyright notice.
17962         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
17963         * lib/unicase/ignorable.h: Likewise.
17964         * lib/unicase/tocasefold.h: Likewise.
17965         * lib/unicase/tolower.h: Likewise.
17966         * lib/unicase/totitle.h: Likewise.
17967         * lib/unicase/toupper.h: Likewise.
17968         * lib/unictype/bidi_of.h: Likewise.
17969         * lib/unictype/blocks.h: Likewise.
17970         * lib/unictype/categ_C.h: Likewise.
17971         * lib/unictype/categ_Cn.h: Likewise.
17972         * lib/unictype/categ_L.h: Likewise.
17973         * lib/unictype/categ_Ll.h: Likewise.
17974         * lib/unictype/categ_Lm.h: Likewise.
17975         * lib/unictype/categ_Lo.h: Likewise.
17976         * lib/unictype/categ_Lu.h: Likewise.
17977         * lib/unictype/categ_M.h: Likewise.
17978         * lib/unictype/categ_Mc.h: Likewise.
17979         * lib/unictype/categ_Me.h: Likewise.
17980         * lib/unictype/categ_Mn.h: Likewise.
17981         * lib/unictype/categ_N.h: Likewise.
17982         * lib/unictype/categ_Nd.h: Likewise.
17983         * lib/unictype/categ_No.h: Likewise.
17984         * lib/unictype/categ_P.h: Likewise.
17985         * lib/unictype/categ_Po.h: Likewise.
17986         * lib/unictype/categ_S.h: Likewise.
17987         * lib/unictype/categ_Sc.h: Likewise.
17988         * lib/unictype/categ_Sk.h: Likewise.
17989         * lib/unictype/categ_Sm.h: Likewise.
17990         * lib/unictype/categ_So.h: Likewise.
17991         * lib/unictype/categ_of.h: Likewise.
17992         * lib/unictype/combining.h: Likewise.
17993         * lib/unictype/ctype_alnum.h: Likewise.
17994         * lib/unictype/ctype_alpha.h: Likewise.
17995         * lib/unictype/ctype_graph.h: Likewise.
17996         * lib/unictype/ctype_lower.h: Likewise.
17997         * lib/unictype/ctype_print.h: Likewise.
17998         * lib/unictype/ctype_punct.h: Likewise.
17999         * lib/unictype/ctype_upper.h: Likewise.
18000         * lib/unictype/decdigit.h: Likewise.
18001         * lib/unictype/digit.h: Likewise.
18002         * lib/unictype/numeric.h: Likewise.
18003         * lib/unictype/pr_alphabetic.h: Likewise.
18004         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18005         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18006         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18007         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18008         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18009         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18010         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18011         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18012         * lib/unictype/pr_case_ignorable.h: Likewise.
18013         * lib/unictype/pr_cased.h: Likewise.
18014         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
18015         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
18016         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
18017         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
18018         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
18019         * lib/unictype/pr_combining.h: Likewise.
18020         * lib/unictype/pr_composite.h: Likewise.
18021         * lib/unictype/pr_currency_symbol.h: Likewise.
18022         * lib/unictype/pr_decimal_digit.h: Likewise.
18023         * lib/unictype/pr_deprecated.h: Likewise.
18024         * lib/unictype/pr_format_control.h: Likewise.
18025         * lib/unictype/pr_grapheme_base.h: Likewise.
18026         * lib/unictype/pr_grapheme_extend.h: Likewise.
18027         * lib/unictype/pr_grapheme_link.h: Likewise.
18028         * lib/unictype/pr_id_continue.h: Likewise.
18029         * lib/unictype/pr_id_start.h: Likewise.
18030         * lib/unictype/pr_ideographic.h: Likewise.
18031         * lib/unictype/pr_lowercase.h: Likewise.
18032         * lib/unictype/pr_math.h: Likewise.
18033         * lib/unictype/pr_numeric.h: Likewise.
18034         * lib/unictype/pr_other_alphabetic.h: Likewise.
18035         * lib/unictype/pr_other_id_continue.h: Likewise.
18036         * lib/unictype/pr_other_math.h: Likewise.
18037         * lib/unictype/pr_punctuation.h: Likewise.
18038         * lib/unictype/pr_sentence_terminal.h: Likewise.
18039         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18040         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18041         * lib/unictype/pr_unified_ideograph.h: Likewise.
18042         * lib/unictype/pr_uppercase.h: Likewise.
18043         * lib/unictype/pr_xid_continue.h: Likewise.
18044         * lib/unictype/pr_xid_start.h: Likewise.
18045         * lib/unictype/scripts.h: Likewise.
18046         * lib/unictype/scripts_byname.gperf: Likewise.
18047         * lib/unictype/sy_java_ident.h: Likewise.
18048         * lib/unigbrk/gbrkprop.h: Likewise.
18049         * lib/unilbrk/lbrkprop1.h: Likewise.
18050         * lib/unilbrk/lbrkprop2.h: Likewise.
18051         * lib/uninorm/decomposition-table2.h: Likewise.
18052         * lib/uniwbrk/wbrkprop.h: Likewise.
18053         * tests/unicase/test-cased.c: Likewise.
18054         * tests/unicase/test-ignorable.c: Likewise.
18055         * tests/unicase/test-uc_tolower.c: Likewise.
18056         * tests/unicase/test-uc_totitle.c: Likewise.
18057         * tests/unicase/test-uc_toupper.c: Likewise.
18058         * tests/unictype/test-categ_C.c: Likewise.
18059         * tests/unictype/test-categ_Cn.c: Likewise.
18060         * tests/unictype/test-categ_L.c: Likewise.
18061         * tests/unictype/test-categ_Ll.c: Likewise.
18062         * tests/unictype/test-categ_Lm.c: Likewise.
18063         * tests/unictype/test-categ_Lo.c: Likewise.
18064         * tests/unictype/test-categ_Lu.c: Likewise.
18065         * tests/unictype/test-categ_M.c: Likewise.
18066         * tests/unictype/test-categ_Mc.c: Likewise.
18067         * tests/unictype/test-categ_Me.c: Likewise.
18068         * tests/unictype/test-categ_Mn.c: Likewise.
18069         * tests/unictype/test-categ_N.c: Likewise.
18070         * tests/unictype/test-categ_Nd.c: Likewise.
18071         * tests/unictype/test-categ_No.c: Likewise.
18072         * tests/unictype/test-categ_P.c: Likewise.
18073         * tests/unictype/test-categ_Po.c: Likewise.
18074         * tests/unictype/test-categ_S.c: Likewise.
18075         * tests/unictype/test-categ_Sc.c: Likewise.
18076         * tests/unictype/test-categ_Sk.c: Likewise.
18077         * tests/unictype/test-categ_Sm.c: Likewise.
18078         * tests/unictype/test-categ_So.c: Likewise.
18079         * tests/unictype/test-ctype_alnum.c: Likewise.
18080         * tests/unictype/test-ctype_alpha.c: Likewise.
18081         * tests/unictype/test-ctype_graph.c: Likewise.
18082         * tests/unictype/test-ctype_lower.c: Likewise.
18083         * tests/unictype/test-ctype_print.c: Likewise.
18084         * tests/unictype/test-ctype_punct.c: Likewise.
18085         * tests/unictype/test-ctype_upper.c: Likewise.
18086         * tests/unictype/test-decdigit.h: Likewise.
18087         * tests/unictype/test-digit.h: Likewise.
18088         * tests/unictype/test-numeric.h: Likewise.
18089         * tests/unictype/test-pr_alphabetic.c: Likewise.
18090         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18091         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
18092         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
18093         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18094         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18095         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18096         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18097         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18098         * tests/unictype/test-pr_case_ignorable.c: Likewise.
18099         * tests/unictype/test-pr_cased.c: Likewise.
18100         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
18101         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
18102         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
18103         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
18104         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
18105         * tests/unictype/test-pr_combining.c: Likewise.
18106         * tests/unictype/test-pr_composite.c: Likewise.
18107         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18108         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18109         * tests/unictype/test-pr_deprecated.c: Likewise.
18110         * tests/unictype/test-pr_format_control.c: Likewise.
18111         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18112         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18113         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18114         * tests/unictype/test-pr_id_continue.c: Likewise.
18115         * tests/unictype/test-pr_id_start.c: Likewise.
18116         * tests/unictype/test-pr_ideographic.c: Likewise.
18117         * tests/unictype/test-pr_lowercase.c: Likewise.
18118         * tests/unictype/test-pr_math.c: Likewise.
18119         * tests/unictype/test-pr_numeric.c: Likewise.
18120         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18121         * tests/unictype/test-pr_other_id_continue.c: Likewise.
18122         * tests/unictype/test-pr_other_math.c: Likewise.
18123         * tests/unictype/test-pr_punctuation.c: Likewise.
18124         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18125         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18126         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18127         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18128         * tests/unictype/test-pr_uppercase.c: Likewise.
18129         * tests/unictype/test-pr_xid_continue.c: Likewise.
18130         * tests/unictype/test-pr_xid_start.c: Likewise.
18131         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18132         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18133         changes.
18134         * lib/unictype/categ_Cc.h: Likewise.
18135         * lib/unictype/categ_Cf.h: Likewise.
18136         * lib/unictype/categ_Co.h: Likewise.
18137         * lib/unictype/categ_Cs.h: Likewise.
18138         * lib/unictype/categ_Lt.h: Likewise.
18139         * lib/unictype/categ_Nl.h: Likewise.
18140         * lib/unictype/categ_Pc.h: Likewise.
18141         * lib/unictype/categ_Pd.h: Likewise.
18142         * lib/unictype/categ_Pe.h: Likewise.
18143         * lib/unictype/categ_Pf.h: Likewise.
18144         * lib/unictype/categ_Pi.h: Likewise.
18145         * lib/unictype/categ_Ps.h: Likewise.
18146         * lib/unictype/categ_Z.h: Likewise.
18147         * lib/unictype/categ_Zl.h: Likewise.
18148         * lib/unictype/categ_Zp.h: Likewise.
18149         * lib/unictype/categ_Zs.h: Likewise.
18150         * lib/unictype/ctype_blank.h: Likewise.
18151         * lib/unictype/ctype_cntrl.h: Likewise.
18152         * lib/unictype/ctype_digit.h: Likewise.
18153         * lib/unictype/ctype_space.h: Likewise.
18154         * lib/unictype/ctype_xdigit.h: Likewise.
18155         * lib/unictype/mirror.h: Likewise.
18156         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18157         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18158         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18159         * lib/unictype/pr_bidi_control.h: Likewise.
18160         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18161         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18162         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18163         * lib/unictype/pr_bidi_pdf.h: Likewise.
18164         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18165         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18166         * lib/unictype/pr_dash.h: Likewise.
18167         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18168         * lib/unictype/pr_diacritic.h: Likewise.
18169         * lib/unictype/pr_extender.h: Likewise.
18170         * lib/unictype/pr_hex_digit.h: Likewise.
18171         * lib/unictype/pr_hyphen.h: Likewise.
18172         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18173         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18174         * lib/unictype/pr_ignorable_control.h: Likewise.
18175         * lib/unictype/pr_iso_control.h: Likewise.
18176         * lib/unictype/pr_join_control.h: Likewise.
18177         * lib/unictype/pr_left_of_pair.h: Likewise.
18178         * lib/unictype/pr_line_separator.h: Likewise.
18179         * lib/unictype/pr_logical_order_exception.h: Likewise.
18180         * lib/unictype/pr_non_break.h: Likewise.
18181         * lib/unictype/pr_not_a_character.h: Likewise.
18182         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18183         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18184         * lib/unictype/pr_other_id_start.h: Likewise.
18185         * lib/unictype/pr_other_lowercase.h: Likewise.
18186         * lib/unictype/pr_other_uppercase.h: Likewise.
18187         * lib/unictype/pr_paired_punctuation.h: Likewise.
18188         * lib/unictype/pr_paragraph_separator.h: Likewise.
18189         * lib/unictype/pr_pattern_syntax.h: Likewise.
18190         * lib/unictype/pr_pattern_white_space.h: Likewise.
18191         * lib/unictype/pr_private_use.h: Likewise.
18192         * lib/unictype/pr_quotation_mark.h: Likewise.
18193         * lib/unictype/pr_radical.h: Likewise.
18194         * lib/unictype/pr_soft_dotted.h: Likewise.
18195         * lib/unictype/pr_space.h: Likewise.
18196         * lib/unictype/pr_titlecase.h: Likewise.
18197         * lib/unictype/pr_variation_selector.h: Likewise.
18198         * lib/unictype/pr_white_space.h: Likewise.
18199         * lib/unictype/pr_zero_width.h: Likewise.
18200         * lib/unictype/sy_c_ident.h: Likewise.
18201         * lib/unictype/sy_c_whitespace.h: Likewise.
18202         * lib/unictype/sy_java_whitespace.h: Likewise.
18203         * lib/uninorm/composition-table.gperf: Likewise.
18204         * lib/uninorm/decomposition-table1.h: Likewise.
18205         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
18206         LB8.
18207         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18208         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18209         * modules/unictype/*: Bump version number of expected libunistring
18210         version.
18211
18212 2011-01-09  Bruno Haible  <bruno@clisp.org>
18213
18214         Update to Unicode 5.2.0.
18215         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
18216         trailing whitespace removed.
18217
18218 2011-01-09  Bruno Haible  <bruno@clisp.org>
18219
18220         New Unicode character properties, from Unicode 5.2.0.
18221         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
18222         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
18223         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
18224         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
18225         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
18226         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
18227         uc_is_property_cased, uc_is_property_case_ignorable,
18228         uc_is_property_changes_when_lowercased,
18229         uc_is_property_changes_when_uppercased,
18230         uc_is_property_changes_when_titlecased,
18231         uc_is_property_changes_when_casefolded,
18232         uc_is_property_changes_when_casemapped): New declarations.
18233         * lib/unictype/pr_byname.gperf: Add the new properties.
18234         * modules/unictype/property-byname (Depends-on): Depend on the new
18235         properties modules.
18236         * modules/unictype/property-all (Depends-on): Likewise.
18237         * MODULES.html.sh (Unicode string functions): Add
18238         unictype/property-case-ignorable, unictype/property-cased,
18239         unictype/property-changes-when-casefolded,
18240         unictype/property-changes-when-casemapped,
18241         unictype/property-changes-when-lowercased,
18242         unictype/property-changes-when-titlecased,
18243         unictype/property-changes-when-uppercased.
18244
18245         New module 'unictype/property-changes-when-casemapped'.
18246         * modules/unictype/property-changes-when-casemapped: New file.
18247         * lib/unictype/pr_changes_when_casemapped.c: New file.
18248         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
18249         generated by gen-uni-tables.
18250         * modules/unictype/property-changes-when-casemapped-tests: New file.
18251         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
18252         automatically generated by gen-uni-tables.
18253
18254         New module 'unictype/property-changes-when-casefolded'.
18255         * modules/unictype/property-changes-when-casefolded: New file.
18256         * lib/unictype/pr_changes_when_casefolded.c: New file.
18257         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
18258         generated by gen-uni-tables.
18259         * modules/unictype/property-changes-when-casefolded-tests: New file.
18260         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
18261         automatically generated by gen-uni-tables.
18262
18263         New module 'unictype/property-changes-when-titlecased'.
18264         * modules/unictype/property-changes-when-titlecased: New file.
18265         * lib/unictype/pr_changes_when_titlecased.c: New file.
18266         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
18267         generated by gen-uni-tables.
18268         * modules/unictype/property-changes-when-titlecased-tests: New file.
18269         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
18270         automatically generated by gen-uni-tables.
18271
18272         New module 'unictype/property-changes-when-uppercased'.
18273         * modules/unictype/property-changes-when-uppercased: New file.
18274         * lib/unictype/pr_changes_when_uppercased.c: New file.
18275         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
18276         generated by gen-uni-tables.
18277         * modules/unictype/property-changes-when-uppercased-tests: New file.
18278         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
18279         automatically generated by gen-uni-tables.
18280
18281         New module 'unictype/property-changes-when-lowercased'.
18282         * modules/unictype/property-changes-when-lowercased: New file.
18283         * lib/unictype/pr_changes_when_lowercased.c: New file.
18284         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
18285         generated by gen-uni-tables.
18286         * modules/unictype/property-changes-when-lowercased-tests: New file.
18287         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
18288         automatically generated by gen-uni-tables.
18289
18290         New module 'unictype/property-case-ignorable'.
18291         * modules/unictype/property-case-ignorable: New file.
18292         * lib/unictype/pr_case_ignorable.c: New file.
18293         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
18294         by gen-uni-tables.
18295         * modules/unictype/property-case-ignorable-tests: New file.
18296         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
18297         generated by gen-uni-tables.
18298
18299         New module 'unictype/property-cased'.
18300         * modules/unictype/property-cased: New file.
18301         * lib/unictype/pr_cased.c: New file.
18302         * lib/unictype/pr_cased.h: New file, automatically generated by
18303         gen-uni-tables.
18304         * modules/unictype/property-cased-tests: New file.
18305         * tests/unictype/test-pr_cased.c: New file, automatically generated by
18306         gen-uni-tables.
18307
18308 2011-01-09  Bruno Haible  <bruno@clisp.org>
18309
18310         Update to Unicode 5.2.0.
18311         * lib/gen-uni-tables.c (output_predicate, output_category,
18312         output_combclass, output_bidi_category, output_decimal_digit_test,
18313         output_decimal_digit, output_digit_test, output_digit,
18314         output_numeric_test, output_numeric, output_mirror, output_scripts,
18315         output_scripts_byname, output_blocks, output_ident_category): Fix
18316         comment header.
18317         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
18318         get_wbp.
18319         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
18320         items.
18321         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
18322         Changes_When_Lowercased, Changes_When_Uppercased,
18323         Changes_When_Titlecased, Changes_When_Casefolded,
18324         Changes_When_Casemapped.
18325         (is_property_alphabetic, is_property_default_ignorable_code_point):
18326         Update for Unicode 5.2.0.
18327         (is_property_cased, is_property_case_ignorable,
18328         is_property_changes_when_lowercased,
18329         is_property_changes_when_uppercased,
18330         is_property_changes_when_titlecased,
18331         is_property_changes_when_casefolded,
18332         is_property_changes_when_casemapped): New functions.
18333         (output_properties): Output also the properties cased, case_ignorable,
18334         changes_when_lowercased, changes_when_uppercased,
18335         changes_when_titlecased, changes_when_casefolded,
18336         changes_when_casemapped.
18337         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
18338         Unicode TR#11 revision 17 -> 19.
18339         (LBP_CP): New enumeration value.
18340         (LBP_*): Adjust values accordingly.
18341         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18342         TR#14 revision 22 -> 24.
18343         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
18344         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
18345         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18346         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
18347         is_WBP_MIDLETTER.
18348         (output_composition_tables): Allow for 24 bits instead of 16 bits in
18349         the code1 and code2 of each composition rule.
18350         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
18351         * lib/unicase/ignorable.h: Likewise.
18352         * lib/unicase/tocasefold.h: Likewise.
18353         * lib/unicase/tolower.h: Likewise.
18354         * lib/unicase/totitle.h: Likewise.
18355         * lib/unicase/toupper.h: Likewise.
18356         * lib/unictype/bidi_of.h: Likewise.
18357         * lib/unictype/blocks.h: Likewise.
18358         * lib/unictype/categ_C.h: Likewise.
18359         * lib/unictype/categ_Cf.h: Likewise.
18360         * lib/unictype/categ_Cn.h: Likewise.
18361         * lib/unictype/categ_L.h: Likewise.
18362         * lib/unictype/categ_Ll.h: Likewise.
18363         * lib/unictype/categ_Lm.h: Likewise.
18364         * lib/unictype/categ_Lo.h: Likewise.
18365         * lib/unictype/categ_Lu.h: Likewise.
18366         * lib/unictype/categ_M.h: Likewise.
18367         * lib/unictype/categ_Mc.h: Likewise.
18368         * lib/unictype/categ_Mn.h: Likewise.
18369         * lib/unictype/categ_N.h: Likewise.
18370         * lib/unictype/categ_Nd.h: Likewise.
18371         * lib/unictype/categ_Nl.h: Likewise.
18372         * lib/unictype/categ_No.h: Likewise.
18373         * lib/unictype/categ_P.h: Likewise.
18374         * lib/unictype/categ_Pd.h: Likewise.
18375         * lib/unictype/categ_Po.h: Likewise.
18376         * lib/unictype/categ_S.h: Likewise.
18377         * lib/unictype/categ_Sc.h: Likewise.
18378         * lib/unictype/categ_So.h: Likewise.
18379         * lib/unictype/categ_of.h: Likewise.
18380         * lib/unictype/combining.h: Likewise.
18381         * lib/unictype/ctype_alnum.h: Likewise.
18382         * lib/unictype/ctype_alpha.h: Likewise.
18383         * lib/unictype/ctype_graph.h: Likewise.
18384         * lib/unictype/ctype_lower.h: Likewise.
18385         * lib/unictype/ctype_print.h: Likewise.
18386         * lib/unictype/ctype_punct.h: Likewise.
18387         * lib/unictype/ctype_upper.h: Likewise.
18388         * lib/unictype/decdigit.h: Likewise.
18389         * lib/unictype/digit.h: Likewise.
18390         * lib/unictype/numeric.h: Likewise.
18391         * lib/unictype/pr_alphabetic.h: Likewise.
18392         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18393         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18394         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18395         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18396         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18397         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18398         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18399         * lib/unictype/pr_combining.h: Likewise.
18400         * lib/unictype/pr_composite.h: Likewise.
18401         * lib/unictype/pr_currency_symbol.h: Likewise.
18402         * lib/unictype/pr_dash.h: Likewise.
18403         * lib/unictype/pr_decimal_digit.h: Likewise.
18404         * lib/unictype/pr_deprecated.h: Likewise.
18405         * lib/unictype/pr_diacritic.h: Likewise.
18406         * lib/unictype/pr_extender.h: Likewise.
18407         * lib/unictype/pr_grapheme_base.h: Likewise.
18408         * lib/unictype/pr_grapheme_extend.h: Likewise.
18409         * lib/unictype/pr_grapheme_link.h: Likewise.
18410         * lib/unictype/pr_id_continue.h: Likewise.
18411         * lib/unictype/pr_id_start.h: Likewise.
18412         * lib/unictype/pr_ideographic.h: Likewise.
18413         * lib/unictype/pr_ignorable_control.h: Likewise.
18414         * lib/unictype/pr_logical_order_exception.h: Likewise.
18415         * lib/unictype/pr_lowercase.h: Likewise.
18416         * lib/unictype/pr_numeric.h: Likewise.
18417         * lib/unictype/pr_other_alphabetic.h: Likewise.
18418         * lib/unictype/pr_punctuation.h: Likewise.
18419         * lib/unictype/pr_sentence_terminal.h: Likewise.
18420         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18421         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18422         * lib/unictype/pr_unified_ideograph.h: Likewise.
18423         * lib/unictype/pr_uppercase.h: Likewise.
18424         * lib/unictype/pr_xid_continue.h: Likewise.
18425         * lib/unictype/pr_xid_start.h: Likewise.
18426         * lib/unictype/pr_zero_width.h: Likewise.
18427         * lib/unictype/scripts.h: Likewise.
18428         * lib/unictype/scripts_byname.gperf: Likewise.
18429         * lib/unictype/sy_java_ident.h: Likewise.
18430         * lib/unigbrk/gbrkprop.h: Likewise.
18431         * lib/unilbrk/lbrkprop1.h: Likewise.
18432         * lib/unilbrk/lbrkprop2.h: Likewise.
18433         * lib/unilbrk/lbrktables.h: Likewise.
18434         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
18435         LBP_CP. Implement rule LB30.
18436         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
18437         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
18438         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
18439         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
18440         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
18441         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
18442         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
18443         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
18444         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
18445         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
18446         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
18447         bits instead of 16 bits in the code1 and code2 of each composition
18448         rule.
18449         (uc_composition): Update for Unicode 5.2.0.
18450         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
18451         * lib/uninorm/decomposition-table2.h: Likewise.
18452         * lib/uniwbrk/wbrkprop.h: Likewise.
18453         * tests/unicase/test-cased.c: Likewise.
18454         * tests/unicase/test-ignorable.c: Likewise.
18455         * tests/unicase/test-uc_tolower.c: Likewise.
18456         * tests/unicase/test-uc_totitle.c: Likewise.
18457         * tests/unicase/test-uc_toupper.c: Likewise.
18458         * tests/unictype/test-categ_C.c: Likewise.
18459         * tests/unictype/test-categ_Cf.c: Likewise.
18460         * tests/unictype/test-categ_Cn.c: Likewise.
18461         * tests/unictype/test-categ_L.c: Likewise.
18462         * tests/unictype/test-categ_Ll.c: Likewise.
18463         * tests/unictype/test-categ_Lm.c: Likewise.
18464         * tests/unictype/test-categ_Lo.c: Likewise.
18465         * tests/unictype/test-categ_Lu.c: Likewise.
18466         * tests/unictype/test-categ_M.c: Likewise.
18467         * tests/unictype/test-categ_Mc.c: Likewise.
18468         * tests/unictype/test-categ_Mn.c: Likewise.
18469         * tests/unictype/test-categ_N.c: Likewise.
18470         * tests/unictype/test-categ_Nd.c: Likewise.
18471         * tests/unictype/test-categ_Nl.c: Likewise.
18472         * tests/unictype/test-categ_No.c: Likewise.
18473         * tests/unictype/test-categ_P.c: Likewise.
18474         * tests/unictype/test-categ_Pd.c: Likewise.
18475         * tests/unictype/test-categ_Po.c: Likewise.
18476         * tests/unictype/test-categ_S.c: Likewise.
18477         * tests/unictype/test-categ_Sc.c: Likewise.
18478         * tests/unictype/test-categ_So.c: Likewise.
18479         * tests/unictype/test-ctype_alnum.c: Likewise.
18480         * tests/unictype/test-ctype_alpha.c: Likewise.
18481         * tests/unictype/test-ctype_graph.c: Likewise.
18482         * tests/unictype/test-ctype_lower.c: Likewise.
18483         * tests/unictype/test-ctype_print.c: Likewise.
18484         * tests/unictype/test-ctype_punct.c: Likewise.
18485         * tests/unictype/test-ctype_upper.c: Likewise.
18486         * tests/unictype/test-decdigit.h: Likewise.
18487         * tests/unictype/test-digit.h: Likewise.
18488         * tests/unictype/test-numeric.h: Likewise.
18489         * tests/unictype/test-pr_alphabetic.c: Likewise.
18490         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18491         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18492         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
18493         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18494         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18495         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18496         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18497         * tests/unictype/test-pr_combining.c: Likewise.
18498         * tests/unictype/test-pr_composite.c: Likewise.
18499         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18500         * tests/unictype/test-pr_dash.c: Likewise.
18501         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18502         * tests/unictype/test-pr_deprecated.c: Likewise.
18503         * tests/unictype/test-pr_diacritic.c: Likewise.
18504         * tests/unictype/test-pr_extender.c: Likewise.
18505         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18506         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18507         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18508         * tests/unictype/test-pr_id_continue.c: Likewise.
18509         * tests/unictype/test-pr_id_start.c: Likewise.
18510         * tests/unictype/test-pr_ideographic.c: Likewise.
18511         * tests/unictype/test-pr_ignorable_control.c: Likewise.
18512         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
18513         * tests/unictype/test-pr_lowercase.c: Likewise.
18514         * tests/unictype/test-pr_numeric.c: Likewise.
18515         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18516         * tests/unictype/test-pr_punctuation.c: Likewise.
18517         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18518         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18519         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18520         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18521         * tests/unictype/test-pr_uppercase.c: Likewise.
18522         * tests/unictype/test-pr_xid_continue.c: Likewise.
18523         * tests/unictype/test-pr_xid_start.c: Likewise.
18524         * tests/unictype/test-pr_zero_width.c: Likewise.
18525         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18526         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
18527         changed behaviour: line breaking is now disallowed between a letter
18528         or '=' and '('.
18529         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18530         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18531         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18532         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
18533         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18534         lib/uniwidth/width.c.
18535         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
18536         without comments, but with the original copyright notice.
18537         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18538         changes.
18539         * lib/unictype/categ_Cc.h: Likewise.
18540         * lib/unictype/categ_Co.h: Likewise.
18541         * lib/unictype/categ_Cs.h: Likewise.
18542         * lib/unictype/categ_Lt.h: Likewise.
18543         * lib/unictype/categ_Me.h: Likewise.
18544         * lib/unictype/categ_Pc.h: Likewise.
18545         * lib/unictype/categ_Pe.h: Likewise.
18546         * lib/unictype/categ_Pf.h: Likewise.
18547         * lib/unictype/categ_Pi.h: Likewise.
18548         * lib/unictype/categ_Ps.h: Likewise.
18549         * lib/unictype/categ_Sk.h: Likewise.
18550         * lib/unictype/categ_Sm.h: Likewise.
18551         * lib/unictype/categ_Z.h: Likewise.
18552         * lib/unictype/categ_Zl.h: Likewise.
18553         * lib/unictype/categ_Zp.h: Likewise.
18554         * lib/unictype/categ_Zs.h: Likewise.
18555         * lib/unictype/ctype_blank.h: Likewise.
18556         * lib/unictype/ctype_cntrl.h: Likewise.
18557         * lib/unictype/ctype_digit.h: Likewise.
18558         * lib/unictype/ctype_space.h: Likewise.
18559         * lib/unictype/ctype_xdigit.h: Likewise.
18560         * lib/unictype/mirror.h: Likewise.
18561         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18562         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18563         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18564         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18565         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18566         * lib/unictype/pr_bidi_control.h: Likewise.
18567         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18568         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18569         * lib/unictype/pr_bidi_pdf.h: Likewise.
18570         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18571         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18572         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18573         * lib/unictype/pr_format_control.h: Likewise.
18574         * lib/unictype/pr_hex_digit.h: Likewise.
18575         * lib/unictype/pr_hyphen.h: Likewise.
18576         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18577         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18578         * lib/unictype/pr_iso_control.h: Likewise.
18579         * lib/unictype/pr_join_control.h: Likewise.
18580         * lib/unictype/pr_left_of_pair.h: Likewise.
18581         * lib/unictype/pr_line_separator.h: Likewise.
18582         * lib/unictype/pr_math.h: Likewise.
18583         * lib/unictype/pr_non_break.h: Likewise.
18584         * lib/unictype/pr_not_a_character.h: Likewise.
18585         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18586         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18587         * lib/unictype/pr_other_id_continue.h: Likewise.
18588         * lib/unictype/pr_other_id_start.h: Likewise.
18589         * lib/unictype/pr_other_lowercase.h: Likewise.
18590         * lib/unictype/pr_other_math.h: Likewise.
18591         * lib/unictype/pr_other_uppercase.h: Likewise.
18592         * lib/unictype/pr_paired_punctuation.h: Likewise.
18593         * lib/unictype/pr_paragraph_separator.h: Likewise.
18594         * lib/unictype/pr_pattern_syntax.h: Likewise.
18595         * lib/unictype/pr_pattern_white_space.h: Likewise.
18596         * lib/unictype/pr_private_use.h: Likewise.
18597         * lib/unictype/pr_quotation_mark.h: Likewise.
18598         * lib/unictype/pr_radical.h: Likewise.
18599         * lib/unictype/pr_soft_dotted.h: Likewise.
18600         * lib/unictype/pr_space.h: Likewise.
18601         * lib/unictype/pr_titlecase.h: Likewise.
18602         * lib/unictype/pr_variation_selector.h: Likewise.
18603         * lib/unictype/pr_white_space.h: Likewise.
18604         * lib/unictype/sy_c_ident.h: Likewise.
18605         * lib/unictype/sy_c_whitespace.h: Likewise.
18606         * lib/unictype/sy_java_whitespace.h: Likewise.
18607         * modules/uni*/*: Bump version number of expected libunistring version.
18608         Reported by Simon Josefsson.
18609
18610 2011-01-09  Karl Heuer  <kwzh@gnu.org>
18611
18612         useless-if-before-free: fix typo in --help and make the internal,
18613         automatic version date update process work once again.
18614         --help output contained a NUL character instead of the
18615         backslash-zero that was intended.  Also, the "must lie within
18616         the first 8 lines" line is on line 9, and hence not getting
18617         automatically updated.
18618         * build-aux/useless-if-before-free: Fix the former by adding a
18619         backslash, and the latter by condensing the three lines of what-it-does
18620         to a single line, leaving one line of slack for the future.
18621
18622 2011-01-09  Bruno Haible  <bruno@clisp.org>
18623
18624         uniwidth/width: Fix width of U+1D173..U+1D17A.
18625         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
18626         symbolic_width, output_width_property_test): New functions.
18627         (main): Invoke output_nonspacing_property, output_width_property_test.
18628         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
18629         U+1D173..U+1D17A.
18630         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
18631         1.
18632         * modules/uniwidth/*: Bump version number of expected libunistring
18633         version.
18634         * modules/unilbrk/*: Likewise.
18635
18636 2011-01-08  Bruno Haible  <bruno@clisp.org>
18637
18638         uninorm tests: Preserve copyright of Unicode data file.
18639         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
18640         Mention modifications.
18641
18642 2011-01-08  Bruno Haible  <bruno@clisp.org>
18643
18644         gen-uni-tables: Prepare for Unicode 5.2.0.
18645         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
18646         (debug_output_lbp, output_lbp): Update.
18647
18648 2011-01-08  Bruno Haible  <bruno@clisp.org>
18649
18650         unilbrk: Clarify gen-uni-tables.c code.
18651         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
18652         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
18653         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
18654
18655 2011-01-07  Bruno Haible  <bruno@clisp.org>
18656
18657         strtod: Restore errno when successfully parsing Infinity or NaN.
18658         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
18659         restore the original errno.
18660
18661 2011-01-07  Bruno Haible  <bruno@clisp.org>
18662
18663         remove test: Avoid failure on HP-UX 11.
18664         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
18665
18666 2011-01-07  Bruno Haible  <bruno@clisp.org>
18667
18668         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
18669         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
18670         error code.
18671
18672 2011-01-07  Pádraig Brady <P@draigBrady.com>
18673
18674         ignore-value: fixup comments, and add Eric Blake
18675         as an author since he rewrote the macros.
18676         * lib/ignore-value.h (ignore_value):  State that
18677         we now support aggregates.  Also specify exactly
18678         when the GCC warn_unused_result feature was added.
18679
18680 2011-01-06  Eric Blake  <eblake@redhat.com>
18681
18682         ignore-value: support aggregate types
18683         * lib/ignore-value.h (ignore_value): Provide separate gcc
18684         definition.
18685         * modules/ignore-value-tests: New test module.
18686         * tests/test-ignore-value.c: New test.
18687
18688         maint.mk: improve sc_prohibit_strcmp regex
18689         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
18690         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
18691         definition of STRNEQ.
18692
18693         signal: work around Haiku issue with SIGBUS
18694         * lib/siglist.h: Add comment.
18695         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
18696         strsignal's favoring of SIGSEGV.
18697         * tests/test-signal.c (main): Avoid test failure.
18698         * doc/posix-headers/signal.texi (signal.h): Document the issue.
18699         Reported by Scott McCreary.
18700
18701         maint.mk: add pre-release check to ensure submodule commits are public
18702         * top/maint.mk (public-submodule-commit): New rule.
18703         (submodule-checks): New variable.
18704         (alpha beta stable): Depend on the variable.
18705
18706 2011-01-05  Pádraig Brady <P@draigBrady.com>
18707         and Jim Meyering  <meyering@redhat.com>
18708
18709         ignore-value: make ignore_value more generic; deprecate ignore_ptr
18710         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
18711         (ATTRIBUTE_DEPRECATED): Define.
18712         (_ignore_case): New function.
18713         (ignore_value): New macro, to replace the old function.
18714         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
18715         * modules/ignore-value (Depends-on): Add stdint.
18716
18717 2011-01-04  Eric Blake  <eblake@redhat.com>
18718
18719         doc: regenerate INSTALL
18720         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
18721         @firstparagraphindent support, now that autoconf dropped it.
18722         (INSTALL_PRELUDE): Reinstate old macro.
18723         * doc/install.texi: Resync from autoconf.
18724         * doc/INSTALL: Reflect recent autoconf update.
18725         * doc/INSTALL.ISO: Likewise.
18726         * doc/INSTALL.UTF-8: Likewise.
18727         Reported by Karl Berry.
18728
18729 2011-01-04  Bruce Korb  <address@hidden>
18730
18731         git-version-gen: avoid a sub-shell
18732         * build-aux/git-version-gen: Redirect stderr in `...` via
18733         "exec 2>...", rather than via an added sub-shell.
18734
18735 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
18736
18737         git-version-gen: use (...) rather than sh -c '...'
18738         * build-aux/git-version-gen: Rather than hard-coding a shell's name
18739         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
18740
18741 2011-01-03  Jim Meyering  <meyering@redhat.com>
18742
18743         git-version-gen: convert leading TABs to spaces
18744         * build-aux/git-version-gen: Expand leading TABs.
18745
18746         git-version-gen: handle failed "git rev-list"
18747         * build-aux/git-version-gen: Rather than leaking a "fatal" error
18748         from git and proceeding as if it had succeeded but printed no SHA1
18749         checksums, suppress the diagnostic and handle the failure.
18750         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
18751
18752         git-version-gen: include command name in one more diagnostic
18753         * build-aux/git-version-gen: When the required .tarball-version file
18754         was missing or unreadable, you might see the diagnostic from "cat",
18755         but no trace of the name of the invoking script.  Now, you still see
18756         the diagnostic from cat, but also get one from "git-version-gen: ".
18757         Inspired by a patch from Bruce Korb.
18758
18759         update-copyright: adjust test to match changed code
18760         * tests/test-update-copyright.sh: Change test's expected output
18761         to match new actual output.
18762
18763 2011-01-02  Bruno Haible  <bruno@clisp.org>
18764
18765         getlogin_r: Avoid test failure on HP-UX 11.
18766         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
18767         ERANGE when the second argument is zero.
18768         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
18769         portability problem.
18770
18771 2011-01-02  Bruce Korb  <bkorb@gnu.org>
18772
18773         * build-aux/update-copyright: doc Simon's changes
18774
18775 2011-01-02  Simon Josefsson  <simon@josefsson.org>
18776
18777         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
18778         environment variable.
18779
18780 2011-01-02  Bruno Haible  <bruno@clisp.org>
18781
18782         unigbrk: Avoid gcc warnings.
18783         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
18784         unused variable.
18785         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
18786         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
18787         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
18788         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
18789         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
18790         Change type of first argument to 'const char *'.
18791         (main): Remove unused variable.
18792         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
18793         type of first argument to 'const char *'.
18794         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
18795         Likewise.
18796         (main): Change type of variable 's'.
18797         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
18798         to 'int'.
18799
18800 2011-01-02  Bruno Haible  <bruno@clisp.org>
18801
18802         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
18803         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
18804         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
18805         bug.
18806         * lib/pwrite.c: Undo 2010-12-31 patch.
18807         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
18808
18809 2011-01-02  Bruno Haible  <bruno@clisp.org>
18810
18811         pread: Fix test whether it works.
18812         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
18813
18814 2011-01-02  Bruno Haible  <bruno@clisp.org>
18815
18816         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
18817         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
18818         ends in "6". Don't require a specific month name. Try also the locale
18819         names found on HP-UX 11 and Solaris 7.
18820
18821 2011-01-02  Bruno Haible  <bruno@clisp.org>
18822
18823         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
18824         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
18825         C linkage.
18826         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
18827
18828 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18829
18830         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
18831         for consistency, since the "cluster" term is not used elsewhere.
18832         * lib/unigbrk.in.h: Update name.
18833         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
18834         * lib/unigbrk/u16-grapheme-next.c: Update name.
18835         * lib/unigbrk/u16-grapheme-prev.c: Update name.
18836         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
18837         * lib/unigbrk/u32-grapheme-next.c: Update name.
18838         * lib/unigbrk/u32-grapheme-prev.c: Update name.
18839         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
18840         * lib/unigbrk/u8-grapheme-next.c: Update name.
18841         * lib/unigbrk/u8-grapheme-prev.c: Update name.
18842         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
18843         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
18844         Suggested by Bruno Haible.
18845
18846 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18847
18848         Remove module 'u8-grapheme-len' as too redundant with
18849         'u8-grapheme-next'.
18850         * modules/unigbrk/u8-grapheme-len: Delete file.
18851         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
18852         * lib/unigbrk.in.h: Remove prototype for deleted function.
18853         * lib/unigbrk/u8-grapheme-len.c: Delete file.
18854         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
18855
18856         Remove module 'u16-grapheme-len' as too redundant with
18857         'u16-grapheme-next'.
18858         * modules/unigbrk/u16-grapheme-len: Delete file.
18859         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
18860         * lib/unigbrk.in.h: Remove prototype for deleted function.
18861         * lib/unigbrk/u16-grapheme-len.c: Delete file.
18862         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
18863
18864         Remove module 'u32-grapheme-len' as too redundant with
18865         'u32-grapheme-next'.
18866         * modules/unigbrk/u32-grapheme-len: Delete file.
18867         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
18868         * lib/unigbrk.in.h: Remove prototype for deleted function.
18869         * lib/unigbrk/u32-grapheme-len.c: Delete file.
18870         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
18871
18872         Suggested by Bruno Haible.
18873
18874 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18875
18876         * unigbrk.in.h: Fix typo: "ben" => "been".
18877         Reported by Bruno Haible.
18878
18879 2011-01-01  Jim Meyering  <meyering@redhat.com>
18880
18881         maint: update almost all copyright ranges to include 2011
18882         Run the new "make update-copyright" rule.
18883
18884 2011-01-01  Jim Meyering  <meyering@redhat.com>
18885
18886         maint: update-copyright: exempt doc/INSTALL*
18887         * Makefile (update-copyright): Also exclude doc/INSTALL*,
18888         since they are generated.  Suggested by Bruno Haible.
18889
18890 2011-01-01  Jim Meyering  <meyering@redhat.com>
18891
18892         maint: refine the update-copyright rule
18893         * Makefile (update-copyright): Also exclude any file that includes
18894         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
18895         code that merely generates the comment.
18896
18897 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18898
18899         New module 'u8-grapheme-len'.
18900         * modules/unigbrk/u8-grapheme-len: New file.
18901         * modules/unigbrk/u8-grapheme-len-tests: New file.
18902         * lib/unigbrk.in.h: Add prototype for new function.
18903         * lib/unigbrk/u8-grapheme-len.c: New file.
18904         * tests/unigbrk/test-u8-grapheme-len.c: New file.
18905
18906         New module 'u16-grapheme-len'.
18907         * modules/unigbrk/u16-grapheme-len: New file.
18908         * modules/unigbrk/u16-grapheme-len-tests: New file.
18909         * lib/unigbrk.in.h: Add prototype for new function.
18910         * lib/unigbrk/u16-grapheme-len.c: New file.
18911         * tests/unigbrk/test-u16-grapheme-len.c: New file.
18912
18913         New module 'u32-grapheme-len'.
18914         * modules/unigbrk/u32-grapheme-len: New file.
18915         * modules/unigbrk/u32-grapheme-len-tests: New file.
18916         * lib/unigbrk.in.h: Add prototype for new function.
18917         * lib/unigbrk/u32-grapheme-len.c: New file.
18918         * tests/unigbrk/test-u32-grapheme-len.c: New file.
18919
18920         New module 'u8-grapheme-next'.
18921         * modules/unigbrk/u8-grapheme-next: New file.
18922         * modules/unigbrk/u8-grapheme-next-tests: New file.
18923         * lib/unigbrk.in.h: Add prototype for new function.
18924         * lib/unigbrk/u8-grapheme-next.c: New file.
18925         * tests/unigbrk/test-u8-grapheme-next.c: New file.
18926
18927         New module 'u16-grapheme-next'.
18928         * modules/unigbrk/u16-grapheme-next: New file.
18929         * modules/unigbrk/u16-grapheme-next-tests: New file.
18930         * lib/unigbrk.in.h: Add prototype for new function.
18931         * lib/unigbrk/u16-grapheme-next.c: New file.
18932         * tests/unigbrk/test-u16-grapheme-next.c: New file.
18933
18934         New module 'u32-grapheme-next'.
18935         * modules/unigbrk/u32-grapheme-next: New file.
18936         * modules/unigbrk/u32-grapheme-next-tests: New file.
18937         * lib/unigbrk.in.h: Add prototype for new function.
18938         * lib/unigbrk/u32-grapheme-next.c: New file.
18939         * tests/unigbrk/test-u32-grapheme-next.c: New file.
18940
18941         New module 'u8-grapheme-prev'.
18942         * modules/unigbrk/u8-grapheme-prev: New file.
18943         * modules/unigbrk/u8-grapheme-prev-tests: New file.
18944         * lib/unigbrk.in.h: Add prototype for new function.
18945         * lib/unigbrk/u8-grapheme-prev.c: New file.
18946         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
18947
18948         New module 'u16-grapheme-prev'.
18949         * modules/unigbrk/u16-grapheme-prev: New file.
18950         * modules/unigbrk/u16-grapheme-prev-tests: New file.
18951         * lib/unigbrk.in.h: Add prototype for new function.
18952         * lib/unigbrk/u16-grapheme-prev.c: New file.
18953         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
18954
18955         New module 'u32-grapheme-prev'.
18956         * modules/unigbrk/u32-grapheme-prev: New file.
18957         * modules/unigbrk/u32-grapheme-prev-tests: New file.
18958         * lib/unigbrk.in.h: Add prototype for new function.
18959         * lib/unigbrk/u32-grapheme-prev.c: New file.
18960         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
18961
18962         New module 'u8-grapheme-breaks'.
18963         * modules/unigbrk/u8-grapheme-breaks: New file.
18964         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
18965         * lib/unigbrk.in.h: Add prototype for new function.
18966         * lib/unigbrk/u8-grapheme-breaks.c: New file.
18967         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
18968
18969         New module 'u16-grapheme-breaks'.
18970         * modules/unigbrk/u16-grapheme-breaks: New file.
18971         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
18972         * lib/unigbrk.in.h: Add prototype for new function.
18973         * lib/unigbrk/u16-grapheme-breaks.c: New file.
18974         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
18975
18976         New module 'u32-grapheme-breaks'.
18977         * modules/unigbrk/u32-grapheme-breaks: New file.
18978         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
18979         * lib/unigbrk.in.h: Add prototype for new function.
18980         * lib/unigbrk/u32-grapheme-breaks.c: New file.
18981         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
18982
18983         New module 'ulc-grapheme-breaks'.
18984         * modules/unigbrk/ulc-grapheme-breaks: New file.
18985         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
18986         * m4/locale-ar.m4: New file.
18987         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
18988         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
18989         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
18990
18991 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18992
18993         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
18994         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
18995         modified how this file was generated before I initially submitted
18996         the module, but failed to regenerate it.  This meant that several
18997         of the level2 entries were wrong.
18998         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
18999         Remove the division-by-2 that is folded into the table now that
19000         gbrkprop.h has been regenerated properly.  Now -1 entries are
19001         handled correctly.
19002
19003         New module 'unigbrk/uc-gbrk-prop-tests'.
19004         * modules/unigbrk/uc-gbrk-prop-tests: New file.
19005         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
19006         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
19007         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
19008
19009 2011-01-01  Bruno Haible  <bruno@clisp.org>
19010
19011         Avoid use of hexadecimal escapes.
19012         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
19013         instead of hexadecimal escapes.
19014
19015 2011-01-01  Jim Meyering  <meyering@redhat.com>
19016
19017         maint: new rule to update copyright year ranges
19018         * Makefile (update-copyright): New rule.
19019
19020         maint: indent with TABs in Makefile
19021         * Makefile: Expand leading sequences of spaces to TABs
19022
19023         version-etc: update the copyright year it reports
19024         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
19025
19026 2010-12-31  Bruno Haible  <bruno@clisp.org>
19027
19028         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
19029         * lib/isfinite.c (zerof, zerod, zerol): New variables.
19030         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
19031         zero.
19032
19033 2010-12-31  Bruno Haible  <bruno@clisp.org>
19034
19035         pwrite: Work around HP-UX 11.11 bug.
19036         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
19037         works and set REPLACE_PWRITE if not.
19038         * lib/pwrite.c (pwrite): Add an implementation that uses the system
19039         function.
19040         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
19041
19042 2010-12-31  Bruno Haible  <bruno@clisp.org>
19043
19044         pread: Work around HP-UX 11 bugs.
19045         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
19046         and set REPLACE_PREAD if not.
19047         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
19048
19049 2010-12-31  Eric Blake  <eblake@redhat.com>
19050
19051         nl_langinfo: fix YESEXPR on Irix 6.5
19052         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
19053         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
19054         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
19055         it.
19056
19057 2010-12-31  Bruno Haible  <bruno@clisp.org>
19058
19059         iconv: Document HP-UX 11 bug.
19060         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
19061
19062 2010-12-31  Bruno Haible  <bruno@clisp.org>
19063
19064         ldexpl: Fix link error on HP-UX 11.
19065         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
19066         LDEXPL_LIBM, using $ISNANL_LIBM.
19067
19068 2010-12-31  Eric Blake  <eblake@redhat.com>
19069
19070         ftello: avoid compilation failure with SunStudio c89
19071         * lib/ftello.c (ftello): Use lseek, not llseek.
19072
19073         tests: avoid failing coreutils tests on cygwin
19074         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
19075         (create_exe_shims_): Return 0 when skipping.
19076
19077 2010-12-31  Bruno Haible  <bruno@clisp.org>
19078
19079         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
19080         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
19081
19082 2010-12-31  Bruno Haible  <bruno@clisp.org>
19083
19084         waitpid: Fix link error in C++ mode.
19085         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
19086
19087 2010-12-31  Bruno Haible  <bruno@clisp.org>
19088
19089         isnan: Use GCC built-ins when possible.
19090         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
19091         __builtin_isnan.
19092         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
19093         (isnan): Define using GCC built-ins for GCC >= 4.0.
19094
19095 2010-12-31  Bruno Haible  <bruno@clisp.org>
19096
19097         isnand: Fix mistake.
19098         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
19099         __builtin_isnand.
19100
19101 2010-12-31  Bruno Haible  <bruno@clisp.org>
19102
19103         open: Avoid C++ error on HP-UX 11.
19104         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
19105
19106 2010-12-31  Bruno Haible  <bruno@clisp.org>
19107
19108         time_r: Add missing declarations on HP-UX 11.
19109         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
19110         instead of HAVE_LOCALTIME_R.
19111         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
19112         HAVE_LOCALTIME_R always.
19113         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
19114         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
19115         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
19116         HAVE_LOCALTIME_R.
19117         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
19118         * doc/posix-functions/localtime_r.texi: Likewise.
19119
19120 2010-12-29  Eric Blake  <eblake@redhat.com>
19121
19122         mountlist: tweak previous commit
19123         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
19124         Reported by Paul Eggert.
19125
19126         mountlist: fix local drive detection on cygwin
19127         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
19128         that works for cygwin.
19129
19130 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19131
19132         ftoastr, snprintf: ftoastr + snprintf module
19133         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
19134         since the snprintf module now should be good enough here.
19135         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
19136         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
19137         and gl_MODULE_INDICATOR([snprintf]), but the former enables
19138         GNULIB_SNPRINTF only for the test directory, and the latter
19139         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
19140         seems to suffice by itself.
19141
19142 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19143
19144         alloca: one step towards thread-safety
19145         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
19146         need for a static variable.  All callers changed.  This does not
19147         make the alloca replacement thread-safe, but it's one step.
19148
19149         tests: minor indenting change
19150         * tests/init.sh: Sync from coreutils housekeeping patch
19151         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
19152         to keep lines within 80 columns.
19153
19154 2010-12-28  Jim Meyering  <meyering@redhat.com>
19155
19156         regex: don't infloop on persistent failing calloc
19157         * lib/regexec.c (build_trtable): Return failure indication upon
19158         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19159         In glibc, this was fixed for version 2.13:
19160         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
19161
19162 2010-12-28  Bruno Haible  <bruno@clisp.org>
19163             Paul Eggert <eggert@cs.ucla.edu>
19164
19165         linkat: Make implementation robust against system behaviour variations.
19166         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
19167         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
19168         way, and to -2 if it needs a generic runtime test.
19169         * lib/linkat.c (solaris_optimized_link_immediate,
19170         solaris_optimized_link_follow): New functions.
19171         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
19172         (check_same_link): Use it.
19173
19174 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
19175
19176         New module 'unigbrk/base'.
19177         * modules/unigbrk/base: New file.
19178         * lib/unigbrk.in.h: New file.
19179
19180         New module 'unigbrk/uc-gbrk-prop'.
19181         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
19182         * modules/unigbrk/uc-gbrk-prop: New file.
19183         * lib/unigbrk/gbrkprop.h: New file.
19184         * lib/unigbrk/uc-gbrk-prop.c: New file.
19185
19186         New module 'unigbrk/uc-is-grapheme-break'.
19187         * modules/unigbrk/uc-is-grapheme-break: New file.
19188         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
19189         * lib/unigbrk/uc-is-grapheme-break.c: New file.
19190         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
19191         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
19192         * tests/unigbrk/GraphemeBreakTest.txt: New file.
19193
19194         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
19195
19196 2010-12-27  Bruno Haible  <bruno@clisp.org>
19197
19198         linkat test: Avoid failure on Solaris 11 2010-11.
19199         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
19200
19201 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19202
19203         utimens: work around glibc rounding bug on more platforms
19204         * lib/utimens.c (fdutimens): Work around rounding bug even if
19205         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
19206         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
19207
19208 2010-12-27  Bruno Haible  <bruno@clisp.org>
19209
19210         select tests: Improve comments.
19211         * tests/test-select.c (do_select): Add comments.
19212
19213 2010-12-27  Bruno Haible  <bruno@clisp.org>
19214
19215         select tests: Safer way of handling timeout.
19216         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
19217         at every invocation.
19218
19219 2010-12-27  Bruno Haible  <bruno@clisp.org>
19220
19221         select tests: Use 'bool' where appropriate.
19222         * tests/test-select.c (connect_to_socket): Change argument type to
19223         'bool'.
19224
19225 2010-12-27  Bruno Haible  <bruno@clisp.org>
19226
19227         select tests: Use existing modules.
19228         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
19229         (configure.ac): Don't test for unistd.h.
19230         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
19231         declared in <unistd.h>.
19232
19233 2010-12-27  Bruno Haible  <bruno@clisp.org>
19234
19235         mbrtowc: Work around a Solaris 7 bug.
19236         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
19237         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
19238         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
19239         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
19240         MBRTOWC_NULL_ARG1_BUG.
19241         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
19242         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
19243         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
19244         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
19245
19246 2010-12-27  Jim Meyering  <meyering@redhat.com>
19247
19248         read-file.c: tweak syntax
19249         * lib/read-file.c (fread_file): Remove space after "*" in function
19250         definitions.
19251
19252 2010-12-27  Bruno Haible  <bruno@clisp.org>
19253
19254         times test: Avoid gcc warnings on OSF/1.
19255         * tests/test-times.c (main): Cast printf arguments from clock_t to
19256         'long int'.
19257
19258 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19259
19260         utimens: work around glibc rounding bug on older Linux kernels
19261         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
19262         on Linux with a glibc whose utimes might not work, then work
19263         around a longstanding glibc bug involving rounding rather than
19264         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
19265         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19266
19267 2010-12-26  Bruno Haible  <bruno@clisp.org>
19268
19269         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
19270         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
19271         _GL_CXXALIAS_SYS.
19272         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19273
19274 2010-12-26  Bruno Haible  <bruno@clisp.org>
19275
19276         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
19277         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
19278         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19279         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
19280         looking for the declaration.
19281         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19282         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
19283         problem.
19284         * doc/posix-functions/inet_pton.texi: Likewise.
19285
19286 2010-12-26  Bruno Haible  <bruno@clisp.org>
19287
19288         arpa_inet: Use the common idioms with C++ support.
19289         * lib/arpa_inet.in.h: Include c++defs.h.
19290         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
19291         support.
19292         * modules/arpa_inet (Depends-on): Add c++defs.
19293         (Makefile.am): Substitute the contents of c++defs.h.
19294         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
19295         * modules/arpa_inet-c++-tests: New file.
19296         * tests/test-arpa_inet-c++.cc: New file.
19297
19298 2010-12-25  Bruno Haible  <bruno@clisp.org>
19299
19300         Fix more C++ link errors on Solaris 8.
19301         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
19302         $(LIB_EACCESS).
19303         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
19304         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
19305         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
19306         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
19307         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
19308
19309 2010-12-25  Bruno Haible  <bruno@clisp.org>
19310
19311         printf-posix: Fix link error when a non-GCC compiler is used.
19312         * lib/stdio.in.h (printf): When not using GCC, override printf
19313         correctly.
19314         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19315
19316 2010-12-25  Bruno Haible  <bruno@clisp.org>
19317
19318         strerror_r-posix: Update doc.
19319         * doc/posix-functions/strerror_r.texi: Update doc about the return
19320         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
19321
19322 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19323
19324         utimens: simplify the logic of the previous change
19325         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
19326         This should not affect whether the test succeeds or fails.
19327
19328         utimens: configure better on hosts with NFS clock skew
19329         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
19330         uses the clock of the local host.  It might use the clock of the
19331         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
19332         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19333
19334 2010-12-25  Bruno Haible  <bruno@clisp.org>
19335
19336         ptsname test: Avoid failure on Solaris.
19337         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
19338         open a pseudo-terminal; don't use BSD-style ptys.
19339         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
19340
19341 2010-12-25  Bruno Haible  <bruno@clisp.org>
19342
19343         ptsname: Avoid ERANGE failure on some systems.
19344         * lib/ptsname.c (buffer): Increase size.
19345
19346 2010-12-25  Bruno Haible  <bruno@clisp.org>
19347
19348         rename, renameat: Avoid test failures at NFS mounted locations.
19349         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
19350         so that subsequent mkdir calls succeed.
19351
19352 2010-12-25  Bruno Haible  <bruno@clisp.org>
19353
19354         iswblank: Fix C++ link error on Solaris 8.
19355         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
19356         _GL_FUNCDECL_SYS.
19357
19358 2010-12-25  Bruno Haible  <bruno@clisp.org>
19359
19360         unistd: Fix C++ link error on Solaris 8.
19361         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
19362
19363 2010-12-25  Bruno Haible  <bruno@clisp.org>
19364
19365         readlink doc: Mention an old glibc bug.
19366         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
19367
19368 2010-12-25  Bruno Haible  <bruno@clisp.org>
19369
19370         fcntl-h: Fix for use of C++ on glibc systems.
19371         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19372         also on glibc systems in C++ mode.
19373         Reported by Gary V. Vaughan <gary@gnu.org>.
19374
19375 2010-12-25  Bruno Haible  <bruno@clisp.org>
19376
19377         roundl-ieee: Make it work on OSF/1 5.1 with cc.
19378         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
19379
19380 2010-12-25  Bruno Haible  <bruno@clisp.org>
19381
19382         truncl-ieee: Make it work on OSF/1 5.1 with cc.
19383         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
19384         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
19385         test whether truncl works according to ISO C 99 with IEC 60559.
19386         * m4/truncl-ieee.m4: New file.
19387         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
19388         m4/signbit.m4.
19389         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
19390
19391 2010-12-25  Bruno Haible  <bruno@clisp.org>
19392
19393         ceill-ieee: Make it work on OSF/1 5.1 with cc.
19394         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
19395         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
19396         test whether ceill works according to ISO C 99 with IEC 60559.
19397         * m4/ceill-ieee.m4: New file.
19398         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
19399         m4/signbit.m4.
19400         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
19401
19402 2010-12-25  Bruno Haible  <bruno@clisp.org>
19403
19404         Ensure all prerequisites of <wchar.h> are included.
19405         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
19406         before <wchar.h>.
19407         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19408         gl_MBRLEN_NUL_RETVAL): Likewise.
19409         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19410         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
19411         AC_FUNC_MBRTOWC): Likewise.
19412         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19413         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19414         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19415         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19416         Likewise.
19417         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19418         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
19419         (gl_WCHAR_H): Improve comments.
19420         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19421
19422 2010-12-25  Bruno Haible  <bruno@clisp.org>
19423
19424         strtok_r: Fix C syntax error in autoconf macro.
19425         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
19426         characters in test program.
19427
19428 2010-12-24  Bruno Haible  <bruno@clisp.org>
19429
19430         ceil, trunc, round: Fix gcc warnings.
19431         * lib/ceil.c (MIN): Undefine before redefining.
19432         * lib/trunc.c (MIN): Likewise.
19433         * lib/round.c (MIN): Likewise.
19434         Include <math.h> first.
19435
19436 2010-12-24  Bruno Haible  <bruno@clisp.org>
19437
19438         select tests: Avoid failures on OSF/1 5.1.
19439         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
19440         failure of closing the last socket; it may fail with ECONNRESET.
19441
19442 2010-12-24  Eric Blake  <eblake@redhat.com>
19443
19444         stdint: avoid HP-UX 10.20 preprocessor bug
19445         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
19446         than #if.
19447         * tests/test-floor2.c (main): Likewise.
19448         Reported by Peter O'Gorman.
19449
19450         pipe: make obsoletion transition easier
19451         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
19452         * modules/pipe (Files): Include revived file.
19453         (Include): Drop reference, to mirror getdate's behavior.
19454
19455 2010-12-24  Bruno Haible  <bruno@clisp.org>
19456
19457         sys_socket: Hide mismatch of declarations on NonStop Kernel.
19458         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
19459         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
19460         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19461
19462 2010-12-24  Bruno Haible  <bruno@clisp.org>
19463
19464         gethostname: Ensure declaration on NonStop Kernel.
19465         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
19466         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19467
19468 2010-12-24  Bruno Haible  <bruno@clisp.org>
19469
19470         sys_select: Ensure all necessary types on NonStop Kernel.
19471         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
19472         include <sys/time.h>.
19473         * doc/posix-headers/sys_select.texi: Mention that it's missing on
19474         NonStop Kernel.
19475         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19476
19477 2010-12-24  Bruno Haible  <bruno@clisp.org>
19478
19479         sys_select: Remove unneeded include.
19480         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
19481         have <sys/select.h>.
19482
19483 2010-12-24  Bruno Haible  <bruno@clisp.org>
19484
19485         gethostname: Provide a fallback for HOST_NAME_MAX.
19486         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
19487         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
19488         instead.
19489         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19490
19491 2010-12-24  Bruno Haible  <bruno@clisp.org>
19492
19493         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
19494         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
19495         (SA_RESTART): Likewise.
19496         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19497
19498 2010-12-24  Bruno Haible  <bruno@clisp.org>
19499
19500         signal: Define NSIG.
19501         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
19502         * tests/test-signal.c (nsig): New variable.
19503         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19504
19505 2010-12-24  Bruno Haible  <bruno@clisp.org>
19506
19507         rename, renameat: Avoid test failures on OSF/1 5.1.
19508         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
19509         alternative error codes.
19510         * tests/test-renameat.c (main): Likewise.
19511
19512 2010-12-24  Bruno Haible  <bruno@clisp.org>
19513
19514         *printf: Detect large precisions bug on Solaris 10/SPARC.
19515         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
19516         by Paul Eggert.
19517         * tests/test-snprintf-posix.h (test_function): Add this test code here
19518         too.
19519         * tests/test-sprintf-posix.h (test_function): Likewise.
19520         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19521         * tests/test-vasprintf-posix.c (test_function): Likewise.
19522         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
19523         around by gnulib.
19524         * doc/posix-functions/printf.texi: Likewise.
19525         * doc/posix-functions/snprintf.texi: Likewise.
19526         * doc/posix-functions/sprintf.texi: Likewise.
19527         * doc/posix-functions/vfprintf.texi: Likewise.
19528         * doc/posix-functions/vprintf.texi: Likewise.
19529         * doc/posix-functions/vsnprintf.texi: Likewise.
19530         * doc/posix-functions/vsprintf.texi: Likewise.
19531         * doc/posix-functions/dprintf.texi: Undo last commit.
19532         * doc/posix-functions/vdprintf.texi: Likewise.
19533
19534 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19535
19536         tests: port test-fdutimensat.c to Solaris 8
19537         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
19538         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
19539         On Solaris 8, it fails with errno == ENOSYS, because there is no
19540         futimens (so it can't use the fd), and there is no lutimens (so it
19541         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
19542
19543         vsnprintf: make more consistent with snprintf; doc fixes
19544
19545         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
19546         the byte count return problem was promoted from the snprintf-posix
19547         to the snprintf module.
19548         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
19549         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
19550         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
19551         * tests/test-snprintf.c (main): Check the byte count returned.
19552         * tests/test-vsnprintf.c (main): Likewise.
19553
19554 2010-12-23  Eric Blake  <eblake@redhat.com>
19555
19556         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
19557         * modules/sigpipe (License): Relax license.
19558
19559 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19560
19561         doc: document Solaris printf bug with large float precisions
19562         * doc/posix-functions/dprintf.texi (dprintf):
19563         * doc/posix-functions/fprintf.texi (fprintf):
19564         * doc/posix-functions/printf.texi (printf):
19565         * doc/posix-functions/snprintf.texi (snprintf):
19566         * doc/posix-functions/sprintf.texi (sprintf):
19567         * doc/posix-functions/vdprintf.texi (vdprintf):
19568         * doc/posix-functions/vfprintf.texi (vfprintf):
19569         * doc/posix-functions/vprintf.texi (vprintf):
19570         * doc/posix-functions/vsnprintf.texi (vsnprintf):
19571         * doc/posix-functions/vsprintf.texi (vsprintf):
19572         Mention that these functions mishandle large floating point
19573         precisions on Solaris 10.  The same bug is also present in Solaris
19574         8, and I assume earlier.  This causes "cd gnulib-tests; make
19575         check" to fail on Solaris 8 (and I assume, later) when building
19576         the latest coreutils, in test-vasprintf-posix's call to
19577         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
19578         the wide flavors (e.g., wprintf) so this patch just updates the
19579         documentation for the narrow ones.
19580
19581         test-posixtm.c: add two tests
19582         * tests/test-posixtm.c: Add two tests, to highlight the
19583         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
19584         around this bug; this is merely to document it.
19585
19586 2010-12-22  Bruno Haible  <bruno@clisp.org>
19587
19588         getlogin_r: Work around portability problem on OSF/1.
19589         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
19590         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
19591         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
19592         test for a truncated result.
19593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
19594         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
19595         * modules/getlogin_r (Depends-on): Add memchr.
19596         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
19597
19598 2010-12-22  Bruno Haible  <bruno@clisp.org>
19599
19600         ptsname: Avoid test failure on OSF/1 5.1.
19601         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
19602         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
19603         (same_slave): New function.
19604         (main): Use it to compare ptsname's result with the expected file name.
19605
19606 2010-12-22  Bruno Haible  <bruno@clisp.org>
19607
19608         Port extended stdio modules to HP NonStop Kernel.
19609         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
19610         macros.
19611         * lib/fbufmode.c: Update comments.
19612         * lib/fflush.c: Likewise.
19613         * lib/fpurge.c: Likewise.
19614         * lib/freadable.c: Likewise.
19615         * lib/freadahead.c: Likewise.
19616         * lib/freading.c: Likewise.
19617         * lib/freadptr.c: Likewise.
19618         * lib/freadseek.c: Likewise.
19619         * lib/fseeko.c: Likewise.
19620         * lib/fseterr.c: Likewise.
19621         * lib/fwritable.c: Likewise.
19622         * lib/fwriting.c: Likewise.
19623         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19624
19625 2010-12-22  Bruno Haible  <bruno@clisp.org>
19626
19627         ttyname_r: Work around bug on OSF/1 5.1.
19628         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
19629         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
19630         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
19631         present.
19632         * lib/ttyname_r.c (ttyname_r): Update comments.
19633
19634 2010-12-22  Bruno Haible  <bruno@clisp.org>
19635
19636         round: Implement result sign according to IEEE 754.
19637         * lib/round.c (MIN, MINUS_ZERO): New macros.
19638         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
19639         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
19640         * tests/test-round-ieee.c (main): Likewise.
19641         * tests/test-roundl-ieee.c (main): Likewise.
19642
19643         trunc: Implement result sign according to IEEE 754.
19644         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
19645         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
19646         * tests/test-trunc2.c: Include minus-zero.h.
19647         (MINUS_ZERO): New macro.
19648         (trunc_reference): Keep in sync with lib/trunc.c.
19649         * tests/test-truncf2.c: Include minus-zero.h.
19650         (MINUS_ZERO): New macro.
19651         (truncf_reference): Keep in sync with lib/trunc.c.
19652         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
19653         * tests/test-trunc-ieee.c (main): Likewise.
19654         * tests/test-truncl-ieee.c (main): Likewise.
19655
19656         ceil: Implement result sign according to IEEE 754.
19657         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
19658         (FUNC): Return -0.0 for -1 < x < 0.
19659         * tests/test-ceil2.c: Include minus-zero.h.
19660         (MINUS_ZERO): New macro.
19661         (ceil_reference): Keep in sync with lib/ceil.c.
19662         * tests/test-ceilf2.c: Include minus-zero.h.
19663         (MINUS_ZERO): New macro.
19664         (ceilf_reference): Keep in sync with lib/ceil.c.
19665         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
19666         * tests/test-ceil-ieee.c (main): Likewise.
19667         * tests/test-ceill-ieee.c (main): Likewise.
19668
19669         floor: Implement result sign according to IEEE 754.
19670         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
19671         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
19672         * tests/test-floorf2.c (floorf_reference): Likewise.
19673         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
19674         * tests/test-floor-ieee.c (main): Likewise.
19675         * tests/test-floorl-ieee.c (main): Likewise.
19676
19677 2010-12-22  Bruno Haible  <bruno@clisp.org>
19678
19679         getaddrinfo: Update doc.
19680         * doc/posix-functions/gai_strerror.texi: Return type is also different
19681         on AIX and HP-UX.
19682
19683 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19684
19685         getaddrinfo, inet_ntop: Update doc for Solaris.
19686         * doc/posix-functions/gai_strerror.texi: Return type is also an
19687         issue on Solaris 9 and earlier.
19688         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
19689         on Solaris 10 and earlier.
19690
19691 2010-12-21  Bruno Haible  <bruno@clisp.org>
19692
19693         New module 'roundl-ieee'.
19694         * modules/roundl-ieee: New file.
19695         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
19696         test whether roundl works according to ISO C 99 with IEC 60559.
19697         * m4/roundl-ieee.m4: New file.
19698         * modules/roundl-ieee-tests: New file.
19699         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
19700         * tests/test-roundl.c (main): Remove signbit tests.
19701         * modules/roundl-tests (Depends-on): Remove signbit.
19702         * doc/posix-functions/roundl.texi: Mention the new module.
19703
19704 2010-12-21  Bruno Haible  <bruno@clisp.org>
19705
19706         New module 'truncl-ieee'.
19707         * modules/truncl-ieee: New file.
19708         * modules/truncl-ieee-tests: New file.
19709         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
19710         * tests/test-truncl.c (main): Remove signbit tests.
19711         * modules/truncl-tests (Depends-on): Remove signbit.
19712         * doc/posix-functions/truncl.texi: Mention the new module.
19713
19714 2010-12-21  Bruno Haible  <bruno@clisp.org>
19715
19716         New module 'ceill-ieee'.
19717         * modules/ceill-ieee: New file.
19718         * modules/ceill-ieee-tests: New file.
19719         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
19720         * tests/test-ceill.c (main): Remove signbit tests.
19721         * modules/ceill-tests (Depends-on): Remove signbit.
19722         * doc/posix-functions/ceill.texi: Mention the new module.
19723
19724 2010-12-21  Bruno Haible  <bruno@clisp.org>
19725
19726         New module 'floorl-ieee'.
19727         * modules/floorl-ieee: New file.
19728         * modules/floorl-ieee-tests: New file.
19729         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
19730         * tests/test-floorl.c (main): Remove signbit tests.
19731         * modules/floorl-tests (Depends-on): Remove signbit.
19732         * doc/posix-functions/floorl.texi: Mention the new module.
19733
19734 2010-12-21  Bruno Haible  <bruno@clisp.org>
19735
19736         New module 'round-ieee'.
19737         * modules/round-ieee: New file.
19738         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
19739         whether round works according to ISO C 99 with IEC 60559.
19740         * m4/round-ieee.m4: New file.
19741         * modules/round-ieee-tests: New file.
19742         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
19743         * tests/test-round1.c (main): Remove signbit tests.
19744         * modules/round-tests (Depends-on): Remove 'signbit'.
19745         * doc/posix-functions/round.texi: Mention the new module.
19746
19747 2010-12-21  Bruno Haible  <bruno@clisp.org>
19748
19749         New module 'trunc-ieee'.
19750         * modules/trunc-ieee: New file.
19751         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
19752         whether trunc works according to ISO C 99 with IEC 60559.
19753         * m4/trunc-ieee.m4: New file.
19754         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
19755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
19756         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
19757         * modules/trunc-ieee-tests: New file.
19758         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
19759         * tests/test-trunc1.c (main): Remove signbit tests.
19760         * modules/trunc-tests (Depends-on): Remove 'signbit'.
19761         * doc/posix-functions/trunc.texi: Mention the new module.
19762
19763 2010-12-21  Bruno Haible  <bruno@clisp.org>
19764
19765         New module 'ceil-ieee'.
19766         * modules/ceil-ieee: New file.
19767         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
19768         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
19769         ISO C 99 with IEC 60559.
19770         * m4/ceil-ieee.m4: New file.
19771         * modules/ceil (Files): Add lib/ceil.c.
19772         (Depends-on): Add 'float'.
19773         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19774         * lib/math.in.h (ceil): New declaration.
19775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
19776         REPLACE_CEIL.
19777         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
19778         * modules/ceil-ieee-tests: New file.
19779         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
19780         * tests/test-math-c++.cc: Check the signature of 'ceil'.
19781         * doc/posix-functions/ceil.texi: Mention the new module.
19782
19783 2010-12-21  Bruno Haible  <bruno@clisp.org>
19784
19785         New module 'floor-ieee'.
19786         * modules/floor-ieee: New file.
19787         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
19788         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
19789         ISO C 99 with IEC 60559.
19790         * m4/floor-ieee.m4: New file.
19791         * modules/floor (Files): Add lib/floor.c.
19792         (Depends-on): Add 'float'.
19793         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19794         * lib/math.in.h (floor): New declaration.
19795         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
19796         REPLACE_FLOOR.
19797         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
19798         * modules/floor-ieee-tests: New file.
19799         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
19800         * tests/test-math-c++.cc: Check the signature of 'floor'.
19801         * doc/posix-functions/floor.texi: Mention the new module.
19802
19803 2010-12-21  Bruno Haible  <bruno@clisp.org>
19804
19805         New module 'roundf-ieee'.
19806         * modules/roundf-ieee: New file.
19807         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
19808         test whether roundf works according to ISO C 99 with IEC 60559.
19809         * m4/roundf-ieee.m4: New file.
19810         * modules/roundf-ieee-tests: New file.
19811         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
19812         * tests/test-roundf1.c (main): Remove signbit tests.
19813         * modules/roundf-tests (Depends-on): Remove 'signbit'.
19814         * doc/posix-functions/roundf.texi: Mention the new module.
19815
19816 2010-12-21  Bruno Haible  <bruno@clisp.org>
19817
19818         New module 'truncf-ieee'.
19819         * modules/truncf-ieee: New file.
19820         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
19821         test whether truncf works according to ISO C 99 with IEC 60559.
19822         * m4/truncf-ieee.m4: New file.
19823         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
19824         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
19825         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
19826         * modules/truncf-ieee-tests: New file.
19827         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
19828         * tests/test-truncf1.c (main): Remove signbit tests.
19829         * modules/truncf-tests (Depends-on): Remove 'signbit'.
19830         * doc/posix-functions/truncf.texi: Mention the new module.
19831
19832 2010-12-21  Bruno Haible  <bruno@clisp.org>
19833
19834         New module 'ceilf-ieee'.
19835         * modules/ceilf-ieee: New file.
19836         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
19837         test whether ceilf works according to ISO C 99 with IEC 60559.
19838         * m4/ceilf-ieee.m4: New file.
19839         * modules/ceilf-ieee-tests: New file.
19840         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
19841         * tests/test-ceilf1.c (main): Remove signbit tests.
19842         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
19843         * doc/posix-functions/ceilf.texi: Mention the new module.
19844
19845 2010-12-21  Bruno Haible  <bruno@clisp.org>
19846
19847         New module 'floorf-ieee'.
19848         * modules/floorf-ieee: New file.
19849         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
19850         test whether floorf works according to ISO C 99 with IEC 60559.
19851         * m4/floorf-ieee.m4: New file.
19852         * modules/floorf-ieee-tests: New file.
19853         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
19854         * tests/test-floorf1.c (main): Remove signbit tests.
19855         * modules/floorf-tests (Depends-on): Remove 'signbit'.
19856         * doc/posix-functions/floorf.texi: Mention the new module.
19857
19858 2010-12-21  Bruno Haible  <bruno@clisp.org>
19859
19860         Support for minus zero in autoconf macros.
19861         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
19862         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
19863         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
19864         * tests/minus-zero.h: Update comments.
19865
19866 2010-12-21  Bruno Haible  <bruno@clisp.org>
19867
19868         Tests for module 'ceil'.
19869         * modules/ceil-tests: New file.
19870         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
19871         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
19872
19873 2010-12-21  Bruno Haible  <bruno@clisp.org>
19874
19875         Tests for module 'floor'.
19876         * modules/floor-tests: New file.
19877         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
19878         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
19879
19880 2010-12-21  Bruno Haible  <bruno@clisp.org>
19881
19882         math: Fix indentation.
19883         * lib/math.in.h (floorf): Fix indentation.
19884
19885 2010-12-21  Bruno Haible  <bruno@clisp.org>
19886
19887         Fix cross-compilation guesses on Solaris.
19888         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
19889         not match "solaris2.10".
19890         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19891         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
19892         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
19893
19894 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19895
19896         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
19897         This fixes a problem observed with the latest coreutils snapshot
19898         that caused a test to fail on Solaris 8.  src/csplit.c's call
19899         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
19900         earlier, instead of returning the number of bytes that would have
19901         been generated; this causes csplit to incorrectly report memory
19902         exhaustion.
19903         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
19904         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
19905         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
19906         comments to match.
19907         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
19908         Fix typo in matching older versions of Solaris: "solaris2.10"
19909         is matched by the shell pattern "solaris2.[0-9]*".  This matters
19910         only for guessing while cross-compiling.
19911         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
19912
19913 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
19914
19915         ftoastr: fix comment again
19916         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19917         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
19918         Also, simplify example a bit by using flags = 0.
19919
19920 2010-12-20  Bruno Haible  <bruno@clisp.org>
19921
19922         round*, trunc*: Update documentation regarding glibc.
19923         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
19924         * doc/posix-functions/round.texi: Likewise.
19925         * doc/posix-functions/roundl.texi: Likewise.
19926         * doc/posix-functions/truncf.texi: Likewise.
19927         * doc/posix-functions/trunc.texi: Likewise.
19928         * doc/posix-functions/truncl.texi: Likewise.
19929
19930 2010-12-20  Bruno Haible  <bruno@clisp.org>
19931
19932         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
19933         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
19934         * doc/posix-functions/round.texi: Likewise.
19935         * doc/posix-functions/roundl.texi: Likewise.
19936
19937 2010-12-20  Bruno Haible  <bruno@clisp.org>
19938
19939         ttyname_r: Add missing declaration on HP-UX 11.
19940         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
19941         HAVE_TTYNAME_R.
19942         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
19943         declared. Set HAVE_TTYNAME_R always.
19944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19945         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
19946         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
19947         HAVE_TTYNAME_R.
19948         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
19949
19950 2010-12-20  Bruno Haible  <bruno@clisp.org>
19951
19952         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
19953         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
19954         * doc/posix-functions/getlogin_r.texi: Likewise.
19955         * tests/test-getlogin.c: Include <errno.h>.
19956         (main): Avoid test failure on HP-UX 11.11.
19957         * tests/test-getlogin_r.c (main): Likewise.
19958
19959 2010-12-20  Bruno Haible  <bruno@clisp.org>
19960
19961         getlogin_r: Add missing declaration on HP-UX 11.
19962         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
19963         declared also when it exists as a function.
19964         * doc/posix-functions/getlogin_r.texi: Document this workaround.
19965
19966 2010-12-20  Bruno Haible  <bruno@clisp.org>
19967
19968         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
19969         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
19970         through wcrtomb.
19971
19972 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19973
19974         ftoastr: fix comment
19975         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19976         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
19977
19978 2010-12-19  Bruno Haible  <bruno@clisp.org>
19979
19980         isnan: Ensure it is a macro.
19981         * lib/math.in.h (isnan): Define as a macro if not already a macro.
19982         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
19983         Solaris.
19984
19985 2010-12-19  Bruno Haible  <bruno@clisp.org>
19986
19987         ldexpl test: Fix link error on OSF/1 5.1.
19988         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
19989
19990 2010-12-19  Bruno Haible  <bruno@clisp.org>
19991
19992         wctype: Make it work in C++ mode on OSF/1 5.1.
19993         * lib/wctype.in.h (iswblank): Declare but not define here.
19994         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
19995         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
19996         * modules/wctype (Files): Add lib/iswblank.c.
19997
19998 2010-12-19  Bruno Haible  <bruno@clisp.org>
19999
20000         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
20001         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
20002         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
20003
20004 2010-12-19  Bruno Haible  <bruno@clisp.org>
20005
20006         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
20007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
20008         _POSIX_PII_SOCKET.
20009         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
20010         * doc/posix-functions/recvfrom.texi: Likewise.
20011         * doc/posix-functions/send.texi: Likewise.
20012         * doc/posix-functions/sendto.texi: Likewise.
20013
20014 2010-12-19  Bruno Haible  <bruno@clisp.org>
20015
20016         tcgetsid: Add missing declaration on OSF/1 5.1.
20017         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
20018         HAVE_TCGETSID.
20019         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
20020         Don't set HAVE_TCGETSID.
20021         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
20022         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
20023         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
20024         HAVE_TCGETSID.
20025         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
20026
20027 2010-12-19  Bruno Haible  <bruno@clisp.org>
20028
20029         stdio: Fix problem with popen() declaration on OSF/1 5.1.
20030         * lib/stdio.in.h: During the include_next statement, let recursive
20031         includes of this file include only the system header file.
20032
20033 2010-12-19  Bruno Haible  <bruno@clisp.org>
20034
20035         iconv_open: Fix regression from 2010-12-04.
20036         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
20037         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
20038
20039 2010-12-19  Bruno Haible  <bruno@clisp.org>
20040
20041         stdbool test: Avoid a gcc warning.
20042         * tests/test-stdbool.c (main): Fail if e1 is false.
20043         Reported by Jim Meyering.
20044
20045 2010-12-19  Jim Meyering  <meyering@redhat.com>
20046
20047         setenv: restore to working order
20048         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
20049         mistakenly removed.
20050         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
20051         HAVE_SETENV.
20052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
20053         HAVE_SETENV.
20054
20055 2010-12-19  Bruno Haible  <bruno@clisp.org>
20056
20057         Document some different function declarations on OSF/1 5.1.
20058         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
20059         * doc/posix-functions/inet_ntop.texi: Likewise.
20060         * doc/posix-functions/gethostname.texi: Likewise.
20061         * lib/unistd.in.h (gethostname): Update comment.
20062
20063 2010-12-19  Bruno Haible  <bruno@clisp.org>
20064
20065         doc: Mention vasprintf-posix module.
20066         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
20067         the 'vasprintf-posix' module.
20068         * doc/glibc-functions/vasprintf.texi: Likewise.
20069
20070 2010-12-19  Bruno Haible  <bruno@clisp.org>
20071
20072         unsetenv: Add missing declaration on OSF/1 5.1.
20073         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
20074         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
20075         Don't set HAVE_UNSETENV. In the test program, set _BSD.
20076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
20077         not HAVE_UNSETENV.
20078         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
20079         HAVE_UNSETENV.
20080         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
20081
20082 2010-12-19  Bruno Haible  <bruno@clisp.org>
20083
20084         setenv: Add missing declaration on OSF/1 5.1.
20085         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
20086         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
20087         declared. Don't set HAVE_SETENV.
20088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
20089         not HAVE_SETENV.
20090         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
20091         HAVE_SETENV.
20092         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
20093
20094 2010-12-19  Bruno Haible  <bruno@clisp.org>
20095
20096         nl_langinfo tests: Avoid gcc warning.
20097         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
20098
20099 2010-12-19  Bruno Haible  <bruno@clisp.org>
20100
20101         mknod: Avoid error in C++ mode on OSF/1 with GCC.
20102         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
20103         _GL_CXXALIAS_SYS.
20104
20105 2010-12-19  Bruno Haible  <bruno@clisp.org>
20106
20107         stdbool: Relax test.
20108         * tests/test-stdbool.c (e): Don't require that casts from a variable's
20109         address to 'bool' work in static initializer, for compilers other than
20110         GCC.
20111
20112 2010-12-19  Bruno Haible  <bruno@clisp.org>
20113
20114         ftello: Add missing declaration on OSF/1 5.1.
20115         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
20116         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
20117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
20118         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
20119         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
20120
20121 2010-12-19  Bruno Haible  <bruno@clisp.org>
20122
20123         fseeko: Add missing declaration on OSF/1 5.1.
20124         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
20125         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
20126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
20127         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
20128         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
20129
20130 2010-12-19  Bruno Haible  <bruno@clisp.org>
20131
20132         fchdir: Add missing declaration on OSF/1 5.1.
20133         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
20134         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
20135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
20136         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
20137         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
20138
20139 2010-12-19  Bruno Haible  <bruno@clisp.org>
20140
20141         relocatable-prog-wrapper: Separate from relocatable-prog.
20142         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
20143         uninstall-relocwrapper rule here.
20144         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
20145         Reported by Ian Beckwith <ianb@erislabs.net>.
20146
20147 2010-12-19  Bruno Haible  <bruno@clisp.org>
20148
20149         unistr/u8-mbsnlen: Add missing dependency.
20150         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
20151         Reported by Ian Beckwith <ianb@erislabs.net>.
20152
20153 2010-12-19  Bruno Haible  <bruno@clisp.org>
20154
20155         iconv: Make it possible again to use this module without 'iconv-h'.
20156         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
20157         if it is not defined.
20158         Reported by Ian Beckwith <ianb@erislabs.net>.
20159
20160 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20161
20162         acl: port to Solaris 8 when copying from tmpfs to ufs
20163         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
20164         error number.  Problem observed on Solaris 8 with latest
20165         coreutils, with "mv A B", where A is on a tmpfs file system and B
20166         is on a ufs file system.  This caused coreutils' mv/part-symlink
20167         test to fail.
20168
20169         tests: set fail=0 at start
20170         * tests/init.sh (setup_): Move fail=0 initialization here ...
20171         (mktempd_): ... from here, so that tests can rely on fail being
20172         set to 0 initially.  This fixes a problem in coreutils; see:
20173         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
20174
20175 2010-12-18  Bruno Haible  <bruno@clisp.org>
20176
20177         memmem-simple: Stylistic changes.
20178         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
20179         Fix preprocessor directive indentation.
20180
20181 2010-12-15  Pádraig Brady <P@draigBrady.com>
20182
20183         memmem, memmem-simple: reorganize and expand empty needle check
20184         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
20185         functional checks to memmem-simple so that one has a fully functional
20186         memmem by using just this module.
20187         Restrict the performance only check to the memmem module.
20188         Also expand the empty needle check to ensure the correct
20189         pointer is returned, not just a non NULL pointer.
20190         * doc/glibc-functions/memmem.texi: Rearrange the portability
20191         documentation to correlate with the rearranged checks.
20192         Clarify exactly how the memmem and memmem-simple modules
20193         relate to each other.
20194
20195 2010-12-15  Pádraig Brady <P@draigBrady.com>
20196             Bruno Haible  <bruno@clisp.org>
20197
20198         Improve cross-compilation guesses for uClibc.
20199         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
20200         that uClibc does not have the glibc bug.
20201         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20202         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
20203
20204 2010-12-14  Eric Blake  <eblake@redhat.com>
20205
20206         configmake: provide fallbacks for oldest supported autotools
20207         * m4/configmake.m4: New file.
20208         * modules/configmake (Files): Ship it.
20209         (configure.ac): Use it to guarantee fallbacks.
20210
20211 2010-12-13  Pádraig Brady <P@draigBrady.com>
20212
20213         read-file: Improve handling of large files
20214         * lib/read-file.c (fread_file): Minimize realloc()s
20215         for regular files, and better manage sizes around SIZE_MAX.
20216
20217 2010-12-13  Eric Blake  <eblake@redhat.com>
20218
20219         cloexec, fcntl: relax license
20220         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
20221         consent from all contributors.
20222         * modules/fcntl (License): Likewise.
20223
20224 2010-12-10  Bruno Haible  <bruno@clisp.org>
20225
20226         Tests for module 'pipe-posix'.
20227         * modules/pipe-posix-tests: New file.
20228         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
20229
20230 2010-12-10  Bruno Haible  <bruno@clisp.org>
20231
20232         pipe-posix: Make it work in C++ mode.
20233         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
20234         (pipe): Use common idiom, not a macro definition.
20235         * lib/pipe.c: New file.
20236         * m4/pipe.m4: New file.
20237         * modules/pipe-posix (Description): Enhance.
20238         (Files): Add lib/pipe.c, m4/pipe.m4.
20239         (configure.ac): Invoke gl_FUNC_PIPE.
20240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
20241         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
20242         * tests/test-unistd-c++.cc: Check the signature of pipe.
20243
20244 2010-12-10  Bruno Haible  <bruno@clisp.org>
20245
20246         Rename module 'pipe' to 'spawn-pipe'.
20247         * modules/spawn-pipe: New file, renamed from modules/pipe.
20248         (Files, configure.ac, Makefile.am): Update.
20249         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
20250         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
20251         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
20252         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
20253         "spawn-pipe.h" instead of "pipe.h".
20254         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
20255         to gl_SPAWN_PIPE.
20256         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
20257         (Files, Makefile.am): Update.
20258         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
20259         Update.
20260         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
20261         Include "spawn-pipe.h" instead of "pipe.h".
20262         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
20263         * lib/javacomp.c: Likewise.
20264         * lib/javaversion.c: Likewise.
20265         * lib/pipe-filter-gi.c: Likewise.
20266         * lib/pipe-filter-ii.c: Likewise.
20267         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
20268         * modules/javacomp (Depends-on): Likewise.
20269         * modules/javaversion (Depends-on): Likewise.
20270         * modules/pipe-filter-gi (Depends-on): Likewise.
20271         * modules/pipe-filter-ii (Depends-on): Likewise.
20272         * MODULES.html.sh (Executing programs): Update.
20273         * NEWS: Mention the change.
20274
20275 2010-12-10  Eric Blake  <eblake@redhat.com>
20276
20277         pipe-posix: new module
20278         * modules/pipe-posix: New file.
20279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
20280         (gl_UNISTD_H): Check for declaration.
20281         * modules/unistd (Makefile.am): Substitute it.
20282         * lib/unistd.in.h (pipe): Provide it for mingw.
20283         * doc/posix-functions/pipe.texi (pipe): Update documentation.
20284         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
20285
20286 2010-12-07  Bruno Haible  <bruno@clisp.org>
20287
20288         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
20289         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
20290         u8_strcmp_gnu.
20291         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
20292
20293 2010-12-06  Bruno Haible  <bruno@clisp.org>
20294
20295         Update internal documentation.
20296         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
20297
20298 2010-12-04  Bruno Haible  <bruno@clisp.org>
20299
20300         Put more information about failed tests into the test return codes.
20301         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
20302         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
20303         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20304         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20305         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20306         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20307         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20308         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20309         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
20310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20311         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
20312         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20313         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
20314         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20315         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
20316         returns a bit mask.
20317         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
20318         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
20319         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
20320         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
20321         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20322         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20323         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20324         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20325         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20326         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20327         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20328         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20329         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20330         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20331         * m4/link.m4 (gl_FUNC_LINK): Likewise.
20332         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20333         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
20334         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
20335         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20336         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
20337         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20338         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20339         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
20340         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20341         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20342         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20343         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
20344         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20345         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20346         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
20347         gl_PRINTF_PRECISION): Likewise.
20348         * m4/regex.m4 (gl_REGEX): Likewise.
20349         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20350         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20351         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
20352         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20353         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20354         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20355         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20356         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
20357         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20358         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20359         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20360         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20361         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20362         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20363         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20364         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20365         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
20366         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20367         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20368         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
20369         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
20370         enumerated value.
20371         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
20372
20373 2010-12-04  Bruno Haible  <bruno@clisp.org>
20374
20375         Update for Solaris 11 2010-11.
20376         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
20377         Express, released in November 2010.
20378
20379 2010-12-04  Bruno Haible  <bruno@clisp.org>
20380
20381         nproc: Relax license.
20382         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
20383         and Paul Eggert.
20384         Requested by Ludovic Courtès <ludo@gnu.org>.
20385
20386 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
20387
20388         utimecmp: fine-grained src to nearby coarse-grained dest
20389
20390         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
20391         and the source is on a file system with higher-resolution time
20392         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
20393         not work, and the time stamps are close together, the algorithm to
20394         determine the exact resolution from the read-back mtime was buggy:
20395         it had a "!=" where it should have had an "==".  This bug has been
20396         in the code ever since it was introduced to gnulib.
20397         Problem reported by Dan Jacobson in
20398         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
20399
20400 2010-11-30  Bruno Haible  <bruno@clisp.org>
20401
20402         strerror_r-posix: Fix autoconf test.
20403         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
20404
20405 2010-11-28  Bruno Haible  <bruno@clisp.org>
20406             Paul Eggert  <eggert@cs.ucla.edu>
20407
20408         Tests for module 'getdomainname'.
20409         * modules/getdomainname-tests: New file.
20410         * tests/test-getdomainname.c: New file, based on
20411         tests/test-gethostname.c.
20412
20413 2010-11-28  Bruno Haible  <bruno@clisp.org>
20414             Paul Eggert  <eggert@cs.ucla.edu>
20415
20416         getdomainname: Use the system function when possible.
20417         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
20418         (getdomainname): Replace if needed. Provide the declaration if it is
20419         missing. Don't use _GL_CXXALIAS_SYS_CAST.
20420         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
20421         (getdomainname): When the system has getdomainname, call the system
20422         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
20423         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20424         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
20425         found in libnsl. Look for the declaration also in <netdb.h>. Replace
20426         the function if its second argument is of type 'int' or if it is found
20427         in libnsl.
20428         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
20429         <sys/systeminfo.h> and sysinfo().
20430         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
20431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20432         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
20433         HAVE_GETDOMAINNAME.
20434         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
20435         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
20436         * doc/glibc-functions/getdomainname.texi: Document the problems with
20437         the getdomainname declaration.
20438
20439 2010-11-28  Bruno Haible  <bruno@clisp.org>
20440
20441         sys_socket: Ensure ss_family field on AIX.
20442         * lib/sys_socket.in.h (ss_family): New macro definition.
20443         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
20444         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
20445         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20446         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20447         * modules/sys_socket (Makefile.am): Substitute
20448         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20449         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
20450
20451 2010-11-27  Bruno Haible  <bruno@clisp.org>
20452
20453         readline: Improve configure output.
20454         * m4/readline.m4 (gl_FUNC_READLINE): Make the
20455         "checking for readline..." result understandable.
20456
20457 2010-11-27  Bruno Haible  <bruno@clisp.org>
20458
20459         *printf-posix: Detect a bug on Solaris 10/x86.
20460         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
20461         for floating-point output.
20462         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
20463         directive.
20464         * tests/test-snprintf-posix.h (test_function): Likewise.
20465         * tests/test-sprintf-posix.h (test_function): Likewise.
20466         * tests/test-vasprintf-posix.c (test_function): Likewise.
20467         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
20468         * doc/posix-functions/printf.texi: Likewise.
20469         * doc/posix-functions/snprintf.texi: Likewise.
20470         * doc/posix-functions/sprintf.texi: Likewise.
20471         * doc/posix-functions/vfprintf.texi: Likewise.
20472         * doc/posix-functions/vprintf.texi: Likewise.
20473         * doc/posix-functions/vsnprintf.texi: Likewise.
20474         * doc/posix-functions/vsprintf.texi: Likewise.
20475         * doc/glibc-functions/obstack_printf.texi: Likewise.
20476         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20477
20478 2010-11-27  Bruno Haible  <bruno@clisp.org>
20479
20480         Fix link error when module libunistring-optional is in use.
20481         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
20482         * modules/striconveha-tests (Makefile.am): Likewise.
20483
20484 2010-11-27  Bruno Haible  <bruno@clisp.org>
20485
20486         regex: Mention link dependencies.
20487         * modules/regex (Link): New section.
20488         * modules/rpmatch (Link): Likewise.
20489         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
20490
20491 2010-11-27  Bruno Haible  <bruno@clisp.org>
20492
20493         ftoastr: Fix compilation error on Solaris.
20494         * lib/ftoastr.c: Include <config.h>.
20495
20496 2010-11-27  Bruno Haible  <bruno@clisp.org>
20497
20498         getloadavg: Update documentation.
20499         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
20500
20501 2010-11-27  Bruno Haible  <bruno@clisp.org>
20502
20503         sys_socket: Fix test whether the functions are declared.
20504         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
20505         not <sys/select.h>.
20506
20507 2010-11-27  Bruno Haible  <bruno@clisp.org>
20508
20509         getpass: Make sure to get system declaration on some platforms.
20510         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
20511         gl_USE_SYSTEM_EXTENSIONS.
20512         * modules/getpass (Depends-on): Add extensions.
20513
20514 2010-11-26  Bruno Haible  <bruno@clisp.org>
20515
20516         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
20517         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
20518         'iconv' module is present.
20519         (ICONV_CONST): New macro.
20520         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
20521         ICONV_CONST.
20522         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
20523         set ICONV_CONST.
20524         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
20525         here.
20526         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
20527         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
20528         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
20529         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
20530         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
20531         present.
20532
20533 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20534
20535         ftoastr: comment fix
20536         * lib/ftoastr.c: "little" -> "little or no" in comment
20537
20538 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20539
20540         stdint: port to GCC 4.3 + OSX + Octave
20541         On this platform, stdint.h is buggy and defines int64_t to long
20542         long int.  The replacement defined it to long int, causing
20543         problems with C++ style name mangling.  Instead, trust the system
20544         definition if INT64_MAX is defined, and likewise for the unsigned
20545         variant.   Problem reported by Jarno Rajahalme in
20546         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
20547         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
20548         and don't mess with int64_t and INT64_MAX in this case.
20549         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
20550
20551 2010-11-24  Bruno Haible  <bruno@clisp.org>
20552
20553         doc: Corrections regarding MacOS X 10.4 and 10.5.
20554         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
20555         MacOS X.
20556         Reported by Simon Josefsson.
20557
20558 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
20559
20560         Uninstall ".bin" files installed by relocwrapper.
20561         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
20562         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
20563         unless it is already there.
20564
20565 2010-11-21  Bruno Haible  <bruno@clisp.org>
20566
20567         Update for NetBSD 5.0.
20568         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20569         NetBSD; the test fails on NetBSD 5.0.
20570         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20571         about NetBSD.
20572
20573 2010-11-21  Bruno Haible  <bruno@clisp.org>
20574
20575         Update for HP-UX 11.23 and HP-UX 11.31.
20576         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
20577         HP-UX.
20578
20579 2010-11-21  Bruno Haible  <bruno@clisp.org>
20580
20581         Update for MacOS X 10.5.
20582         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20583         MacOS X; the test fails on MacOS X 10.5.8.
20584         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20585         about MacOS X.
20586
20587 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
20588
20589         bootstrap: add bootstrap_sync option.
20590         See discussion at
20591         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
20592         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
20593         * build-aux/bootstrap: Accept --bootstrap-sync to update
20594         bootstrap if it is not identical to the local gnulib's
20595         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
20596         enable this by default.  Accept --no-bootstrap-sync to disable
20597         it.
20598
20599 2010-11-20  Bruno Haible  <bruno@clisp.org>
20600
20601         Ensure that <features.h> is included before __GLIBC__ is tested.
20602         * lib/printf-parse.h: Include <features.h>.
20603         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
20604         Reported by Mike Frysinger <vapier@gentoo.org>.
20605
20606         Ensure that <features.h> is included before __GLIBC__ is tested.
20607         * lib/wchar.in.h: Include <features.h>.
20608         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
20609         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
20610         Reported by Mike Frysinger <vapier@gentoo.org>.
20611
20612         Ensure that <features.h> is included before __GLIBC__ is tested.
20613         * lib/arpa_inet.in.h: Include <features.h>.
20614         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
20615         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
20616         Reported by Mike Frysinger <vapier@gentoo.org>.
20617
20618         Ensure that <features.h> is included before __GLIBC__ is tested.
20619         * build-aux/link-warning.h: Include <features.h>.
20620         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
20621         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
20622         Reported by Mike Frysinger <vapier@gentoo.org>.
20623
20624         Ensure that <features.h> is included before __GLIBC__ is tested.
20625         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
20626         Reported by Mike Frysinger <vapier@gentoo.org>.
20627
20628 2010-11-20  Bruno Haible  <bruno@clisp.org>
20629
20630         memmem: Fix autoconf test.
20631         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
20632
20633 2010-11-20  Bruno Haible  <bruno@clisp.org>
20634
20635         Port to uClibc.
20636         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
20637         * lib/fcntl.in.h: Likewise.
20638         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
20639         * lib/mbrtowc.c (mbrtowc): Likewise.
20640         * lib/relocatable.c (find_shared_library_fullname): Likewise.
20641         * lib/strerror_r.c: Likewise.
20642         * lib/unistr/u8-strnlen.c: Likewise.
20643         * lib/vasnprintf.c (decimal_point_char): Likewise.
20644         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20645         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20646         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20647         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
20648         * tests/test-sigaction.c (handler, main): Likewise.
20649         * lib/freading.h: Treat uClibc like a non-glibc platform.
20650         * lib/freading.c: Likewise.
20651         * lib/gettext.h: Likewise.
20652         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
20653         Likewise.
20654         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
20655         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20656         * lib/propername.c (proper_name_utf8): Likewise.
20657         * lib/spawn.in.h: Likewise.
20658         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
20659         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
20660         mem_cd_iconveh_internal): Likewise.
20661         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
20662         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20663         strstr, strcasestr): Likewise.
20664         * lib/unicodeio.c (unicode_to_mb): Likewise.
20665         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
20666         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
20667         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
20668         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
20669         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
20670         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
20671         * lib/unistr/u8-stpncpy.c: Likewise.
20672         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20673         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
20674         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20675         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20676         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
20677         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
20678         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
20679         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
20680         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
20681         Likewise.
20682         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20683         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20684         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20685         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20686         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20687         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20688         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20689         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20690         * tests/test-getopt.h (OPTIND_MIN): Likewise.
20691         * tests/test-striconveha.c (main): Likewise.
20692         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20693         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
20694         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
20695         * doc/posix-functions/getline.texi: Likewise.
20696         Reported by Mike Frysinger <vapier@gentoo.org>.
20697
20698 2010-11-20  Bruno Haible  <bruno@clisp.org>
20699
20700         nproc: Fix condition.
20701         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
20702         HAVE_PTHREAD_AFFINITY_NP.
20703
20704 2010-11-20  Bruno Haible  <bruno@clisp.org>
20705
20706         Fix a comment.
20707         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
20708
20709 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
20710
20711         ftoastr: don't assume snprintf
20712         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
20713         Implement a subset of snprintf here, by using sprintf safely.
20714         * modules/ftoastr (Depends-on): Remove snprintf.
20715
20716 2010-11-19  Jim Meyering  <meyering@redhat.com>
20717
20718         test-rename.h: fix compilation failure
20719         * tests/test-rename.h (test_rename): Add omitted "}".
20720
20721 2010-11-17  Jim Meyering  <meyering@redhat.com>
20722
20723         maint.mk: add a URL discussing the no-@acronym policy
20724         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
20725
20726 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
20727
20728         ftoastr: depend on snprintf, improve comments
20729         * lib/ftoastr.c: Also mention Loitsch's draft.
20730         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
20731         needed in the current implementation, but it might simplify
20732         speeding up the code later.
20733         * modules/ftoastr: Depend on snprintf; this improves portability.
20734         Suggested by Bruno Haible in the same email.
20735
20736         ftoastr: port to hosts lacking strtof and strtold
20737         Problem reported by Bruno Haible in
20738         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
20739         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
20740         environment and strtold (and presumably strtof) are not available.
20741         * modules/ftoastr (Files): Add m4/c-strtod.m4.
20742         (configure.ac): Require gl_C99_STRTOLD.
20743
20744 2010-11-18  Bruno Haible  <bruno@clisp.org>
20745
20746         c-strtold: Avoid link error on AIX 7.
20747         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
20748         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
20749         (gl_C_STRTOLD): Test whether strtold_l exists.
20750         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20751
20752 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20753
20754         intprops: new macro INT_BITS_STRLEN_BOUND
20755         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
20756         ftoastr.h.  This exposes an internal of intprops.h that was formerly
20757         not exposed.  Also, it uses a slightly tighter bound than before;
20758         though this makes no practical difference, we might as well be as
20759         tight as we easily can.
20760
20761         ftoastr: new module, for lossless conversion of floats to short strings
20762         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
20763         * modules/ftoastr: New files.
20764
20765 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
20766
20767         bootstrap: port to Solaris sed
20768         * build-aux/bootstrap (get_version): Port to Solaris sed.
20769         See Ralf Wildenhues's note in
20770         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
20771
20772 2010-11-14  Jim Meyering  <meyering@redhat.com>
20773
20774         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
20775         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
20776         and move definition closer to sole use.
20777
20778 2010-11-13  Jim Meyering  <meyering@redhat.com>
20779
20780         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
20781         Now we require at least autoconf-2.59, which means the work-around
20782         is no longer needed.
20783         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
20784         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20785         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20786         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20787         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20788
20789 2010-11-13  Bruno Haible  <bruno@clisp.org>
20790
20791         rename, renameat: Avoid test failures at NFS mounted locations.
20792         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
20793         functions.
20794         (test_rename): Use assert_nonexistent.
20795         * tests/test-rename.c: Include <dirent.h>.
20796         * tests/test-renameat.c: Likewise.
20797         Reported by Gary V. Vaughan <gary@gnu.org>.
20798
20799         rename, renameat: Document Linux bug with NFS
20800         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
20801         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
20802         * doc/posix-functions/renameat.texi: Likewise.
20803         Suggested by Eric Blake.
20804
20805 2010-11-13  Bruno Haible  <bruno@clisp.org>
20806
20807         rename test: Add comments.
20808         * tests/test-rename.h (test_rename): Add structure and comments.
20809
20810 2010-11-13  Eric Blake  <eblake@redhat.com>
20811
20812         maintainer-makefile: cover a few more files
20813         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
20814         scripts generated within C files, for libvirt.
20815
20816 2010-11-13  Bruno Haible  <bruno@clisp.org>
20817
20818         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
20819         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
20820         character, return the number of bytes that belong together, not always
20821         1.
20822         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
20823         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
20824         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
20825         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
20826         number of bytes of an invalid character.
20827         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
20828         (main): Invoke it.
20829         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
20830         results.
20831         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
20832         malformed byte sequences.
20833         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
20834         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
20835         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
20836         Reported by Ben Pfaff and Paolo Bonzini.
20837
20838 2010-11-13  Bruno Haible  <bruno@clisp.org>
20839
20840         openat: Work around glibc bug with fchownat() and empty file names.
20841         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
20842         (gl_FUNC_FCHOWNAT): Invoke it.
20843         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
20844         * doc/posix-functions/fchownat.texi: Document the glibc bug.
20845         Reported by Gary V. Vaughan <gary@gnu.org>.
20846
20847 2010-11-13  Bruno Haible  <bruno@clisp.org>
20848
20849         openat: Ensure autoconf macro ordering.
20850         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
20851         gl_USE_SYSTEM_EXTENSIONS.
20852         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
20853
20854 2010-11-13  Bruno Haible  <bruno@clisp.org>
20855
20856         Update comments.
20857         * lib/unistr/u8-check.c: Update file name in comments.
20858         * lib/unistr/u8-mblen.c: Likewise.
20859         * lib/unistr/u8-prev.c: Likewise.
20860         * lib/unistr/u8-strmblen.c: Likewise.
20861         * lib/unistr/u8-strmbtouc.c: Likewise.
20862
20863 2010-11-13  Jim Meyering  <meyering@redhat.com>
20864
20865         tests: avoid test failure on Solaris 10 due to lack of PATH export
20866         * tests/test-update-copyright.sh: Don't forget to export PATH.
20867
20868         init.sh: ensure that IFS is defined, just in case...
20869         * tests/init.sh (setup_): Ensure that IFS is defined,
20870         so that saving and restoring it works as expected.  This
20871         appears to be useful at least for an old version of dash
20872         from a long time ago (RH 6).  See here for details:
20873         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
20874
20875         maint.mk: tighten "test a == b" check
20876         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
20877         test to files that contain something like #!/bin/sh.
20878         Without this, coreutils would get two false positives in
20879         the comments of C source files.
20880
20881 2010-11-12  Eric Blake  <eblake@redhat.com>
20882
20883         bootstrap: fix typo in previous attempt
20884         * build-aux/bootstrap (buildreq): Correct the grouping.
20885         Reported by Paul Eggert.
20886
20887         maintainer-makefile: prohibit test x == x
20888         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
20889         Based on a report by Matthias Bolte.
20890
20891         bootstrap: allow FreeBSD gzip
20892         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
20893         which has no '.' and goes to stderr.
20894         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
20895         Reported by Matthias Bolte.
20896
20897         maintainer-makefile: check for i18n setup
20898         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
20899         will likely work.
20900
20901 2010-11-12  Bruno Haible  <bruno@clisp.org>
20902
20903         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
20904         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
20905         * lib/nanosleep.c (nanosleep): Likewise.
20906
20907 2010-11-11  Bruno Haible  <bruno@clisp.org>
20908
20909         fcntl-h: Fix for use of C++ on glibc systems.
20910         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20911         also on glibc systems in C++ mode.
20912         Reported by Gary V. Vaughan <gary@gnu.org>.
20913
20914 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20915
20916         mknod: avoid false failure with dash
20917         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
20918
20919 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20920
20921         unlink: Fix "is it should" typo in diagnostic.
20922         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
20923         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
20924
20925 2010-11-11  Bruno Haible  <bruno@clisp.org>
20926
20927         Tests for module 'strerror_r-posix'.
20928         * modules/strerror_r-posix-tests: New file.
20929         * tests/test-strerror_r.c: New file.
20930         * tests/test-string-c++.cc: Check the signature of strerror_r.
20931
20932         New module 'strerror_r-posix'.
20933         * lib/string.in.h (strerror_r): New declaration.
20934         * lib/strerror_r.c: New file.
20935         * m4/strerror_r.m4: New file.
20936         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
20937         of strerror_r.
20938         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
20939         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20940         * modules/strerror_r-posix: New file.
20941         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
20942         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20943         * doc/posix-functions/strerror_r.texi: Mention the new module and the
20944         portability problems.
20945
20946 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
20947
20948         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
20949         line is also considered for output. Quoted function name in shell
20950         command, so temporary files for functions like MyClass::operator()
20951         are removed correctly without errors.
20952
20953 2010-11-09  Bruno Haible  <bruno@clisp.org>
20954
20955         * doc/posix-functions/strerror.texi: List more failing platforms.
20956
20957         * doc/posix-functions/strerror.texi: Add a comment.
20958
20959 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20960
20961         fdopendir: fix bug on MacOS X when low on file descriptors
20962
20963         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
20964         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
20965         All callers changed.
20966         (fdopendir): Invoke save_cwd at the top level, not after using
20967         multiple dup() calls to use up file descriptors.  Then retry
20968         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
20969         less than the maximum number of open file descriptors, because
20970         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
20971         on Mac OS X 10.6.4 for tar 1.24
20972         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
20973         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
20974         and for tar 1.25
20975         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
20976
20977 2010-11-07  Bruno Haible  <bruno@clisp.org>
20978
20979         vasnprintf: Support I flag on glibc systems.
20980         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
20981         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
20982         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
20983         snprintf function.
20984         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
20985         glibc systems.
20986         * tests/test-vasnprintf-posix3.c: New file.
20987         * modules/vasnprintf-posix-tests (Files): Add it.
20988         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
20989
20990 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20991
20992         [html] Fix copy/paste bug: Use unique name for compiler warnings.
20993         * MODULES.html.sh: For compiler warnings, use name
20994         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
20995
20996 2010-11-05  Eric Blake  <eblake@redhat.com>
20997
20998         ceil, floor: avoid spurious failure with icc
20999         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
21000         [denormals-as-zero] when optimizing without -mieee-fp option.
21001         * tests/test-floorf2.c (floorf_reference): Likewise.
21002         * tests/test-ceilf1.c (dummy): New function.
21003         (main): Use it to outsmart icc's optimization.
21004         * tests/test-floorf1.c (dummy, main): Likewise.
21005
21006         tests: require working signbit
21007         * modules/ceilf-tests (Depends-on): Add signbit.
21008         * modules/ceill-tests (Depends-on): Likewise.
21009         * modules/floorf-tests (Depends-on): Likewise.
21010         * modules/floorl-tests (Depends-on): Likewise.
21011         * modules/round-tests (Depends-on): Likewise.
21012         * modules/roundf-tests (Depends-on): Likewise.
21013         * modules/roundl-tests (Depends-on): Likewise.
21014         * modules/trunc-tests (Depends-on): Likewise.
21015         * modules/truncf-tests (Depends-on): Likewise.
21016         * modules/truncl-tests (Depends-on): Likewise.
21017
21018         strtod: work around icc bug
21019         * lib/strtod.c (minus_zero): Define to working value.
21020         (strtod): Use it to avoid icc bug.
21021
21022         copysign: enhance tests
21023         * modules/copysign-tests (Files): Add minus-zero.h.
21024         * tests/test-copysign.c (main): Also test zeros.
21025
21026 2010-11-04  Eric Blake  <eblake@redhat.com>
21027
21028         ceil, floor, round, trunc: enhance tests of -0
21029         * tests/test-ceilf1.c (main): Ensure correct sign of result.
21030         * tests/test-ceill.c (main): Likewise.
21031         * tests/test-floorf1.c (main): Likewise.
21032         * tests/test-floorl.c (main): Likewise.
21033         * tests/test-round1.c (main): Likewise.
21034         * tests/test-roundf1.c (main): Likewise.
21035         * tests/test-roundl.c (main): Likewise.
21036         * tests/test-trunc1.c (main): Likewise.
21037         * tests/test-truncf1.c (main): Likewise.
21038         * tests/test-truncl.c (main): Likewise.
21039
21040 2010-11-04  Eric Blake  <eblake@redhat.com>
21041
21042         frexp, tests: work around ICC bug with -zero
21043         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
21044         works with more compilers.
21045         * tests/minus-zero.h: New file.
21046         * modules/ceilf-tests (Files): Include it.
21047         * modules/ceill-tests (Files): Likewise.
21048         * modules/floorf-tests (Files): Likewise.
21049         * modules/floorl-tests (Files): Likewise.
21050         * modules/frexp-nolibm-tests (Files): Likewise.
21051         * modules/frexp-tests (Files): Likewise.
21052         * modules/frexpl-nolibm-tests (Files): Likewise.
21053         * modules/frexpl-tests (Files): Likewise.
21054         * modules/isnan-tests (Files): Likewise.
21055         * modules/isnand-nolibm-tests (Files): Likewise.
21056         * modules/isnand-tests (Files): Likewise.
21057         * modules/isnanf-nolibm-tests (Files): Likewise.
21058         * modules/isnanf-tests (Files): Likewise.
21059         * modules/isnanl-nolibm-tests (Files): Likewise.
21060         * modules/isnanl-tests (Files): Likewise.
21061         * modules/round-tests (Files): Likewise.
21062         * modules/roundf-tests (Files): Likewise.
21063         * modules/roundl-tests (Files): Likewise.
21064         * modules/ldexpl-tests (Files): Likewise.
21065         * modules/signbit-tests (Files): Likewise.
21066         * modules/snprintf-posix-tests (Files): Likewise.
21067         * modules/sprintf-posix-tests (Files): Likewise.
21068         * modules/strtod-tests (Files): Likewise.
21069         * modules/trunc-tests (Files): Likewise.
21070         * modules/truncf-tests (Files): Likewise.
21071         * modules/truncl-tests (Files): Likewise.
21072         * modules/vsnprintf-posix-tests (Files): Likewise.
21073         * modules/vsprintf-posix-tests (Files): Likewise.
21074         * modules/vasnprintf-posix-tests (Files): Likewise.
21075         * modules/vasprintf-posix-tests (Files): Likewise.
21076         * tests/test-ceilf1.c (main): Use it.
21077         * tests/test-ceill.c (main): Likewise.
21078         * tests/test-floorf1.c (main): Likewise.
21079         * tests/test-floorl.c (main): Likewise.
21080         * tests/test-frexp.c (main): Likewise.
21081         * tests/test-frexpl.c (main): Likewise.
21082         * tests/test-isnan.c (main): Likewise.
21083         * tests/test-isnand.h (main): Likewise.
21084         * tests/test-isnanf.h (main): Likewise.
21085         * tests/test-isnanl.h (main): Likewise.
21086         * tests/test-ldexpl.c (main): Likewise.
21087         * tests/test-round.c (main): Likewise.
21088         * tests/test-roundf.c (main): Likewise.
21089         * tests/test-roundl.c (main): Likewise.
21090         * tests/test-signbit.c (test_signbitf, test_signbitd)
21091         (test_signbitl): Likewise.
21092         * tests/test-snprintf-posix.h (test_function): Likewise.
21093         * tests/test-sprintf-posix.h (test_function): Likewise.
21094         * tests/test-strtod.c (main): Likewise.
21095         * tests/test-trunc1.c (main): Likewise.
21096         * tests/test-truncf1.c (main): Likewise.
21097         * tests/test-truncl.c (main): Likewise.
21098
21099         isnanl: work around icc bug
21100         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
21101
21102 2010-11-03  Eric Blake  <eblake@redhat.com>
21103
21104         tests: fix compiler warnings
21105         * tests/test-getopt.h (test_getopt): Fix condition.
21106         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21107         * tests/test-pipe2.c (main): Likewise.
21108         * tests/test-quotearg-simple.c (main): Avoid icc warning.
21109
21110         utimens: fix broken m4 test
21111         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
21112
21113 2010-10-28  Bruno Haible  <bruno@clisp.org>
21114
21115         posix_spawn*, getdtablesize: Relax license.
21116         * modules/posix_spawn (License): Change to LGPLv2+.
21117         * modules/posix_spawnp (License): Likewise.
21118         * modules/posix_spawn-internal (License): Likewise.
21119         * modules/posix_spawnattr_init (License): Likewise.
21120         * modules/posix_spawnattr_getflags (License): Likewise.
21121         * modules/posix_spawnattr_setflags (License): Likewise.
21122         * modules/posix_spawnattr_getpgroup (License): Likewise.
21123         * modules/posix_spawnattr_setpgroup (License): Likewise.
21124         * modules/posix_spawnattr_getschedparam (License): Likewise.
21125         * modules/posix_spawnattr_setschedparam (License): Likewise.
21126         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
21127         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
21128         * modules/posix_spawnattr_getsigdefault (License): Likewise.
21129         * modules/posix_spawnattr_setsigdefault (License): Likewise.
21130         * modules/posix_spawnattr_getsigmask (License): Likewise.
21131         * modules/posix_spawnattr_setsigmask (License): Likewise.
21132         * modules/posix_spawnattr_destroy (License): Likewise.
21133         * modules/posix_spawn_file_actions_init (License): Likewise.
21134         * modules/posix_spawn_file_actions_addclose (License): Likewise.
21135         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
21136         * modules/posix_spawn_file_actions_addopen (License): Likewise.
21137         * modules/posix_spawn_file_actions_destroy (License): Likewise.
21138         * modules/getdtablesize (License): Likewise.
21139         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
21140
21141 2010-10-26  Bruno Haible  <bruno@clisp.org>
21142
21143         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
21144         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
21145         Cygwin and mingw.
21146         Suggested by Eric Blake.
21147
21148 2010-10-26  Bruno Haible  <bruno@clisp.org>
21149
21150         stdio: Work around compilation error due to renameat() on Solaris 10.
21151         * lib/stdio.in.h: Include <unistd.h> on Solaris.
21152         * lib/renameat.c: Don't include <unistd.h> here.
21153         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
21154         Reported by Paul Eggert and Eric Blake.
21155
21156 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21157
21158         renameat: port to Solaris 10, which declares renameat in unistd.h
21159
21160         * lib/renameat.c: Include unistd.h before stdio.h, because
21161         Solaris 10 declares renameat in unistd.h.  Problem encountered
21162         when building GNU tar 1.24 on Solaris 10.
21163
21164 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21165
21166         fdopendir: fix C89 compilation
21167         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
21168         compilers.
21169
21170 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
21171
21172         inttostr: simplify by removing unnecessary redundancy
21173         * lib/anytostr.c: Don't include verify.h.
21174         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
21175         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
21176         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
21177         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
21178         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
21179         Likewise.
21180         * modules/inttostr (Depends-on): Remove 'verify'.
21181
21182 2010-10-23  Bruno Haible  <bruno@clisp.org>
21183
21184         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
21185         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
21186         Reported by Eric Blake.
21187
21188 2010-10-23  Bruno Haible  <bruno@clisp.org>
21189
21190         Tests: Fix LOCALE_JA on MirBSD 10.
21191         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
21192         to an UTF-8 locale.
21193         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
21194         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21195         Reported by Eric Blake.
21196
21197 2010-10-21  Bruno Haible  <bruno@clisp.org>
21198
21199         nl_langinfo test: Avoid test failure on NetBSD 5.
21200         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
21201         Reported by Eric Blake.
21202
21203 2010-10-21  Eric Blake  <eblake@redhat.com>
21204
21205         c-stack: work around libsigsegv 2.8 bug
21206         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
21207         overflow on at least PowerPC64.
21208
21209 2010-10-17  Bruno Haible  <bruno@clisp.org>
21210
21211         userspec: Drop redundant file.
21212         * modules/userspec (Files): Remove lib/inttostr.h.
21213
21214 2010-10-17  Bruno Haible  <bruno@clisp.org>
21215
21216         nl_langinfo tests: Silence some warnings.
21217         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
21218         Reported by Jim Meyering.
21219
21220 2010-10-17  Bruno Haible  <bruno@clisp.org>
21221
21222         Make use of GCC's attribute __alloc_size__.
21223         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
21224         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
21225         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
21226         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
21227         __alloc_size__.
21228         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21229         Suggested by Jim Meyering.
21230
21231 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
21232
21233         bootstrap: anchor .gitignore entries.
21234         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
21235         with...
21236         (insert_vc_ignore): ... this new function, which prepends `/' to
21237         all .gitignore entries before passing them to
21238         insert_sorted_if_absent.
21239
21240 2010-10-16  Bruno Haible  <bruno@clisp.org>
21241
21242         nextafter: Fix configure check.
21243         * modules/nextafter (configure.ac): Correct expected prototype.
21244
21245 2010-10-16  Bruno Haible  <bruno@clisp.org>
21246
21247         termios: Update documentation.
21248         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
21249
21250 2010-10-16  Bruno Haible  <bruno@clisp.org>
21251
21252         tests: Make them compile with TinyCC.
21253         * tests/test-strstr.c (main): Remove parentheses around array
21254         initializer.
21255
21256 2010-10-15  Eric Blake  <eblake@redhat.com>
21257
21258         ignore-value: make header idempotent
21259         * lib/ignore-value.h: Add double-inclusion guards.
21260         Reported by Stefan Berger.
21261
21262 2010-10-15  Jim Meyering  <meyering@redhat.com>
21263
21264         GNUmakefile: handle "stable" target, not "major"
21265         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
21266         lists in maint.mk and announce-gen.  Without this, "make stable"
21267         would fail to ensure that $(VERSION) is up to date.
21268
21269 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
21270
21271         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
21272         & co.
21273
21274 2010-10-14  Bruno Haible  <bruno@clisp.org>
21275
21276         vasnprintf: Don't set errno to 0.
21277         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
21278         block that sets it to 0.
21279         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21280
21281 2010-10-14  Bruno Haible  <bruno@clisp.org>
21282
21283         socketlib: Fix.
21284         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
21285         gl_PREREQ_SYS_H_WINSOCK2.
21286         Reported by Ian Beckwith <ianb@erislabs.net>.
21287
21288 2010-10-13  Jim Meyering  <meyering@redhat.com>
21289
21290         test-select-stdin.c: avoid warn_unused_result warnings
21291         * tests/test-select-stdin.c: Include "macros.h".
21292         ASSERT that read and fflush succeed.
21293
21294 2010-10-13  Jim Meyering  <meyering@redhat.com>
21295
21296         git-version-gen: do require git-VC'd files in cwd
21297         * build-aux/git-version-gen: Reject a git version string
21298         if there are no commits associated with the current directory.
21299         This avoids an unlikely false-positive (unrelated dir whose parent
21300         repository also contains a tag matching v*), as pointed out
21301         by Giuseppe Scrivano in
21302         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
21303
21304 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21305
21306         argv-iter: omit nonconforming declaration
21307         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
21308         enum arg_iter_err declaration, which doesn't conform to C99.
21309         Solaris 10 cc warns about this.
21310
21311 2010-10-13  Eric Blake  <eblake@redhat.com>
21312
21313         termios: fix compilation on mingw
21314         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
21315         (gl_TERMIOS_H): Adjust it on mingw.
21316         * modules/termios (Makefile.am): Substitute new key.
21317         * lib/termios.in.h (includes): Make include_next conditional.
21318         * doc/posix-headers/termios.texi (termios.h): Update
21319         documentation.
21320         Reported by Daniel P. Berrange.
21321
21322 2010-10-13  Jim Meyering  <meyering@redhat.com>
21323
21324         git-version-gen: don't require that .git/ be in the current dir
21325         * build-aux/git-version-gen: Adjust this script so that it works
21326         when run from any working directory beneath the top-level .git/-
21327         containing directory.  Inspired by a patch from Giuseppe Scrivano,
21328         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
21329
21330         test-select: avoid warn_unused_result warnings
21331         * tests/test-select.c: Include "macros.h".
21332         ASSERT that each call to read, write, and pipe succeeds.
21333         While not technically required, also check each "close".
21334         * modules/select-tests (Files): Add tests/macros.h.
21335
21336         test-symlinkat: remove declaration of unused local
21337         * tests/test-symlinkat.c (main): Remove unused local, "buf".
21338
21339         test-inttostr: avoid shadowing warnings
21340         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
21341         and use malloc rather than the stack for the same reason as
21342         mentioned in the comment justifying the other allocation.
21343
21344 2010-10-11  Bruno Haible  <bruno@clisp.org>
21345
21346         stdlib: Allow multiple gnulib generated replacements to coexist.
21347         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
21348         Reported by Sam Steingold <sds@gnu.org>.
21349
21350 2010-10-11  Jim Meyering  <meyering@redhat.com>
21351
21352         fix a documentation typo
21353         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
21354
21355 2010-10-11  Eric Blake  <eblake@redhat.com>
21356
21357         futimens: work around Solaris 11 bug
21358         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
21359         * tests/test-futimens.h (test_futimens): Enhance, rather than
21360         weaken test.
21361         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21362
21363 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21364
21365         Indentation.
21366         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
21367         higher-level operators more to the left.
21368
21369 2010-10-11  Jim Meyering  <meyering@redhat.com>
21370
21371         test-futimens: avoid unwarranted test failure on Solaris 5.11
21372         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
21373         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
21374         because it tries to dereference the NULL name argument.
21375
21376 2010-10-11  Bruno Haible  <bruno@clisp.org>
21377
21378         Indentation.
21379         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
21380         indentation.
21381
21382 2010-10-11  Jim Meyering  <meyering@redhat.com>
21383
21384         spawn.in.h: make indentation consistent with parentheses
21385         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
21386         Make indentation consistent with parentheses.
21387
21388 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
21389
21390         Fix mismatched parens in previous commit
21391         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
21392         parens.
21393
21394 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21395
21396         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
21397
21398         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
21399         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
21400         * lib/malloca.c: Include "verify.h".
21401         (verify1): Remove, replacing with a verify call.
21402         * lib/relocwrapper.c (verify1): Likewise.
21403         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
21404         Likewise.
21405         * modules/malloca (Depends-on): Add 'verify'.
21406         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
21407         * modules/vasnprintf (Depends-on): Add 'verify'.
21408         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21409         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21410         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21411         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21412         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21413         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21414         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21415
21416         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
21417
21418         Formerly the style was sometimes 2*X - 1, because the C standard
21419         was wrongly thought to disallow ?: in integral constant expressions.
21420         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
21421         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
21422         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21423         * lib/stdint.in.h (_verify_intmax_size): Likewise.
21424         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
21425         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
21426         verify that time_t cannot be floating.
21427
21428 2010-10-08  Eric Blake  <eblake@redhat.com>
21429
21430         time: enforce recent POSIX ruling that time_t is integral
21431         * lib/time.in.h (__time_t_must_be_integral): Detect any
21432         problematic systems, allowing the rest of gnulib to assume POSIX.
21433
21434 2010-10-08  Jim Meyering  <meyering@redhat.com>
21435
21436         fdopendir: fix a bug on systems lacking openat and /proc support
21437         OpenBSD 4.7 is one such system.  The most noticeable effect was
21438         failure of any application making nontrivial use of fts: rm, du,
21439         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
21440           ./rm: traversal failed: `a': Bad file descriptor
21441         Debugging that, you see that even though FD 6 was closed just
21442         prior to the opendir call in fd_clone_opendir, its resulting
21443         dir->dd_fd was 8, rather than the expected value of 6:
21444
21445         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
21446         93                close (fd);
21447         (gdb) n
21448         94                dir = fd_clone_opendir (dupfd);
21449         (gdb) n
21450         95                saved_errno = errno;
21451         (gdb) p dir->dd_fd
21452         $11 = 8
21453
21454         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
21455         The problem is that on OpenBSD, fd_clone_opendir has to resort
21456         to using the old-style save/restore CWD mechanism, due to its
21457         lack of openat/proc support, and *that* would steal the FD (6)
21458         that opendir was supposed to use.
21459
21460         The fix is to squirrel away the desired FD so that save_cwd uses a
21461         different one, and then free the dest FD right before calling opendir.
21462         That guarantees opendir will use the required file descriptor.
21463
21464         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
21465
21466 2010-10-08  Bruno Haible  <bruno@clisp.org>
21467
21468         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
21469         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
21470
21471 2010-10-08  Bruno Haible  <bruno@clisp.org>
21472
21473         nanosleep: Make replacement POSIX compliant.
21474         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
21475         is out of range.
21476         Reported by Jim Meyering.
21477
21478 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21479
21480         bootstrap: add hook for altering gnulib.mk, for Bison
21481         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
21482         the Bison bootstrapping process can rewrite file names and variables
21483         in this file before later parts of 'bootstrap' use the file.
21484         Bison wants to include lib/gnulib.mk from the top-level makefile,
21485         so it needs the file names in this file to be relative to the top
21486         level, not relative to lib; plus it needs variable names to be
21487         rewritten.
21488         (slurp): Use the new function.
21489
21490         bootstrap: reformat for readability
21491         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
21492
21493 2010-10-08  Eric Blake  <eblake@redhat.com>
21494
21495         docs: update cygwin progress
21496         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
21497         1.7.7.
21498         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
21499         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
21500         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
21501         * doc/posix-functions/carg.texi (carg): Likewise.
21502         * doc/posix-functions/cargf.texi (cargf): Likewise.
21503         * doc/posix-functions/casin.texi (casin): Likewise.
21504         * doc/posix-functions/casinf.texi (casinf): Likewise.
21505         * doc/posix-functions/casinh.texi (casinh): Likewise.
21506         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
21507         * doc/posix-functions/catan.texi (catan): Likewise.
21508         * doc/posix-functions/catanf.texi (catanf): Likewise.
21509         * doc/posix-functions/catanh.texi (catanh): Likewise.
21510         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
21511         * doc/posix-functions/ccos.texi (ccos): Likewise.
21512         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
21513         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
21514         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
21515         * doc/posix-functions/cexp.texi (cexp): Likewise.
21516         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
21517         * doc/posix-functions/cimag.texi (cimag): Likewise.
21518         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
21519         * doc/posix-functions/clog.texi (clog): Likewise.
21520         * doc/posix-functions/clogf.texi (clogf): Likewise.
21521         * doc/posix-functions/conj.texi (conj): Likewise.
21522         * doc/posix-functions/conjf.texi (conjf): Likewise.
21523         * doc/posix-functions/cpow.texi (cpow): Likewise.
21524         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
21525         * doc/posix-functions/cproj.texi (cproj): Likewise.
21526         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
21527         * doc/posix-functions/creal.texi (creal): Likewise.
21528         * doc/posix-functions/crealf.texi (crealf): Likewise.
21529         * doc/posix-functions/csin.texi (csin): Likewise.
21530         * doc/posix-functions/csinf.texi (csinf): Likewise.
21531         * doc/posix-functions/csinh.texi (csinh): Likewise.
21532         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
21533         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
21534         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
21535         * doc/posix-functions/ctan.texi (ctan): Likewise.
21536         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
21537         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
21538         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
21539         * doc/posix-headers/complex.texi (complex.h): Likewise.
21540
21541 2010-10-07  Jim Meyering  <meyering@redhat.com>
21542
21543         parse-datetime: avoid compilation failure on OpenBSD 4.7
21544         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
21545         This works around a compilation failure on OpenBSD 4.7:
21546         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
21547
21548 2010-10-07  Eric Blake  <eblake@redhat.com>
21549
21550         docs: update cygwin progress
21551         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
21552         1.7.6.
21553         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21554         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
21555         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
21556         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
21557         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
21558         Likewise.
21559         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
21560         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
21561         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
21562         Likewise.
21563         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
21564         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
21565         Likewise.
21566         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
21567         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
21568         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
21569         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
21570         Likewise.
21571         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
21572         Likewise.
21573         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
21574
21575         docs: update parse-datetime history
21576         * doc/parse-datetime.texi (Authors of parse_datetime): Better
21577         documentation of this function's history and alternatives.
21578
21579         cygwin: use more robust version check
21580         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
21581         exclude an eventual cygwin 1.9.1.
21582         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21583         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21584         (gl_FUNC_STRCASESTR): Likewise.
21585         Reported by Bruno Haible.
21586
21587 2010-10-06  Bruno Haible  <bruno@clisp.org>
21588
21589         string, sys_select: Avoid #including large headers unless necessary.
21590         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
21591         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
21592         OSF/1, BeOS, Haiku.
21593         Reported by Jim Meyering.
21594
21595 2010-10-05  Eric Blake  <eblake@redhat.com>
21596
21597         memmem, strstr, strcasestr: fix bug with long periodic needle
21598         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
21599         periodic needle having false positive.
21600         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
21601         and cygwin 1.7.7.
21602         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
21603         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21604         (gl_FUNC_STRCASESTR): Likewise.
21605         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21606         * tests/test-memmem.c (main): Expose the bug.
21607         * tests/test-strcasestr.c (main): Likewise.
21608         * tests/test-strstr.c (main): Likewise.
21609         * tests/test-c-strcasestr.c (main): Likewise.
21610         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
21611         * doc/posix-functions/strstr.texi (strstr): Likewise.
21612         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21613         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
21614
21615 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21616
21617         parse-datetime: do some more renaming
21618         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
21619         parse_datetime, not get_date.  Mention the renaming.
21620         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
21621         in comments.
21622         * m4/bison.m4: Likewise.
21623
21624 2010-10-05  Eric Blake  <eblake@redhat.com>
21625
21626         parse-datetime: better name than get_date
21627         * NEWS: Reword the deprecation notice.
21628         * modules/get_date: Rename to modules/parse-datetime.
21629         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
21630         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
21631         * lib/get_date.y: Rename to lib/parse-datetime.y.
21632         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
21633         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
21634         * doc/getdate.texi: Provide fallback wrapper.
21635         * lib/getdate.h: Move guts, and wrap...
21636         * lib/parse-datetime.h: ...new file.
21637         * lib/parse-datetime.y (get_date): Rename...
21638         (parse_datetime): ...to this.
21639         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
21640         (gl_PARSE_DATETIME): ...to this.
21641         * doc/posix-functions/getdate.texi (get_date): Provide fallback
21642         documentation.
21643         * modules/getdate (Files): Provide fallback docs and header.
21644         (Notice, Depends-on): Update references.
21645         * tests/test-parse-datetime.c: Likewise.
21646         * DEPENDENCIES: Likewise.
21647         * MODULES.html.sh (Date and time <time.h>): Likewise.
21648         * doc/parse-datetime.texi (Date input formats)
21649         (Authors of parse_datetime): Likewise.
21650         * modules/parse-datetime (Files, configure.ac, Makefile.am)
21651         (Include): Likewise.
21652         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
21653         * gnulib-tool: Likewise.
21654         * m4/bison.m4 (gl_BISON): Likewise.
21655         Suggested by Bruno Haible.
21656
21657 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21658
21659         more ports to Solaris tr, which needs [] around ranges
21660         * gnulib-tool: Solaris tr needs [] around ranges.
21661         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21662         * tests/test-pipe-filter-gi1.c (main): Likewise.
21663         * tests/test-pipe-filter-ii1.c (main): Likewise.
21664
21665 2010-10-05  Eric Blake  <eblake@redhat.com>
21666
21667         bootstrap: fix Solaris regression
21668         * build-aux/bootstrap (check_versions): Solaris tr still needs []
21669         around ranges.
21670         Reported by Pádraig Brady.
21671
21672         bootstrap: work with pkg-config
21673         * build-aux/bootstrap (check_versions): Also transliterate - in
21674         prerequisite name.
21675         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
21676         prerequisites that were already found, to avoid confusion.
21677         Reported by Justin Clift.
21678
21679         faccessat: remove unused wrappers
21680         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
21681         presence of these wrappers dragged in -lgen on Solaris.
21682         Reported by Clemens Brogi; fix suggested by Paul Eggert.
21683
21684 2010-10-05  Jim Meyering  <meyering@redhat.com>
21685
21686         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
21687         * Makefile (sc_pragma_columns): New syntax-check rule.
21688
21689 2010-10-04  Bruno Haible  <bruno@clisp.org>
21690
21691         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
21692         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
21693         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
21694         Reported by Bruce Korb and Eric Blake.
21695
21696 2010-10-04  Bruno Haible  <bruno@clisp.org>
21697
21698         threadlib: Make option --with-libpth-prefix work.
21699         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
21700         use $LIBPTH, not just -lpth.
21701
21702 2010-10-04  Bruno Haible  <bruno@clisp.org>
21703
21704         Avoid line length limitation from HP NonStop system header files.
21705         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
21706         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
21707         * lib/ctype.in.h: Likewise.
21708         * lib/dirent.in.h: Likewise.
21709         * lib/errno.in.h: Likewise.
21710         * lib/fcntl.in.h: Likewise.
21711         * lib/float.in.h: Likewise.
21712         * lib/getopt.in.h: Likewise.
21713         * lib/iconv.in.h: Likewise.
21714         * lib/inttypes.in.h: Likewise.
21715         * lib/langinfo.in.h: Likewise.
21716         * lib/locale.in.h: Likewise.
21717         * lib/math.in.h: Likewise.
21718         * lib/netdb.in.h: Likewise.
21719         * lib/netinet_in.in.h: Likewise.
21720         * lib/poll.in.h: Likewise.
21721         * lib/pthread.in.h: Likewise.
21722         * lib/pty.in.h: Likewise.
21723         * lib/sched.in.h: Likewise.
21724         * lib/se-selinux.in.h: Likewise.
21725         * lib/search.in.h: Likewise.
21726         * lib/signal.in.h: Likewise.
21727         * lib/spawn.in.h: Likewise.
21728         * lib/stdarg.in.h: Likewise.
21729         * lib/stddef.in.h: Likewise.
21730         * lib/stdint.in.h: Likewise.
21731         * lib/stdio.in.h: Likewise.
21732         * lib/stdlib.in.h: Likewise.
21733         * lib/string.in.h: Likewise.
21734         * lib/strings.in.h: Likewise.
21735         * lib/sys_file.in.h: Likewise.
21736         * lib/sys_ioctl.in.h: Likewise.
21737         * lib/sys_select.in.h: Likewise.
21738         * lib/sys_socket.in.h: Likewise.
21739         * lib/sys_stat.in.h: Likewise.
21740         * lib/sys_time.in.h: Likewise.
21741         * lib/sys_times.in.h: Likewise.
21742         * lib/sys_utsname.in.h: Likewise.
21743         * lib/sys_wait.in.h: Likewise.
21744         * lib/sysexits.in.h: Likewise.
21745         * lib/termios.in.h: Likewise.
21746         * lib/time.in.h: Likewise.
21747         * lib/unistd.in.h: Likewise.
21748         * lib/wchar.in.h: Likewise.
21749         * lib/wctype.in.h: Likewise.
21750         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
21751         * modules/ctype (Makefile.am): Likewise.
21752         * modules/dirent (Makefile.am): Likewise.
21753         * modules/errno (Makefile.am): Likewise.
21754         * modules/fcntl-h (Makefile.am): Likewise.
21755         * modules/float (Makefile.am): Likewise.
21756         * modules/getopt-posix (Makefile.am): Likewise.
21757         * modules/iconv-h (Makefile.am): Likewise.
21758         * modules/inttypes (Makefile.am): Likewise.
21759         * modules/langinfo (Makefile.am): Likewise.
21760         * modules/locale (Makefile.am): Likewise.
21761         * modules/math (Makefile.am): Likewise.
21762         * modules/netdb (Makefile.am): Likewise.
21763         * modules/netinet_in (Makefile.am): Likewise.
21764         * modules/poll-h (Makefile.am): Likewise.
21765         * modules/pthread (Makefile.am): Likewise.
21766         * modules/pty (Makefile.am): Likewise.
21767         * modules/sched (Makefile.am): Likewise.
21768         * modules/search (Makefile.am): Likewise.
21769         * modules/selinux-h (Makefile.am): Likewise.
21770         * modules/signal (Makefile.am): Likewise.
21771         * modules/spawn (Makefile.am): Likewise.
21772         * modules/stdarg (Makefile.am): Likewise.
21773         * modules/stddef (Makefile.am): Likewise.
21774         * modules/stdint (Makefile.am): Likewise.
21775         * modules/stdio (Makefile.am): Likewise.
21776         * modules/stdlib (Makefile.am): Likewise.
21777         * modules/string (Makefile.am): Likewise.
21778         * modules/strings (Makefile.am): Likewise.
21779         * modules/sys_file (Makefile.am): Likewise.
21780         * modules/sys_ioctl (Makefile.am): Likewise.
21781         * modules/sys_select (Makefile.am): Likewise.
21782         * modules/sys_socket (Makefile.am): Likewise.
21783         * modules/sys_stat (Makefile.am): Likewise.
21784         * modules/sys_time (Makefile.am): Likewise.
21785         * modules/sys_times (Makefile.am): Likewise.
21786         * modules/sys_utsname (Makefile.am): Likewise.
21787         * modules/sys_wait (Makefile.am): Likewise.
21788         * modules/sysexits (Makefile.am): Likewise.
21789         * modules/termios (Makefile.am): Likewise.
21790         * modules/time (Makefile.am): Likewise.
21791         * modules/unistd (Makefile.am): Likewise.
21792         * modules/wchar (Makefile.am): Likewise.
21793         * modules/wctype (Makefile.am): Likewise.
21794
21795 2010-10-04  Bruno Haible  <bruno@clisp.org>
21796
21797         read-file tests: Avoid a test failure on NonStop Kernel.
21798         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
21799         a regular file.
21800         Reported by Joachim Schmitz <schmitz@hp.com>.
21801
21802 2010-10-03  Bruno Haible  <bruno@clisp.org>
21803
21804         gnulib-tool: Fixes for --create-testdir with --libtool.
21805         * gnulib-tool (func_get_automake_snippet): Don't augment
21806         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
21807         an executable.
21808         (func_create_testdir): Handle module 'alloca' like func_import.
21809         Reported by Bruce Korb <bruce.korb@gmail.com>.
21810
21811 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
21812
21813         Avoid some lines longer than 80 characters.
21814         * lib/stdint.in.h: Break long comment lines.
21815         * lib/math.in.h: Likewise.
21816         (_GL_NUM_UINT_WORDS): New macro, for readability.
21817         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
21818         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
21819         * lib/stdlib.in.h: Likewise.
21820         * lib/spawn.in.h: Likewise.
21821         * lib/sys_socket.in.h: Update an URL.
21822         * lib/sys_stat.in.h: Break long line.
21823
21824 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
21825
21826         Improve pmccabe2html.
21827         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
21828         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
21829         when the sources change. Remove the line in the HTML about "Used
21830         ranges" (which implied that there might be other unused ranges),
21831         rename "Resume" to "Summary" (easier to understand for more users).
21832         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
21833         styles, and some unnecessary blank lines.
21834
21835 2010-10-03  Bruno Haible  <bruno@clisp.org>
21836             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
21837
21838         acl: Add support for ACLs on NonStop Kernel.
21839         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
21840         Check whether the function aclsort() exists.
21841         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
21842         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
21843         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21844         (acl_nontrivial [HAVE_ACLSORT]: New function.
21845         (file_has_acl): Implement for NonStop Kernel.
21846         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21847         (qset_acl): Implement for NonStop Kernel.
21848         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
21849         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21850         (main): Implement for NonStop Kernel.
21851         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
21852         Kernel. Handle this flavor.
21853         * tests/test-set-mode-acl.sh: Likewise.
21854         * tests/test-copy-acl.sh: Likewise.
21855         * tests/test-copy-file.sh: Likewise.
21856
21857 2010-10-03  Bruno Haible  <bruno@clisp.org>
21858
21859         Info about ACLs on NonStop Kernel.
21860         * doc/acl-resources.txt: Add info about NonStop Kernel.
21861         References by Joachim Schmitz <schmitz@hp.com>.
21862
21863 2010-10-02  Bruno Haible  <bruno@clisp.org>
21864
21865         Define missing EDQUOT on NonStop Kernel.
21866         * lib/errno.in.h (EDQUOT): Assign a value if missing.
21867         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
21868         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
21869         missing.
21870         * doc/posix-headers/errno.texi: Mention the NSK bug.
21871         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
21872         Reported by Joachim Schmitz <schmitz@hp.com>.
21873
21874 2010-10-02  Bruno Haible  <bruno@clisp.org>
21875
21876         Update doc for POSIX:2008.
21877         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
21878         Update URL of POSIX specification.
21879
21880 2010-10-02  Bruno Haible  <bruno@clisp.org>
21881
21882         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
21883         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
21884         from gnulib, not from Automake.
21885
21886 2010-10-02  Bruno Haible  <bruno@clisp.org>
21887
21888         New module 'system-posix'.
21889         * modules/system-posix: New file.
21890         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
21891         module is present.
21892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21893         GNULIB_SYSTEM_POSIX.
21894         * modules/stdlib (Depends-on): Remove sys_wait.
21895         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
21896         * doc/posix-functions/system.texi: Mention the new module.
21897         * doc/posix-headers/stdlib.texi: Likewise.
21898         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
21899         define test_sys_wait_macros to a no-op.
21900         Reported by Sam Steingold <sds@gnu.org>.
21901
21902 2010-09-30  Bruno Haible  <bruno@clisp.org>
21903
21904         More renaming from 'getdate' to 'get_date'.
21905         * doc/get_date.texi: Renamed from doc/getdate.texi.
21906         * modules/get_date (Files): Update.
21907         * MODULES.html.sh (Date and time <time.h>): Update.
21908         * DEPENDENCIES: Update.
21909         * gnulib-tool: Update comment.
21910         * m4/bison.m4 (gl_BISON): Likewise.
21911         * m4/get_date.m4 (gl_GET_DATE): Likewise.
21912
21913 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
21914
21915         bootstrap: support ACLOCAL_FLAGS during aclocal
21916         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
21917         can add additional -I dir for third-party .m4 files.
21918
21919 2010-09-30  Eric Blake  <eblake@redhat.com>
21920
21921         bootstrap: use glibtoolize on MacOS
21922         * build-aux/bootstrap (check_versions): Convert libtool into
21923         libtoolize.
21924         (tool search): Move libtool check earlier, and look for
21925         glibtoolize for MacOS.
21926         (gnulib_tool_options): Auto-add --libtool when appropriate.
21927         Reported by Justin Clift.
21928
21929         poll: fix typo that broke test on MacOS
21930         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
21931         Reported by Justin Clift.
21932
21933         getdate: rename to get_date
21934         Note: getdate.h is not renamed, to minimize client impact.
21935         * modules/getdate: Mark obsolete.  Move old contents...
21936         * modules/get_date: ...to new module name.
21937         * modules/getdate-tests: Move...
21938         * modules/get_date-tests: ...here.
21939         * m4/getdate.m4: Move...
21940         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
21941         * lib/getdate.y: Move...
21942         * lib/get_date.y: ...here.
21943         * tests/test-getdate.c: Move...
21944         * tests/test-get_date.c: ...here.
21945         * doc/posix-functions/getdate.texi (getdate): Update name.
21946         * NEWS: Mention the change.
21947
21948 2010-09-29  Bruno Haible  <bruno@clisp.org>
21949
21950         Separate the module 'waitpid' from the module 'sys_wait'.
21951         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
21952         present.
21953         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
21954         gl_MODULE_INDICATOR_FOR_TESTS.
21955         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
21956         * modules/sys_wait (Depends-on): Remove waitpid.
21957         (Makefile.am): Substitute GNULIB_WAITPID.
21958         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
21959         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
21960         signature only if the 'waitpid' module is present.
21961         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
21962         * NEWS: Mention the change.
21963         * modules/grantpt (Depends-on): Add waitpid.
21964         * modules/wait-process (Depends-on): Likewise.
21965
21966 2010-09-29  Bruno Haible  <bruno@clisp.org>
21967
21968         More tests for module 'sys_wait'.
21969         * modules/sys_wait-c++-tests: New file.
21970         * tests/test-sys_wait-c++.cc: New file.
21971         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
21972         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21973
21974 2010-09-29  Bruno Haible  <bruno@clisp.org>
21975
21976         New module 'waitpid'.
21977         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
21978         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
21979         Don't include <process.h>.
21980         (waitpid): Declare only, using modern idiom.
21981         * m4/waitpid.m4: New file.
21982         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
21983         * modules/waitpid: New file.
21984         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
21985         (Makefile.am): Update.
21986         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21987
21988 2010-09-28  Bruno Haible  <bruno@clisp.org>
21989
21990         poll: Assume ANSI C.
21991         * lib/poll.c (poll): Use an ANSI C declaration.
21992
21993 2010-09-28  Bruno Haible  <bruno@clisp.org>
21994
21995         poll-h: Create poll.h on all platforms.
21996         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
21997         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
21998         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
21999         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
22000         (gl_REPLACE_POLL_H): Don't set POLL_H.
22001         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
22002         * modules/poll-h (Depends-on): Add include_next.
22003         (Makefile.am): Create poll.h unconditionally. Substitute also
22004         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
22005
22006 2010-09-28  Bruno Haible  <bruno@clisp.org>
22007
22008         Tests for module 'poll-h'.
22009         * modules/poll-h-c++-tests: New file.
22010         * tests/test-poll-h-c++.cc: New file.
22011
22012         Tests for module 'poll-h'.
22013         * modules/poll-h-tests: New file.
22014         * tests/test-poll-h.c: New file.
22015
22016 2010-09-28  Bruno Haible  <bruno@clisp.org>
22017
22018         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
22019         * modules/poll-h (Depends-on): Add 'extensions'.
22020
22021 2010-09-28  Bruno Haible  <bruno@clisp.org>
22022
22023         New module 'poll-h'.
22024         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
22025         (poll): Use modern idiom.
22026         * modules/poll-h: New file.
22027         * modules/poll (Files): Remove lib/poll.in.h.
22028         (Depends-on): Add poll-h.
22029         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
22030         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
22031         * m4/poll_h.m4: New file.
22032         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
22033         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
22034         and invoke gl_REPLACE_POLL_H.
22035         * lib/poll.c: Use common idiom.
22036         * tests/test-poll.c: Likewise.
22037         * doc/posix-headers/poll.texi: Mention the poll-h module.
22038         Suggested by Eric Blake.
22039
22040 2010-09-26  Bruno Haible  <bruno@clisp.org>
22041
22042         sys_wait: Implement WSTOPSIG.
22043         * lib/sys_wait.in.h (WSTOPSIG): New macro.
22044         Reported by Simon Josefsson.
22045
22046 2010-09-26  Simon Josefsson  <simon@josefsson.org>
22047
22048         stdlib, sys_wait: Avoid compilation error on mingw.
22049         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
22050
22051 2010-09-26  Bruno Haible  <bruno@clisp.org>
22052
22053         stdlib tests: Avoid code duplication.
22054         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
22055         * modules/sys_wait-tests (Files): Likewise.
22056         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
22057         * tests/test-stdlib.c: Include test-sys_wait.h.
22058         (main): Invoke test_sys_wait_macros.
22059         * tests/test-sys_wait.c: Include test-sys_wait.h.
22060         (main): Invoke test_sys_wait_macros.
22061
22062 2010-09-25  Simon Josefsson  <simon@josefsson.org>
22063
22064         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
22065         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
22066         sure Windows sockets are working before calling getaddrinfo.
22067         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
22068         * doc/gnulib.texi (Windows sockets): Fix typo.
22069
22070 2010-09-25  Bruno Haible  <bruno@clisp.org>
22071
22072         Tests for module 'regex-quote'.
22073         * modules/regex-quote-tests: New file.
22074         * tests/test-regex-quote.c: New file.
22075
22076         New module 'regex-quote'.
22077         * lib/regex-quote.h: New file.
22078         * lib/regex-quote.c: New file.
22079         * modules/regex-quote: New file.
22080         Suggested by Reuben Thomas <rrt@sc3d.org>.
22081
22082 2010-09-24  Bruno Haible  <bruno@clisp.org>
22083
22084         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
22085         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
22086
22087 2010-09-23  Bruno Haible  <bruno@clisp.org>
22088
22089         setenv: Relax license.
22090         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
22091         Blake.
22092         Requested by Eric Blake.
22093
22094 2010-09-22  Bruno Haible  <bruno@clisp.org>
22095
22096         termios: Relax license.
22097         * modules/termios (License): Change to LGPLv2+.
22098         Requested by Eric Blake.
22099
22100 2010-09-22  Bruno Haible  <bruno@clisp.org>
22101
22102         threadlib: Allow the package to change the default to 'no'.
22103         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
22104         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
22105         Reported by Paul Eggert.
22106
22107 2010-09-22  Pádraig Brady  <P@draigbrady.com>
22108             Bruno Haible  <bruno@clisp.org>
22109
22110         Fix endless loop in mbmemcasecoll.
22111         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
22112         byte.
22113         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
22114
22115 2010-09-22  Bruno Haible  <bruno@clisp.org>
22116
22117         Tests for module 'memcoll'.
22118         * modules/memcoll-tests: New file.
22119         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
22120
22121         memcoll, xmemcoll: Clarify size vs. length.
22122         * modules/memcoll.c (memcoll0): Clarify specification.
22123         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
22124         passed to collate_error.
22125
22126 2010-09-22  Bruno Haible  <bruno@clisp.org>
22127
22128         Tests for module 'memcasecmp'.
22129         * modules/memcasecmp-tests: New file.
22130         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
22131
22132 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22133
22134         * lib/pthread.in.h: Add split double-inclusion guard, and include
22135         system <pthread.h> if there is one.  Use @@-style as in other
22136         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
22137         pthread.h doesn't.
22138         (pthread_mutexattr_destroy, pthread_mutexattr_init):
22139         (pthread_mutexattr_settype, pthread_mutex_trylock):
22140         New static inline functions, if there's no system <pthread.h>.
22141         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
22142         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
22143         Approximate with mutexes if the system lacks spinlocks, as in
22144         MacOS.
22145         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
22146         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
22147         @@-style.  Check for spinlocks separately.
22148         (gl_PTHREAD_DEFAULTS): New macro.
22149         * modules/pthread: Redo to use a more typical style for in.h files.
22150
22151 2010-09-21  Eric Blake  <eblake@redhat.com>
22152
22153         net_if: enhance tests
22154         * tests/test-net_if.c (main): Move signature checks earlier.
22155         Print failures to stderr.
22156         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
22157         Document the bug that we do not yet fix.
22158
22159 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22160
22161         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
22162         about gnulib, not GSS.
22163
22164 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22165
22166         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
22167         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
22168         for Emacs.
22169         * build-aux/pmccabe2html: Make Makefile.am example code more
22170         cut-and-paste friendly.
22171
22172 2010-09-21  Simon Josefsson  <simon@josefsson.org>
22173
22174         * tests/test-net_if.c: New file.
22175         * modules/net_if-tests: New file.
22176
22177 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22178
22179         pthread: add pthread_spin_destroy
22180         * lib/pthread.in.h (pthread_spin_destroy): New function.
22181
22182 2010-09-19  Bruno Haible  <bruno@clisp.org>
22183
22184         gnulib-tool: Fix --help output.
22185         * gnulib-tool (func_usage): Fix help message.
22186         Reported by Reuben Thomas <rrt@sc3d.org>.
22187
22188 2010-09-18  Jim Meyering  <meyering@redhat.com>
22189
22190         maint.mk: avoid unexpanded \n in two diagnostics
22191         * top/maint.mk (sc_prohibit_always_true_header_tests):
22192         Don't use a literal \n in a halt=... assignment.  It would not be
22193         expanded, and the two \n bytes would appear in the diagnostic output
22194         rather than the desired newline.  Use halt=$$(printf ... instead.
22195         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22196
22197 2010-09-18  Bruno Haible  <bruno@clisp.org>
22198
22199         netinet_in: Doc tweak.
22200         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
22201         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22202
22203 2010-09-18  Jim Meyering  <meyering@redhat.com>
22204
22205         init.sh: correct an outdated comment
22206         * tests/init.sh (create_exe_shims_):  s/function/alias/
22207
22208         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
22209         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
22210         a file named "*.exe" is removed between the glob expansion and the
22211         processing of that oddly named file.
22212
22213 2010-09-17  Eric Blake  <eblake@redhat.com>
22214
22215         mirbsd: add some more support
22216         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
22217         in BSD family.
22218         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
22219         devices as OpenBSD.
22220         * m4/host-os.m4 (mirbsd): Add MirBSD.
22221
22222         tests: fix unportable assumption on sys/wait.h
22223         * tests/test-sys_wait.c (main): Relax test.
22224         * tests/test-stdlib.c (main): Likewise.
22225
22226         init.sh: accomodate directory with no .exes
22227         * tests/init.sh: Accomodate directory containing only scripts.
22228
22229         tests: avoid compiler warning
22230         * tests/test-stdlib.c (main): Use the variable.
22231
22232         fdutimens, fdutimensat: update signature, again
22233         * lib/utimens.h (gl_futimens): Delete, and move signature...
22234         (fdutimens): ...here.
22235         (fdutimensat): Rearrange signature.
22236         (lutimensat): Rename variable for clarity.
22237         * lib/fdutimensat.c (fdutimensat): Update signature.
22238         * lib/utimens.c (fdutimens): Likewise.
22239         (gl_futimens): Delete.
22240         (utimens, lutimens): Update callers.
22241         * lib/futimens.c (futimens): Likewise.
22242         * tests/test-fdutimensat.c: Likewise.
22243         * tests/test-utimens.c: Likewise.
22244         * tests/test-futimens.h: Update comment.
22245         * NEWS: Mention this.
22246         Suggested by Paul Eggert.
22247
22248 2010-09-17  Bruno Haible  <bruno@clisp.org>
22249
22250         Take over the maintenance of some older macros from Autoconf.
22251         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
22252         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
22253         GNU Autoconf.
22254         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
22255         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
22256
22257 2010-09-17  Eric Blake  <eblake@redhat.com>
22258
22259         fdutimensat: drop atflag validation
22260         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
22261         with valid fd, to close a race scenario where futimens is
22262         unsupported and FILE was replaced by a symlink.
22263         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
22264         accordingly.
22265         Suggested by Paul Eggert.
22266
22267 2010-09-16  Bruno Haible  <bruno@clisp.org>
22268
22269         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
22270         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
22271
22272 2010-09-16  Bruno Haible  <bruno@clisp.org>
22273
22274         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
22275         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
22276         login_tty exists.
22277         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22278
22279 2010-09-16  Bruno Haible  <bruno@clisp.org>
22280
22281         login_tty: Make the replacement code work on BSD systems.
22282         * lib/login_tty.c: Include <sys/ioctl.h>.
22283         (login_tty): Use ioctl TIOCSCTTY when available.
22284         * modules/login_tty (Depends-on): Add sys_ioctl.
22285         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22286
22287 2010-09-16  Bruno Haible  <bruno@clisp.org>
22288
22289         login_tty: Stricter unit test.
22290         * modules/login_tty-tests (Depends-on): Add tcgetsid.
22291         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
22292         and tcgetsid() after login_tty.
22293         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22294
22295 2010-09-16  Bruno Haible  <bruno@clisp.org>
22296
22297         New module 'tcgetsid'.
22298         * lib/tcgetsid.c: New file.
22299         * m4/tcgetsid.m4: New file.
22300         * modules/tcgetsid: New file.
22301         * modules/termios (Depends-on): Add c++defs, warn-on-use.
22302         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
22303         GNULIB_TCGETSID, HAVE_TCGETSID.
22304         * lib/termios.in.h: Include <sys/types.h>.
22305         (tcgetsid): New declaration.
22306         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
22307         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
22308         * doc/posix-functions/tcgetsid.texi: Mention the new module.
22309         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
22310
22311 2010-09-16  Bruno Haible  <bruno@clisp.org>
22312
22313         Tests for module 'termios'.
22314         * modules/termios-c++-tests: New file.
22315         * modules/termios-tests: New file.
22316         * tests/test-termios-c++.cc: New file.
22317         * tests/test-termios.c: New file.
22318
22319         New module 'termios'.
22320         * modules/termios: New file.
22321         * lib/termios.in.h: New file.
22322         * m4/termios_h.m4: New file.
22323         * doc/posix-headers/termios.texi: Mention the new module.
22324
22325 2010-09-16  Eric Blake  <eblake@redhat.com>
22326
22327         fdutimensat: add an atflag parameter
22328         * lib/fdutimensat.c (fdutimensat): Add new parameter.
22329         * lib/utimens.h (fdutimensat): Update prototype.
22330         * tests/test-fdutimensat.c: Adjust test to match.
22331         * NEWS: Document the change.
22332         Suggested by Paul Eggert.
22333
22334 2010-09-16  Bruno Haible  <bruno@clisp.org>
22335
22336         Fix typos in comments.
22337         * lib/striconveh.h: Fix typo in comment.
22338         * lib/login_tty.c (login_tty): Likewise.
22339
22340 2010-09-15  Bruno Haible  <bruno@clisp.org>
22341
22342         stdlib: clarify MirBSD WEXITSTATUS bug
22343         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
22344         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22345
22346 2010-09-15  Eric Blake  <eblake@redhat.com>
22347
22348         stdlib: work around MirBSD WEXITSTATUS bug
22349         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
22350         * modules/stdlib (Depends-on): Add sys_wait.
22351         * tests/test-sys_wait.c (main): Enhance test.
22352         * tests/test-stdlib.c (main): Likewise.
22353         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
22354
22355         docs: mention MacOS issue with WEXITSTATUS(constant)
22356         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
22357         issue.
22358         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22359
22360         strnlen: add tests
22361         * modules/strnlen-tests: New file.
22362         * tests/test-strnlen.c: Likewise.
22363
22364 2010-09-14  Bruno Haible  <bruno@clisp.org>
22365
22366         unistr/base: Avoid link errors when module 'libunistring' is also used.
22367         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
22368         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
22369         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
22370         Declare also when HAVE_LIBUNISTRING is set.
22371         Reported by Pádraig Brady <P@draigbrady.com>.
22372
22373 2010-09-14  Eric Blake  <eblake@redhat.com>
22374
22375         test-rawmemchr: make more robust
22376         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
22377         (Depends-on, configure.ac): Add needed prerequisites to use it.
22378         * modules/memchr-tests (Files, Depends-on, configure.ac):
22379         Likewise, to avoid implicit reliance on memchr module prereqs.
22380         * tests/test-memchr.c (main): Ensure proper masking.
22381         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
22382         reads.
22383
22384         memchr: detect glibc Alpha bug
22385         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
22386         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
22387         Alpha.
22388         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
22389         * tests/test-memchr.c (main): Enhance test.
22390         Reported by Nelson H. F. Beebe.
22391
22392 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22393
22394         fts, getcwd, glob: audit for dirfd returning -1
22395         * lib/fts.c (opendir): Remove #define; no longer used.
22396         (opendirat): New arg PDIR_FD.  All callers changed.
22397         (fts_build, _opendir2): Use new opendirat to avoid the need for
22398         dirfd, or for checking whether dirfd returns a negative value.
22399         Don't use opendir; always use openat followed by fdopendir.
22400         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
22401         it.
22402         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
22403         returns -1 here.
22404         * modules/fts (Depends-on): Remove dirfd.
22405         * modules/getcwd (Depends-on): Likewise.
22406
22407 2010-09-13  Eric Blake  <eblake@redhat.com>
22408
22409         float: fix broken MirBSD header
22410         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
22411         * doc/posix-headers/float.texi (float.h): Document it.
22412
22413 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22414
22415         fts: use O_NOFOLLOW to avoid race condition when opening a directory
22416         * lib/fts.c (opendirat): New arg extra_flags.
22417         (__opendir2): Use it to avoid following symlinks when opening
22418         a directory, if symlinks are not supposed to be followed.  See
22419         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
22420
22421         fdopendir: preserve argument fd before returning
22422         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
22423         (fdopendir_with_dup, fd_clone_opendir): New static functions.
22424         (fdopendir): Use them, arranging for FD to be open to the same
22425         directory that it was when it started.  (It might be temporarily
22426         closed while fdopendir is running, so this not thread- or
22427         signal-safe.)  Be careful to do the right thing even when file
22428         descriptors are scarce and dup fails with errno == EMFILE.  See
22429         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
22430
22431 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
22432
22433         regex: Pass the system regex if its only problem is 32-bit regoff_t.
22434         * NEWS: Document change.
22435         * m4/regex.m4: Disable test for regoff_t size.
22436
22437 2010-09-13  Jim Meyering  <meyering@redhat.com>
22438
22439         fts: don't operate on an invalid file descriptor after failed dup
22440         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
22441         negative file descriptor.
22442
22443 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22444
22445         savedir: add streamsavedir, deprecate fdsavedir
22446         * NEWS: Mention deprecation of fdsavedir.
22447         * lib/savedir.c (streamsavedir): New extern function, whose name
22448         ends in "savedir" to be consistent with the others.  This differs
22449         from savedirstream in that it doesn't close its argument.  The
22450         next version of GNU tar will use this instead of fdsavedir, to
22451         avoid some race conditions and conserve file descriptors.
22452         (savedirstream): Reimplement as a wrapper around streamsavedir.
22453         (fdsavedir): Add a comment deprecating this function.  As far as
22454         I know, only GNU tar used it, and GNU tar doesn't need it any more.
22455         * lib/savedir.h (streamsavedir): New decl.
22456         (fdsavedir): Add a comment deprecating this.
22457
22458 2010-09-10  Bruno Haible  <bruno@clisp.org>
22459
22460         langinfo: Fix last commit.
22461         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
22462         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
22463         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22464
22465 2010-09-10  Bruno Haible  <bruno@clisp.org>
22466
22467         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
22468         * lib/progreloc.c (O_EXEC): Define fallback.
22469
22470 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
22471
22472         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
22473         * NEWS: Document recent changes to fcntl-h.
22474         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
22475         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
22476         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
22477         Similarly for O_SEARCH; this last was already true, but not documented.
22478         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
22479         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
22480         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
22481         Likewise.
22482         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
22483         is zero, not whether it is defined.
22484         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
22485         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
22486         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
22487
22488 2010-09-10  Bruno Haible  <bruno@clisp.org>
22489
22490         langinfo, nl_langinfo: Fix for IRIX 5.3.
22491         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
22492         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
22493         HAVE_LANGINFO_YESEXPR.
22494         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
22495         HAVE_LANGINFO_YESEXPR.
22496         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
22497         HAVE_LANGINFO_T_FMT_AMPM is 0.
22498         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
22499         HAVE_LANGINFO_YESEXPR is 0.
22500         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
22501         NOEXPR.
22502         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
22503         * doc/posix-functions/nl_langinfo.texi: Likewise.
22504         Reported by Eric Blake.
22505
22506 2010-09-10  Bruno Haible  <bruno@clisp.org>
22507
22508         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
22509         * doc/glibc-functions/login_tty.texi: Mention the include file problem
22510         on FreeBSD 8.0 and OpenBSD 4.6.
22511         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
22512         * m4/pty_h.m4 (gl_PTY_H): Likewise.
22513         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
22514         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
22515         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
22516         ac_includes_default.
22517         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22518
22519 2010-09-09  Eric Blake  <eblake@redhat.com>
22520
22521         strsignal: work around NetBSD bug
22522         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
22523         * lib/string.in.h (includes): Likewise.
22524         * doc/posix-functions/strsignal.texi (strsignal): Document the
22525         bug.
22526         Reported by Nelson H. F. Beebe.
22527
22528         gnulib-tool: work with NetBSD /bin/sh
22529         * gnulib-tool (func_cache_var, func_cache_lookup_module)
22530         (func_get_description, func_get_comment, func_get_status)
22531         (func_get_notice, func_get_applicability, func_get_filelist)
22532         (func_get_dependencies, func_get_autoconf_early_snippet)
22533         (func_get_autoconf_snippet, func_get_automake_snippet)
22534         (func_get_include_directive, func_get_link_directive)
22535         (func_get_license, func_get_maintainer, func_import): Avoid
22536         shell syntax errors from parsing syntax extensions.
22537
22538 2010-09-09  Bruno Haible  <bruno@clisp.org>
22539
22540         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22541         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
22542         a reliable way to determine whether the 'alias' command works.
22543
22544 2010-09-08  Jim Meyering  <meyering@redhat.com>
22545
22546         init.sh: penalize a set-x-impaired shell; don't disqualify it
22547         * tests/init.sh: Too many shells corrupt application stderr when
22548         you set -x, so we can't afford to disqualify them, since at least
22549         on Irix-6.5, that would disqualify all bourne shells.
22550         Instead, use a two-pass approach.
22551         On the first pass, try to find a shell that meets the stricter
22552         condition that set -x does not corrupt stderr.
22553         If no shell meets the stricter condition, retest each candidate
22554         shell, but without that extra condition.  Finally, when
22555         VERBOSE=yes is requested and set -x might cause trouble, simply
22556         issue a warning and refrain from enabling debug output.
22557
22558 2010-09-08  Eric Blake  <eblake@redhat.com>
22559
22560         unsetenv: fix OpenBSD bug
22561         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
22562         * doc/posix-functions/unsetenv.texi (unsetenv): Update
22563         documentation.
22564         Reported by Jim Meyering.
22565
22566         strtod: work around IRIX 6.5 bug
22567         * lib/strtod.c (strtod): Reparse number on shorter string if
22568         exponent parse was invalid.
22569         * tests/test-strtod.c (main): Add check for "0x1p 2".
22570         Reported by Tom G. Christensen.
22571
22572         getopt: optimize previous patch
22573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
22574         empty variable.  Speed up awk script.
22575         Reported by Paolo Bonzini.
22576
22577 2010-09-08  Jim Meyering  <meyering@redhat.com>
22578
22579         test.sh: disqualify shells for which set -x corrupts stderr
22580         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
22581         and OpenBSD 4.7.  They make it so with "set -x", environment settings
22582         appear in stderr output.  For example, this command:
22583             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
22584         prints "P=1" on those two systems:
22585
22586 2010-09-08  Bruno Haible  <bruno@clisp.org>
22587
22588         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22589         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
22590         commands, because some shells ignore redirections when there is an
22591         error in the command lookup.
22592         Reported by Eric Blake.
22593
22594 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
22595
22596         * lib/regex.h: Fix a mention of `regex_compile' (should be
22597         `re_compile_pattern').
22598         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
22599         (re_set_registers): Correct name of parameter in comment.
22600
22601         * doc/regex.texi: Add documentation for missing syntax flags.
22602         Remove commented-out documentation of defunct syntax option
22603         RE_NO_EMPTY_ALTS.
22604         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
22605         Add documentation of re_set_registers.
22606         Document trick to re-use a pattern buffer by setting fastmap manually.
22607         Update documentation of struct re_pattern_buffer per public members.
22608         Uncomment documentation of equivalence class operators and
22609         collating symbol operators, since they are now implemented,
22610         Explain leftmost-longest matching in relation to alternatives.
22611         Tidy documentation of substring matching.
22612         Remove POSIX documentation, which is done better in
22613         glibc, and refer the reader there. Keep BSD API documentation, as
22614         that is not readily available elsewhere.
22615
22616 2010-09-07  Eric Blake  <eblake@redhat.com>
22617
22618         getopt: handle POSIXLY_CORRECT set but not exported
22619         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
22620         export state of POSIXLY_CORRECT, due to bash set -o posix.
22621         Reported by Dustin J. Mitchell.
22622
22623 2010-09-05  Bruno Haible  <bruno@clisp.org>
22624
22625         gnulib-tool: Highlight the changed options.
22626         * gnulib-tool (func_usage): Display the --import, --add-import,
22627         --remove-import explanations in bold font.
22628
22629 2010-09-06  Karl Berry  <karl@gnu.org>
22630
22631         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
22632
22633 2010-09-05  Bruno Haible  <bruno@clisp.org>
22634
22635         uniwidth/width: Update comment.
22636         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
22637         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
22638
22639 2010-09-05  Bruno Haible  <bruno@clisp.org>
22640
22641         isinf, isnan: Relax license.
22642         * modules/isinf (License): Change from GPL to LGPL, with consent from
22643         Ben Pfaff.
22644         * modules/isnan (License): Likewise.
22645         Requested by Ludovic Courtès.
22646
22647 2010-09-04  Bruno Haible  <bruno@clisp.org>
22648
22649         gnulib-tool: Help migration from --import to --add-import or --update.
22650         * gnulib-tool: Emit a verbose error message when --import is used
22651         without any module name.
22652
22653 2010-09-04  Bruno Haible  <bruno@clisp.org>
22654
22655         Update doc about gnulib-tool.
22656         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
22657         'gnulib-tool --update' in more detail.
22658         Reported by Eric Blake.
22659
22660 2010-09-04  Bruno Haible  <bruno@clisp.org>
22661
22662         gnulib-tool: Change --import. New options --add/remove-import.
22663         * gnulib-tool: New options --add-import, --remove-import.
22664         (func_usage): Document them.
22665         (have_associative): Define always.
22666         (func_import): In import mode, don't merge the specified settings with
22667         the cached settings. Implement remove-import mode.
22668         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
22669         Explain when to use them versus --import.
22670         (Simple update): Use --add-import instead of --import.
22671         * NEWS: Mention the change.
22672
22673 2010-09-04  Bruno Haible  <bruno@clisp.org>
22674
22675         * doc/gnulib-tool.texi (Initial import): Update paragraph about
22676         separate gnulib.mk.
22677
22678 2010-09-04  Bruno Haible  <bruno@clisp.org>
22679
22680         gnulib-tool: Don't talk about CVS any more.
22681         * gnulib-tool (func_usage, func_import): Write "version control"
22682         instead of CVS.
22683
22684 2010-09-04  Jim Meyering  <meyering@redhat.com>
22685
22686         maint.mk: avoid obscure sc_copyright_check failure in coreutils
22687         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
22688         false positives (whose names may be ill-chosen) when searching
22689         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
22690         would cause a false-positive.
22691
22692         avoid coreutils "make distcheck" failure
22693         Coreutils tests with an absolute build directory name that contains
22694         a space.  Not quoting this directory name caused a failure.
22695         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
22696         * tests/test-vc-list-files-cvs.sh: Likewise.
22697
22698 2010-09-04  Bruno Haible  <bruno@clisp.org>
22699
22700         gnulib-tool: Avoid error when run in a package without Makefile.am.
22701         * gnulib-tool: When collecting the m4dirs in a package that does not
22702         have a Makefile.am, eliminate those directories that contain no
22703         gnulib-cache.m4. Fix expression that counts these directories.
22704
22705 2010-09-04  Bruno Haible  <bruno@clisp.org>
22706
22707         update-copyright test: Improve output when perl is missing or too old.
22708         * tests/test-update-copyright.sh: Move test of Perl version down after
22709         the test whether Perl exists. Provide an explanation relating Perl's
22710         error message to Automake's SKIP: message.
22711
22712 2010-09-04  Bruno Haible  <bruno@clisp.org>
22713
22714         Don't augment PATH in TESTS_ENVIRONMENT.
22715         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
22716         set abs_aux_dir instead of augmenting PATH.
22717         * modules/vc-list-files-tests (Makefile.am): Likewise.
22718         * tests/test-update-copyright.sh: Augment PATH here.
22719         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
22720         path_prepend_.
22721         * tests/test-vc-list-files-git.sh: Likewise.
22722
22723 2010-09-04  Jim Meyering  <meyering@redhat.com>
22724
22725         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
22726         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
22727
22728 2010-09-04  Bruno Haible  <bruno@clisp.org>
22729
22730         strdup: Fix compilation error in C++ mode.
22731         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
22732         the macro.
22733
22734 2010-09-04  Bruno Haible  <bruno@clisp.org>
22735
22736         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
22737         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
22738         macro into a function.
22739         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22740
22741 2010-09-04  Bruno Haible  <bruno@clisp.org>
22742
22743         Set PATH_SEPARATOR the same way autoconf does.
22744         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
22745         the value of PATH_SEPARATOR the same way autoconf-generated configure
22746         scripts do.
22747         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
22748         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22749
22750 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22751
22752         Set PATH_SEPARATOR the same way autoconf does.
22753         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
22754         the same way autoconf-generated configure scripts do.
22755         * posix-modules: Likewise.
22756
22757 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22758
22759         hash: fix safe_hasher const typo
22760         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
22761         const; otherwise, there is a type error later.
22762
22763 2010-09-02  Jim Meyering  <meyering@redhat.com>
22764
22765         test-update-copyright.sh: require perl 5.8.0
22766         * tests/test-update-copyright.sh: Require 5.8.0,
22767         which Tom G. Christensen has confirmed is adequate,
22768         while 5.6.1 is not.
22769
22770 2010-09-02  Eric Blake  <eblake@redhat.com>
22771
22772         tests: init.sh improvements for re-exec'ing with zsh
22773         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
22774         -vx through shell re-exec.
22775         Reported by Tom G. Christensen.
22776
22777         wctype: fix typo in previous commit
22778         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
22779         Reported by Ludovic Courtès.
22780
22781 2010-09-02  Jim Meyering  <meyering@redhat.com>
22782
22783         test-update-copyright.sh: skip test if Perl is too old
22784         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
22785         Reported by Tom G. Christensen.
22786
22787 2010-09-02  Bruno Haible  <bruno@clisp.org>
22788
22789         wctype: Avoid compilation error on IRIX 6.5.30.
22790         * lib/wctype.in.h (iswblank): Declare with a replacement if
22791         REPLACE_ISWBLANK is set.
22792         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
22793         declared. Set REPLACE_ISWBLANK.
22794         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
22795         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
22796         * doc/posix-headers/wctype.texi: Likewise.
22797         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22798
22799 2010-09-01  Bruno Haible  <bruno@clisp.org>
22800
22801         New module 'socketlib'.
22802         * modules/socketlib: New file.
22803         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
22804         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
22805         * modules/sockets (Depends-on): Add socketlib.
22806         Suggested by Sam Steingold <sds@gnu.org>.
22807
22808 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22809
22810         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
22811
22812         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
22813         when one needs search access to a directory but not read access.
22814         On systems where it is available, it works in some cases where
22815         O_RDONLY does not, namely on directories that are searchable but
22816         not readable, and which need only to be searchable.  If O_SEARCH
22817         is not available, fall back to the traditional method of using
22818         O_RDONLY.
22819
22820         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
22821         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
22822         when opening a directory that needs only to be searchable.
22823         * lib/chdir-safer.c (chdir_no_follow): Likewise.
22824         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
22825         * lib/openat-proc.c (openat_proc_name): Likewise.
22826         * lib/openat.c (openat_needs_fchdir): Likewise.
22827         * lib/save-cwd.c (save_cwd): Likewise.
22828         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
22829
22830 2010-08-28  Bruno Haible  <bruno@clisp.org>
22831
22832         New module 'host-cpu-c-abi'.
22833         * modules/host-cpu-c-abi: New file.
22834         * m4/host-cpu-c-abi.m4: New file, based on part of
22835         clisp/src/m4/general.m4.
22836         Requested by Sam Steingold <sds@gnu.org>.
22837
22838 2010-08-31  Eric Blake  <eblake@redhat.com>
22839         and Jim Meyering  <meyering@redhat.com>
22840
22841         hash: factor, and guard against misbehaving hasher function
22842         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
22843         of table->hasher's return value.  Also protect against a hash value
22844         so large that adding it to table->bucket results in a NULL pointer.
22845         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
22846         Use it in place of open-coded check-and-abort.
22847
22848 2010-08-30  Bruno Haible  <bruno@clisp.org>
22849
22850         hash: silence spurious clang warning
22851         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
22852         Reported by Eric Blake.
22853
22854 2010-08-30  Eric Blake  <eblake@redhat.com>
22855
22856         strstr, memmem, strcasestr: avoid leaked shell message
22857         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
22858         FreeBSD.
22859         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22860         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22861
22862         tests: silence clang warning
22863         * tests/test-malloca.c (do_allocation): Avoid dead store.
22864
22865 2010-08-29  Bruno Haible  <bruno@clisp.org>
22866
22867         gettext: Fix recent mistake.
22868         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
22869
22870 2010-08-29  Bruno Haible  <bruno@clisp.org>
22871
22872         selinux-h: Offer a --without-selinux option.
22873         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
22874         --without-selinux was specified, skip all tests and define
22875         HAVE_SELINUX_SELINUX_H to 0.
22876         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
22877         set LIB_SELINUX to empty.
22878         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
22879         gl_LIBSELINUX. If --without-selinux was specified, replace
22880         selinux/context.h.
22881         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
22882
22883 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22884             Bruno Haible  <bruno@clisp.org>
22885
22886         Make the module 'realloc-gnu' work again on AIX and OSF/1.
22887         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
22888         of HAVE_REALLOC.
22889         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
22890         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
22891         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
22892         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22893
22894 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22895             Bruno Haible  <bruno@clisp.org>
22896
22897         Make the module 'calloc-gnu' work again on AIX and OSF/1.
22898         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
22899         HAVE_CALLOC.
22900         * lib/xmalloc.c: Update accordingly.
22901         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
22902         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
22903         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
22904
22905 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22906             Bruno Haible  <bruno@clisp.org>
22907
22908         Make the module 'malloc-gnu' work again on AIX and OSF/1.
22909         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
22910         HAVE_MALLOC.
22911         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
22912         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
22913         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22914
22915 2010-08-29  Bruno Haible  <bruno@clisp.org>
22916
22917         Update modules list.
22918         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22919         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
22920         (String handling <string.h>): Add astrxfrm.
22921         (File system functions): Add readlinkat.
22922
22923 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22924
22925         Tests for module 'realloc-gnu'.
22926         * modules/realloc-gnu-tests: New file.
22927         * tests/test-realloc-gnu.c: New file.
22928
22929         Tests for module 'calloc-gnu'.
22930         * modules/calloc-gnu-tests: New file.
22931         * tests/test-calloc-gnu.c: New file.
22932
22933         Tests for module 'malloc-gnu'.
22934         * modules/malloc-gnu-tests: New file.
22935         * tests/test-malloc-gnu.c: New file.
22936
22937 2010-08-28  Bruno Haible  <bruno@clisp.org>
22938
22939         Rename module 'realloc' -> 'realloc-gnu'.
22940         * modules/realloc-gnu: New file, copied from modules/realloc.
22941         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
22942         obsolete.
22943         * modules/mgetgroups (Depends-on): Update.
22944         * doc/posix-functions/realloc.texi: Update.
22945         * NEWS: Mention the change.
22946
22947         Rename module 'calloc' -> 'calloc-gnu'.
22948         * modules/calloc-gnu: New file, copied from modules/calloc.
22949         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
22950         obsolete.
22951         * doc/posix-functions/calloc.texi: Update.
22952         * NEWS: Mention the change.
22953
22954         Rename module 'malloc' -> 'malloc-gnu'.
22955         * modules/malloc-gnu: New file, copied from modules/malloc.
22956         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
22957         obsolete.
22958         * modules/argp (Depends-on): Update.
22959         * modules/regex (Depends-on): Update.
22960         * doc/posix-functions/malloc.texi: Update.
22961         * NEWS: Mention the change.
22962
22963 2010-08-28  Eric Blake  <eblake@redhat.com>
22964
22965         pread, pwrite: add missing dependency
22966         * modules/pread (Depends-on): Add extensions.
22967         * modules/pwrite (Depends-on): Likewise.
22968
22969 2010-08-28  Bruno Haible  <bruno@clisp.org>
22970
22971         unistr/u*-strchr: Fix tests dependencies.
22972         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
22973         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
22974         Reported by Ian Beckwith <ianb@erislabs.net>.
22975
22976 2010-08-28  Bruno Haible  <bruno@clisp.org>
22977
22978         read-file: Don't occupy too much unused memory.
22979         * lib/read-file.c (fread_file): Shrink the buffer at the end.
22980
22981 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
22982             Eric Blake  <eblake@redhat.com>
22983             Bruno Haible  <bruno@clisp.org>
22984
22985         read-file: Avoid memory reallocations with regular files.
22986         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
22987         (fread_file): With regular files, use the remaining length as the
22988         initial buffer size.  Check against overflow.
22989         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
22990         sys_stat.
22991
22992 2010-08-28  Bruno Haible  <bruno@clisp.org>
22993
22994         ftello: Relax license.
22995         * modules/ftello (License): Relax to LGPLv2+.
22996         Reported by Eric Blake.
22997
22998 2010-08-28  Bruno Haible  <bruno@clisp.org>
22999
23000         Avoid relocwrapper link errors due to gnulib replacement functions.
23001         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
23002         function.
23003         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23004
23005 2010-08-28  Bruno Haible  <bruno@clisp.org>
23006
23007         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
23008         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
23009         defined.
23010         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
23011         Suggested by Eric Blake.
23012
23013 2010-08-28  Bruno Haible  <bruno@clisp.org>
23014
23015         sys_socket, netdb: Ensure socklen_t gets defined.
23016         * modules/sys_socket (Depends-on): Add socklen.
23017         * modules/netdb (Depends-on): Likewise.
23018         * modules/getaddrinfo (Depends-on): Remove socklen.
23019         * modules/getsockopt (Depends-on): Likewise.
23020         * modules/setsockopt (Depends-on): Likewise.
23021         * tests/test-sys_socket.c: Check that socklen_t is defined.
23022         * tests/test-netdb.c: Likewise.
23023         * m4/socklen.m4: Update comments.
23024         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23025
23026 2010-08-27  Eric Blake  <eblake@redhat.com>
23027
23028         login_tty: add missing dependency
23029         * modules/login_tty (Depends-on): Add pty.
23030
23031 2010-08-26  Eric Blake  <eblake@redhat.com>
23032
23033         lib-symbol-versions: fix m4 quoting
23034         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
23035         format for AC_LINK_IFELSE.
23036
23037         glob: fix compile test
23038         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
23039
23040         btowc: fix missing file
23041         * modules/btowc (Files): Also ship locale-fr.m4.
23042
23043         lseek: fix link test
23044         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
23045         AC_LINK_IFELSE.
23046
23047         include_next: silence autoconf 2.68 warning
23048         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
23049         AC_COMPILE_IFELSE as special.
23050         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
23051         autoconf < 2.68.
23052
23053         acl: fix compilation test
23054         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
23055         AC_COMPILE_IFELSE.
23056
23057 2010-08-26  Bruno Haible  <bruno@clisp.org>
23058
23059         Modernize AC_TRY_RUN invocations.
23060         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
23061         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23062         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
23063         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
23064         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
23065         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23066         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23067         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23068         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23069         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23070         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23071         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23072         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23073         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23074         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23075         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23076         gl_MBRLEN_NUL_RETVAL): Likewise.
23077         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23078         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23079         Likewise.
23080         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23081         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23082         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23083         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23084         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23085         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23086         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
23087         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23088         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
23089         Likewise.
23090         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23091         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23092         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23093         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23094         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23095         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23096         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23097         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
23098         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23099         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23100
23101 2010-08-26  Bruno Haible  <bruno@clisp.org>
23102
23103         Modernize AC_TRY_LINK invocations.
23104         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
23105         AC_TRY_LINK.
23106         * m4/argp.m4 (gl_ARGP): Likewise.
23107         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
23108         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23109         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23110         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23111         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23112         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
23113         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
23114         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23115         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23116         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23117         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23118         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
23119         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
23120         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23121         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23122         * m4/hostent.m4 (gl_HOSTENT): Likewise.
23123         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23124         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
23125         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23126         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
23127         Likewise.
23128         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
23129         Likewise.
23130         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
23131         Likewise.
23132         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23133         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
23134         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
23135         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23136         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
23137         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23138         * m4/servent.m4 (gl_SERVENT): Likewise.
23139         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23140         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
23141         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
23142         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
23143         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23144         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23145         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23146         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23147         * modules/tsearch-tests (configure.ac): Likewise.
23148
23149 2010-08-26  Bruno Haible  <bruno@clisp.org>
23150
23151         Modernize AC_TRY_COMPILE invocations.
23152         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
23153         AC_TRY_COMPILE.
23154         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
23155         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
23156         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23157         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23158         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23159         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23160         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23161         * m4/lock.m4 (gl_LOCK): Likewise.
23162         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
23163         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23164         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
23165         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23166         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23167         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
23168         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23169         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
23170         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23171         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23172         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23173         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23174         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
23175         extraneous semicolon.
23176
23177 2010-08-26  Jim Meyering  <meyering@redhat.com>
23178
23179         stat-time: relax license LGPL
23180         * modules/stat-time (License): Change from GPL to LGPL,
23181         with consent from all contributors, for use in libguile.
23182         Requested by Ludovic Courtès.
23183
23184 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
23185
23186         poll: return immediately on POLLHUP.
23187         * lib/poll.c (poll): Always set timeout before wait_timeout is
23188         computed.
23189
23190 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23191
23192         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
23193         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
23194         rmdir ("dir/.//"), unlinkat.
23195
23196 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23197
23198         stdbool: avoid spurious failure with modern xlc
23199         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23200
23201 2010-08-24  Bruno Haible  <bruno@clisp.org>
23202
23203         getloadavg: simplify code
23204         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
23205         gl_have_func. Update comments.
23206
23207 2010-08-24  Eric Blake  <eblake@redhat.com>
23208
23209         getloadavg: don't define SVR4 on cygwin
23210         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
23211         only define SVR4 when -lkvm is required.
23212         Reported by Yaakov Selkowitz.
23213
23214 2010-08-24  Bruno Haible  <bruno@clisp.org>
23215
23216         priv-set: fix comment
23217         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
23218
23219 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23220
23221         priv-set: fix comments
23222         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
23223         to match code, as suggested by David Bartley in:
23224         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
23225
23226 2010-08-23  Eric Blake  <eblake@redhat.com>
23227
23228         stdbool: avoid rejecting clang
23229         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23230         * tests/test-stdbool.c: Enable more tests if using the system
23231         <stdbool.h> instead of the gnulib replacement.
23232         (main): Move xlc bug test to a runtime test for all compilers.
23233         Reported by Anders Kaseorg.
23234
23235         argz: fix shell quoting issue
23236         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
23237         Reported by Charles Wilson.
23238
23239 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
23240             Erik Faye-Lund <kusmabite@gmail.com>
23241
23242         poll, select: handle ERROR_BROKEN_PIPE.
23243         * lib/poll.c (win32_compute_revents): Return POLLHUP when
23244         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23245         * lib/select.c (win32_compute_revents): Do not mark a pipe
23246         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23247
23248 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
23249
23250         fts: allow compilation with C++
23251         * lib/fts_.h: Specify extern "C" linkage with C++.
23252
23253 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23254
23255         Fix gnulib-tool sed script de-commentation for AIX sed.
23256         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
23257         sed.
23258
23259 2010-08-17  Eric Blake  <eblake@redhat.com>
23260
23261         test-stddef: test for (some) offsetof bugs
23262         * tests/test-stddef.c: Enhance test to ensure correct type of
23263         offsetof.
23264         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
23265         that we are not fixing at this time.
23266
23267 2010-08-15  Bruno Haible  <bruno@clisp.org>
23268
23269         stpncpy: Allow stpncpy to be defined as a macro.
23270         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
23271         if it's already correctly declared.
23272         * lib/string.in.h (stpncpy): Undefine before redefining.
23273         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
23274
23275 2010-08-14  Bruno Haible  <bruno@clisp.org>
23276
23277         Rename module 'memxfrm' to 'amemxfrm'.
23278         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
23279         (amemxfrm): Renamed from memxfrm.
23280         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
23281         (amemxfrm): Renamed from memxfrm.
23282         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
23283         * NEWS: Mention the change.
23284         * MODULES.html.sh (String handling <string.h>): Update.
23285         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
23286         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
23287         * lib/unicase/u16-casexfrm.c: Likewise.
23288         * lib/unicase/u32-casexfrm.c: Likewise.
23289         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
23290         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
23291         * lib/uninorm/u16-normxfrm.c: Likewise.
23292         * lib/uninorm/u32-normxfrm.c: Likewise.
23293         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
23294         memxfrm.
23295         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
23296         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
23297         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
23298         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
23299         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
23300         Suggested by Paul Eggert.
23301
23302 2010-08-14  Bruno Haible  <bruno@clisp.org>
23303
23304         Tests for module 'astrxfrm'.
23305         * modules/astrxfrm-tests: New file.
23306         * tests/test-astrxfrm.c: New file.
23307
23308         New module 'astrxfrm'.
23309         * lib/astrxfrm.h: New file.
23310         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
23311         * modules/astrxfrm: New file.
23312
23313 2010-08-14  Reuben Thomas <rrt@sc3d.org>
23314
23315         regex: Tweak doc.
23316         * doc/regex.texi (Overview): Don't mention regex.c.
23317         (GNU Regular Expression Compiling): Likewise.
23318         (Match-end-of-line Operator): Mention 'not_eol'.
23319
23320 2010-08-14  Brian Gough  <bjg@gnu.org>
23321             Bruno Haible  <bruno@clisp.org>
23322
23323         git-merge-changelog: add doc relating to use with bzr and hg.
23324         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
23325
23326 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
23327
23328         pthread: fix pthread.h creation for srcdir != builddir
23329         * modules/pthread (Makefile.am): Fix the rule to work also in a
23330         non-srcdir build.
23331
23332 2010-08-13  Karl Berry  <karl@gnu.org>
23333
23334         * doc/regex.texi (Predefined Syntaxes): @smallexample.
23335         * doc/posix-*/*: force line break before @url of POSIX
23336         specifications.
23337         Suggested by Werner Lemberg.
23338
23339 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23340
23341         strtod: fix const diagnostic
23342         * lib/strtod.c (strtod): Don't assign const char * to char *,
23343         as this elicits a warning from GCC when warnings are enabled.
23344
23345 2010-08-10  Pádraig Brady <P@draigbrady.com>
23346         and Eric Blake  <eblake@redhat.com>
23347
23348         copy-acl: ignore ENOTSUP on HP-UX
23349         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
23350         so that it is available for HP-UX.
23351         * lib/copy-acl.c (qcopy_acl): Use it.
23352         Reported by Patrick M. Callahan.
23353
23354 2010-08-10  Eric Blake  <eblake@redhat.com>
23355
23356         open, chown: relax license
23357         * modules/open (License): Change to LGPLv2+, with consent by all
23358         authors, for use in augeas.
23359         * modules/chown (License): Likewise.
23360         * modules/lchown (Likewise): Likewise.
23361         Requested by Adam Stokes.
23362
23363 2010-08-09  Karl Berry  <karl@gnu.org>
23364
23365         * build-aux/ar-lib: new file, import from Automake.
23366         * config/srclist.txt: autocheck for updates.
23367
23368 2010-08-09  Eric Blake  <eblake@redhat.com>
23369
23370         readlinkat: adjust client modules
23371         * modules/areadlinkat (Depends-on): Use readlinkat, not
23372         symlinkat.
23373         * modules/areadlinkat-with-size (Depends-on): Likewise.
23374
23375         mknod: be more vocal about danger of running tests as root
23376         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
23377         root, since that is just asking for problems.
23378         Suggested by Bruno Haible, based on a report by Rainer Tammer.
23379
23380         readlinkat: split into its own module
23381         * modules/symlinkat: Split readlinkat...
23382         * modules/readlinkat: ...into separate module.
23383         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
23384         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
23385         * lib/symlinkat.c (readlinkat): Move...
23386         * lib/readlinkat.c: ...into new file.
23387         * modules/symlinkat-tests: Split readlinkat test...
23388         * modules/readlinkat-tests: ...into separate module.
23389         * tests/test-symlinkat.c: Split...
23390         * tests/test-readlinkat.c: ...into new file.
23391         * NEWS: Document the split.
23392         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23393         * lib/unistd.in.h (readlinkat): Likewise.
23394         Suggested by Bruno Haible.
23395
23396 2010-08-08  Bruno Haible  <bruno@clisp.org>
23397
23398         memxfrm: Speed up.
23399         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
23400         that usually only one call to strxfrm is necessary for each string
23401         part.
23402         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23403
23404 2010-08-07  Karl Berry  <karl@gnu.org>
23405
23406         * doc/posix-headers/limits.texi,
23407         * doc/posix-functions/malloc.texi,
23408         * doc/posix-functions/strsignal.texi: missing @item.
23409         * doc/ld-version-script.texi: spurious leading i.
23410         * doc/regex.texi (Interval Operators): no commas inside @var.
23411
23412 2010-08-01  Bruno Haible  <bruno@clisp.org>
23413
23414         Integrate the regex documentation.
23415         * doc/gnulib.texi: Define 'cn' index.
23416         (Regular expressions): New a chapter that includes regex.texi and
23417         regexprops-generic.texi.
23418         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
23419         syntax.
23420
23421         Whitespace cleanup.
23422         * doc/regex.texi: Remove trailing spaces.
23423
23424         Add regex documentation.
23425         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
23426         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
23427         Written by Kathy A. Hargreaves and Karl Berry.
23428
23429 2010-08-01  Bruno Haible  <bruno@clisp.org>
23430
23431         link: Update documentation.
23432         * doc/posix-functions/link.texi: Update regarding Solaris.
23433
23434 2010-07-31  Bruno Haible  <bruno@clisp.org>
23435
23436         Update modules list.
23437         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
23438         (String handling <string.h>): Add memcmp2, memxfrm.
23439         (Container data structures): Add xlist, xsublist, xoset.
23440         (Core language properties): Add alignof, unused-parameter.
23441         (Process control, Numeric conversion functions <stdlib.h>): Renamed
23442         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
23443         (Unibyte characters <ctype.h>): New section.
23444         (String handling <string.h>): New section.
23445         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
23446         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
23447         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
23448         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
23449         tan, tanh, tanl, y0, y1, yn.
23450         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
23451         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
23452         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
23453         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
23454         unlockpt, vdprintf, vdprintf-posix.
23455         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
23456         (File system functions): Add concat-filename, sys_file, sys_ioctl,
23457         xconcat-filename.
23458         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
23459         getdtablesize, pipe2, pipe2-safer.
23460         (Security): New section.
23461         (Networking functions): Add accept4.
23462         (Signal handling): Add sigpipe.
23463         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
23464         mbmemcasecoll.
23465         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
23466         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
23467         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
23468         pipe-filter-ii.
23469         (Misc): Add argp-version-etc, login_tty, parse-duration.
23470
23471 2010-07-31  Bruno Haible  <bruno@clisp.org>
23472
23473         Improve doc in MODULES.html.
23474         * modules/linkat (Description): Add the word "function".
23475         * modules/mkfifo (Description): Likewise.
23476         * modules/mknod (Description): Likewise.
23477         * modules/remove (Description): Likewise.
23478         * modules/renameat (Description): Likewise.
23479         * modules/stat (Description): Likewise.
23480         * modules/symlink (Description): Likewise.
23481         * modules/unlink (Description): Likewise.
23482
23483 2010-07-31  Bruno Haible  <bruno@clisp.org>
23484
23485         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
23486         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
23487         option --enable/disable-c++ instead of --enable/disable-cxx.
23488         * NEWS: Mention the change.
23489
23490 2010-07-31  Bruno Haible  <bruno@clisp.org>
23491
23492         readlink, areadlink: Relax test a bit.
23493         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
23494         alternative to ENOTDIR.
23495         * tests/test-areadlink.h (test_areadlink): Likewise.
23496         Reported by Rainer Tammer.
23497
23498 2010-07-31  Bruno Haible  <bruno@clisp.org>
23499
23500         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
23501         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
23502         character, perform the search using U_STRCHR.
23503         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
23504         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
23505         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
23506         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
23507         Suggested by Paolo Bonzini.
23508
23509 2010-07-31  Bruno Haible  <bruno@clisp.org>
23510
23511         unistr/u*-strstr: Fix dependencies.
23512         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
23513         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
23514         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
23515
23516 2010-07-31  Bruno Haible  <bruno@clisp.org>
23517
23518         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
23519         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
23520         the beginning of the loop.
23521         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
23522         cases in 'switch' statement.
23523
23524         unistr/u8-strchr: Fix several bugs.
23525         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
23526         the string. When not found, return NULL, not a pointer near the end.
23527
23528         More tests for unistr/u8-strchr.
23529         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
23530         that the function does not read past the first occurrence of the byte
23531         being searched.
23532         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
23533         * tests/unistr/test-u16-strchr.c (main): New function.
23534         * tests/unistr/test-u32-strchr.c (main): New function.
23535
23536 2010-07-31  Bruno Haible  <bruno@clisp.org>
23537
23538         posix-modules: Ignore backup files of documentation files.
23539         * posix-modules: grep only through files named *.texi.
23540
23541 2010-07-31  Bruno Haible  <bruno@clisp.org>
23542
23543         symlinkat: Fix documentation.
23544         * doc/posix-functions/readlinkat.texi: Fix module name.
23545
23546 2010-07-31  Bruno Haible  <bruno@clisp.org>
23547
23548         fchownat: Replace also when chown has the trailing slash bug.
23549         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
23550         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
23551         introduced on 2010-04-10.
23552         Reported by Rainer Tammer.
23553
23554 2010-07-31  Bruno Haible  <bruno@clisp.org>
23555
23556         linkat: Work around AIX 7.1 bug.
23557         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
23558         whether linkat handles trailing slash correctly. If not, replace linkat
23559         and define LINKAT_TRAILING_SLASH_BUG.
23560         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
23561         check whether (fd1,file1) points to a directory if file1 or file2 ends
23562         in a slash. Code taken from lib/link.c.
23563         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
23564         Reported by Rainer Tammer.
23565
23566 2010-07-31  Bruno Haible  <bruno@clisp.org>
23567
23568         Correctly determine whether pow is available in libc on AIX 7 with xlc.
23569         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
23570         This disables an xlc optimization that was causing wrong test results.
23571         Reported by Rainer Tammer.
23572
23573 2010-07-31  Bruno Haible  <bruno@clisp.org>
23574
23575         iconv: Work around AIX 6.1..7.1 bug.
23576         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
23577         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
23578         cross-compiling, guess no on all versions of AIX.
23579         Reported by Rainer Tammer.
23580
23581 2010-07-31  Bruno Haible  <bruno@clisp.org>
23582
23583         readlink: Relax test a bit.
23584         * tests/test-readlink.h (test_readlink): Allow different errno value
23585         when readlink is called with a file name that ends in / and refers to
23586         a file.
23587         Suggested by Eric Blake.
23588         Reported by Rainer Tammer.
23589
23590 2010-07-31  Bruno Haible  <bruno@clisp.org>
23591
23592         copysign: Does not require -lm on glibc systems.
23593         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
23594         gl_COMMON_DOUBLE_MATHFUNC.
23595         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
23596
23597 2010-07-31  Bruno Haible  <bruno@clisp.org>
23598
23599         duplocale: Work around AIX 7.1 bug.
23600         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
23601         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
23602         * lib/duplocale.c (rpl_duplocale): Update comment.
23603         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
23604         Reported by Rainer Tammer.
23605
23606 2010-07-30  Bruno Haible  <bruno@clisp.org>
23607
23608         dirfd: Avoid link error on AIX 7.1.
23609         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
23610         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
23611         exist, set REPLACE_DIRFD.
23612         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
23613         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
23614         * doc/posix-functions/dirfd.texi: Update.
23615         Reported by Rainer Tammer.
23616
23617 2010-07-30  Eric Blake  <eblake@redhat.com>
23618
23619         strtod: next round of AIX fixes
23620         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
23621         exponent.
23622         * tests/test-strtod.c (main): Enhance tests.
23623         * doc/posix-functions/strtod.texi (strtod): Document next bug.
23624         Reported by Rainer Tammer.
23625
23626         futimens: fix configure check
23627         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
23628         Reported by Bruno Haible.
23629
23630 2010-07-30  Bruno Haible  <bruno@clisp.org>
23631
23632         getline: Update regarding AIX.
23633         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
23634         Reported by Rainer Tammer.
23635
23636 2010-07-30  Bruno Haible  <bruno@clisp.org>
23637
23638         wcwidth: Drop replacement on AIX 7.
23639         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
23640         AIX 7.
23641         Reported by Rainer Tammer.
23642
23643 2010-07-30  Bruno Haible  <bruno@clisp.org>
23644
23645         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
23646         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
23647         a 'char *'.
23648         Reported by Rainer Tammer.
23649
23650 2010-07-30  Bruno Haible  <bruno@clisp.org>
23651
23652         unlink: Update regarding AIX.
23653         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
23654         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
23655         Reported by Rainer Tammer.
23656
23657 2010-07-30  Bruno Haible  <bruno@clisp.org>
23658
23659         symlink: Update regarding AIX.
23660         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
23661         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
23662         Reported by Rainer Tammer.
23663
23664 2010-07-30  Bruno Haible  <bruno@clisp.org>
23665
23666         strndup: Update regarding AIX.
23667         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
23668         AIX 7.
23669         Reported by Rainer Tammer.
23670
23671 2010-07-30  Bruno Haible  <bruno@clisp.org>
23672
23673         stat: Update regarding AIX.
23674         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
23675         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
23676         Reported by Rainer Tammer.
23677
23678 2010-07-30  Bruno Haible  <bruno@clisp.org>
23679
23680         truncl: Fix autoconf test.
23681         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
23682         whether truncl works.
23683         Reported by Rainer Tammer.
23684
23685 2010-07-30  Bruno Haible  <bruno@clisp.org>
23686
23687         round: Update regarding AIX.
23688         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
23689         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
23690         Reported by Rainer Tammer.
23691
23692 2010-07-30  Bruno Haible  <bruno@clisp.org>
23693
23694         rename: Update regarding AIX.
23695         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
23696         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
23697         Reported by Rainer Tammer.
23698
23699 2010-07-30  Bruno Haible  <bruno@clisp.org>
23700
23701         printf.m4: Update regarding AIX.
23702         * m4/printf.m4: Update comments regarding AIX.
23703         Reported by Rainer Tammer.
23704
23705 2010-07-30  Bruno Haible  <bruno@clisp.org>
23706
23707         iconv: Update regarding AIX.
23708         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
23709         AIX 7.
23710         Reported by Rainer Tammer.
23711
23712 2010-07-30  Bruno Haible  <bruno@clisp.org>
23713
23714         getopt: Update regarding AIX.
23715         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
23716         no on AIX.
23717         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
23718         Reported by Rainer Tammer.
23719
23720 2010-07-30  Bruno Haible  <bruno@clisp.org>
23721
23722         ldexpl; Update regarding AIX.
23723         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
23724         on AIX 7.
23725         Reported by Rainer Tammer.
23726
23727 2010-07-30  Bruno Haible  <bruno@clisp.org>
23728
23729         frexpl: Update regarding AIX.
23730         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
23731         on AIX 7.
23732         Reported by Rainer Tammer.
23733
23734 2010-07-30  Bruno Haible  <bruno@clisp.org>
23735
23736         open, fopen: Update regarding AIX.
23737         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
23738         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23739         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
23740         * doc/posix-functions/fopen.texi: Likewise.
23741         Reported by Rainer Tammer.
23742
23743 2010-07-30  Bruno Haible  <bruno@clisp.org>
23744
23745         chown: Update doc regarding AIX.
23746         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
23747         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
23748         Reported by Rainer Tammer.
23749
23750 2010-07-30  Eric Blake  <eblake@redhat.com>
23751
23752         strtod: fix bug in replacement function on AIX
23753         * lib/strtod.c (strtod): Special case broken "0x" parse in
23754         underlying strtod.
23755         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
23756         * doc/posix-functions/strtod.texi (strtod): Likewise.
23757         Reported by Rainer Tammer.
23758
23759 2010-07-30  Bruno Haible  <bruno@clisp.org>
23760
23761         mbrlen: Fix cross-compilation guess for AIX.
23762         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
23763         guess. Leftover from 2008-12-22.
23764
23765 2010-07-30  Bruno Haible  <bruno@clisp.org>
23766
23767         mbrtowc: Fix cross-compilation guess for AIX.
23768         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
23769         guess. Leftover from 2008-12-21.
23770
23771 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
23772
23773         init.sh: work around trap limitation of some shells
23774         * tests/init.sh (setup_): Move exit trap outside of shell function.
23775
23776 2010-07-29  Eric Blake  <eblake@redhat.com>
23777
23778         strtod: aid debugging
23779         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
23780         understanding why strtod is rejected.
23781
23782 2010-07-28  Bruno Haible  <bruno@clisp.org>
23783
23784         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
23785         * lib/unistr/u8-chr.c: Include <string.h>.
23786         * tests/unistr/test-u8-chr.c: Likewise.
23787         * tests/unistr/test-u16-chr.c: Likewise.
23788         * tests/unistr/test-u32-chr.c: Likewise.
23789         * tests/unistr/test-u8-strchr.c: Likewise.
23790         * tests/unistr/test-u16-strchr.c: Likewise.
23791         * tests/unistr/test-u32-strchr.c: Likewise.
23792         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
23793         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
23794         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
23795         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
23796
23797 2010-07-28  Bruno Haible  <bruno@clisp.org>
23798
23799         Use spaces for indentation, not tabs.
23800         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23801
23802 2010-07-27  Bruno Haible  <bruno@clisp.org>
23803
23804         mbspcasecmp: Fix function specification.
23805         * lib/string.in.h (mbspcasecmp): Fix specification comment.
23806         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
23807         Reported by Eric Blake <eblake@redhat.com>.
23808
23809 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
23810
23811         timespec: use cast and not conditional, as truncation isn't possible
23812         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
23813         instead of a conditional.  Comment about the situation in more detail.
23814         This undoes most of the 2009-10-29 patch.
23815
23816 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
23817
23818         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
23819         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
23820         * lib/unistr/u8-strchr.c: Likewise.
23821         * modules/unistr/u8-chr: Depend on memchr.
23822
23823         unistr/u*-strchr: add tests
23824         * modules/unistr/u8-strchr-tests: New file.
23825         * modules/unistr/u16-strchr-tests: New file.
23826         * modules/unistr/u32-strchr-tests: New file.
23827         * tests/unistr/test-strchr.h: New file.
23828         * tests/unistr/test-u8-strchr.c: New file.
23829         * tests/unistr/test-u16-strchr.c: New file.
23830         * tests/unistr/test-u32-strchr.c: New file.
23831
23832         unistr/u*-chr: test multibyte sequences more
23833         * tests/unistr/test-chr.h: Do complete testing of the characters in the
23834         test vector.
23835         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
23836         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
23837         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
23838
23839         unistr/u*-chr: test multibyte sequences
23840         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
23841
23842         unistr/u*-chr: prepare for multibyte tests
23843         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
23844         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
23845         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
23846         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
23847         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
23848         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
23849
23850 2010-07-18  Bruno Haible  <bruno@clisp.org>
23851
23852         unistr/u8-strchr: Optimize non-ASCII argument case.
23853         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
23854         because the first byte often matches anyway.
23855         Reported by Pádraig Brady <P@draigbrady.com>.
23856
23857 2010-07-15  Karl Berry  <karl@gnu.org>
23858
23859         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
23860
23861 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
23862
23863         getcwd: on Solaris, work better if ancestors are inaccessible
23864         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
23865         buffer and size, try again with a large buffer.  This works better
23866         on Solaris, since its getcwd succeeds even if the path to the root
23867         is inaccessible, and this is helpful in common cases such as .zfs
23868         hidden directories.  Problem reported by J Chapman Flack in
23869         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
23870         Use system getcwd if it's declared, not merely if it's partly
23871         working; use the partly-working test only to avoid needless effort
23872         if the system getcwd fails.
23873         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
23874         comment that was already obsolete and is now even more obsolete.
23875         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
23876         now might call strdup.
23877
23878 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
23879
23880         pthread: Add enough so that coreutils/src/sort.c compiles.
23881         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
23882         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
23883         gnulib. Include <sched.h> and <time.h>, as per POSIX.
23884         Include <sys/types.h>, in case it defines pthread_t.
23885         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
23886         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
23887         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
23888         (pthread_rwlockattr_t, pthread_spinlock_t):
23889         New typedefs, if HAVE_PTHREAD_T is not defined.
23890         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
23891         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
23892         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
23893         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
23894         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
23895         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
23896         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
23897         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
23898         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
23899         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
23900         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
23901         New macros.
23902         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
23903         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
23904         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
23905         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
23906         (pthread_spin_unlock): New dummy functions.
23907         (pthread_create): Return EAGAIN; don't set errno.
23908         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
23909         require AC_C_INLINE.
23910         * modules/pthread (Depends-on): Add sched, time.
23911         (pthread.h): Use AM_V_GEN.
23912
23913 2010-07-13  Bruno Haible  <bruno@clisp.org>
23914
23915         striconveh: Don't malloc memory if the result buffer is sufficient.
23916         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
23917         buffer if its size is sufficient.
23918         Reported by Ludovic Courtès <ludo@gnu.org>.
23919
23920 2010-07-13  Bruno Haible  <bruno@clisp.org>
23921
23922         strtod: Add safety check.
23923         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
23924
23925 2010-07-12  Bruno Haible  <bruno@clisp.org>
23926
23927         Unify tests that set gl_cv_func_ldexpl_no_libm.
23928         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
23929         gl_FUNC_LDEXPL.
23930         (gl_FUNC_LDEXPL): Invoke it.
23931         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23932
23933 2010-07-12  Bruno Haible  <bruno@clisp.org>
23934
23935         Unify tests that set gl_cv_func_ldexp_no_libm.
23936         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
23937         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
23938         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
23939         (configure.ac): Simply invoke gl_FUNC_LDEXP.
23940         * modules/strtod (Files): Add m4/ldexp.m4.
23941
23942 2010-07-12  Bruno Haible  <bruno@clisp.org>
23943
23944         Unify tests that set gl_cv_func_frexpl_no_libm.
23945         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
23946         gl_FUNC_FREXPL_NO_LIBM.
23947         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
23948         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23949
23950 2010-07-12  Bruno Haible  <bruno@clisp.org>
23951
23952         Unify tests that set gl_cv_func_frexp_no_libm.
23953         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
23954         gl_FUNC_FREXP_NO_LIBM.
23955         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
23956         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23957
23958 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23959
23960         memcoll: clarify sizes versus lengths, document better, and tweak perf
23961         * lib/memcoll.c (strcoll_loop, memcoll0):
23962         Improve quality of descriptive comments.  Name variables
23963         consistently as to whether they are lengths (which do not include
23964         terminating null) versus sizes (which do).
23965         * lib/xmemcoll.c (xmemcoll0): Likewise.
23966         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
23967         returned when s1size == 0; this is easier to compile and saves
23968         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
23969
23970 2010-07-12  Bruno Haible  <bruno@clisp.org>
23971
23972         Tests for module '_Exit'.
23973         * modules/_Exit-tests: New file.
23974         * tests/test-_Exit.sh: New file.
23975         * tests/test-_Exit.c: New file.
23976
23977         New module '_Exit'.
23978         * lib/stdlib.in.h (__attribute__): New macro.
23979         (_Exit): New declaration.
23980         * lib/_Exit.c: New file.
23981         * m4/_Exit.m4: New file.
23982         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
23983         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
23984         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
23985         * modules/_Exit: New file.
23986         * tests/test-stdlib-c++.cc (_Exit): Check signature.
23987         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
23988
23989 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23990
23991         strtod: make it more-accurate typically, and don't require libm
23992         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
23993         Include limits.h.  Don't include string.h.
23994         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
23995         (locale_isspace): New function, so that no casts are needed to
23996         check whether *s is a space.
23997         (ldexp): Provide an unused dummy if not available.
23998         (scale_radix_exp, parse_number, underlying_strtod): New functions.
23999         (strtod): Use them.  This implementation prefers to use the
24000         underlying strtod if available, falling back on our own code
24001         only to fix known bugs.  This is more likely to produce an
24002         accurate result.  Also, it avoids the use of libm functions.
24003         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
24004         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
24005         was absent, but it caused a test failure with coreutils.
24006         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
24007         with libm.
24008         * modules/strtod (Makefile.am, Link): libm is no longer needed.
24009         * modules/strtod-tests (Makefile.am): Likewise.
24010
24011 2010-07-11  Pádraig Brady  <P@draigBrady.com>
24012             Bruno Haible  <bruno@clisp.org>
24013
24014         unistr/u8-strchr: Optimize ASCII argument case.
24015         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
24016
24017 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24018
24019         (x)memcoll: minor tweaks
24020         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
24021         is after the type that it qualifies.
24022         (memcoll0): Likewise.
24023         * lib/memcoll.h (memcoll0): Likewise.
24024         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
24025         * lib/xmemcoll.h (xmemcoll0): Likewise.
24026         * lib/memcoll.c (memcoll0): Correct the comment.  This function
24027         differs from memcoll in that the NUL byte is part of the argument.
24028         Omit the abort-checks, as performance is a real issue here.  Plus,
24029         the checks were wrong anyway (an off-by-one error).  Omit local
24030         variable 'diff', as it's a bit clearer that way.
24031         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
24032         no longer needed.
24033
24034 2010-07-08  Chen Guo <chenguo4@yahoo.com>
24035
24036         (x)memcoll: speedup when input is known to be NUL delimited
24037         * lib/memcoll.c: Include stdlib.
24038         (memcoll0): New function.
24039         (strcoll_loop): New function, refactored for use in both memcoll
24040         and memcoll0.
24041         * lib/memcoll.h (memcoll0): Add prototype.
24042         * lib/xmemcoll.c (xmemcoll0): New function.
24043         (collate_error): New function, refactored for use in both xmemcoll
24044         and xmemcoll0.
24045         * lib/xmemcoll.h (xmemcoll0): Add prototype.
24046         * m4/memcoll.m4: add inline invocation.
24047
24048 2010-07-06  Pádraig Brady  <P@draigBrady.com>
24049
24050         * build-aux/bootstrap: Remove any local translations
24051         from the translation project synchronization directory,
24052         so that local only translations are not distributed.
24053
24054 2010-07-04  Bruno Haible  <bruno@clisp.org>
24055
24056         fsusage: Clarify which code applies to which platforms.
24057         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
24058         platform.
24059         * lib/fsusage.c (get_fs_usage): Likewise.
24060
24061 2010-07-04  Bruno Haible  <bruno@clisp.org>
24062
24063         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
24064         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
24065         Reported by Martin Lambers <marlam@marlam.de>.
24066
24067 2010-07-04  Jim Meyering  <meyering@redhat.com>
24068
24069         hash: once again explicitly disallow insertion of NULL
24070         * lib/hash.c (hash_insert0): Reinstate just-removed test:
24071         inserting a NULL pointer cannot work with these functions.
24072         Add a comment with details.
24073         This reverts part of the 2010-07-01 commit, 5bef1a35
24074         "hash: extend module to deal with non-pointer keys".
24075
24076 2010-07-01  Bruno Haible  <bruno@clisp.org>
24077
24078         stdbool: Update doc.
24079         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
24080         Info from Christian Weisgerber <naddy@mips.inka.de>.
24081
24082 2010-07-01  Jim Meyering  <meyering@redhat.com>
24083
24084         hash: extend module to deal with non-pointer keys
24085         * lib/hash.c (hash_insert0): New interface, much like hash_insert
24086         but that allows insertion of non-pointer entries.
24087         Do not disallow an ENTRY value of NULL.
24088         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
24089         * lib/hash.h (hash_insert0): Declare.
24090
24091 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24092
24093         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
24094         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
24095         not present (i.e. with autoconf 2.59 and when using gettextize, not
24096         gnulib), require AC_GNU_SOURCE instead.
24097
24098 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
24099
24100         idpriv-drop: Fix tests.
24101         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
24102         not to the test-idpriv-droptemp program.
24103
24104 2010-06-29  Bruno Haible  <bruno@clisp.org>
24105
24106         string: Fix syntax error with g++ 2.96.
24107         * lib/string.in.h (__pure__): Remove definition.
24108         (_GL_ATTRIBUTE_PURE): New macro.
24109         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
24110         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
24111         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24112
24113 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
24114
24115         unitypes: Fix bug introduced on 2010-05-18.
24116         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
24117
24118 2010-06-22  Eric Blake  <eblake@redhat.com>
24119
24120         memmem: slight optimization
24121         * lib/str-two-way.h (critical_factorization): Update comments.
24122         Reduce work during factorization phase.
24123         Reported by Carlos Bueno <carlos@bueno.org>.
24124
24125 2010-06-21  Bruno Haible  <bruno@clisp.org>
24126
24127         Fix HAVE_CALLOC_POSIX misnomer.
24128         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
24129         !HAVE_CALLOC_POSIX.
24130         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
24131         HAVE_CALLOC_POSIX.
24132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
24133         instead of HAVE_CALLOC_POSIX.
24134         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
24135         HAVE_CALLOC_POSIX.
24136
24137         Use modern idiom for calloc() replacement.
24138         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
24139         AC_FUNC_CALLOC.
24140         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
24141         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
24142         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24143         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
24144         (gl_REPLACE_CALLOC): New macro.
24145
24146 2010-06-21  Bruno Haible  <bruno@clisp.org>
24147
24148         Fix HAVE_REALLOC_POSIX misnomer.
24149         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
24150         !HAVE_REALLOC_POSIX.
24151         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
24152         HAVE_REALLOC_POSIX.
24153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
24154         instead of HAVE_REALLOC_POSIX.
24155         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
24156         HAVE_REALLOC_POSIX.
24157
24158         Use modern idiom for realloc() replacement.
24159         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
24160         AC_FUNC_REALLOC.
24161         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
24162         Autoconf's AC_FUNC_REALLOC.
24163         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24164         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
24165         (gl_REPLACE_REALLOC): New macro.
24166         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24167
24168 2010-06-21  Bruno Haible  <bruno@clisp.org>
24169
24170         Fix HAVE_MALLOC_POSIX misnomer.
24171         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
24172         !HAVE_MALLOC_POSIX.
24173         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
24174         HAVE_MALLOC_POSIX.
24175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
24176         instead of HAVE_MALLOC_POSIX.
24177         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
24178         HAVE_MALLOC_POSIX.
24179
24180         Use modern idiom for malloc() replacement.
24181         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
24182         AC_FUNC_MALLOC.
24183         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
24184         Autoconf's AC_FUNC_MALLOC.
24185         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24186         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
24187         (gl_REPLACE_MALLOC): New macro.
24188         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24189
24190 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
24191
24192         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
24193         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
24194         This macro takes 3 arguments, not 4.
24195
24196 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
24197
24198         ipv6: fix detection under mingw
24199         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
24200         in6_addr.
24201
24202 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
24203
24204         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
24205         that strtod() works when cross-compiling to a glibc version known
24206         to work.
24207
24208 2010-06-15  Bruno Haible  <bruno@clisp.org>
24209
24210         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
24211
24212 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
24213
24214         select: Correct timeout.
24215         * lib/select.c (rpl_select): Compute wait_timeout correctly.
24216
24217 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24218
24219         git-version-gen: init shell var to avoid env var influence
24220         * build-aux/git-version-gen (v): Init shell var to empty.
24221
24222 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24223
24224         priv-set: Don't assume that priv.h exists merely because getppriv does.
24225         See Jan Andersen's bug report about AIX 5L in
24226         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
24227         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
24228         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
24229         * lib/priv-set.h: Likewise.
24230         * tests/test-priv-set.c: Likewise.
24231
24232 2010-06-13  Bruno Haible  <bruno@clisp.org>
24233
24234         relocatable: Make it easier to test whether to install wrappers.
24235         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
24236         RELOCATABLE_VIA_WRAPPER.
24237
24238 2010-06-13  Bruno Haible  <bruno@clisp.org>
24239
24240         gnulib-tool: Display specified modules and dependencies differently.
24241         * gnulib-tool (func_show_module_list): New function.
24242         (func_import, func_create_testdir): Invoke it.
24243         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24244
24245 2010-06-13  Bruno Haible  <bruno@clisp.org>
24246
24247         gnulib-tool: Align code of func_import and func_create_testdir.
24248         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
24249         specified_modules.
24250
24251 2010-06-12  Jim Meyering  <meyering@redhat.com>
24252
24253         test-inttostr: avoid spurious failure on Solaris 9
24254         * tests/test-inttostr.c (main): Skip the test when snprintf fails
24255         to accept "%ju".  Reported by Bruno Haible.
24256
24257 2010-06-11  Jim Meyering  <meyering@redhat.com>
24258
24259         test-sys_socket: mark variables as used more readably
24260         * tests/test-sys_socket.c (main): Mark otherwise unused variables
24261         as "used" explicitly via (void) statement casts.  This is more
24262         readable than using them in an artificial return expression.
24263         Suggestion from Bruno Haible.
24264
24265 2010-06-11  Bruno Haible  <bruno@clisp.org>
24266
24267         Avoid some more warnings from "gcc -Wwrite-strings".
24268         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
24269         to 'const char *'.
24270         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
24271         * tests/test-c-strcasestr.c (main): Likewise.
24272         * tests/test-mbscasestr1.c (main): Likewise.
24273         * tests/test-mbscasestr2.c (main): Likewise.
24274         * tests/test-memmem.c (main): Likewise.
24275         * tests/test-strstr.c (main): Likewise.
24276         * tests/test-strcasestr.c (main): Likewise.
24277
24278 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24279
24280         init.sh: change framework_failure_ to fail with status 99, not 1
24281         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
24282         automake's parallel-tests rule that this is an unexpected failure,
24283         even if the test is listed in XFAIL_TESTS.
24284
24285 2010-06-11  Jim Meyering  <meyering@redhat.com>
24286
24287         test-inttostr: avoid warnings about 4-6KB literal strings
24288         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
24289         Include "macros.h", for its definition of ASSERT.
24290         (CK): s/assert/ASSERT/
24291         * modules/inttostr-tests (Files): Add macros.h.
24292
24293         init.sh: don't use $ME_ or skip_ before they are defined
24294         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
24295         their first uses.  Also hoist their companions: warn_, fail_,
24296         framework_failure_, $stderr_fileno.  Prompted by a patch from
24297         Stefano Lattarini.
24298
24299         test-sys_socket: avoid set-but-not-used warnings from gcc
24300         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
24301         avoid warning about set-but-not-used variables.
24302
24303         test-xvasprintf: avoid 'const' discard warnings
24304         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
24305         "const" when assigning from literal strings.
24306         (test_xasprintf): Add "void" in function argument list to placate
24307         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
24308
24309         tests: avoid compilation warnings in argmatch and exclude tests...
24310         in packages that define ARGMATCH_DIE_DECL, like coreutils.
24311         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
24312         Since it always exits, declare with the "noreturn" attribute.
24313         * tests/test-argmatch.c: Likewise.
24314
24315         tests: avoid 'const' discard warnings in mbsstr tests
24316         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
24317         * tests/test-mbsstr2.c (main): Likewise.
24318
24319         test-verify: avoid warning from gcc's -Wmissing-declarations
24320         * tests/test-verify.c (function): Declare to be static.
24321
24322         test-inttostr.c: include <string.h> for use of strcmp
24323         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
24324
24325         test-linkat: avoid failed assertion on "other" architectures
24326         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
24327         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
24328         sparc: https://bugs.launchpad.net/bugs/591968
24329
24330 2010-06-11  Jim Meyering  <meyering@redhat.com>
24331
24332         printf.m4: avoid autoconf's "Expanded Before Required" warning
24333         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
24334         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
24335         autoconf warning.
24336
24337 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
24338
24339         Replacement header templates are now named with ".in", not "_".
24340         * doc/gnulib-intro.texi: Correct.
24341
24342 2010-06-10  Jim Meyering  <meyering@redhat.com>
24343
24344         inttostr-tests: depend on snprintf, not snprintf-posix
24345         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
24346         snprintf-posix, to avoid this aclocal failure:
24347           missing file gnulib-tests/vasnprintf.c
24348           configure.ac:45: error: expected source file, required through \
24349           AC_LIBSOURCES, not found
24350
24351 2010-06-10  Jim Meyering  <meyering@redhat.com>
24352
24353         inttostr: add a new function, inttostr, and tests
24354         The namesake function was not available.  The existence of the
24355         template file, inttostr.c makes its addition nontrivial.
24356         * lib/anytostr.c: Rename from inttostr.c.
24357         (anytostr): Rename from inttostr.
24358         * lib/inttostr.c: New file.
24359         * modules/inttostr (Files): Add anytostr.c.
24360         (Makefile.am): Set lib_SOURCES instead of ...
24361         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
24362         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
24363         * lib/offtostr.c: Likewise.
24364         * lib/uinttostr.c: Likewise.
24365         * lib/umaxtostr.c: Likewise.
24366         * modules/inttostr-tests: New file.
24367         * tests/test-inttostr.c: New file.  Test these functions.
24368
24369 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
24370             Bruno Haible  <bruno@clisp.org>
24371
24372         Add "Extending Gnulib" chapter to manual.
24373         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
24374         chapter.
24375         (Extending Gnulib): New chapter.
24376         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
24377         chapter.
24378
24379 2010-06-09  Bruno Haible  <bruno@clisp.org>
24380
24381         Avoid relocwrapper link errors due to gnulib replacement functions.
24382         * lib/areadlink.c: Use the system's malloc, realloc functions.
24383         (areadlink): Set errno to ENOMEM explicitly.
24384         * modules/areadlink (Depends-on): Remove malloc-posix.
24385         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24386
24387 2010-06-09  Bruno Haible  <bruno@clisp.org>
24388
24389         Avoid relocwrapper link errors due to gnulib replacement functions.
24390         * lib/canonicalize-lgpl.c: Use the system's malloc function.
24391         * lib/malloca.c: Likewise.
24392         * lib/relocatable.c: Likewise.
24393         * lib/progreloc.c: Use the system's malloc, sprintf functions.
24394         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
24395         * lib/setenv.c: Use the system's malloc, realloc functions.
24396         * lib/strerror.c: Use the system's sprintf function.
24397         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24398
24399 2010-06-04  Bruno Haible  <bruno@clisp.org>
24400
24401         Prefer documented low-level autoconf macro names.
24402         * m4/lib-link.m4: Use m4_translit instead of translit.
24403         * m4/environ.m4: Likewise.
24404         * m4/mathfunc.m4: Likewise.
24405         * m4/onceonly.m4: Likewise.
24406         * m4/stdint.m4: Likewise.
24407         Suggested by Eric Blake.
24408
24409 2010-06-04  Martin Lambers  <marlam@marlam.de>
24410             Bruno Haible  <bruno@clisp.org>
24411
24412         havelib: Allow library names with '+' characters.
24413         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24414         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
24415
24416 2010-06-09  Bruno Haible  <bruno@clisp.org>
24417
24418         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
24419         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
24420         realloc failed.
24421
24422 2010-06-08  Peter Simons  <simons@cryp.to>
24423
24424         maint.mk: make the news-check rule more configurable
24425         * top/maint.mk (news-check-lines-spec): New variable.
24426         (news-check): Use "sed -n 1,10p" in place of "head".
24427
24428 2010-06-07  Jim Meyering  <meyering@redhat.com>
24429
24430         do-release-commit-and-tag: fix typo in --help
24431         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
24432
24433         regex: avoid new dead-code warning with gcc-4.6.0
24434         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
24435         if-block containing a while-loop.  It's been unused for at least
24436         5 years.
24437
24438 2010-06-05  Bruno Haible  <bruno@clisp.org>
24439
24440         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
24441         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
24442
24443 2010-06-04  Bruno Haible  <bruno@clisp.org>
24444
24445         Update to GNU gettext 0.18.1.
24446         * modules/gettext (configure.ac): Require gettext infrastructure from
24447         version 0.18.1.
24448
24449 2010-06-03  Bruno Haible  <bruno@clisp.org>
24450
24451         Don't use AC_LIBOBJ with file names in subdirectories.
24452         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
24453         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
24454         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
24455         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
24456         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
24457         gl_LIBUNISTRING_LIBSOURCE.
24458         (Makefile.am): Augment lib_SOURCES here, conditionally.
24459         * NEWS: Drop requirement for Automake option 'subdir-objects'.
24460
24461 2010-06-03  Bruno Haible  <bruno@clisp.org>
24462
24463         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
24464         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
24465         expansion does not end with a newline.
24466         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
24467         unnecessary newline.
24468
24469 2010-06-03  Bruno Haible  <bruno@clisp.org>
24470
24471         Reduce dependencies.
24472         * tests/test-quotearg.h: New file, extracted from
24473         tests/test-quotearg.c.
24474         * tests/test-quotearg-simple.c: New file, extracted from
24475         tests/test-quotearg.c.
24476         * tests/test-quotearg.c: Don't include <ctype.h>.
24477         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
24478         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
24479         use_quote_double_quotes, use_quotearg_colon): Moved to
24480         tests/test-quotearg.h.
24481         (results_g, flag_results, custom_quotes, custom_results): Moved
24482         to tests/test-quotearg-simple.c.
24483         (main): Moved the part that does not depend on gettext to
24484         tests/test-quotearg-simple.c. Return 77 if the test cannot be
24485         performed.
24486         * modules/quotearg-simple: New file.
24487         * modules/quotearg-simple-tests: New file.
24488         * modules/quotearg (Depends-on): Add quotearg-simple.
24489         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
24490         (Files): Add tests/test-quotearg.h.
24491         Reported by Paolo Bonzini.
24492
24493 2010-06-03  Bruno Haible  <bruno@clisp.org>
24494
24495         Reduce dependencies.
24496         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
24497
24498 2010-06-03  Bruno Haible  <bruno@clisp.org>
24499
24500         time: Undefine more broken macros.
24501         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
24502         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
24503         Reported by Eric Blake.
24504
24505 2010-06-03  Bruno Haible  <bruno@clisp.org>
24506
24507         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
24508         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
24509         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
24510         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
24511         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
24512         Reported by Ludovic Courtès <ludo@gnu.org>.
24513
24514 2010-06-02  Eric Blake  <eblake@redhat.com>
24515
24516         time: work with mingw + pthreads-win32 library
24517         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
24518         if timespec is defined only in pthread.h.
24519         * modules/time (Makefile.am): Substitute it.
24520         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
24521         <pthread.h>, when needed.
24522         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
24523         from the library.
24524
24525 2010-05-31  Bruno Haible  <bruno@clisp.org>
24526
24527         Avoid expanding two macros in the wrong order.
24528         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
24529         gl_LIBUNISTRING if it is defined.
24530         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
24531         autoconf >= 2.64.
24532         Reported by Ludovic Courtès <ludo@gnu.org>.
24533
24534 2010-05-27  Jim Meyering  <meyering@redhat.com>
24535
24536         maint.mk: also prohibit "#undef" of always-defined symbols
24537         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
24538         Allow more than one space before the symbol name.
24539         (sc_prohibit_always-defined_macros): Use grep's -E, now that
24540         the regexp uses alternation.
24541
24542 2010-05-26  Eric Blake  <eblake@redhat.com>
24543
24544         maint.mk: avoid echo -e
24545         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
24546         Convert all uses of echo -* to printf.
24547         Reported by Matthias Bolte.
24548
24549 2010-05-25  Bruno Haible  <bruno@clisp.org>
24550
24551         Update to GNU gettext 0.18, part 2.
24552         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
24553         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
24554
24555 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24556
24557         Add missing include in test-pwrite.c.
24558         * tests/test-pwrite.c: Include string.h, for strcmp.
24559
24560 2010-05-24  Bruno Haible  <bruno@clisp.org>
24561
24562         * NEWS: Mention requirement for Automake option 'subdir-objects'.
24563
24564 2010-05-24  Bruno Haible  <bruno@clisp.org>
24565
24566         Don't use conversion with transliteration in u{8,16,32}_strcoll.
24567         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
24568         iconveh_error argument.
24569         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
24570         U_STRCONV_TO_LOCALE.
24571         * lib/unistr/u16-strcoll.c: Likewise.
24572         * lib/unistr/u32-strcoll.c: Likewise.
24573         * modules/unistr/u8-strcoll (Depends-on): Add
24574         uniconv/u8-strconv-to-enc, localcharset. Remove
24575         uniconv/u8-strconv-to-locale.
24576         (configure.ac): Bump version number.
24577         * modules/unistr/u16-strcoll (Depends-on): Add
24578         uniconv/u16-strconv-to-enc, localcharset. Remove
24579         uniconv/u16-strconv-to-locale.
24580         (configure.ac): Bump version number.
24581         * modules/unistr/u32-strcoll (Depends-on): Add
24582         uniconv/u32-strconv-to-enc, localcharset. Remove
24583         uniconv/u32-strconv-to-locale.
24584         (configure.ac): Bump version number.
24585
24586 2010-05-24  Bruno Haible  <bruno@clisp.org>
24587
24588         Avoid a test failure on NetBSD 5.0.
24589         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
24590         an iconv() bug.
24591
24592 2010-05-24  Bruno Haible  <bruno@clisp.org>
24593
24594         Adjust #include directive style.
24595         * modules/regex (Includes): Recommend to write <regex.h>.
24596
24597 2010-05-24  Bruno Haible  <bruno@clisp.org>
24598
24599         regex: Don't require alloca.
24600         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
24601         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
24602         only inside if (0).
24603
24604 2010-05-23  Jim Meyering  <meyering@redhat.com>
24605
24606         test-renameat.c: include <sys/stat.h>
24607         * tests/test-renameat.c: Include <sys/stat.h>; required for
24608         definition of S_IS* macros.
24609
24610 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
24611
24612         Update maintainer documentation for 'relocatable-prog' module.
24613         * doc/relocatable-maint.texi: Update.
24614         Comments by Bruno Haible.
24615
24616 2010-05-23  Bruno Haible  <bruno@clisp.org>
24617
24618         git-merge-changelog: Enable --split-merged-entry by default.
24619         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
24620         (usage): Don't mention this option any more.
24621         Reported by Ralf Wildenhues.
24622
24623 2010-05-23  Jim Meyering  <meyering@redhat.com>
24624
24625         test-pwrite: do not leave behind a test file named "out"
24626         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
24627         The trivial-looking use of init.sh is really necessary.
24628         It ensures that the temporary file, "out", is created in
24629         a temporary directory, and removed upon termination.
24630         * tests/test-pwrite.sh: Re-add file.
24631         * modules/pwrite-tests: Reference it.
24632
24633 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24634
24635         Fix output redirection buglet in init.sh.
24636         * tests/init.sh: Fix redirection of stderr.
24637
24638 2010-05-20  Simon Josefsson  <simon@josefsson.org>
24639
24640         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
24641
24642 2010-05-17  Simon Josefsson  <simon@josefsson.org>
24643
24644         * modules/valgrind-tests: New file.
24645         * m4/valgrind-tests.m4: New file.
24646         * doc/valgrind-tests.texi: New file.
24647         * doc/gnulib.texi (Running self-tests under valgrind): New
24648         section.
24649
24650 2010-05-19  Bruno Haible  <bruno@clisp.org>
24651
24652         Clean up dead code in recent commit.
24653         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
24654         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
24655         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
24656         Suggested by Paolo Bonzini.
24657
24658 2010-05-19  Bruno Haible  <bruno@clisp.org>
24659
24660         Avoid valgrind error reports from libunistring.
24661         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
24662         * modules/libunistring (Files): Add it.
24663         * modules/libunistring-optional (Files): Likewise.
24664
24665 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
24666             Bruno Haible  <bruno@clisp.org>
24667
24668         New module 'libunistring-optional'.
24669         * modules/libunistring-optional: New file.
24670         * m4/libunistring-base.m4: New file.
24671         * m4/libunistring-optional.m4: New file.
24672         * lib/unicase.in.h: Renamed from lib/unicase.h.
24673         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
24674         * lib/unictype.in.h: Renamed from lib/unictype.h.
24675         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
24676         * lib/uniname.in.h: Renamed from lib/uniname.h.
24677         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
24678         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
24679         * lib/unistr.in.h: Renamed from lib/unistr.h.
24680         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
24681         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
24682         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
24683         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
24684         gl_LIBUNISTRING. If the library was found, determine the installed
24685         version and set LIBUNISTRING_VERSION.
24686         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
24687         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
24688         handle a configuration option --with-included-libunistring.
24689         * modules/libunistring (Files): Add m4/absolute-header.m4.
24690         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
24691         Add m4/libunistring-base.m4.
24692         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24693         (Makefile.am): Build unicase.h from unicase.in.h.
24694         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
24695         Add m4/libunistring-base.m4.
24696         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24697         (Makefile.am): Build uniconv.h from uniconv.in.h.
24698         * modules/unictype/base (Files): Use unictype.in.h instead of
24699         unictype.h. Add m4/libunistring-base.m4.
24700         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24701         (Makefile.am): Build unictype.h from unictype.in.h.
24702         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
24703         Add m4/libunistring-base.m4.
24704         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24705         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
24706         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
24707         Add m4/libunistring-base.m4.
24708         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24709         (Makefile.am): Build uniname.h from uniname.in.h.
24710         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
24711         Add m4/libunistring-base.m4.
24712         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24713         (Makefile.am): Build uninorm.h from uninorm.in.h.
24714         * modules/unistdio/base (Files): Use unistdio.in.h instead of
24715         unistdio.h. Add m4/libunistring-base.m4.
24716         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24717         (Makefile.am): Build unistdio.h from unistdio.in.h.
24718         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
24719         Add m4/libunistring-base.m4.
24720         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24721         (Makefile.am): Build unistr.h from unistr.in.h.
24722         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
24723         Add m4/libunistring-base.m4.
24724         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24725         (Makefile.am): Build unitypes.h from unitypes.in.h.
24726         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
24727         Add m4/libunistring-base.m4.
24728         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24729         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
24730         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
24731         uniwidth.h. Add m4/libunistring-base.m4.
24732         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24733         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
24734         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
24735         instead of augmenting lib_SOURCES.
24736         * modules/unicase/empty-suffix-context: Likewise.
24737         * modules/unicase/locale-language: Likewise.
24738         * modules/unicase/tolower: Likewise.
24739         * modules/unicase/totitle: Likewise.
24740         * modules/unicase/toupper: Likewise.
24741         * modules/unicase/u8-casecmp: Likewise.
24742         * modules/unicase/u8-casecoll: Likewise.
24743         * modules/unicase/u8-casefold: Likewise.
24744         * modules/unicase/u8-casexfrm: Likewise.
24745         * modules/unicase/u8-ct-casefold: Likewise.
24746         * modules/unicase/u8-ct-tolower: Likewise.
24747         * modules/unicase/u8-ct-totitle: Likewise.
24748         * modules/unicase/u8-ct-toupper: Likewise.
24749         * modules/unicase/u8-is-cased: Likewise.
24750         * modules/unicase/u8-is-casefolded: Likewise.
24751         * modules/unicase/u8-is-lowercase: Likewise.
24752         * modules/unicase/u8-is-titlecase: Likewise.
24753         * modules/unicase/u8-is-uppercase: Likewise.
24754         * modules/unicase/u8-prefix-context: Likewise.
24755         * modules/unicase/u8-suffix-context: Likewise.
24756         * modules/unicase/u8-tolower: Likewise.
24757         * modules/unicase/u8-totitle: Likewise.
24758         * modules/unicase/u8-toupper: Likewise.
24759         * modules/unicase/u16-casecmp: Likewise.
24760         * modules/unicase/u16-casecoll: Likewise.
24761         * modules/unicase/u16-casefold: Likewise.
24762         * modules/unicase/u16-casexfrm: Likewise.
24763         * modules/unicase/u16-ct-casefold: Likewise.
24764         * modules/unicase/u16-ct-tolower: Likewise.
24765         * modules/unicase/u16-ct-totitle: Likewise.
24766         * modules/unicase/u16-ct-toupper: Likewise.
24767         * modules/unicase/u16-is-cased: Likewise.
24768         * modules/unicase/u16-is-casefolded: Likewise.
24769         * modules/unicase/u16-is-lowercase: Likewise.
24770         * modules/unicase/u16-is-titlecase: Likewise.
24771         * modules/unicase/u16-is-uppercase: Likewise.
24772         * modules/unicase/u16-prefix-context: Likewise.
24773         * modules/unicase/u16-suffix-context: Likewise.
24774         * modules/unicase/u16-tolower: Likewise.
24775         * modules/unicase/u16-totitle: Likewise.
24776         * modules/unicase/u16-toupper: Likewise.
24777         * modules/unicase/u32-casecmp: Likewise.
24778         * modules/unicase/u32-casecoll: Likewise.
24779         * modules/unicase/u32-casefold: Likewise.
24780         * modules/unicase/u32-casexfrm: Likewise.
24781         * modules/unicase/u32-ct-casefold: Likewise.
24782         * modules/unicase/u32-ct-tolower: Likewise.
24783         * modules/unicase/u32-ct-totitle: Likewise.
24784         * modules/unicase/u32-ct-toupper: Likewise.
24785         * modules/unicase/u32-is-cased: Likewise.
24786         * modules/unicase/u32-is-casefolded: Likewise.
24787         * modules/unicase/u32-is-lowercase: Likewise.
24788         * modules/unicase/u32-is-titlecase: Likewise.
24789         * modules/unicase/u32-is-uppercase: Likewise.
24790         * modules/unicase/u32-prefix-context: Likewise.
24791         * modules/unicase/u32-suffix-context: Likewise.
24792         * modules/unicase/u32-tolower: Likewise.
24793         * modules/unicase/u32-totitle: Likewise.
24794         * modules/unicase/u32-toupper: Likewise.
24795         * modules/unicase/ulc-casecmp: Likewise.
24796         * modules/unicase/ulc-casecoll: Likewise.
24797         * modules/unicase/ulc-casexfrm: Likewise.
24798         * modules/uniconv/u8-conv-from-enc: Likewise.
24799         * modules/uniconv/u8-conv-to-enc: Likewise.
24800         * modules/uniconv/u8-strconv-from-enc: Likewise.
24801         * modules/uniconv/u8-strconv-from-locale: Likewise.
24802         * modules/uniconv/u8-strconv-to-enc: Likewise.
24803         * modules/uniconv/u8-strconv-to-locale: Likewise.
24804         * modules/uniconv/u16-conv-from-enc: Likewise.
24805         * modules/uniconv/u16-conv-to-enc: Likewise.
24806         * modules/uniconv/u16-strconv-from-enc: Likewise.
24807         * modules/uniconv/u16-strconv-from-locale: Likewise.
24808         * modules/uniconv/u16-strconv-to-enc: Likewise.
24809         * modules/uniconv/u16-strconv-to-locale: Likewise.
24810         * modules/uniconv/u32-conv-from-enc: Likewise.
24811         * modules/uniconv/u32-conv-to-enc: Likewise.
24812         * modules/uniconv/u32-strconv-from-enc: Likewise.
24813         * modules/uniconv/u32-strconv-from-locale: Likewise.
24814         * modules/uniconv/u32-strconv-to-enc: Likewise.
24815         * modules/uniconv/u32-strconv-to-locale: Likewise.
24816         * modules/unictype/bidicategory-byname: Likewise.
24817         * modules/unictype/bidicategory-name: Likewise.
24818         * modules/unictype/bidicategory-of: Likewise.
24819         * modules/unictype/bidicategory-test: Likewise.
24820         * modules/unictype/block-list: Likewise.
24821         * modules/unictype/block-test: Likewise.
24822         * modules/unictype/category-C: Likewise.
24823         * modules/unictype/category-Cc: Likewise.
24824         * modules/unictype/category-Cf: Likewise.
24825         * modules/unictype/category-Cn: Likewise.
24826         * modules/unictype/category-Co: Likewise.
24827         * modules/unictype/category-Cs: Likewise.
24828         * modules/unictype/category-L: Likewise.
24829         * modules/unictype/category-Ll: Likewise.
24830         * modules/unictype/category-Lm: Likewise.
24831         * modules/unictype/category-Lo: Likewise.
24832         * modules/unictype/category-Lt: Likewise.
24833         * modules/unictype/category-Lu: Likewise.
24834         * modules/unictype/category-M: Likewise.
24835         * modules/unictype/category-Mc: Likewise.
24836         * modules/unictype/category-Me: Likewise.
24837         * modules/unictype/category-Mn: Likewise.
24838         * modules/unictype/category-N: Likewise.
24839         * modules/unictype/category-Nd: Likewise.
24840         * modules/unictype/category-Nl: Likewise.
24841         * modules/unictype/category-No: Likewise.
24842         * modules/unictype/category-P: Likewise.
24843         * modules/unictype/category-Pc: Likewise.
24844         * modules/unictype/category-Pd: Likewise.
24845         * modules/unictype/category-Pe: Likewise.
24846         * modules/unictype/category-Pf: Likewise.
24847         * modules/unictype/category-Pi: Likewise.
24848         * modules/unictype/category-Po: Likewise.
24849         * modules/unictype/category-Ps: Likewise.
24850         * modules/unictype/category-S: Likewise.
24851         * modules/unictype/category-Sc: Likewise.
24852         * modules/unictype/category-Sk: Likewise.
24853         * modules/unictype/category-Sm: Likewise.
24854         * modules/unictype/category-So: Likewise.
24855         * modules/unictype/category-Z: Likewise.
24856         * modules/unictype/category-Zl: Likewise.
24857         * modules/unictype/category-Zp: Likewise.
24858         * modules/unictype/category-Zs: Likewise.
24859         * modules/unictype/category-and: Likewise.
24860         * modules/unictype/category-and-not: Likewise.
24861         * modules/unictype/category-byname: Likewise.
24862         * modules/unictype/category-name: Likewise.
24863         * modules/unictype/category-none: Likewise.
24864         * modules/unictype/category-of: Likewise.
24865         * modules/unictype/category-or: Likewise.
24866         * modules/unictype/category-test: Likewise.
24867         * modules/unictype/combining-class: Likewise.
24868         * modules/unictype/ctype-alnum: Likewise.
24869         * modules/unictype/ctype-alpha: Likewise.
24870         * modules/unictype/ctype-blank: Likewise.
24871         * modules/unictype/ctype-cntrl: Likewise.
24872         * modules/unictype/ctype-digit: Likewise.
24873         * modules/unictype/ctype-graph: Likewise.
24874         * modules/unictype/ctype-lower: Likewise.
24875         * modules/unictype/ctype-print: Likewise.
24876         * modules/unictype/ctype-punct: Likewise.
24877         * modules/unictype/ctype-space: Likewise.
24878         * modules/unictype/ctype-upper: Likewise.
24879         * modules/unictype/ctype-xdigit: Likewise.
24880         * modules/unictype/decimal-digit: Likewise.
24881         * modules/unictype/digit: Likewise.
24882         * modules/unictype/mirror: Likewise.
24883         * modules/unictype/numeric: Likewise.
24884         * modules/unictype/property-alphabetic: Likewise.
24885         * modules/unictype/property-ascii-hex-digit: Likewise.
24886         * modules/unictype/property-bidi-arabic-digit: Likewise.
24887         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
24888         * modules/unictype/property-bidi-block-separator: Likewise.
24889         * modules/unictype/property-bidi-boundary-neutral: Likewise.
24890         * modules/unictype/property-bidi-common-separator: Likewise.
24891         * modules/unictype/property-bidi-control: Likewise.
24892         * modules/unictype/property-bidi-embedding-or-override: Likewise.
24893         * modules/unictype/property-bidi-eur-num-separator: Likewise.
24894         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
24895         * modules/unictype/property-bidi-european-digit: Likewise.
24896         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
24897         * modules/unictype/property-bidi-left-to-right: Likewise.
24898         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
24899         * modules/unictype/property-bidi-other-neutral: Likewise.
24900         * modules/unictype/property-bidi-pdf: Likewise.
24901         * modules/unictype/property-bidi-segment-separator: Likewise.
24902         * modules/unictype/property-bidi-whitespace: Likewise.
24903         * modules/unictype/property-byname: Likewise.
24904         * modules/unictype/property-combining: Likewise.
24905         * modules/unictype/property-composite: Likewise.
24906         * modules/unictype/property-currency-symbol: Likewise.
24907         * modules/unictype/property-dash: Likewise.
24908         * modules/unictype/property-decimal-digit: Likewise.
24909         * modules/unictype/property-default-ignorable-code-point: Likewise.
24910         * modules/unictype/property-deprecated: Likewise.
24911         * modules/unictype/property-diacritic: Likewise.
24912         * modules/unictype/property-extender: Likewise.
24913         * modules/unictype/property-format-control: Likewise.
24914         * modules/unictype/property-grapheme-base: Likewise.
24915         * modules/unictype/property-grapheme-extend: Likewise.
24916         * modules/unictype/property-grapheme-link: Likewise.
24917         * modules/unictype/property-hex-digit: Likewise.
24918         * modules/unictype/property-hyphen: Likewise.
24919         * modules/unictype/property-id-continue: Likewise.
24920         * modules/unictype/property-id-start: Likewise.
24921         * modules/unictype/property-ideographic: Likewise.
24922         * modules/unictype/property-ids-binary-operator: Likewise.
24923         * modules/unictype/property-ids-trinary-operator: Likewise.
24924         * modules/unictype/property-ignorable-control: Likewise.
24925         * modules/unictype/property-iso-control: Likewise.
24926         * modules/unictype/property-join-control: Likewise.
24927         * modules/unictype/property-left-of-pair: Likewise.
24928         * modules/unictype/property-line-separator: Likewise.
24929         * modules/unictype/property-logical-order-exception: Likewise.
24930         * modules/unictype/property-lowercase: Likewise.
24931         * modules/unictype/property-math: Likewise.
24932         * modules/unictype/property-non-break: Likewise.
24933         * modules/unictype/property-not-a-character: Likewise.
24934         * modules/unictype/property-numeric: Likewise.
24935         * modules/unictype/property-other-alphabetic: Likewise.
24936         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
24937         * modules/unictype/property-other-grapheme-extend: Likewise.
24938         * modules/unictype/property-other-id-continue: Likewise.
24939         * modules/unictype/property-other-id-start: Likewise.
24940         * modules/unictype/property-other-lowercase: Likewise.
24941         * modules/unictype/property-other-math: Likewise.
24942         * modules/unictype/property-other-uppercase: Likewise.
24943         * modules/unictype/property-paired-punctuation: Likewise.
24944         * modules/unictype/property-paragraph-separator: Likewise.
24945         * modules/unictype/property-pattern-syntax: Likewise.
24946         * modules/unictype/property-pattern-white-space: Likewise.
24947         * modules/unictype/property-private-use: Likewise.
24948         * modules/unictype/property-punctuation: Likewise.
24949         * modules/unictype/property-quotation-mark: Likewise.
24950         * modules/unictype/property-radical: Likewise.
24951         * modules/unictype/property-sentence-terminal: Likewise.
24952         * modules/unictype/property-soft-dotted: Likewise.
24953         * modules/unictype/property-space: Likewise.
24954         * modules/unictype/property-terminal-punctuation: Likewise.
24955         * modules/unictype/property-test: Likewise.
24956         * modules/unictype/property-titlecase: Likewise.
24957         * modules/unictype/property-unassigned-code-value: Likewise.
24958         * modules/unictype/property-unified-ideograph: Likewise.
24959         * modules/unictype/property-uppercase: Likewise.
24960         * modules/unictype/property-variation-selector: Likewise.
24961         * modules/unictype/property-white-space: Likewise.
24962         * modules/unictype/property-xid-continue: Likewise.
24963         * modules/unictype/property-xid-start: Likewise.
24964         * modules/unictype/property-zero-width: Likewise.
24965         * modules/unictype/scripts: Likewise.
24966         * modules/unictype/syntax-c-ident: Likewise.
24967         * modules/unictype/syntax-c-whitespace: Likewise.
24968         * modules/unictype/syntax-java-ident: Likewise.
24969         * modules/unictype/syntax-java-whitespace: Likewise.
24970         * modules/unilbrk/u8-possible-linebreaks: Likewise.
24971         * modules/unilbrk/u8-width-linebreaks: Likewise.
24972         * modules/unilbrk/u16-possible-linebreaks: Likewise.
24973         * modules/unilbrk/u16-width-linebreaks: Likewise.
24974         * modules/unilbrk/u32-possible-linebreaks: Likewise.
24975         * modules/unilbrk/u32-width-linebreaks: Likewise.
24976         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
24977         * modules/unilbrk/ulc-width-linebreaks: Likewise.
24978         * modules/uniname/uniname: Likewise.
24979         * modules/uninorm/canonical-decomposition: Likewise.
24980         * modules/uninorm/composition: Likewise.
24981         * modules/uninorm/decomposing-form: Likewise.
24982         * modules/uninorm/decomposition: Likewise.
24983         * modules/uninorm/filter: Likewise.
24984         * modules/uninorm/nfc: Likewise.
24985         * modules/uninorm/nfd: Likewise.
24986         * modules/uninorm/nfkc: Likewise.
24987         * modules/uninorm/nfkd: Likewise.
24988         * modules/uninorm/u8-normalize: Likewise.
24989         * modules/uninorm/u8-normcmp: Likewise.
24990         * modules/uninorm/u8-normcoll: Likewise.
24991         * modules/uninorm/u8-normxfrm: Likewise.
24992         * modules/uninorm/u16-normalize: Likewise.
24993         * modules/uninorm/u16-normcmp: Likewise.
24994         * modules/uninorm/u16-normcoll: Likewise.
24995         * modules/uninorm/u16-normxfrm: Likewise.
24996         * modules/uninorm/u32-normalize: Likewise.
24997         * modules/uninorm/u32-normcmp: Likewise.
24998         * modules/uninorm/u32-normcoll: Likewise.
24999         * modules/uninorm/u32-normxfrm: Likewise.
25000         * modules/unistdio/u8-asnprintf: Likewise.
25001         * modules/unistdio/u8-asprintf: Likewise.
25002         * modules/unistdio/u8-snprintf: Likewise.
25003         * modules/unistdio/u8-sprintf: Likewise.
25004         * modules/unistdio/u8-u8-asnprintf: Likewise.
25005         * modules/unistdio/u8-u8-asprintf: Likewise.
25006         * modules/unistdio/u8-u8-snprintf: Likewise.
25007         * modules/unistdio/u8-u8-sprintf: Likewise.
25008         * modules/unistdio/u8-u8-vasnprintf: Likewise.
25009         * modules/unistdio/u8-u8-vasprintf: Likewise.
25010         * modules/unistdio/u8-u8-vsnprintf: Likewise.
25011         * modules/unistdio/u8-u8-vsprintf: Likewise.
25012         * modules/unistdio/u8-vasnprintf: Likewise.
25013         * modules/unistdio/u8-vasprintf: Likewise.
25014         * modules/unistdio/u8-vsnprintf: Likewise.
25015         * modules/unistdio/u8-vsprintf: Likewise.
25016         * modules/unistdio/u16-asnprintf: Likewise.
25017         * modules/unistdio/u16-asprintf: Likewise.
25018         * modules/unistdio/u16-snprintf: Likewise.
25019         * modules/unistdio/u16-sprintf: Likewise.
25020         * modules/unistdio/u16-u16-asnprintf: Likewise.
25021         * modules/unistdio/u16-u16-asprintf: Likewise.
25022         * modules/unistdio/u16-u16-snprintf: Likewise.
25023         * modules/unistdio/u16-u16-sprintf: Likewise.
25024         * modules/unistdio/u16-u16-vasnprintf: Likewise.
25025         * modules/unistdio/u16-u16-vasprintf: Likewise.
25026         * modules/unistdio/u16-u16-vsnprintf: Likewise.
25027         * modules/unistdio/u16-u16-vsprintf: Likewise.
25028         * modules/unistdio/u16-vasnprintf: Likewise.
25029         * modules/unistdio/u16-vasprintf: Likewise.
25030         * modules/unistdio/u16-vsnprintf: Likewise.
25031         * modules/unistdio/u16-vsprintf: Likewise.
25032         * modules/unistdio/u32-asnprintf: Likewise.
25033         * modules/unistdio/u32-asprintf: Likewise.
25034         * modules/unistdio/u32-snprintf: Likewise.
25035         * modules/unistdio/u32-sprintf: Likewise.
25036         * modules/unistdio/u32-u32-asnprintf: Likewise.
25037         * modules/unistdio/u32-u32-asprintf: Likewise.
25038         * modules/unistdio/u32-u32-snprintf: Likewise.
25039         * modules/unistdio/u32-u32-sprintf: Likewise.
25040         * modules/unistdio/u32-u32-vasnprintf: Likewise.
25041         * modules/unistdio/u32-u32-vasprintf: Likewise.
25042         * modules/unistdio/u32-u32-vsnprintf: Likewise.
25043         * modules/unistdio/u32-u32-vsprintf: Likewise.
25044         * modules/unistdio/u32-vasnprintf: Likewise.
25045         * modules/unistdio/u32-vasprintf: Likewise.
25046         * modules/unistdio/u32-vsnprintf: Likewise.
25047         * modules/unistdio/u32-vsprintf: Likewise.
25048         * modules/unistdio/ulc-asnprintf: Likewise.
25049         * modules/unistdio/ulc-asprintf: Likewise.
25050         * modules/unistdio/ulc-fprintf: Likewise.
25051         * modules/unistdio/ulc-snprintf: Likewise.
25052         * modules/unistdio/ulc-sprintf: Likewise.
25053         * modules/unistdio/ulc-vasnprintf: Likewise.
25054         * modules/unistdio/ulc-vasprintf: Likewise.
25055         * modules/unistdio/ulc-vfprintf: Likewise.
25056         * modules/unistdio/ulc-vsnprintf: Likewise.
25057         * modules/unistdio/ulc-vsprintf: Likewise.
25058         * modules/unistr/u8-check: Likewise.
25059         * modules/unistr/u8-chr: Likewise.
25060         * modules/unistr/u8-cmp: Likewise.
25061         * modules/unistr/u8-cmp2: Likewise.
25062         * modules/unistr/u8-cpy: Likewise.
25063         * modules/unistr/u8-cpy-alloc: Likewise.
25064         * modules/unistr/u8-endswith: Likewise.
25065         * modules/unistr/u8-mblen: Likewise.
25066         * modules/unistr/u8-mbsnlen: Likewise.
25067         * modules/unistr/u8-mbtouc: Likewise.
25068         * modules/unistr/u8-mbtouc-unsafe: Likewise.
25069         * modules/unistr/u8-mbtoucr: Likewise.
25070         * modules/unistr/u8-move: Likewise.
25071         * modules/unistr/u8-next: Likewise.
25072         * modules/unistr/u8-prev: Likewise.
25073         * modules/unistr/u8-set: Likewise.
25074         * modules/unistr/u8-startswith: Likewise.
25075         * modules/unistr/u8-stpcpy: Likewise.
25076         * modules/unistr/u8-stpncpy: Likewise.
25077         * modules/unistr/u8-strcat: Likewise.
25078         * modules/unistr/u8-strchr: Likewise.
25079         * modules/unistr/u8-strcmp: Likewise.
25080         * modules/unistr/u8-strcoll: Likewise.
25081         * modules/unistr/u8-strcpy: Likewise.
25082         * modules/unistr/u8-strcspn: Likewise.
25083         * modules/unistr/u8-strdup: Likewise.
25084         * modules/unistr/u8-strlen: Likewise.
25085         * modules/unistr/u8-strmblen: Likewise.
25086         * modules/unistr/u8-strmbtouc: Likewise.
25087         * modules/unistr/u8-strncat: Likewise.
25088         * modules/unistr/u8-strncmp: Likewise.
25089         * modules/unistr/u8-strncpy: Likewise.
25090         * modules/unistr/u8-strnlen: Likewise.
25091         * modules/unistr/u8-strpbrk: Likewise.
25092         * modules/unistr/u8-strrchr: Likewise.
25093         * modules/unistr/u8-strspn: Likewise.
25094         * modules/unistr/u8-strstr: Likewise.
25095         * modules/unistr/u8-strtok: Likewise.
25096         * modules/unistr/u8-to-u16: Likewise.
25097         * modules/unistr/u8-to-u32: Likewise.
25098         * modules/unistr/u8-uctomb: Likewise.
25099         * modules/unistr/u16-check: Likewise.
25100         * modules/unistr/u16-chr: Likewise.
25101         * modules/unistr/u16-cmp: Likewise.
25102         * modules/unistr/u16-cmp2: Likewise.
25103         * modules/unistr/u16-cpy: Likewise.
25104         * modules/unistr/u16-cpy-alloc: Likewise.
25105         * modules/unistr/u16-endswith: Likewise.
25106         * modules/unistr/u16-mblen: Likewise.
25107         * modules/unistr/u16-mbsnlen: Likewise.
25108         * modules/unistr/u16-mbtouc: Likewise.
25109         * modules/unistr/u16-mbtouc-unsafe: Likewise.
25110         * modules/unistr/u16-mbtoucr: Likewise.
25111         * modules/unistr/u16-move: Likewise.
25112         * modules/unistr/u16-next: Likewise.
25113         * modules/unistr/u16-prev: Likewise.
25114         * modules/unistr/u16-set: Likewise.
25115         * modules/unistr/u16-startswith: Likewise.
25116         * modules/unistr/u16-stpcpy: Likewise.
25117         * modules/unistr/u16-stpncpy: Likewise.
25118         * modules/unistr/u16-strcat: Likewise.
25119         * modules/unistr/u16-strchr: Likewise.
25120         * modules/unistr/u16-strcmp: Likewise.
25121         * modules/unistr/u16-strcoll: Likewise.
25122         * modules/unistr/u16-strcpy: Likewise.
25123         * modules/unistr/u16-strcspn: Likewise.
25124         * modules/unistr/u16-strdup: Likewise.
25125         * modules/unistr/u16-strlen: Likewise.
25126         * modules/unistr/u16-strmblen: Likewise.
25127         * modules/unistr/u16-strmbtouc: Likewise.
25128         * modules/unistr/u16-strncat: Likewise.
25129         * modules/unistr/u16-strncmp: Likewise.
25130         * modules/unistr/u16-strncpy: Likewise.
25131         * modules/unistr/u16-strnlen: Likewise.
25132         * modules/unistr/u16-strpbrk: Likewise.
25133         * modules/unistr/u16-strrchr: Likewise.
25134         * modules/unistr/u16-strspn: Likewise.
25135         * modules/unistr/u16-strstr: Likewise.
25136         * modules/unistr/u16-strtok: Likewise.
25137         * modules/unistr/u16-to-u32: Likewise.
25138         * modules/unistr/u16-to-u8: Likewise.
25139         * modules/unistr/u16-uctomb: Likewise.
25140         * modules/unistr/u32-check: Likewise.
25141         * modules/unistr/u32-chr: Likewise.
25142         * modules/unistr/u32-cmp: Likewise.
25143         * modules/unistr/u32-cmp2: Likewise.
25144         * modules/unistr/u32-cpy: Likewise.
25145         * modules/unistr/u32-cpy-alloc: Likewise.
25146         * modules/unistr/u32-endswith: Likewise.
25147         * modules/unistr/u32-mblen: Likewise.
25148         * modules/unistr/u32-mbsnlen: Likewise.
25149         * modules/unistr/u32-mbtouc: Likewise.
25150         * modules/unistr/u32-mbtouc-unsafe: Likewise.
25151         * modules/unistr/u32-mbtoucr: Likewise.
25152         * modules/unistr/u32-move: Likewise.
25153         * modules/unistr/u32-next: Likewise.
25154         * modules/unistr/u32-prev: Likewise.
25155         * modules/unistr/u32-set: Likewise.
25156         * modules/unistr/u32-startswith: Likewise.
25157         * modules/unistr/u32-stpcpy: Likewise.
25158         * modules/unistr/u32-stpncpy: Likewise.
25159         * modules/unistr/u32-strcat: Likewise.
25160         * modules/unistr/u32-strchr: Likewise.
25161         * modules/unistr/u32-strcmp: Likewise.
25162         * modules/unistr/u32-strcoll: Likewise.
25163         * modules/unistr/u32-strcpy: Likewise.
25164         * modules/unistr/u32-strcspn: Likewise.
25165         * modules/unistr/u32-strdup: Likewise.
25166         * modules/unistr/u32-strlen: Likewise.
25167         * modules/unistr/u32-strmblen: Likewise.
25168         * modules/unistr/u32-strmbtouc: Likewise.
25169         * modules/unistr/u32-strncat: Likewise.
25170         * modules/unistr/u32-strncmp: Likewise.
25171         * modules/unistr/u32-strncpy: Likewise.
25172         * modules/unistr/u32-strnlen: Likewise.
25173         * modules/unistr/u32-strpbrk: Likewise.
25174         * modules/unistr/u32-strrchr: Likewise.
25175         * modules/unistr/u32-strspn: Likewise.
25176         * modules/unistr/u32-strstr: Likewise.
25177         * modules/unistr/u32-strtok: Likewise.
25178         * modules/unistr/u32-to-u16: Likewise.
25179         * modules/unistr/u32-to-u8: Likewise.
25180         * modules/unistr/u32-uctomb: Likewise.
25181         * modules/uniwbrk/u8-wordbreaks: Likewise.
25182         * modules/uniwbrk/u16-wordbreaks: Likewise.
25183         * modules/uniwbrk/u32-wordbreaks: Likewise.
25184         * modules/uniwbrk/ulc-wordbreaks: Likewise.
25185         * modules/uniwbrk/wordbreak-property: Likewise.
25186         * modules/uniwidth/u8-strwidth: Likewise.
25187         * modules/uniwidth/u8-width: Likewise.
25188         * modules/uniwidth/u16-strwidth: Likewise.
25189         * modules/uniwidth/u16-width: Likewise.
25190         * modules/uniwidth/u32-strwidth: Likewise.
25191         * modules/uniwidth/u32-width: Likewise.
25192         * modules/uniwidth/width: Likewise.
25193         * modules/unicase/cased-tests (Makefile.am): Link all test programs
25194         with $(LIBUNISTRING).
25195         * modules/unicase/ignorable-tests: Likewise.
25196         * modules/unicase/locale-language-tests: Likewise.
25197         * modules/unicase/tolower-tests: Likewise.
25198         * modules/unicase/totitle-tests: Likewise.
25199         * modules/unicase/toupper-tests: Likewise.
25200         * modules/unicase/u8-casecmp-tests: Likewise.
25201         * modules/unicase/u8-casecoll-tests: Likewise.
25202         * modules/unicase/u8-casefold-tests: Likewise.
25203         * modules/unicase/u8-is-cased-tests: Likewise.
25204         * modules/unicase/u8-is-casefolded-tests: Likewise.
25205         * modules/unicase/u8-is-lowercase-tests: Likewise.
25206         * modules/unicase/u8-is-titlecase-tests: Likewise.
25207         * modules/unicase/u8-is-uppercase-tests: Likewise.
25208         * modules/unicase/u8-tolower-tests: Likewise.
25209         * modules/unicase/u8-totitle-tests: Likewise.
25210         * modules/unicase/u8-toupper-tests: Likewise.
25211         * modules/unicase/u16-casecmp-tests: Likewise.
25212         * modules/unicase/u16-casecoll-tests: Likewise.
25213         * modules/unicase/u16-casefold-tests: Likewise.
25214         * modules/unicase/u16-is-cased-tests: Likewise.
25215         * modules/unicase/u16-is-casefolded-tests: Likewise.
25216         * modules/unicase/u16-is-lowercase-tests: Likewise.
25217         * modules/unicase/u16-is-titlecase-tests: Likewise.
25218         * modules/unicase/u16-is-uppercase-tests: Likewise.
25219         * modules/unicase/u16-tolower-tests: Likewise.
25220         * modules/unicase/u16-totitle-tests: Likewise.
25221         * modules/unicase/u16-toupper-tests: Likewise.
25222         * modules/unicase/u32-casecmp-tests: Likewise.
25223         * modules/unicase/u32-casecoll-tests: Likewise.
25224         * modules/unicase/u32-casefold-tests: Likewise.
25225         * modules/unicase/u32-is-cased-tests: Likewise.
25226         * modules/unicase/u32-is-casefolded-tests: Likewise.
25227         * modules/unicase/u32-is-lowercase-tests: Likewise.
25228         * modules/unicase/u32-is-titlecase-tests: Likewise.
25229         * modules/unicase/u32-is-uppercase-tests: Likewise.
25230         * modules/unicase/u32-tolower-tests: Likewise.
25231         * modules/unicase/u32-totitle-tests: Likewise.
25232         * modules/unicase/u32-toupper-tests: Likewise.
25233         * modules/unicase/ulc-casecmp-tests: Likewise.
25234         * modules/unicase/ulc-casecoll-tests: Likewise.
25235         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
25236         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
25237         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
25238         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
25239         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
25240         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
25241         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
25242         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
25243         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
25244         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
25245         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
25246         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
25247         * modules/unictype/bidicategory-byname-tests: Likewise.
25248         * modules/unictype/bidicategory-name-tests: Likewise.
25249         * modules/unictype/bidicategory-of-tests: Likewise.
25250         * modules/unictype/bidicategory-test-tests: Likewise.
25251         * modules/unictype/block-list-tests: Likewise.
25252         * modules/unictype/block-of-tests: Likewise.
25253         * modules/unictype/block-test-tests: Likewise.
25254         * modules/unictype/category-C-tests: Likewise.
25255         * modules/unictype/category-Cc-tests: Likewise.
25256         * modules/unictype/category-Cf-tests: Likewise.
25257         * modules/unictype/category-Cn-tests: Likewise.
25258         * modules/unictype/category-Co-tests: Likewise.
25259         * modules/unictype/category-Cs-tests: Likewise.
25260         * modules/unictype/category-L-tests: Likewise.
25261         * modules/unictype/category-Ll-tests: Likewise.
25262         * modules/unictype/category-Lm-tests: Likewise.
25263         * modules/unictype/category-Lo-tests: Likewise.
25264         * modules/unictype/category-Lt-tests: Likewise.
25265         * modules/unictype/category-Lu-tests: Likewise.
25266         * modules/unictype/category-M-tests: Likewise.
25267         * modules/unictype/category-Mc-tests: Likewise.
25268         * modules/unictype/category-Me-tests: Likewise.
25269         * modules/unictype/category-Mn-tests: Likewise.
25270         * modules/unictype/category-N-tests: Likewise.
25271         * modules/unictype/category-Nd-tests: Likewise.
25272         * modules/unictype/category-Nl-tests: Likewise.
25273         * modules/unictype/category-No-tests: Likewise.
25274         * modules/unictype/category-P-tests: Likewise.
25275         * modules/unictype/category-Pc-tests: Likewise.
25276         * modules/unictype/category-Pd-tests: Likewise.
25277         * modules/unictype/category-Pe-tests: Likewise.
25278         * modules/unictype/category-Pf-tests: Likewise.
25279         * modules/unictype/category-Pi-tests: Likewise.
25280         * modules/unictype/category-Po-tests: Likewise.
25281         * modules/unictype/category-Ps-tests: Likewise.
25282         * modules/unictype/category-S-tests: Likewise.
25283         * modules/unictype/category-Sc-tests: Likewise.
25284         * modules/unictype/category-Sk-tests: Likewise.
25285         * modules/unictype/category-Sm-tests: Likewise.
25286         * modules/unictype/category-So-tests: Likewise.
25287         * modules/unictype/category-Z-tests: Likewise.
25288         * modules/unictype/category-Zl-tests: Likewise.
25289         * modules/unictype/category-Zp-tests: Likewise.
25290         * modules/unictype/category-Zs-tests: Likewise.
25291         * modules/unictype/category-and-not-tests: Likewise.
25292         * modules/unictype/category-and-tests: Likewise.
25293         * modules/unictype/category-byname-tests: Likewise.
25294         * modules/unictype/category-name-tests: Likewise.
25295         * modules/unictype/category-none-tests: Likewise.
25296         * modules/unictype/category-of-tests: Likewise.
25297         * modules/unictype/category-or-tests: Likewise.
25298         * modules/unictype/category-test-withtable-tests: Likewise.
25299         * modules/unictype/combining-class-tests: Likewise.
25300         * modules/unictype/ctype-alnum-tests: Likewise.
25301         * modules/unictype/ctype-alpha-tests: Likewise.
25302         * modules/unictype/ctype-blank-tests: Likewise.
25303         * modules/unictype/ctype-cntrl-tests: Likewise.
25304         * modules/unictype/ctype-digit-tests: Likewise.
25305         * modules/unictype/ctype-graph-tests: Likewise.
25306         * modules/unictype/ctype-lower-tests: Likewise.
25307         * modules/unictype/ctype-print-tests: Likewise.
25308         * modules/unictype/ctype-punct-tests: Likewise.
25309         * modules/unictype/ctype-space-tests: Likewise.
25310         * modules/unictype/ctype-upper-tests: Likewise.
25311         * modules/unictype/ctype-xdigit-tests: Likewise.
25312         * modules/unictype/decimal-digit-tests: Likewise.
25313         * modules/unictype/digit-tests: Likewise.
25314         * modules/unictype/mirror-tests: Likewise.
25315         * modules/unictype/numeric-tests: Likewise.
25316         * modules/unictype/property-alphabetic-tests: Likewise.
25317         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
25318         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
25319         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
25320         * modules/unictype/property-bidi-block-separator-tests: Likewise.
25321         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
25322         * modules/unictype/property-bidi-common-separator-tests: Likewise.
25323         * modules/unictype/property-bidi-control-tests: Likewise.
25324         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
25325         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
25326         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
25327         * modules/unictype/property-bidi-european-digit-tests: Likewise.
25328         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
25329         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
25330         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
25331         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
25332         * modules/unictype/property-bidi-pdf-tests: Likewise.
25333         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
25334         * modules/unictype/property-bidi-whitespace-tests: Likewise.
25335         * modules/unictype/property-byname-tests: Likewise.
25336         * modules/unictype/property-combining-tests: Likewise.
25337         * modules/unictype/property-composite-tests: Likewise.
25338         * modules/unictype/property-currency-symbol-tests: Likewise.
25339         * modules/unictype/property-dash-tests: Likewise.
25340         * modules/unictype/property-decimal-digit-tests: Likewise.
25341         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
25342         * modules/unictype/property-deprecated-tests: Likewise.
25343         * modules/unictype/property-diacritic-tests: Likewise.
25344         * modules/unictype/property-extender-tests: Likewise.
25345         * modules/unictype/property-format-control-tests: Likewise.
25346         * modules/unictype/property-grapheme-base-tests: Likewise.
25347         * modules/unictype/property-grapheme-extend-tests: Likewise.
25348         * modules/unictype/property-grapheme-link-tests: Likewise.
25349         * modules/unictype/property-hex-digit-tests: Likewise.
25350         * modules/unictype/property-hyphen-tests: Likewise.
25351         * modules/unictype/property-id-continue-tests: Likewise.
25352         * modules/unictype/property-id-start-tests: Likewise.
25353         * modules/unictype/property-ideographic-tests: Likewise.
25354         * modules/unictype/property-ids-binary-operator-tests: Likewise.
25355         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
25356         * modules/unictype/property-ignorable-control-tests: Likewise.
25357         * modules/unictype/property-iso-control-tests: Likewise.
25358         * modules/unictype/property-join-control-tests: Likewise.
25359         * modules/unictype/property-left-of-pair-tests: Likewise.
25360         * modules/unictype/property-line-separator-tests: Likewise.
25361         * modules/unictype/property-logical-order-exception-tests: Likewise.
25362         * modules/unictype/property-lowercase-tests: Likewise.
25363         * modules/unictype/property-math-tests: Likewise.
25364         * modules/unictype/property-non-break-tests: Likewise.
25365         * modules/unictype/property-not-a-character-tests: Likewise.
25366         * modules/unictype/property-numeric-tests: Likewise.
25367         * modules/unictype/property-other-alphabetic-tests: Likewise.
25368         * modules/unictype/property-other-default-ignorable-code-point-tests:
25369         Likewise.
25370         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
25371         * modules/unictype/property-other-id-continue-tests: Likewise.
25372         * modules/unictype/property-other-id-start-tests: Likewise.
25373         * modules/unictype/property-other-lowercase-tests: Likewise.
25374         * modules/unictype/property-other-math-tests: Likewise.
25375         * modules/unictype/property-other-uppercase-tests: Likewise.
25376         * modules/unictype/property-paired-punctuation-tests: Likewise.
25377         * modules/unictype/property-paragraph-separator-tests: Likewise.
25378         * modules/unictype/property-pattern-syntax-tests: Likewise.
25379         * modules/unictype/property-pattern-white-space-tests: Likewise.
25380         * modules/unictype/property-private-use-tests: Likewise.
25381         * modules/unictype/property-punctuation-tests: Likewise.
25382         * modules/unictype/property-quotation-mark-tests: Likewise.
25383         * modules/unictype/property-radical-tests: Likewise.
25384         * modules/unictype/property-sentence-terminal-tests: Likewise.
25385         * modules/unictype/property-soft-dotted-tests: Likewise.
25386         * modules/unictype/property-space-tests: Likewise.
25387         * modules/unictype/property-terminal-punctuation-tests: Likewise.
25388         * modules/unictype/property-test-tests: Likewise.
25389         * modules/unictype/property-titlecase-tests: Likewise.
25390         * modules/unictype/property-unassigned-code-value-tests: Likewise.
25391         * modules/unictype/property-unified-ideograph-tests: Likewise.
25392         * modules/unictype/property-uppercase-tests: Likewise.
25393         * modules/unictype/property-variation-selector-tests: Likewise.
25394         * modules/unictype/property-white-space-tests: Likewise.
25395         * modules/unictype/property-xid-continue-tests: Likewise.
25396         * modules/unictype/property-xid-start-tests: Likewise.
25397         * modules/unictype/property-zero-width-tests: Likewise.
25398         * modules/unictype/scripts-tests: Likewise.
25399         * modules/unictype/syntax-c-ident-tests: Likewise.
25400         * modules/unictype/syntax-c-whitespace-tests: Likewise.
25401         * modules/unictype/syntax-java-ident-tests: Likewise.
25402         * modules/unictype/syntax-java-whitespace-tests: Likewise.
25403         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
25404         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
25405         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
25406         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
25407         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
25408         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
25409         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
25410         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
25411         * modules/uniname/uniname-tests: Likewise.
25412         * modules/uninorm/canonical-decomposition-tests: Likewise.
25413         * modules/uninorm/compat-decomposition-tests: Likewise.
25414         * modules/uninorm/composition-tests: Likewise.
25415         * modules/uninorm/decomposing-form-tests: Likewise.
25416         * modules/uninorm/decomposition-tests: Likewise.
25417         * modules/uninorm/filter-tests: Likewise.
25418         * modules/uninorm/nfc-tests: Likewise.
25419         * modules/uninorm/nfd-tests: Likewise.
25420         * modules/uninorm/nfkc-tests: Likewise.
25421         * modules/uninorm/nfkd-tests: Likewise.
25422         * modules/uninorm/u8-normcmp-tests: Likewise.
25423         * modules/uninorm/u8-normcoll-tests: Likewise.
25424         * modules/uninorm/u16-normcmp-tests: Likewise.
25425         * modules/uninorm/u16-normcoll-tests: Likewise.
25426         * modules/uninorm/u32-normcmp-tests: Likewise.
25427         * modules/uninorm/u32-normcoll-tests: Likewise.
25428         * modules/unistdio/u8-asnprintf-tests: Likewise.
25429         * modules/unistdio/u8-vasnprintf-tests: Likewise.
25430         * modules/unistdio/u8-vasprintf-tests: Likewise.
25431         * modules/unistdio/u8-vsnprintf-tests: Likewise.
25432         * modules/unistdio/u8-vsprintf-tests: Likewise.
25433         * modules/unistdio/u16-asnprintf-tests: Likewise.
25434         * modules/unistdio/u16-vasnprintf-tests: Likewise.
25435         * modules/unistdio/u16-vasprintf-tests: Likewise.
25436         * modules/unistdio/u16-vsnprintf-tests: Likewise.
25437         * modules/unistdio/u16-vsprintf-tests: Likewise.
25438         * modules/unistdio/u32-asnprintf-tests: Likewise.
25439         * modules/unistdio/u32-vasnprintf-tests: Likewise.
25440         * modules/unistdio/u32-vasprintf-tests: Likewise.
25441         * modules/unistdio/u32-vsnprintf-tests: Likewise.
25442         * modules/unistdio/u32-vsprintf-tests: Likewise.
25443         * modules/unistdio/ulc-asnprintf-tests: Likewise.
25444         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
25445         * modules/unistdio/ulc-vasprintf-tests: Likewise.
25446         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
25447         * modules/unistdio/ulc-vsprintf-tests: Likewise.
25448         * modules/unistr/u8-check-tests: Likewise.
25449         * modules/unistr/u8-chr-tests: Likewise.
25450         * modules/unistr/u8-cmp-tests: Likewise.
25451         * modules/unistr/u8-cmp2-tests: Likewise.
25452         * modules/unistr/u8-cpy-alloc-tests: Likewise.
25453         * modules/unistr/u8-cpy-tests: Likewise.
25454         * modules/unistr/u8-mblen-tests: Likewise.
25455         * modules/unistr/u8-mbsnlen-tests: Likewise.
25456         * modules/unistr/u8-mbtouc-tests: Likewise.
25457         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
25458         * modules/unistr/u8-mbtoucr-tests: Likewise.
25459         * modules/unistr/u8-move-tests: Likewise.
25460         * modules/unistr/u8-next-tests: Likewise.
25461         * modules/unistr/u8-prev-tests: Likewise.
25462         * modules/unistr/u8-set-tests: Likewise.
25463         * modules/unistr/u8-stpcpy-tests: Likewise.
25464         * modules/unistr/u8-stpncpy-tests: Likewise.
25465         * modules/unistr/u8-strcat-tests: Likewise.
25466         * modules/unistr/u8-strcmp-tests: Likewise.
25467         * modules/unistr/u8-strcoll-tests: Likewise.
25468         * modules/unistr/u8-strcpy-tests: Likewise.
25469         * modules/unistr/u8-strdup-tests: Likewise.
25470         * modules/unistr/u8-strlen-tests: Likewise.
25471         * modules/unistr/u8-strmblen-tests: Likewise.
25472         * modules/unistr/u8-strmbtouc-tests: Likewise.
25473         * modules/unistr/u8-strncat-tests: Likewise.
25474         * modules/unistr/u8-strncmp-tests: Likewise.
25475         * modules/unistr/u8-strncpy-tests: Likewise.
25476         * modules/unistr/u8-strnlen-tests: Likewise.
25477         * modules/unistr/u8-to-u16-tests: Likewise.
25478         * modules/unistr/u8-to-u32-tests: Likewise.
25479         * modules/unistr/u8-uctomb-tests: Likewise.
25480         * modules/unistr/u16-check-tests: Likewise.
25481         * modules/unistr/u16-chr-tests: Likewise.
25482         * modules/unistr/u16-cmp-tests: Likewise.
25483         * modules/unistr/u16-cmp2-tests: Likewise.
25484         * modules/unistr/u16-cpy-alloc-tests: Likewise.
25485         * modules/unistr/u16-cpy-tests: Likewise.
25486         * modules/unistr/u16-mblen-tests: Likewise.
25487         * modules/unistr/u16-mbsnlen-tests: Likewise.
25488         * modules/unistr/u16-mbtouc-tests: Likewise.
25489         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
25490         * modules/unistr/u16-mbtoucr-tests: Likewise.
25491         * modules/unistr/u16-move-tests: Likewise.
25492         * modules/unistr/u16-next-tests: Likewise.
25493         * modules/unistr/u16-prev-tests: Likewise.
25494         * modules/unistr/u16-set-tests: Likewise.
25495         * modules/unistr/u16-stpcpy-tests: Likewise.
25496         * modules/unistr/u16-stpncpy-tests: Likewise.
25497         * modules/unistr/u16-strcat-tests: Likewise.
25498         * modules/unistr/u16-strcmp-tests: Likewise.
25499         * modules/unistr/u16-strcoll-tests: Likewise.
25500         * modules/unistr/u16-strcpy-tests: Likewise.
25501         * modules/unistr/u16-strdup-tests: Likewise.
25502         * modules/unistr/u16-strlen-tests: Likewise.
25503         * modules/unistr/u16-strmblen-tests: Likewise.
25504         * modules/unistr/u16-strmbtouc-tests: Likewise.
25505         * modules/unistr/u16-strncat-tests: Likewise.
25506         * modules/unistr/u16-strncmp-tests: Likewise.
25507         * modules/unistr/u16-strncpy-tests: Likewise.
25508         * modules/unistr/u16-strnlen-tests: Likewise.
25509         * modules/unistr/u16-to-u32-tests: Likewise.
25510         * modules/unistr/u16-to-u8-tests: Likewise.
25511         * modules/unistr/u16-uctomb-tests: Likewise.
25512         * modules/unistr/u32-check-tests: Likewise.
25513         * modules/unistr/u32-chr-tests: Likewise.
25514         * modules/unistr/u32-cmp-tests: Likewise.
25515         * modules/unistr/u32-cmp2-tests: Likewise.
25516         * modules/unistr/u32-cpy-alloc-tests: Likewise.
25517         * modules/unistr/u32-cpy-tests: Likewise.
25518         * modules/unistr/u32-mblen-tests: Likewise.
25519         * modules/unistr/u32-mbsnlen-tests: Likewise.
25520         * modules/unistr/u32-mbtouc-tests: Likewise.
25521         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
25522         * modules/unistr/u32-mbtoucr-tests: Likewise.
25523         * modules/unistr/u32-move-tests: Likewise.
25524         * modules/unistr/u32-next-tests: Likewise.
25525         * modules/unistr/u32-prev-tests: Likewise.
25526         * modules/unistr/u32-set-tests: Likewise.
25527         * modules/unistr/u32-stpcpy-tests: Likewise.
25528         * modules/unistr/u32-stpncpy-tests: Likewise.
25529         * modules/unistr/u32-strcat-tests: Likewise.
25530         * modules/unistr/u32-strcmp-tests: Likewise.
25531         * modules/unistr/u32-strcoll-tests: Likewise.
25532         * modules/unistr/u32-strcpy-tests: Likewise.
25533         * modules/unistr/u32-strdup-tests: Likewise.
25534         * modules/unistr/u32-strlen-tests: Likewise.
25535         * modules/unistr/u32-strmblen-tests: Likewise.
25536         * modules/unistr/u32-strmbtouc-tests: Likewise.
25537         * modules/unistr/u32-strncat-tests: Likewise.
25538         * modules/unistr/u32-strncmp-tests: Likewise.
25539         * modules/unistr/u32-strncpy-tests: Likewise.
25540         * modules/unistr/u32-strnlen-tests: Likewise.
25541         * modules/unistr/u32-to-u16-tests: Likewise.
25542         * modules/unistr/u32-to-u8-tests: Likewise.
25543         * modules/unistr/u32-uctomb-tests: Likewise.
25544         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
25545         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
25546         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
25547         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
25548         * modules/uniwidth/u8-strwidth-tests: Likewise.
25549         * modules/uniwidth/u8-width-tests: Likewise.
25550         * modules/uniwidth/u16-strwidth-tests: Likewise.
25551         * modules/uniwidth/u16-width-tests: Likewise.
25552         * modules/uniwidth/u32-strwidth-tests: Likewise.
25553         * modules/uniwidth/u32-width-tests: Likewise.
25554         * modules/uniwidth/width-tests: Likewise.
25555
25556 2010-05-18  Richard Jones  <rjones@redhat.com>
25557
25558         doc: users.txt: list hivex
25559         * users.txt: Add hivex.
25560
25561 2010-05-18  Richard Jones  <rjones@redhat.com>
25562
25563         doc: users.txt: list febootstrap
25564         * users.txt: Add febootstrap.
25565
25566 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
25567
25568         bootstrap: fix an error when gnulib is not used as a git submodule
25569         * build-aux/bootstrap (gnulib_path): If its length is zero then
25570         assign "gnulib" to it.
25571         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
25572
25573 2010-05-16  Bruno Haible  <bruno@clisp.org>
25574
25575         Avoid autoconf warnings about AM_ICONV.
25576         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
25577         2.64.
25578
25579 2010-05-16  Bruno Haible  <bruno@clisp.org>
25580
25581         absolute-header: Make the macro usable in more situations.
25582         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
25583         from gl_ABSOLUTE_HEADER.
25584         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
25585
25586 2010-05-16  James Youngman  <jay@gnu.org>
25587
25588         doc: update users.txt
25589         * users.txt: Add CSSC.
25590
25591 2010-05-16  Jim Meyering  <meyering@redhat.com>
25592
25593         init.sh: fix an error in the previous change; add more comments
25594         * tests/init.sh: Compare exit code in loop against 9, not 2.
25595         Patch by Bruno Haible.
25596         Make the two tests more similar by adding an empty "then" clause.
25597         Add comments.
25598
25599         init.sh: avoid unnecessary shell re-exec
25600         * tests/init.sh: Improve the re-exec-required check to first test the
25601         current shell.  If it passes the test, do not search for a shell that
25602         does pass, and do not re-exec.  This test is particularly contorted to
25603         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
25604         of $(...) evokes a syntax error and causes immediate shell exit with
25605         status 2.  Bruno Haible reported that the re-exec made it impossible
25606         to single-step through any init.sh-using script.
25607
25608 2010-05-16  Bruno Haible  <bruno@clisp.org>
25609
25610         Fix collision between gnulib's and libintl's printf replacements.
25611         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
25612         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
25613         (printf): When using GNU C, map the __printf__ function to rpl_printf
25614         via __asm__. When not using GNU C, define rpl_printf instead of
25615         __printf__.
25616         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
25617         commit.
25618         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
25619         commit.
25620         * m4/asm-underscore.m4: New file.
25621         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
25622         * modules/stdio (Files): Add m4/asm-underscore.m4.
25623         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
25624         Reported by Ben Pfaff.
25625
25626 2010-05-16  Bruno Haible  <bruno@clisp.org>
25627
25628         verify: Avoid skipping the test on openSUSE 11.0.
25629         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
25630
25631 2010-05-13  Bruno Haible  <bruno@clisp.org>
25632
25633         Avoid useless warnings from G++.
25634         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
25635         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
25636         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25637
25638 2010-05-11  Jim Meyering  <meyering@redhat.com>
25639
25640         maint.mk: tweak preceding change
25641         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
25642         regexps tighter by anchoring at EOL, and make the new group "shy"
25643         for slightly decreased overhead.
25644
25645 2010-05-11  Eric Blake  <eblake@redhat.com>
25646
25647         maint.mk: gnulib doesn't guarantee NSIG
25648         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
25649
25650 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25651
25652         test-pwrite.c: Remove unused variable declaration.
25653         * tests/test-pwrite.c (main): Remove read_buf declaration.
25654
25655         Remove useless test-pwrite.sh file.
25656         * tests/test-pwrite.sh: Delete file.
25657         * modules/pwrite-tests: Remove references.
25658         Reported by Bruno Haible.
25659
25660 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25661
25662         init.sh: fix a typo
25663         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
25664
25665 2010-05-10  Jim Meyering  <meyering@redhat.com>
25666
25667         maint.mk: avoid using a temporary file in the always-defined-macros check
25668         * top/maint.mk (.re-defmac): Remove rule.
25669         (gl_trap_): Remove definition.
25670         (sc_prohibit_always-defined_macros): Rewrite not to create and
25671         depend on a temporary file.  Instead, depend on GNU grep's ability
25672         to read a list of regular expressions from stdin when given "-f -".
25673
25674 2010-05-09  Bruno Haible  <bruno@clisp.org>
25675
25676         Update to GNU gettext 0.18, part 1.
25677         * m4/gettext.m4: Update to GNU gettext 0.18.
25678         * m4/intl.m4: Likewise.
25679         * m4/po.m4: Likewise.
25680         * modules/gettext (Files): Add m4/fcntl-o.m4.
25681         (configure.ac): Require gettext infrastructure from version 0.18.
25682
25683 2010-05-09  Jim Meyering  <meyering@redhat.com>
25684
25685         init.sh: enable MALLOC_PERTURB_
25686         * tests/init.sh: Enable glibc's malloc-perturbing option.
25687
25688         maint.mk: improve sc_cross_check_PATH_usage_in_tests
25689         With my recent change in init.sh from the two-line form:
25690             -#   : ${srcdir=.}
25691             -#   . "$srcdir/init.sh"; path_prepend_ .
25692             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
25693         I noticed that using the one-line form would cause this test
25694         to fail with a false-positive, or to stop working altogether,
25695         depending on whether help-version changed or all the tests did.
25696         * top/maint.mk (_hv_regex): Remove this definition.
25697         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
25698         (_hv_regex_strong): Use a stronger regex to check for conformance.
25699         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
25700         Give a separate diagnostic for lack of conforming use.
25701
25702         maint.mk: prohibit definition of symbols defined by gnulib
25703         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
25704         definition of symbols defined by gnulib.
25705
25706 2010-05-09  Bruno Haible  <bruno@clisp.org>
25707
25708         acl: Avoid test failure on Cygwin-hosted mingw.
25709         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
25710
25711 2010-05-09  Bruno Haible  <bruno@clisp.org>
25712
25713         error: Use system's fcntl function.
25714         * lib/error.c (fcntl): Undefine.
25715
25716 2010-05-09  Jim Meyering  <meyering@redhat.com>
25717
25718         verify: adjust formatting to be more consistent
25719         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
25720         argument-list '('s, and after one comma.
25721
25722 2010-05-09  Bruno Haible  <bruno@clisp.org>
25723
25724         error: More reliable output on mingw.
25725         * lib/error.c: Include <windows.h>.
25726         (is_open): New function.
25727         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
25728         defined.
25729
25730 2010-05-09  Bruno Haible  <bruno@clisp.org>
25731
25732         vasnprintf: Fix syntax errors in libintl build on mingw.
25733         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
25734         pad_ourselves and prec_ourselves after use.
25735
25736 2010-05-08  Bruno Haible  <bruno@clisp.org>
25737
25738         * lib/config.charset: Update comments for Cygwin 1.7.
25739         * lib/localcharset.c: Likewise.
25740
25741 2010-05-07  Jim Meyering  <meyering@redhat.com>
25742
25743         init.sh: improve comments
25744         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
25745         . "${srcdir=.}/init.sh"; path_prepend_ .
25746         Add a note about path_prepend_ and the alternative of using
25747         TESTS_ENVIRONMENT.
25748
25749 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25750
25751         exclude: Unescape hashed patterns in wildcard mode.
25752         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
25753         to the hash list.
25754         * tests/test-exclude8.sh: New test case.
25755         * modules/exclude-tests: Add new test.
25756
25757 2010-05-05  Eric Blake  <eblake@redhat.com>
25758
25759         verify: automate tests
25760         * modules/verify-tests: New module.
25761         * tests/test-verify.sh: New file.
25762         * tests/test-verify.c: Guard each negative test with a unique id.
25763         Also avoid warning about unused left hand of comma expressions.
25764
25765 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
25766
25767         Further improvements to verify.h, suggested by Eric Blake.
25768         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
25769         the GL_* versions, to avoid collision with OpenGL.
25770         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
25771         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
25772         than testing merely whether it's defined.
25773
25774         Modify verify.h to pacify gcc -Wredundant_decls.
25775         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
25776         These use the prefix "GL_" since they're likely to be useful elsewhere.
25777         We may need to break them out into a different .h file.
25778         (__COUNTER__): Define to 0 if the compiler doesn't support it.
25779         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
25780         of verify_function__.
25781
25782 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25783
25784         Tests for module pwrite.
25785         * modules/pwrite-tests: New file.
25786         * tests/test-pwrite.sh: New file.
25787         * tests/test-pwrite.c: New file.
25788
25789         New module pwrite.
25790         * lib/unistd.in.h (pwrite): New declaration.
25791         * lib/pwrite.c: New file, from glibc with modifications.
25792         * m4/pwrite.m4: New file.
25793         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
25794         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
25795         REPLACE_PWRITE.
25796         * modules/pwrite: New file.
25797         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
25798         REPLACE_PWRITE.
25799         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
25800         * doc/posix-functions/pwrite.texi: Mention the new module.
25801
25802 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25803
25804         pread: Update documentation.
25805         * doc/posix-functions/pread.texi: Mention the 'pread' module.
25806
25807 2010-05-04  Eric Blake  <eblake@redhat.com>
25808
25809         docs: update cygwin progress
25810         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
25811         this bug.
25812         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
25813         Added in cygwin 1.7.2.
25814         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
25815         Likewise.
25816         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
25817         Likewise.
25818         * doc/glibc-functions/dup3.texi (dup3): Likewise.
25819         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
25820         * doc/glibc-functions/accept4.texi (accept4): Likewise.
25821         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
25822         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
25823         Mention nproc module.
25824         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
25825         bug in cygwin 1.7.5 addition.
25826         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
25827         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
25828         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
25829         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
25830         1.7.5.
25831         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
25832         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
25833         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
25834         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
25835         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
25836         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
25837         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
25838         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
25839         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
25840         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
25841         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
25842         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
25843         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
25844         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
25845         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
25846         Likewise.
25847         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
25848         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
25849         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
25850         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
25851         Likewise.
25852         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
25853         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
25854         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
25855         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
25856         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
25857         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
25858         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
25859         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
25860         Likewise.
25861         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
25862         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
25863         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
25864         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
25865         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
25866         Likewise.
25867         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
25868         Likewise.
25869         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
25870         Likewise.
25871         * doc/glibc-functions/xdrrec_endofrecord.texi
25872         (xdrrec_endofrecord): Likewise.
25873         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
25874         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
25875         Likewise.
25876         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
25877         Likewise.
25878
25879 2010-05-04  Jim Meyering  <meyering@redhat.com>
25880
25881         gendocs.sh: make its "-s FILE" option more useful
25882         * build-aux/gendocs.sh: When honoring the -s FILE option, update
25883         $PACKAGE to reflect the probably-different basename of "FILE".
25884
25885 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
25886
25887         bootstrap: don't ignore download_po_files failure
25888         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
25889         failure.
25890
25891 2010-05-03  Jim Meyering  <meyering@redhat.com>
25892
25893         maint.mk: allow to pass options to gendocs.sh
25894         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
25895         (gendocs_options_): New overridable variable.
25896
25897         gnu-web-doc-update: don't ignore configure or build failure
25898         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
25899
25900         announce-gen: backslash-escape '@'s in --help output
25901         * build-aux/announce-gen: Fix syntax errors.
25902
25903         maint.mk, announce-gen: allow project-specific announcement mail headers
25904         * top/maint.mk (translation_project_): Define default.
25905         (announcement_Cc_, announcement_mail_headers_): Likewise.
25906         (announcement): Invoke announce-gen with new --mail-headers option.
25907         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
25908
25909         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
25910         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
25911         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
25912         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
25913         line in the "err2" output file when running "make check" in verbose
25914         mode (i.e., with set -x enabled).
25915
25916 2010-05-03  Bruno Haible  <bruno@clisp.org>
25917
25918         wctob: Fix for weird platforms.
25919         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
25920         argument value.
25921
25922 2010-05-03  Jim Meyering  <meyering@redhat.com>
25923
25924         maint.mk: prohibit unwarranted use of <strings.h>
25925         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
25926         strings.h in a file that does not also use strcasecmp, strncasecmp,
25927         ffs or ffsll.
25928
25929         maint.mk: remove obsolete comments
25930         * top/maint.mk: Remove stale, commented-out rules.
25931
25932 2010-05-02  Bruno Haible  <bruno@clisp.org>
25933
25934         wcwidth: Declare also when it's aliased.
25935         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
25936         macro.
25937
25938 2010-05-02  Bruno Haible  <bruno@clisp.org>
25939
25940         Fix regression from 2010-04-25.
25941         * gnulib-tool (func_modules_transitive_closure): Check the status of
25942         all modules, not only of the tests that are of the form foo-tests where
25943         foo is a module.
25944
25945 2010-05-02  Bruno Haible  <bruno@clisp.org>
25946
25947         wctob: Work around nasty Cygwin 1.7.2 bug.
25948         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
25949         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
25950
25951 2010-05-01  Bruno Haible  <bruno@clisp.org>
25952
25953         fpurge: Sharper test.
25954         * tests/test-fpurge.c (main): Add one more ftell check.
25955         * modules/fpurge-tests (Depends-on): Add ftell.
25956         Suggested by Eric Blake.
25957
25958 2010-05-01  Bruno Haible  <bruno@clisp.org>
25959
25960         ftello: Another test.
25961         * tests/test-ftello3.c: New file.
25962         * modules/ftello-tests (Files): Add it.
25963         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25964         MOSTLYCLEANFILES.
25965
25966         ftell: Another test.
25967         * tests/test-ftell3.c: New file.
25968         * modules/ftell-tests (Files): Add it.
25969         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25970         MOSTLYCLEANFILES.
25971
25972 2010-05-01  Bruno Haible  <bruno@clisp.org>
25973
25974         ftell, ftello: Work around Solaris bug.
25975         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
25976         * lib/ftello.c: Include stdio-impl.h.
25977         (ftello): On Solaris, when _IOWRT is set, compute the result without
25978         looking at _IOREAD.
25979         * modules/ftello (Files): Add lib/stdio-impl.h.
25980         * doc/posix-functions/ftell.texi: Mention Solaris bug.
25981         * doc/posix-functions/ftello.texi: Likewise.
25982         Reported by Eric Blake.
25983
25984 2010-05-01  Bruno Haible  <bruno@clisp.org>
25985
25986         freading: Adapt to special meaning of _IOREAD flag on Solaris.
25987         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
25988         the _IOWRT flag is also set.
25989
25990 2010-05-01  Bruno Haible  <bruno@clisp.org>
25991
25992         Fix doc about a HP-UX stdio bug.
25993         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
25994         * doc/posix-functions/ftello.texi: Likewise.
25995
25996 2010-05-01  Bruno Haible  <bruno@clisp.org>
25997
25998         lseek test: Fix failure on Solaris.
25999         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
26000         output.
26001
26002 2010-04-30  Jim Meyering  <meyering@redhat.com>
26003
26004         bootstrap: don't ignore failure to generate po*/Makevars
26005         * build-aux/bootstrap (with_gettext): Don't ignore failure
26006         to create po/Makevars or runtime-po/Makevars.
26007
26008 2010-04-29  Eric Blake  <eblake@redhat.com>
26009
26010         headers: relax license to LGPLv2+
26011         * modules/fcntl-h (License): Relax license.
26012         * modules/getopt-posix (License): Likewise.
26013         * modules/locale (License): Likewise.
26014         * modules/math (License): Likewise.
26015         * modules/pty (License): Likewise.
26016         * modules/sched (License): Likewise.
26017         * modules/search (License): Likewise.
26018         * modules/spawn (License): Likewise.
26019         * modules/stdarg (License): Likewise.
26020         * modules/sysexits (License): Likewise.
26021
26022 2010-04-29  Jim Meyering  <meyering@redhat.com>
26023
26024         inttypes: relax license to LGPLv2+
26025         * modules/inttypes (License): Relax license.
26026
26027 2010-04-29  Simon Josefsson  <simon@josefsson.org>
26028
26029         * top/maint.mk (indent): Run twice to produce idempotent results.
26030
26031 2010-04-28  Bruno Haible  <bruno@clisp.org>
26032
26033         getdate: Generate getdate.c in the source directory.
26034         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
26035         MOSTLYCLEANFILES.
26036         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
26037
26038 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
26039
26040         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
26041         is not declared as a const *; avoid warnings in that case.
26042
26043 2010-04-28  Eric Blake  <eblake@redhat.com>
26044
26045         canonicalize-lgpl: avoid compiler warning
26046         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
26047         declaration' / 'extraneous semicolon' warning with some compilers.
26048         Reported by Andreas Gruenbacher.
26049
26050 2010-04-28  Jim Meyering  <meyering@redhat.com>
26051
26052         init.sh: ensure a more reliable exit status when exiting via trap
26053         * tests/init.sh (setup_): Don't rely on $? in signal handler.
26054         Inspired by patches from Dmitry V. Levin.
26055         Also trap on signal 3 (SIGQUIT).
26056
26057 2010-04-27  Bruno Haible  <bruno@clisp.org>
26058
26059         Update doc about utimes().
26060         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
26061         'utimens' module.
26062         Reported by Andreas Gruenbacher <agruen@suse.de>.
26063
26064 2010-04-27  Eric Blake  <eblake@redhat.com>
26065
26066         full-read, full-write: relax license
26067         * modules/full-read (License): Drop to LGPLv2+.
26068         * modules/full-write (License): Likewise.
26069         * modules/safe-read (License): Likewise.
26070         * modules/safe-write (License): Likewise.
26071
26072         pthread: mention library for linking
26073         * modules/pthread (Link): Mention $(LIB_PTHREAD).
26074
26075 2010-04-27  Jim Meyering  <meyering@redhat.com>
26076
26077         maint.mk: fix a bug introduced in last change
26078         * top/maint.mk (gl_assured_headers_): Now that all names are on
26079         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
26080         is not anchored to end of word, it should be adequate.
26081
26082         maint.mk: avoid side-effect in latest syntax-check
26083         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
26084         to run commands via $(shell...), and hence to incur cost only when
26085         the new rule is actually run.
26086
26087         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
26088         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
26089         and use that to create a regexp used to detect all #if HAVE_..._H uses.
26090         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
26091         (gl_assured_headers_, az_, AZ_): Define.
26092         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
26093
26094 2010-04-26  Jim Meyering  <jim@meyering.net>
26095             Bruno Haible  <bruno@clisp.org>
26096
26097         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
26098         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
26099         Prompted by an exchange with Gilles Espinasse.
26100
26101 2010-04-26  Jim Meyering  <meyering@redhat.com>
26102
26103         git-version-gen: aesthetic tweak
26104         * build-aux/git-version-gen: Use "$nl" rather than a literal,
26105         so that the command remains on a single line.
26106
26107 2010-04-26  Eric Blake  <eblake@redhat.com>
26108
26109         git-version-gen: allow use on EBCDIC hosts
26110         * build-aux/git-version-gen (dirty): Use literal rather than tying
26111         ourselves to ascii.
26112         Reported by Steve Goetze.
26113
26114 2010-04-25  Bruno Haible  <bruno@clisp.org>
26115
26116         netdb: Add support for GNULIB_POSIXCHECK.
26117         * lib/netdb.in.h: Include warn-on-use.h.
26118         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
26119         functions are used when GNULIB_POSIXCHECK is defined and the
26120         getaddrinfo module is not in use.
26121         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
26122         freeaddrinfo, gai_strerror, getnameinfo are declared.
26123         * modules/netdb (Depends-on): Add warn-on-use.
26124         (Makefile.am): Include warn-on-use.h in netdb.h.
26125
26126 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
26127
26128         build: avoid "make check" failure without .git/ directory
26129         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
26130         there is no .git/ directory.
26131
26132 2010-04-25  Bruno Haible  <bruno@clisp.org>
26133
26134         ptsname: Fix misuse of ttyname_r.
26135         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
26136         of errno.
26137
26138 2010-04-25  Bruno Haible  <bruno@clisp.org>
26139
26140         ttyname_r: Make it work on Solaris 10.
26141         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
26142         if the system function has the POSIX declaration. Test whether the
26143         function fails if the buffer is less than 128 bytes large.
26144         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
26145         system's ttyname_r function. Provide a reasonably large buffer.
26146         * modules/ttyname_r (Depends-on): Add extensions.
26147         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
26148
26149 2010-04-25  Bruno Haible  <bruno@clisp.org>
26150
26151         Use the 'extensions' module for some more functions on Solaris.
26152         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
26153         module.
26154         * doc/posix-functions/ctime_r.texi: Likewise.
26155         * doc/posix-functions/getgrgid_r.texi: Likewise.
26156         * doc/posix-functions/getgrnam_r.texi: Likewise.
26157         * doc/posix-functions/getpwnam_r.texi: Likewise.
26158         * doc/posix-functions/getpwuid_r.texi: Likewise.
26159         * doc/posix-functions/readdir_r.texi: Likewise.
26160         * doc/posix-functions/sigwait.texi: Likewise.
26161         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
26162         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
26163
26164 2010-04-25  Bruno Haible  <bruno@clisp.org>
26165
26166         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
26167         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
26168         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
26169         * lib/ttyname_r.c: Include <limits.h>.
26170         (ttyname_r): Define using the system's ttyname_r function, if it exists
26171         and not on Solaris.
26172         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
26173         set.
26174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
26175         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
26176         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
26177         Reported by Simon Josefsson.
26178
26179 2010-04-25  Bruno Haible  <bruno@clisp.org>
26180
26181         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
26182         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
26183         * doc/posix-functions/ctime_r.texi: Likewise.
26184         * doc/posix-functions/getgrgid_r.texi: Likewise.
26185         * doc/posix-functions/getgrnam_r.texi: Likewise.
26186         * doc/posix-functions/getlogin_r.texi: Likewise.
26187         * doc/posix-functions/getpwnam_r.texi: Likewise.
26188         * doc/posix-functions/getpwuid_r.texi: Likewise.
26189         * doc/posix-functions/readdir_r.texi: Likewise.
26190         * doc/posix-functions/sigwait.texi: Likewise.
26191         * doc/posix-functions/ttyname_r.texi: Likewise.
26192         Reported by Simon Josefsson.
26193
26194 2010-04-25  Bruno Haible  <bruno@clisp.org>
26195
26196         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
26197         * gnulib-tool (func_usage): Document that --with-*-tests options apply
26198         also to --create-testdir.
26199         (func_acceptable): Don't consider the status of *-tests modules here.
26200         (func_modules_transitive_closure): Consider it here, before including a
26201         test module.
26202         (func_import, func_create_testdir): Set inc_all_direct_tests,
26203         inc_all_indirect_tests.
26204         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
26205         --create-testdir and --create-megatestdir.
26206
26207 2010-04-25  Bruno Haible  <bruno@clisp.org>
26208
26209         gnulib-tool: Add --without-*-tests options.
26210         * gnulib-tool (func_usage): Document the --without-*-tests options.
26211         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
26212         excl_unportable_tests): New variables.
26213         Fail if they are specified with --import or --update.
26214         (func_acceptable): Respect the excl_*_tests variables.
26215         (func_import): Set the excl_*_tests variables to empty.
26216
26217 2010-04-25  Simon Josefsson  <simon@josefsson.org>
26218             Bruno Haible  <bruno@clisp.org>
26219
26220         Work around a MacOS X 10.4 bug with openpty.
26221         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
26222         * tests/test-openpty.c (main): Close the master side explicitly.
26223
26224 2010-04-25  Bruno Haible  <bruno@clisp.org>
26225
26226         strnlen: Fix a C++ test error on MacOS X and Solaris.
26227         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
26228         the function is not declared.
26229         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
26230         Simon Josefsson.
26231
26232 2010-04-24  Bruno Haible  <bruno@clisp.org>
26233
26234         Avoid a gcc warning.
26235         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
26236         of correct type for %08lx directive.
26237         Reported by Eric Blake.
26238
26239 2010-04-24  Bruno Haible  <bruno@clisp.org>
26240
26241         vasnprintf: Correct errno value in case of out-of-memory.
26242         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
26243         or sprintf. Use the errno value from SNPRINTF or sprintf.
26244         Reported by Ian Beckwith <ianb@erislabs.net>.
26245
26246 2010-04-24  Bruno Haible  <bruno@clisp.org>
26247
26248         ansi-c++-opt: Find correct compiler when cross-compiling.
26249         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
26250         AC_CHECK_PROGS.
26251         Reported by Simon Josefsson.
26252
26253 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
26254
26255         vc-list-files: Add support for subversion
26256         * build-aux/vc-list-files: Use "svn list" to generate the list of
26257         files controlled by subversion.
26258
26259 2010-04-23  Jim Meyering  <meyering@redhat.com>
26260
26261         vc-list-files tests: convert to use init.sh
26262         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
26263         path_prepend_.
26264         Use Exit, not exit.
26265         Use skip_ rather than open coding it.
26266         Remove trap set-up and compare definitions.
26267         * tests/test-vc-list-files-git.sh: Likewise.
26268         * modules/vc-list-files-tests (Files): Add tests/init.sh.
26269
26270 2010-04-22  Simon Josefsson  <simon@josefsson.org>
26271
26272         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
26273         backup files.
26274
26275 2010-04-21  Simon Josefsson  <simon@josefsson.org>
26276
26277         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
26278
26279 2010-04-20  Eric Blake  <eblake@redhat.com>
26280
26281         tests: be robust to ignored SIGPIPE
26282         * tests/test-select-in.sh: Consume all output.
26283         * tests/test-lseek.sh: Check correct exit status, while avoiding
26284         EPIPE.
26285
26286 2010-04-20  Simon Josefsson  <simon@josefsson.org>
26287             Bruno Haible  <bruno@clisp.org>
26288
26289         visibility: Don't use -fvisibility if it leads to a warning.
26290         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
26291         yes, don't pretend that visibility works if it leads to a warning.
26292         Reported by Mike Gran <spk121@yahoo.com>.
26293
26294 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
26295
26296         * build-aux/bootstrap: Use "git -h" for testing for supported options
26297         instead of "git --help".  The short-form option only shows a summary,
26298         and doesn't layout the full man page.  Grep for the full option name
26299         in the summary, too.
26300
26301 2010-04-19  Bruno Haible  <bruno@clisp.org>
26302
26303         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
26304         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
26305         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
26306         mention of RELOCATABLE_STRIP.
26307         Reported by Sylvain Beucler <beuc@beuc.net>.
26308
26309 2010-04-19  Bruno Haible  <bruno@clisp.org>
26310
26311         * lib/diffseq.h: Fix typo in comment.
26312         Reported by Eric Blake.
26313
26314 2010-04-19  Bruno Haible  <bruno@clisp.org>
26315
26316         ioctl: Move autoconf macro to a .m4 file.
26317         * m4/ioctl.m4: New file, extracted from modules/ioctl.
26318         * modules/ioctl (Files): Add it.
26319         (configure.ac): Simply invoke gl_FUNC_IOCTL.
26320         Reported by Ian Beckwith <ianb@erislabs.net>.
26321
26322 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
26323             Bruno Haible  <bruno@clisp.org>
26324
26325         diffseq: Accommodate use-case with abstract arrays.
26326         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
26327         is not defined.
26328         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
26329         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
26330
26331 2010-04-18  Bruno Haible  <bruno@clisp.org>
26332
26333         * doc/posix-headers/stdbool.texi: More precise wording.
26334
26335 2010-04-17  Jim Meyering  <meyering@redhat.com>
26336
26337         maint.mk: use gnu-style indentation in an embedded perl script
26338         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
26339         Rename variable: s/two/last_two_bytes/
26340
26341 2010-04-16  Eric Blake  <eblake@redhat.com>
26342
26343         test-stdbool: skip test that fails with Solaris CC
26344         * tests/test-stdbool.c (f): Skip test that causes compilation
26345         error under buggy C++ compiler.
26346         * lib/stdbool.in.h: Document the limitation.
26347         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
26348
26349         setenv: allow compilation with C++
26350         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
26351         register keyword.
26352
26353         stdint: allow test to pass with C++
26354         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
26355
26356         getopt: allow compilation with C++
26357         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
26358         struct.
26359         * lib/getopt.c (_getopt_internal_r): Use correct type.
26360         Reported by Dagobert Michelson, via Joel E. Denny.
26361
26362 2010-04-16  Bruno Haible  <bruno@clisp.org>
26363
26364         Override netdb.h always.
26365         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
26366         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
26367         Reported by Ludovic Courtès <ludo@gnu.org>.
26368
26369 2010-04-15  Bruno Haible  <bruno@clisp.org>
26370
26371         openpty: Fix mistake from 2010-03-21.
26372         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
26373         Reported by Simon Josefsson.
26374
26375 2010-04-15  Eric Blake  <eblake@redhat.com>
26376
26377         test-forkpty: fix expected signature
26378         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
26379         Reported by Simon Josefsson.
26380
26381 2010-04-15  Jim Meyering  <meyering@redhat.com>
26382
26383         maint.mk: texinfo_suffix_re_: correct the default regexp
26384         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
26385
26386         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
26387         make it configurable via texinfo_suffix_re_.
26388
26389 2010-04-14  Eric Blake  <eblake@redhat.com>
26390
26391         strtok_r: relax license to LGPLv2+
26392         * modules/strtok_r (License): Relax license.
26393         Reported by Matthias Bolte.
26394
26395 2010-04-14  Simon Josefsson  <simon@josefsson.org>
26396
26397         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
26398         version 1.4.4 by default instead of requiring the libgcrypt
26399         version used during build.  This makes it possible to use the
26400         application with older but still binary compatible libgcrypt
26401         versions.
26402
26403 2010-04-13  Eric Blake  <eblake@redhat.com>
26404
26405         getopt-gnu: match recent glibc fixes and posix ruling
26406         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
26407         '+' handling, when requesting extensions.
26408         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
26409         'W;' handling.
26410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
26411         * doc/posix-functions/getopt.texi (getopt): Document this.
26412         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26413         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26414         Likewise.
26415
26416         getopt: merge bug fixes from glibc
26417         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
26418         diagnostics.  Honor '+:' correctly.  Reject ';'.
26419
26420         getopt-posix: detect MacOS bug
26421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
26422         optind when missing a required argument.
26423         * doc/posix-functions/getopt.texi (getopt): Document the bug.
26424         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26425         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26426         Likewise.
26427
26428         getopt-posix: avoid spurious failure on Solaris
26429         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
26430         an indicator that setting optind=1 is sufficient for reset.
26431
26432         getopt-posix: avoid spurious failure on FreeBSD
26433         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
26434         in POSIX mode, since the m4 test uses it.
26435
26436         gnulib-tool: silence warning on BSD sh
26437         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
26438
26439 2010-04-13  Jim Meyering  <meyering@redhat.com>
26440
26441         doc: users.txt: GNU patch now uses gnulib
26442         * users.txt: Add patch.
26443
26444 2010-04-12  Jim Meyering  <meyering@redhat.com>
26445
26446         maint.mk: generate more concise timing data for syntax-check rules
26447         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
26448         " done" from each line that reports a syntax-check test duration.
26449
26450 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
26451
26452         git-version-gen: use "git update-index..." rather than "git status"
26453         * build-aux/git-version-gen: Use git update-index --refresh, not
26454         "git status".  With some versions of git, "git status" would fail
26455         to update the index and result in an unwarranted "-dirty" suffix.
26456
26457 2010-04-11  Jim Meyering  <meyering@redhat.com>
26458
26459         openat: correct formatting (no semantic change)
26460         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
26461         Suggested by Bruno Haible.
26462
26463 2010-04-11  Bruno Haible  <bruno@clisp.org>
26464
26465         Stricter declaration checking in testdirs.
26466         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26467         If for_tests is true, augment AM_CPPFLAGS to define
26468         GNULIB_STRICT_CHECKING.
26469         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
26470         GNULIB_STRICT_CHECKING is defined, verify that the function is
26471         declared.
26472
26473 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
26474             Bruno Haible  <bruno@clisp.org>
26475
26476         libunistring: Improve configure output.
26477         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
26478         Don't say "consider installing GNU libunistring" when checking again
26479         with libiconv.
26480
26481 2010-04-11  Bruno Haible  <bruno@clisp.org>
26482
26483         libunistring: Correct value of $LTLIBUNISTRING.
26484         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
26485         correct the value of $LTLIBUNISTRING.
26486
26487 2010-04-11  Bruno Haible  <bruno@clisp.org>
26488
26489         havelib: Add static libraries to LIBS in the right order.
26490         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
26491         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
26492
26493 2010-04-11  Bruno Haible  <bruno@clisp.org>
26494
26495         libunistring: Detect libunistring also when it depends on libiconv.
26496         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
26497         the second AC_LIB_HAVE_LINKFLAGS invocation.
26498
26499 2010-04-11  James Youngman  <jay@gnu.org>
26500
26501         close-stream: declare local scalars to be "const"
26502         * lib/close-stream.c (close_stream): Make boolean variables const
26503         to document the fact that we set but do not change them.
26504
26505 2010-04-11  Bruno Haible  <bruno@clisp.org>
26506
26507         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
26508
26509 2010-04-11  Jim Meyering  <meyering@redhat.com>
26510
26511         maint.mk: don't include dist-check.mk
26512         * top/maint.mk: Remove bogus include directive.
26513
26514         maint.mk: improve empty-line-at-EOF check
26515         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
26516         solution, rather than tail+Perl-based one.  The latter would read
26517         a few kilobytes from the end of each file, and did not handle empty
26518         files properly.
26519
26520         maint.mk: print the elapsed time for each syntax-check rule
26521         * top/maint.mk (sc_m_rules_): Save start time in a file.
26522         (sc_z_rules_): New rules: remove temp file and print elapsed time.
26523         (local-check): Interpose the .z rules
26524
26525 2010-04-11  Jim Meyering  <meyering@redhat.com>
26526
26527         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
26528         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
26529         empty file with one that ends in an empty line.
26530
26531 2010-04-10  Bruno Haible  <bruno@clisp.org>
26532
26533         mkdir: Make it work on mingw64.
26534         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
26535         * lib/mkdir.c: Update comment.
26536         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
26537
26538 2010-04-10  Bruno Haible  <bruno@clisp.org>
26539
26540         Don't override improved macro from newer autoconf.
26541         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
26542         autoconf >= 2.62.
26543         Reported by Joel E. Denny <jdenny@clemson.edu>.
26544
26545 2010-04-10  Jim Meyering  <meyering@redhat.com>
26546
26547         maint.mk: new syntax-check rule: prohibit empty lines at end of file
26548         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
26549
26550         maint.mk: correct a diagnostic
26551         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
26552         in diagnostic; now use $prohibit.
26553
26554 2010-04-10  Bruno Haible  <address@hidden>
26555
26556         fchownat: Fix a C++ test error on Solaris 8.
26557         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
26558         the function does not exist.
26559
26560 2010-04-10  Bruno Haible  <bruno@clisp.org>
26561
26562         vasnprintf: Add more tests.
26563         * tests/test-vasnprintf-posix.c: Include <errno.h>.
26564         (test_function): Test converting an invalid wide string.
26565
26566         vasnprintf: Correct handling of unconvertible wide string arguments.
26567         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
26568         VASNPRINTF.
26569         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
26570         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
26571         smaller than the expected maximum need for the directive. Set errno to
26572         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
26573         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
26574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
26575         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
26576         * modules/vasnprintf (Files): Add m4/printf.m4.
26577         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26578
26579 2010-04-10  Bruno Haible  <bruno@clisp.org>
26580
26581         vasnprintf: Fix crash in %ls directive.
26582         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
26583         string is passed as argument to %ls, with no precision and no width.
26584         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26585
26586 2010-04-10  Bruno Haible  <bruno@clisp.org>
26587
26588         vasnprintf: Fix multiple test failures on mingw.
26589         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
26590         _snprintf, or snwprintf, not _snwprintf.
26591
26592 2010-04-10  Bruno Haible  <bruno@clisp.org>
26593
26594         write: Fix a C++ test error on mingw.
26595         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
26596
26597 2010-04-10  Bruno Haible  <bruno@clisp.org>
26598
26599         vasnprintf test: Reduce code duplication.
26600         * tests/test-vasnprintf.c (test_function): New function, extracted from
26601         test_vasnprintf.
26602         (test_vasnprintf, test_asnprintf): Invoke it.
26603
26604 2010-04-10  Bruno Haible  <bruno@clisp.org>
26605
26606         strnlen: Fix warning in C++ mode on MacOS X.
26607         * lib/string.in.h (strnlen): Use the modern idiom.
26608         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
26609         defining strnlen as a macro already in <config.h>.
26610         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26611         REPLACE_STRNLEN.
26612         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
26613         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26614
26615 2010-04-08  James Youngman  <jay@gnu.org>
26616
26617         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
26618         the example.
26619
26620 2010-04-09  Jim Meyering  <meyering@redhat.com>
26621
26622         maint.mk: print better diagnostic when there is no $(_hv_file)
26623         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
26624         announce that when $(_hv_file) (aka help-version) does not exist.
26625
26626         init.sh: run tr in the "C" locale to avoid multibyte interpretation
26627         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
26628         not try to interpret its random input bytes.  Jarno Rajahalme reported
26629         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
26630         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
26631         (mktempd_): Likewise, just in case.
26632
26633         ftruncate: add two years to projected module removal date: 2012
26634         * m4/ftruncate.m4: Adjust comments.
26635
26636         ftruncate: mark module as obsolete; even MinGW provides it, now
26637         * modules/ftruncate (Status): Obsolete.
26638         (Notice): Say that.
26639         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
26640         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
26641
26642 2010-04-08  Bruno Haible  <bruno@clisp.org>
26643
26644         Fix side effects from tests-related modules.
26645         * modules/dprintf-posix (Comment): New section.
26646         * modules/fprintf-posix (Comment): Likewise.
26647         * modules/obstack-printf-posix (Comment): Likewise.
26648         * modules/printf-posix (Comment): Likewise.
26649         * modules/snprintf-posix (Comment): Likewise.
26650         * modules/sprintf-posix (Comment): Likewise.
26651         * modules/vasnprintf-posix (Comment): Likewise.
26652         * modules/vasprintf-posix (Comment): Likewise.
26653         * modules/vdprintf-posix (Comment): Likewise.
26654         * modules/vfprintf-posix (Comment): Likewise.
26655         * modules/vprintf-posix (Comment): Likewise.
26656         * modules/vsnprintf-posix (Comment): Likewise.
26657         * modules/vsprintf-posix (Comment): Likewise.
26658         * modules/xprintf-posix (Comment): Likewise.
26659         * modules/xvasprintf-posix (Comment): Likewise.
26660         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
26661         * modules/floorf-tests (Depends-on): Likewise.
26662         * modules/round-tests (Depends-on): Likewise.
26663         * modules/roundf-tests (Depends-on): Likewise.
26664         * modules/trunc-tests (Depends-on): Likewise.
26665         * modules/truncf-tests (Depends-on): Likewise.
26666         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
26667         'fprintf-posix' module is not present.
26668         * tests/test-floorf2.c (check): Likewise.
26669         * tests/test-trunc2.c (check): Likewise.
26670         * tests/test-truncf2.c (check): Likewise.
26671         * tests/test-round2.c (equal): Likewise.
26672         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26673
26674 2010-04-07  Karl Berry  <karl@gnu.org>
26675
26676         * config/srclist.txt,
26677         * config/srclistvars.sh,
26678         * config/srclist-update: doc fixes.
26679
26680 2010-04-07  Jim Meyering  <meyering@redhat.com>
26681
26682         maint.mk: add a PATH crosschecking syntax-check rule
26683         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
26684         Useful if you use a test like the one in help-version (coreutils,
26685         diffutils, grep, gzip) that ensures $(VERSION) matches what is
26686         printed by prog --version.
26687
26688 2010-04-06  Bruno Haible  <bruno@clisp.org>
26689
26690         Fix link error on mingw.
26691         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
26692         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
26693
26694 2010-04-06  Bruno Haible  <bruno@clisp.org>
26695
26696         Assume rmdir exists.
26697         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
26698
26699 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
26700
26701         doc: update users.txt
26702         * users.txt: Add gcal.
26703
26704 2010-04-06  Jim Meyering  <meyering@redhat.com>
26705
26706         init.sh: simply unset TMPDIR rather than risking env -i
26707         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
26708         although it probably works fine on all Unix-based systems, some
26709         systems (Cygwin?) cannot tolerate a totally cleared environment.
26710         Suggestion from Eric Blake.
26711
26712 2010-04-06  Jim Meyering  <meyering@redhat.com>
26713
26714         init.sh: portability fix: use env's POSIX-specified -i option not -u
26715         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
26716         than unportable env -u.  Solaris 5.11's env lacks support for -u.
26717
26718 2010-04-05  Bruno Haible  <bruno@clisp.org>
26719
26720         btowc: Work around Cygwin 1.7.2 bug.
26721         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
26722         does not map NUL to 0.
26723         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
26724
26725 2010-04-05  Bruno Haible  <bruno@clisp.org>
26726
26727         Make the multithread modules work on Cygwin 1.7.2.
26728         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
26729         imported symbols can be declared weak, so that it returns "no" on
26730         Cygwin 1.7.2.
26731
26732 2010-04-05  Bruno Haible  <bruno@clisp.org>
26733
26734         Use the module 'strncat'.
26735         * modules/unistr/u8-strncat (Depends-on): Add strncat.
26736
26737         Tests for module 'strncat'.
26738         * modules/strncat-tests: New file.
26739         * tests/test-strncat.c: New file.
26740
26741         New module 'strncat'.
26742         * lib/string.in.h (strncat): New declaration.
26743         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
26744         * m4/strncat.m4: New file, based on m4/memchr.m4.
26745         * modules/strncat: New file.
26746         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
26747         is declared.
26748         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
26749         REPLACE_STRNCAT.
26750         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
26751         REPLACE_STRNCAT.
26752         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
26753         module.
26754         * tests/test-string-c++.cc: Check signature of strncat.
26755
26756 2010-04-05  Jim Meyering  <meyering@redhat.com>
26757
26758         xstrtoumax-tests: convert to use init.sh
26759         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
26760         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26761         Use Exit, not exit.
26762         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26763
26764         xstrtoimax-tests: convert to use init.sh
26765         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
26766         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26767         Use Exit, not exit.
26768         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26769
26770 2010-04-05  Bruno Haible  <bruno@clisp.org>
26771
26772         sys_socket: Avoid #define replacements in C++ mode.
26773         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
26774         warning to the function if possible, rather than #defining the symbol
26775         to a dysfunctional alias.
26776
26777 2010-04-05  Bruno Haible  <bruno@clisp.org>
26778
26779         fseeko: Fix C++ test error on mingw.
26780         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
26781         gl_FUNC_FSEEKO.
26782         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
26783         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
26784         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
26785         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
26786
26787 2010-04-05  Bruno Haible  <bruno@clisp.org>
26788
26789         duplocale: Improve test output.
26790         * tests/test-duplocale.c (main): Print reason for skipped test.
26791
26792 2010-04-05  Bruno Haible  <bruno@clisp.org>
26793
26794         Assume rmdir exists.
26795         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
26796         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
26797
26798 2010-04-05  Bruno Haible  <bruno@clisp.org>
26799
26800         Fix link error on Solaris 8 with cc.
26801         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
26802
26803 2010-04-05  Bruno Haible  <bruno@clisp.org>
26804
26805         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26806         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
26807
26808 2010-04-05  Bruno Haible  <bruno@clisp.org>
26809
26810         vasprintf: Update documentation.
26811         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
26812
26813 2010-04-05  Bruno Haible  <bruno@clisp.org>
26814
26815         ptsname: Improve test.
26816         * tests/test-ptsname.c (main): Also try the various master names of BSD
26817         systems.
26818
26819 2010-04-05  Bruno Haible  <bruno@clisp.org>
26820
26821         memchr: Avoid a possible C++ test error.
26822         * lib/string.in.h (memchr): Provide declaration if function is missing.
26823         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
26824         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
26825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
26826         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
26827
26828 2010-04-05  Bruno Haible  <bruno@clisp.org>
26829
26830         strtok_r: Improve idiom.
26831         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
26832         AC_LIBOBJ is used.
26833
26834 2010-04-05  Bruno Haible  <bruno@clisp.org>
26835
26836         strdup: Improve idiom.
26837         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
26838         AC_LIBOBJ is used.
26839         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
26840         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
26841         when AC_LIBOBJ is used.
26842
26843 2010-04-05  Bruno Haible  <bruno@clisp.org>
26844
26845         mbsinit, mbrtowc, wcrtomb: Improve idioms.
26846         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
26847         don't set REPLACE_MBSINIT to 1.
26848         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
26849         don't set REPLACE_MBRTOWC to 1.
26850         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
26851         exist, don't set REPLACE_MBSRTOWCS to 1.
26852         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
26853         exist, don't set REPLACE_MBSNRTOWCS to 1.
26854         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
26855         don't set REPLACE_WCRTOMB to 1.
26856         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
26857         exist, don't set REPLACE_WCSRTOMBS to 1.
26858         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
26859         exist, don't set REPLACE_WCSNRTOMBS to 1.
26860
26861 2010-04-05  Bruno Haible  <bruno@clisp.org>
26862
26863         ldexpl: Improve idiom.
26864         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
26865         make sure to set HAVE_DECL_LDEXPL to 0.
26866
26867 2010-04-05  Jim Meyering  <meyering@redhat.com>
26868
26869         xstrtol-tests: convert to use init.sh
26870         * modules/xstrtol-tests (Files): Add tests/init.sh.
26871         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26872         Use Exit, not exit.
26873         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26874
26875         atexit-tests: convert to use init.sh
26876         * modules/atexit-tests (Files): Add tests/init.sh.
26877         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26878         Use Exit, not exit.
26879         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26880
26881         init.sh: fix typo
26882         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
26883
26884         init.sh: make it easier for a test script to write to the tty, ...
26885         when using automake's parallel-tests mode.
26886         * tests/init.sh (stderr_fileno_): Define overridable variable.
26887         (warn_): New function, to use it.
26888         (fail_, skip_, framework_failure_): Use warn_.
26889
26890 2010-04-04  Bruno Haible  <bruno@clisp.org>
26891
26892         btowc: Avoid warning.
26893         * lib/btowc.c: Include <stdlib.h>.
26894         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
26895
26896 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26897             Bruno Haible  <bruno@clisp.org>
26898
26899         wchar: Port to NetBSD 1.5.
26900         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
26901         * lib/wctype.in.h (WEOF): Likewise.
26902
26903 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26904             Bruno Haible  <bruno@clisp.org>
26905
26906         Port extended stdio to NetBSD 1.5.
26907         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
26908         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
26909         older.
26910
26911 2010-04-04  Bruno Haible  <bruno@clisp.org>
26912
26913         string: Remove unused substitution.
26914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26915         HAVE_DECL_STRERROR.
26916         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
26917
26918 2010-04-04  Bruno Haible  <bruno@clisp.org>
26919
26920         strtod: Avoid a possible C++ test error.
26921         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
26922         set REPLACE_STRTOD.
26923
26924 2010-04-04  Bruno Haible  <bruno@clisp.org>
26925
26926         strerror: Update documentation.
26927         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
26928
26929 2010-04-04  Bruno Haible  <bruno@clisp.org>
26930
26931         stdio: Fix some C++ test errors on Solaris 8 with GCC.
26932         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
26933         _GL_CXXALIAS_SYS_CAST.
26934
26935 2010-04-04  Bruno Haible  <bruno@clisp.org>
26936
26937         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26938         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
26939         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
26940         REPLACE_FREXPL to 1.
26941         * doc/posix-functions/frexpl.texi: Update documentation.
26942
26943 2010-04-04  Bruno Haible  <bruno@clisp.org>
26944
26945         math: Fix some C++ test errors on Solaris 8 and Cygwin.
26946         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
26947
26948 2010-04-04  Bruno Haible  <bruno@clisp.org>
26949
26950         Implement nanosleep for native Windows.
26951         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
26952
26953 2010-04-04  Bruno Haible  <bruno@clisp.org>
26954
26955         math: Fix some C++ test errors on Solaris 8.
26956         * lib/math.in.h (truncf, trunc): Use simpler idiom.
26957
26958 2010-04-04  Bruno Haible  <bruno@clisp.org>
26959
26960         math: Fix some C++ test errors on Cygwin.
26961         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
26962         truncl): Provide declaration if the system does not have it.
26963         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
26964         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
26965         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
26966         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
26967         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
26968         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
26969         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
26970         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
26971         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
26972         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
26973         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
26974         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
26975         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
26976         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
26977         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
26978         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
26979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
26980         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26981         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26982         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
26983         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26984         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26985
26986 2010-04-04  Bruno Haible  <bruno@clisp.org>
26987
26988         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
26989         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26990         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26991         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26992         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26993         * m4/isinf.m4 (gl_ISINF): Likewise.
26994         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26995
26996 2010-04-04  Bruno Haible  <bruno@clisp.org>
26997
26998         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
26999         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27000
27001 2010-04-04  Bruno Haible  <bruno@clisp.org>
27002
27003         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
27004         * modules/tmpfile (configure.ac): Update.
27005
27006         tmpfile: Fix C++ test error on mingw.
27007         * lib/stdio.in.h (tmpfile): New declaration.
27008         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
27009         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
27010         * modules/tmpfile (Depends-on): Add stdio.
27011         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27012         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
27013         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
27014         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
27015         REPLACE_TMPFILE.
27016         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
27017
27018 2010-04-04  Bruno Haible  <bruno@clisp.org>
27019
27020         ioctl: Fix C++ test error on mingw.
27021         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
27022         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
27023         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
27024
27025 2010-04-03  Bruno Haible  <bruno@clisp.org>
27026
27027         wcwidth: Fix C++ test error on mingw.
27028         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
27029         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
27030         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
27031
27032 2010-04-03  Bruno Haible  <bruno@clisp.org>
27033
27034         nanosleep: Fix C++ test error on mingw.
27035         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
27036         * lib/time.in.h (nanosleep): Use modern idiom.
27037         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
27038         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
27039         REPLACE_NANOSLEEP to 1.
27040         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
27041         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
27042
27043 2010-04-03  Bruno Haible  <bruno@clisp.org>
27044
27045         strptime: Fix C++ test error on mingw.
27046         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
27047         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
27048         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
27049         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
27050         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
27051         not REPLACE_STRPTIME.
27052         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
27053         REPLACE_STRPTIME.
27054
27055 2010-04-03  Bruno Haible  <bruno@clisp.org>
27056
27057         timegm: Fix C++ test error on mingw.
27058         * lib/time.in.h (timegm): Use modern idiom.
27059         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
27060         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
27061         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
27062         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
27063
27064 2010-04-03  Bruno Haible  <bruno@clisp.org>
27065
27066         timegm: Assume declaration if function exists.
27067         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
27068         if it exists. Don't clobber ac_cv_func_timegm.
27069
27070 2010-04-03  Bruno Haible  <bruno@clisp.org>
27071
27072         time_r: Fix C++ test error on mingw.
27073         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
27074         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
27075         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
27076         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
27077         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
27078
27079 2010-04-03  Bruno Haible  <bruno@clisp.org>
27080
27081         time_r: Minor updates.
27082         * modules/time_r (Description): Mention the provided functions.
27083         * lib/time_r.c: Don't include <string.h>.
27084         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
27085         * doc/posix-functions/localtime_r.texi: Likewise.
27086
27087 2010-04-03  Bruno Haible  <bruno@clisp.org>
27088
27089         time: Fix regression introduced on 2010-03-08.
27090         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
27091         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
27092
27093 2010-04-03  Jim Meyering  <meyering@redhat.com>
27094
27095         maint.mk: don't silently disable project-specific syntax-check rules
27096         * top/maint.mk (_prohibit_regexp): Define, to help people realize
27097         that they need to convert their project-specific syntax-check rules
27098         to use the new _sc_search_regexp.
27099
27100 2010-04-03  Bruno Haible  <bruno@clisp.org>
27101
27102         fchdir: Fix regression introduced on 2010-03-08.
27103         * lib/unistd.in.h (fchdir): Fix declaration.
27104         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
27105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
27106         REPLACE_FCHDIR.
27107         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
27108         REPLACE_FCHDIR.
27109
27110 2010-04-03  Bruno Haible  <bruno@clisp.org>
27111
27112         getpagesize: Fix C++ test error on mingw.
27113         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
27114         system does not declare the function.
27115         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
27116         declared.
27117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27118         HAVE_DECL_GETPAGESIZE.
27119         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
27120
27121 2010-04-03  Bruno Haible  <bruno@clisp.org>
27122
27123         stdio: Make C++ tests work on mingw.
27124         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
27125         does not declare the function.
27126
27127 2010-04-03  Bruno Haible  <bruno@clisp.org>
27128
27129         ftello: Fix C++ test error on mingw.
27130         * lib/stdio.in.h (ftello): Use modern idiom.
27131         * lib/ftello.c (ftello): Renamed from rpl_ftello.
27132         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
27133         is missing and that it needs to be replaced.
27134         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
27135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
27136         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
27137
27138 2010-04-03  Bruno Haible  <bruno@clisp.org>
27139
27140         fseeko: Fix C++ test error on mingw.
27141         * lib/stdio.in.h (fseeko): Use modern idiom.
27142         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
27143         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
27144         is missing and that it needs to be replaced.
27145         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
27146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
27147         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
27148
27149 2010-04-03  Bruno Haible  <bruno@clisp.org>
27150
27151         mkstemp: Fix C++ test error on mingw.
27152         * lib/stdlib.in.h (mkstemp): Use modern idiom.
27153         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
27154         function is missing and that it needs to be replaced.
27155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
27156         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
27157
27158 2010-04-03  Bruno Haible  <bruno@clisp.org>
27159
27160         stpncpy: Fix C++ test error on mingw.
27161         * lib/string.in.h (stpncpy): Use modern idiom.
27162         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
27163         function is missing and that it needs to be replaced.
27164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27165         REPLACE_STPNCPY.
27166         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
27167
27168 2010-04-03  Bruno Haible  <bruno@clisp.org>
27169
27170         sys_stat: Fix C++ test error on mingw.
27171         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
27172         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
27173
27174 2010-04-03  Bruno Haible  <bruno@clisp.org>
27175
27176         pty: Update doc.
27177         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
27178
27179 2010-04-03  Bruno Haible  <bruno@clisp.org>
27180
27181         unistd: Fix C++ test error on mingw.
27182         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
27183
27184 2010-04-03  Bruno Haible  <bruno@clisp.org>
27185
27186         Update doc regarding mingw.
27187         * doc/glibc-functions/openpty.texi: Update regarding mingw.
27188         * doc/glibc-functions/login_tty.texi: Likewise.
27189         * doc/glibc-functions/forkpty.texi: Likewise.
27190
27191 2010-04-03  Bruno Haible  <bruno@clisp.org>
27192
27193         stdlib: Avoid compilation failure of c-strtold on mingw.
27194         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
27195
27196 2010-04-03  Bruno Haible  <bruno@clisp.org>
27197
27198         locale: Make C++ tests work on Cygwin and mingw.
27199         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
27200         cannot provide the function.
27201         Reported by Simon Josefsson.
27202
27203 2010-04-03  Bruno Haible  <bruno@clisp.org>
27204
27205         localename: Port to MacOS X 10.6.
27206         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
27207         memory layout of the locales in MacOS X 10.6 as well.
27208         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
27209
27210 2010-04-02  Bruno Haible  <bruno@clisp.org>
27211
27212         gnulib-tool: Ensure that long-running tests are executed last.
27213         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
27214         running tests after the one for the other tests.
27215
27216 2010-04-02  Bruno Haible  <bruno@clisp.org>
27217
27218         gnulib-tool: Ensure the tests in the main directory are executed first.
27219         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
27220         start with the current directory.
27221
27222 2010-04-02  Bruno Haible  <bruno@clisp.org>
27223
27224         Tests for module 'havelib', moved here from GNU gettext.
27225         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
27226         modifications.
27227         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
27228         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
27229         with modifications.
27230         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
27231         modifications.
27232         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
27233         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
27234         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
27235         with modifications.
27236         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
27237         with modifications.
27238         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
27239         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
27240         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
27241         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
27242         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
27243         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
27244         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
27245         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
27246         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
27247         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
27248         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
27249         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
27250         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
27251         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
27252         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
27253         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
27254         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
27255         with modifications.
27256         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
27257         with modifications.
27258         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
27259         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
27260         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
27261         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
27262         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
27263         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
27264         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
27265         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
27266         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
27267         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
27268         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
27269         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
27270         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
27271         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
27272         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
27273         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
27274         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
27275         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
27276         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
27277         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
27278         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
27279         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
27280         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
27281         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
27282         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
27283         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
27284         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
27285         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
27286         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
27287         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
27288         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
27289         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
27290         * tests/havelib/rpathx/rpathx.c: New file, from
27291         gettext/autoconf-lib-link.
27292         * tests/havelib/rpathx/Makefile.am: New file, from
27293         gettext/autoconf-lib-link.
27294         * tests/havelib/rpathx/configure.ac: New file, from
27295         gettext/autoconf-lib-link with modifications.
27296         * tests/havelib/rpathy/rpathy.c: New file, from
27297         gettext/autoconf-lib-link.
27298         * tests/havelib/rpathy/Makefile.am: New file, from
27299         gettext/autoconf-lib-link.
27300         * tests/havelib/rpathy/configure.ac: New file, from
27301         gettext/autoconf-lib-link with modifications.
27302         * tests/havelib/rpathz/rpathz.c: New file, from
27303         gettext/autoconf-lib-link.
27304         * tests/havelib/rpathz/Makefile.am: New file, from
27305         gettext/autoconf-lib-link.
27306         * tests/havelib/rpathz/configure.ac: New file, from
27307         gettext/autoconf-lib-link with modifications.
27308         * tests/havelib/rpathlx/usex.c: New file, from
27309         gettext/autoconf-lib-link.
27310         * tests/havelib/rpathlx/Makefile.am: New file, from
27311         gettext/autoconf-lib-link.
27312         * tests/havelib/rpathlx/configure.ac: New file, from
27313         gettext/autoconf-lib-link with modifications.
27314         * tests/havelib/rpathly/usey.c: New file, from
27315         gettext/autoconf-lib-link.
27316         * tests/havelib/rpathly/Makefile.am: New file, from
27317         gettext/autoconf-lib-link.
27318         * tests/havelib/rpathly/configure.ac: New file, from
27319         gettext/autoconf-lib-link with modifications.
27320         * tests/havelib/rpathlz/usez.c: New file, from
27321         gettext/autoconf-lib-link.
27322         * tests/havelib/rpathlz/Makefile.am: New file, from
27323         gettext/autoconf-lib-link.
27324         * tests/havelib/rpathlz/configure.ac: New file, from
27325         gettext/autoconf-lib-link with modifications.
27326         * tests/havelib/rpathlyx/usey.c: New file, from
27327         gettext/autoconf-lib-link.
27328         * tests/havelib/rpathlyx/Makefile.am: New file, from
27329         gettext/autoconf-lib-link.
27330         * tests/havelib/rpathlyx/configure.ac: New file, from
27331         gettext/autoconf-lib-link with modifications.
27332         * tests/havelib/rpathlzyx/usez.c: New file, from
27333         gettext/autoconf-lib-link.
27334         * tests/havelib/rpathlzyx/Makefile.am: New file, from
27335         gettext/autoconf-lib-link.
27336         * tests/havelib/rpathlzyx/configure.ac: New file, from
27337         gettext/autoconf-lib-link with modifications.
27338         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
27339         with modifications.
27340
27341 2010-04-02  Bruno Haible  <bruno@clisp.org>
27342
27343         gnulib-tool: Create distributed built sources also for the tests.
27344         * gnulib-tool (func_create_testdir): Also generate distributed built
27345         sources in the tests directory.
27346
27347 2010-04-02  Bruno Haible  <bruno@clisp.org>
27348
27349         gnulib-tool: Obey user's environment variables.
27350         * gnulib-tool (func_create_testdir): When creating built sources,
27351         respect the environment variables for autoconf, automake, etc. given by
27352         the user.
27353
27354 2010-04-02  Bruno Haible  <bruno@clisp.org>
27355
27356         gnulib-tool: Provide the value of --m4-base to modules.
27357         * gnulib-tool (func_import, func_create_testdir): Emit a definition
27358         of gl_m4_base.
27359
27360 2010-04-02  Eric Blake  <eblake@redhat.com>
27361
27362         maint.mk: fix some fallout
27363         * NEWS: Document the incompatible change, and its effect on cfg.mk.
27364         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
27365
27366 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27367
27368         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
27369         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
27370         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
27371         (sc_cast_of_x_alloc_return_value): Likewise.
27372         (sc_cast_of_alloca_return_value): Likewise.
27373         (sc_space_tab): Likewise.
27374         (sc_prohibit_atoi_atof): Likewise.
27375         (sc_prohibit_magic_number_exit): Likewise.
27376         (sc_error_exit_success): Likewise.
27377         (sc_file_system): Likewise.
27378         (sc_prohibit_have_config_h): Likewise.
27379         (sc_require_config_h): Likewise.
27380         (sc_prohibit_HAVE_MBRTOWC): Likewise.
27381         (sc_obsolete_symbols): Likewise.
27382         (sc_changelog): Likewise.
27383         (sc_program_name): Likewise.
27384         (sc_the_the): Likewise.
27385         (sc_trailing_blank): Likewise.
27386         (sc_two_space_separator_in_usage): Likewise.
27387         (sc_useless_cpp_parens): Likewise.
27388         (sc_GPL_version): Likewise.
27389         (sc_GFDL_version): Likewise.
27390         (sc_texinfo_acronym): Likewise.
27391         (sc_prohibit_cvs_keyword): Likewise.
27392         (sc_prohibit_stat_st_blocks): Likewise.
27393         (sc_prohibit_S_IS_definition): Likewise.
27394         (sc_redundant_const): Likewise.
27395         (sc_makefile_TAB_only_indentation): Likewise.
27396         (sc_m4_quote_check): Likewise.
27397         (sc_makefile_path_separator_check): Likewise.
27398         (sc_copyright_check): Likewise.
27399         (sc_Wundef_boolean): Likewise.
27400         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27401
27402         maint.mk: match 0 or more whitespace-before-function-call '('
27403         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
27404         that have zero or two-and-more spaces between the function name
27405         and the open parenthesis.
27406         (sc_error_message_warn_fatal): Likewise.
27407         (sc_error_message_uppercase): Likewise.
27408         (sc_error_message_period): Likewise.
27409
27410 2010-03-31  Eric Blake  <eblake@redhat.com>
27411
27412         maint.mk: check for [ as well as test
27413         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
27414         Based on a libvirt report by Matthias Bolte.
27415
27416         gnumakefile: don't squelch _version output
27417         * top/GNUmakefile (_version): Create one-shot dependency rather
27418         than using $(shell) when version must be regenerated.
27419         (_autoreconf): Run verbosely, by default.
27420
27421         sys_time: avoid compiler warnings
27422         * lib/sys_time.in.h (includes): Ensure gcc pragma is
27423         unconditional, fixing regression from 2010-03-29.
27424         Reported by Simon Josefsson.
27425
27426 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27427
27428         maint.mk: s/_header_without_use/_sc_header_without_use/
27429         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
27430         (sc_prohibit_assert_without_use): Use the new name.
27431         (sc_prohibit_close_stream_without_use): Likewise.
27432         (sc_prohibit_getopt_without_use): Likewise.
27433         (sc_prohibit_quotearg_without_use): Likewise.
27434         (sc_prohibit_quote_without_use): Likewise.
27435         (sc_prohibit_long_options_without_use): Likewise.
27436         (sc_prohibit_inttostr_without_use): Likewise.
27437         (sc_prohibit_ignore_value_without_use): Likewise.
27438         (sc_prohibit_error_without_use): Likewise.
27439         (sc_prohibit_xalloc_without_use): Likewise.
27440         (sc_prohibit_hash_without_use): Likewise.
27441         (sc_prohibit_hash_pjw_without_use): Likewise.
27442         (sc_prohibit_safe_read_without_use): Likewise.
27443         (sc_prohibit_argmatch_without_use): Likewise.
27444         (sc_prohibit_canonicalize_without_use): Likewise.
27445         (sc_prohibit_root_dev_ino_without_use): Likewise.
27446         (sc_prohibit_openat_without_use): Likewise.
27447         (sc_prohibit_c_ctype_without_use): Likewise.
27448         (sc_prohibit_signal_without_use): Likewise.
27449         (sc_prohibit_intprops_without_use): Likewise.
27450
27451 2010-03-30  Eric Blake  <eblake@redhat.com>
27452
27453         maint: improve module indicators
27454         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
27455         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
27456         columns, and avoid extra macro expansion.
27457
27458         fdopendir: work around FreeBSD bug
27459         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27460         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
27461         * modules/dirent (Makefile.am): Substitute it.
27462         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
27463         declaration.
27464         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
27465         fix.
27466         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27467
27468 2010-03-29  Bruno Haible  <bruno@clisp.org>
27469
27470         Emit #pragma system_header after the inclusion guard, not before.
27471         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
27472         guard that spans the entire file, not before. This enables an
27473         optimization in GCC's preprocessor.
27474         * lib/ctype.in.h: Likewise.
27475         * lib/dirent.in.h: Likewise.
27476         * lib/errno.in.h: Likewise.
27477         * lib/float.in.h: Likewise.
27478         * lib/getopt.in.h: Likewise.
27479         * lib/iconv.in.h: Likewise.
27480         * lib/langinfo.in.h: Likewise.
27481         * lib/locale.in.h: Likewise.
27482         * lib/math.in.h: Likewise.
27483         * lib/netdb.in.h: Likewise.
27484         * lib/netinet_in.in.h: Likewise.
27485         * lib/pty.in.h: Likewise.
27486         * lib/sched.in.h: Likewise.
27487         * lib/se-selinux.in.h: Likewise.
27488         * lib/search.in.h: Likewise.
27489         * lib/spawn.in.h: Likewise.
27490         * lib/stdarg.in.h: Likewise.
27491         * lib/stdint.in.h: Likewise.
27492         * lib/string.in.h: Likewise.
27493         * lib/strings.in.h: Likewise.
27494         * lib/sys_file.in.h: Likewise.
27495         * lib/sys_ioctl.in.h: Likewise.
27496         * lib/sys_time.in.h: Likewise.
27497         * lib/sys_times.in.h: Likewise.
27498         * lib/sys_utsname.in.h: Likewise.
27499         * lib/sys_wait.in.h: Likewise.
27500         * lib/sysexits.in.h: Likewise.
27501         * lib/wctype.in.h: Likewise.
27502
27503 2010-03-28  James Youngman  <jay@gnu.org>
27504
27505         save-cwd: don't leak a file descriptor when the caller execs.
27506         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
27507         saved file descriptor.
27508         * modules/save-cwd (Depends-on): Depend on cloexec.
27509
27510 2010-03-29  Bruno Haible  <bruno@clisp.org>
27511
27512         Remove vestiges of fts-lgpl module.
27513         * lib/fts_.h: Assume GNULIB_FTS is 1.
27514         * lib/fts.c: Likewise.
27515         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27516
27517 2010-03-28  Bruno Haible  <bruno@clisp.org>
27518
27519         Fix definition of tests witness macro.
27520         * gnulib-tool (func_import): Fix definition of witness macro.
27521
27522 2010-03-28  Bruno Haible  <bruno@clisp.org>
27523
27524         Fix ioctl's protoype on glibc systems.
27525         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
27526         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
27527         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
27528         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
27529         signature. If not, arrange to replace the ioctl function.
27530         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27531         REPLACE_IOCTL.
27532         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
27533         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
27534         Reported by Ludovic Courtès <ludo@gnu.org>.
27535
27536 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
27537
27538         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
27539         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
27540         made it so grep -r --include=GLOB* ... did not work.
27541
27542 2010-03-26  Jim Meyering  <meyering@redhat.com>
27543             Eric Blake  <eblake@redhat.com>
27544
27545         maint.mk: prohibit use of test's -o and -a operators
27546         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
27547
27548 2010-03-28  Bruno Haible  <bruno@clisp.org>
27549
27550         Remove unused GNULIB_XYZ macro definitions.
27551         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
27552         invocation.
27553
27554 2010-03-28  Bruno Haible  <bruno@clisp.org>
27555
27556         Mark privileged tests modules.
27557         * modules/idpriv-drop-tests (Status): New section.
27558         * modules/idpriv-droptemp-tests (Status): New section.
27559
27560 2010-03-28  Bruno Haible  <bruno@clisp.org>
27561
27562         Split C++ tests into separate tests modules.
27563         * modules/dirent-c++-tests: New file, extracted from
27564         modules/dirent-tests.
27565         * modules/dirent-tests: Depend on it.
27566         * modules/fcntl-h-c++-tests: New file, extracted from
27567         modules/fcntl-h-tests.
27568         * modules/fcntl-h-tests: Depend on it.
27569         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
27570         * modules/glob-tests: Depend on it.
27571         * modules/iconv-h-c++-tests: New file, extracted from
27572         modules/iconv-h-tests.
27573         * modules/iconv-h-tests: Depend on it.
27574         * modules/langinfo-c++-tests: New file, extracted from
27575         modules/langinfo-tests.
27576         * modules/langinfo-tests: Depend on it.
27577         * modules/locale-c++-tests: New file, extracted from
27578         modules/locale-tests.
27579         * modules/locale-tests: Depend on it.
27580         * modules/math-c++-tests: New file, extracted from modules/math-tests.
27581         * modules/math-tests: Depend on it.
27582         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
27583         * modules/pty-tests: Depend on it.
27584         * modules/search-c++-tests: New file, extracted from
27585         modules/search-tests.
27586         * modules/search-tests: Depend on it.
27587         * modules/signal-c++-tests: New file, extracted from
27588         modules/signal-tests.
27589         * modules/signal-tests: Depend on it.
27590         * modules/spawn-c++-tests: New file, extracted from
27591         modules/spawn-tests.
27592         * modules/spawn-tests: Depend on it.
27593         * modules/stdio-c++-tests: New file, extracted from
27594         modules/stdio-tests.
27595         * modules/stdio-tests: Depend on it.
27596         * modules/stdlib-c++-tests: New file, extracted from
27597         modules/stdlib-tests.
27598         * modules/stdlib-tests: Depend on it.
27599         * modules/string-c++-tests: New file, extracted from
27600         modules/string-tests.
27601         * modules/string-tests: Depend on it.
27602         * modules/sys_ioctl-c++-tests: New file, extracted from
27603         modules/sys_ioctl-tests.
27604         * modules/sys_ioctl-tests: Depend on it.
27605         * modules/sys_select-c++-tests: New file, extracted from
27606         modules/sys_select-tests.
27607         * modules/sys_select-tests: Depend on it.
27608         * modules/sys_socket-c++-tests: New file, extracted from
27609         modules/sys_socket-tests.
27610         * modules/sys_socket-tests: Depend on it.
27611         * modules/sys_stat-c++-tests: New file, extracted from
27612         modules/sys_stat-tests.
27613         * modules/sys_stat-tests: Depend on it.
27614         * modules/sys_time-c++-tests: New file, extracted from
27615         modules/sys_time-tests.
27616         * modules/sys_time-tests: Depend on it.
27617         * modules/time-c++-tests: New file, extracted from modules/time-tests.
27618         * modules/time-tests: Depend on it.
27619         * modules/unistd-c++-tests: New file, extracted from
27620         modules/unistd-tests.
27621         * modules/unistd-tests: Depend on it.
27622         * modules/wchar-c++-tests: New file, extracted from
27623         modules/wchar-tests.
27624         * modules/wchar-tests: Depend on it.
27625         * modules/wctype-c++-tests: New file, extracted from
27626         modules/wctype-tests.
27627         * modules/wctype-tests: Depend on it.
27628         Reported by Simon Josefsson.
27629
27630 2010-03-28  Bruno Haible  <bruno@clisp.org>
27631
27632         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
27633         * gnulib-tool (func_exists_module): New function, extracted from
27634         func_verify_module.
27635         (func_verify_module): Use it.
27636         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
27637         'foo' only if 'foo' exists.
27638         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
27639         module.
27640
27641 2010-03-28  Bruno Haible  <bruno@clisp.org>
27642
27643         gnulib-tool: Add support for special categories of tests.
27644         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
27645         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
27646         (func_usage): Document them.
27647         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
27648         inc_unportable_tests, inc_all_tests): New variables.
27649         (func_acceptable): Consider these variables.
27650         (func_modules_transitive_closure): Make it work when the 'Status' field
27651         consists of multiple words.
27652         (func_import): Store and restore the values of inc_cxx_tests,
27653         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
27654         inc_all_tests in gnulib-comp.m4.
27655         (func_create_testdir): Set inc_all_tests to true.
27656         * doc/gnulib.texi (Extra tests modules): New section.
27657         Suggested by Jim Meyering.
27658
27659 2010-03-28  Bruno Haible  <bruno@clisp.org>
27660
27661         ansi-c++-opt: Allow turning off the C++ build by default.
27662         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
27663         gl_CXX_CHOICE_DEFAULT_NO is defined.
27664         Requested by Eric Blake.
27665
27666 2010-03-28  Bruno Haible  <bruno@clisp.org>
27667
27668         unistd: Avoid #define replacements in C++ mode.
27669         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
27670         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
27671         setsockopt, shutdown, select): In C++, attach a warning to the function
27672         if possible, rather than #defining the symbol to a dysfunctional alias.
27673         Reported by John W. Eaton <jwe@gnu.org>.
27674
27675 2010-03-28  Bruno Haible  <bruno@clisp.org>
27676
27677         Fix link errors on mingw.
27678         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
27679         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
27680         $(LIBSOCKET).
27681         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
27682         $(LIBSOCKET).
27683
27684 2010-03-28  Bruno Haible  <bruno@clisp.org>
27685             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27686
27687         lib-ignore: Determine different options for different compilers.
27688         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
27689         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
27690         Add comments.
27691         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
27692         * NEWS: Mention the change.
27693
27694 2010-03-27  Bruno Haible  <bruno@clisp.org>
27695
27696         Remove unused GNULIB_XYZ macro definitions.
27697         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27698         * modules/fseek (configure.ac): Likewise.
27699         * modules/ioctl (configure.ac): Likewise.
27700         * modules/open (configure.ac): Likewise.
27701         * modules/stdlib-safer (configure.ac): Likewise.
27702
27703 2010-03-27  Bruno Haible  <bruno@clisp.org>
27704
27705         Add a remark about certain modules.
27706         * modules/malloc (Comment): New section.
27707         * modules/realloc (Comment): Likewise.
27708         * modules/sigpipe (Comment): Likewise.
27709
27710 2010-03-27  Bruno Haible  <bruno@clisp.org>
27711
27712         Resolve conflict between the two kinds of module indicators.
27713         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
27714         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
27715         * modules/canonicalize (configure.ac): Invoke
27716         gl_MODULE_INDICATOR_FOR_TESTS.
27717         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
27718         GNULIB_XYZ.
27719         * tests/test-dirent-c++.cc: Likewise.
27720         * tests/test-dirent-safer.c: Likewise.
27721         * tests/test-dup2.c: Likewise.
27722         * tests/test-fchdir.c: Likewise.
27723         * tests/test-fcntl-h-c++.cc: Likewise.
27724         * tests/test-getopt.c: Likewise.
27725         * tests/test-getopt.h: Likewise.
27726         * tests/test-langinfo-c++.cc: Likewise.
27727         * tests/test-locale-c++.cc: Likewise.
27728         * tests/test-math-c++.cc: Likewise.
27729         * tests/test-pty-c++.cc: Likewise.
27730         * tests/test-search-c++.cc: Likewise.
27731         * tests/test-signal-c++.cc: Likewise.
27732         * tests/test-spawn-c++.cc: Likewise.
27733         * tests/test-stdio-c++.cc: Likewise.
27734         * tests/test-stdlib-c++.cc: Likewise.
27735         * tests/test-string-c++.cc: Likewise.
27736         * tests/test-sys_ioctl-c++.cc: Likewise.
27737         * tests/test-sys_select-c++.cc: Likewise.
27738         * tests/test-sys_socket-c++.cc: Likewise.
27739         * tests/test-sys_stat-c++.cc: Likewise.
27740         * tests/test-sys_time-c++.cc: Likewise.
27741         * tests/test-time-c++.cc: Likewise.
27742         * tests/test-unistd-c++.cc: Likewise.
27743         * tests/test-wchar-c++.cc: Likewise.
27744         * tests/uninorm/test-u8-nfc.c: Likewise.
27745         * tests/uninorm/test-u8-nfd.c: Likewise.
27746         * tests/uninorm/test-u8-nfkc.c: Likewise.
27747         * tests/uninorm/test-u8-nfkd.c: Likewise.
27748         * tests/uninorm/test-u16-nfc.c: Likewise.
27749         * tests/uninorm/test-u16-nfd.c: Likewise.
27750         * tests/uninorm/test-u16-nfkc.c: Likewise.
27751         * tests/uninorm/test-u16-nfkd.c: Likewise.
27752         * tests/uninorm/test-u32-nfc.c: Likewise.
27753         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27754         * tests/uninorm/test-u32-nfd.c: Likewise.
27755         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27756         * tests/uninorm/test-u32-nfkc.c: Likewise.
27757         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27758         * tests/uninorm/test-u32-nfkd.c: Likewise.
27759         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27760         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27761
27762 2010-03-27  Bruno Haible  <bruno@clisp.org>
27763
27764         Distinguish two kinds of module indicators.
27765         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
27766         gl_MODULE_INDICATOR.
27767         (gl_MODULE_INDICATOR): New macro.
27768         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27769         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
27770         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27771         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27772         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27773         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27774         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27775         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27776         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27777         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27778         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27779         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27780         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27781         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27782         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27783         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27784         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27785         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27786         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27787         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27788         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27789         * modules/cloexec (configure.ac): Likewise.
27790         * modules/getopt-gnu (configure.ac): Likewise.
27791         * modules/uninorm/u8-normalize (configure.ac): Likewise.
27792         * modules/uninorm/u16-normalize (configure.ac): Likewise.
27793         * modules/uninorm/u32-normalize (configure.ac): Likewise.
27794         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
27795
27796 2010-03-27  Bruno Haible  <bruno@clisp.org>
27797
27798         New module description field 'Comment'.
27799         * gnulib-tool: New option --extract-comment.
27800         (func_usage): Document it.
27801         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
27802         (func_get_comment): New function.
27803         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
27804
27805 2010-03-27  Bruno Haible  <bruno@clisp.org>
27806
27807         Addendum to 2010-02-07 commit.
27808         * gnulib-tool (func_usage): Document --extract-applicability option.
27809
27810 2010-03-27  Bruno Haible  <bruno@clisp.org>
27811
27812         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
27813         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
27814         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
27815         rather than link errors.
27816
27817 2010-03-27  Bruno Haible  <bruno@clisp.org>
27818
27819         Avoid side effects from tests-related modules on the compilation of lib.
27820         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
27821         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
27822         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
27823         parameter. Emit into AM_CPPFLAGS a definition of the designated C
27824         macro.
27825         (func_import): Define a witness macro. Assign it a value that depends
27826         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
27827         tests-related modules.
27828         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
27829         Reported by Jim Meyering.
27830
27831 2010-03-27  Bruno Haible  <bruno@clisp.org>
27832
27833         Factorize common .m4 code.
27834         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
27835         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
27836         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
27837         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
27838         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27839         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
27840         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
27841         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27842         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27843         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27844         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
27845         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27846         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27847         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27848         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27849         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
27850         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27851         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27852         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27853         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
27854         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
27855         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27856         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27857         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27858         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27859         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27860         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
27861         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
27862         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
27863         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27864         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27865         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27866
27867 2010-03-27  Bruno Haible  <bruno@clisp.org>
27868
27869         Fix a compilation error on Cygwin with g++ >= 4.3.
27870         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
27871         if it is undefined or if we alias it to chmod.
27872         (lstat): Don't warn about the use of this function if it is undefined
27873         or if we alias it to stat.
27874         Reported by Simon Josefsson.
27875
27876 2010-03-27  Bruno Haible  <bruno@clisp.org>
27877
27878         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
27879         * modules/getlogin (configure.ac): Update.
27880
27881         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
27882         * modules/getlogin_r (configure.ac): Update.
27883
27884         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
27885         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
27886         * modules/inet_ntop (configure.ac): Update.
27887
27888         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
27889         * modules/inet_pton (configure.ac): Update.
27890
27891         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
27892         * modules/mbslen (configure.ac): Update.
27893
27894         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
27895         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
27896         * modules/forkpty (configure.ac): Update.
27897         * modules/openpty (configure.ac): Update.
27898
27899 2010-03-26  Simon Josefsson  <simon@josefsson.org>
27900
27901         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
27902         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
27903
27904 2010-03-25  Eric Blake  <eblake@redhat.com>
27905
27906         maint: use pragma consistently across replacement headers
27907         * lib/ctype.in.h (system_header): Hoist for consistent placement.
27908         * lib/dirent.in.h (system_header): Likewise.
27909         * lib/errno.in.h (system_header): Likewise.
27910         * lib/float.in.h (system_header): Likewise.
27911         * lib/getopt.in.h (system_header): Likewise.
27912         * lib/iconv.in.h (system_header): Likewise.
27913         * lib/inttypes.in.h (system_header): Likewise.
27914         * lib/langinfo.in.h (system_header): Likewise.
27915         * lib/locale.in.h (system_header): Likewise.
27916         * lib/math.in.h (system_header): Likewise.
27917         * lib/netdb.in.h (system_header): Likewise.
27918         * lib/netinet_in.in.h (system_header): Likewise.
27919         * lib/pty.in.h (system_header): Likewise.
27920         * lib/sched.in.h (system_header): Likewise.
27921         * lib/se-selinux.in.h (system_header): Likewise.
27922         * lib/search.in.h (system_header): Likewise.
27923         * lib/spawn.in.h (system_header): Likewise.
27924         * lib/stdarg.in.h (system_header): Likewise.
27925         * lib/stdint.in.h (system_header): Likewise.
27926         * lib/string.in.h (system_header): Likewise.
27927         * lib/strings.in.h (system_header): Likewise.
27928         * lib/sys_file.in.h (system_header): Likewise.
27929         * lib/sys_ioctl.in.h (system_header): Likewise.
27930         * lib/sys_socket.in.h (system_header): Likewise.
27931         * lib/sys_times.in.h (system_header): Likewise.
27932         * lib/sys_utsname.in.h (system_header): Likewise.
27933         * lib/sys_wait.in.h (system_header): Likewise.
27934         * lib/sysexits.in.h (system_header): Likewise.
27935         * lib/unistd.in.h (system_header): Likewise.
27936         * lib/wctype.in.h (system_header): Likewise.
27937
27938         arpa/inet: fix mingw compilation warning
27939         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
27940         Reported by Matthew Bolte.
27941
27942 2010-03-25  Bruno Haible  <bruno@clisp.org>
27943
27944         Avoid collision between gnulib wrapper and libintl wrapper.
27945         * lib/printf.c (printf): Don't define if a printf wrapper is already
27946         defined in intl/printf.c.
27947         Reported by Michel Boaventura <michel@michelboaventura.com>.
27948
27949 2010-03-25  Bruno Haible  <bruno@clisp.org>
27950
27951         Use ANSI C.
27952         * lib/readutmp.h (getutent): Provide ANSI C prototype.
27953
27954 2010-03-25  Bruno Haible  <bruno@clisp.org>
27955
27956         Minor formatting changes.
27957         * lib/acosl.c: Insert space before function argument list.
27958         * lib/argz.c: Likewise.
27959         * lib/asinl.c: Likewise.
27960         * lib/expl.c: Likewise.
27961         * lib/gen-uni-tables.c: Likewise.
27962         * lib/gettext.h: Likewise.
27963         * lib/glthread/lock.h: Likewise.
27964         * lib/tanl.c: Likewise.
27965         * lib/uniname/uniname.c: Likewise.
27966         * tests/test-idpriv-drop.c: Likewise.
27967         * tests/test-idpriv-droptemp.c: Likewise.
27968         * tests/test-lock.c: Likewise.
27969         * tests/test-tls.c: Likewise.
27970         * lib/argp-help.c: Insert space before function-like macro argument
27971         list.
27972         * lib/memcmp.c: Likewise.
27973         * tests/test-base64.c: Likewise.
27974         * lib/localename.c: Insert space before sizeof's argument list.
27975         * lib/safe-alloc.h: Likewise.
27976         * lib/file-set.h: Insert space before macro argument list.
27977         * tests/test-argp.c: Likewise.
27978         * lib/argp-namefrob.h: Insert space before function parameter list.
27979         * lib/getaddrinfo.c: Likewise.
27980         * lib/netdb.in.h: Likewise.
27981         * lib/parse-duration.h: Likewise.
27982         * lib/parse-duration.c: Likewise.
27983         * lib/poll.c: Likewise.
27984         * lib/select.c: Likewise.
27985         * lib/trim.h: Likewise.
27986         * tests/test-usleep.c: Likewise.
27987         * lib/ldexpl.c: Insert space before function parameter list and before
27988         function argument list.
27989         * lib/logl.c: Likewise.
27990         * lib/sqrtl.c: Likewise.
27991         * lib/trim.c: Likewise.
27992         * lib/cosl.c: Use GNU style indentation. Insert space before function
27993         argument list.
27994         * lib/sinl.c: Likewise.
27995         * lib/tsearch.c: Insert space after 'for'.
27996         Reported by Jim Meyering.
27997
27998 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
27999
28000         * maint.mk (sc_Wundef_boolean): Check for the presence of the
28001         config header before grepping, as it's not present before
28002         autoreconf/configure are run.  Reported by Simon Josefsson.
28003
28004 2010-03-23  Bruno Haible  <bruno@clisp.org>
28005
28006         pt_chown: Make it work with automake < 1.11.
28007         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
28008         Reported by Simon Josefsson.
28009
28010 2010-03-23  Bruno Haible  <bruno@clisp.org>
28011
28012         pt_chown: Don't depend on GPLed modules.
28013         * lib/pt_chown.c: Don't include idpriv.h.
28014         (main): Don't drop privileges.
28015         * modules/pt_chown (Depends-on): Remove idpriv-drop.
28016         Reported by Simon Josefsson.
28017
28018 2010-03-24  Simon Josefsson  <simon@josefsson.org>
28019
28020         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
28021         suggestions from karl@freefriends.org (Karl Berry).
28022
28023 2010-03-22  Eric Blake  <eblake@redhat.com>
28024
28025         gethostname: further tweaks
28026         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
28027         are overriding gethostname.
28028         Suggested by Bruno Haible.
28029
28030 2010-03-21  Bruno Haible  <bruno@clisp.org>
28031
28032         Fix comments.
28033         * lib/forkpty.c (rpl_forkpty): Fix comment.
28034         * lib/openpty.c (rpl_openpty): Likewise.
28035         Reported by Eric Blake.
28036
28037 2010-03-22  Eric Blake  <eblake@redhat.com>
28038
28039         gethostname: fix build on mingw
28040         * lib/unistd.in.h (includes): Work around fact that mingw
28041         <winsock2.h> re-includes <unistd.h>, by avoiding any
28042         redeclarations if we are being included by <winsock2.h>.
28043         Reported by Matthias Bolte.
28044
28045 2010-03-21  Bruno Haible  <bruno@clisp.org>
28046
28047         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28048         * lib/forkpty.c (forkpty): New replacement function, from glibc with
28049         modifications.
28050         * lib/pty.in.h (forkpty): Update declaration. Add comments.
28051         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
28052         provide the replacement.
28053         * modules/forkpty (Depends-on): Add openpty, login_tty.
28054         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
28055         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
28056         * doc/glibc-functions/forkpty.texi: More supported platforms.
28057         * config/srclist.txt: Add forkpty.c (commented).
28058
28059 2010-03-21  Bruno Haible  <bruno@clisp.org>
28060
28061         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
28062         (Makefile.am): Verify that PTY_LIB is defined.
28063
28064         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
28065
28066 2010-03-21  Bruno Haible  <bruno@clisp.org>
28067
28068         Tests for module 'login_tty'.
28069         * modules/login_tty-tests: New file.
28070         * tests/test-login_tty.c: New file.
28071
28072         New module 'login_tty'.
28073         * lib/login_tty.c: New file.
28074         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
28075         * modules/login_tty: New file.
28076         * doc/glibc-functions/login_tty.texi: Mention the new module.
28077
28078 2010-03-21  Bruno Haible  <bruno@clisp.org>
28079
28080         login_tty: Documentation.
28081         * doc/glibc-functions/login_tty.texi: New file.
28082         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
28083
28084 2010-03-21  Bruno Haible  <bruno@clisp.org>
28085
28086         pty: Consistent macro naming.
28087         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
28088         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
28089         * modules/pty (configure.ac): Update.
28090
28091 2010-03-21  Bruno Haible  <bruno@clisp.org>
28092
28093         Tests for openpty: Make stricter.
28094         * tests/test-openpty.c (main): Add test of canonical processing and
28095         erase.
28096         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
28097
28098         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28099         * lib/openpty.c (openpty): New replacement function.
28100         * lib/pty.in.h: Include <termios.h>.
28101         (openpty): Update declaration. Add comments.
28102         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
28103         is not declared, arrange to provide the replacement. Check for _getpty
28104         and posix_openpt.
28105         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
28106         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
28107         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
28108         * modules/pty-tests (test_pty_c___LDADD): New variable.
28109         * doc/glibc-functions/openpty.texi: More supported platforms.
28110
28111 2010-03-21  Bruno Haible  <bruno@clisp.org>
28112
28113         setenv: Tweaks.
28114         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
28115         the test program.
28116         * doc/posix-functions/setenv.texi: Update platforms list.
28117
28118 2010-03-21  Bruno Haible  <bruno@clisp.org>
28119
28120         New module 'unlockpt'.
28121         * lib/unlockpt.c: New file, from glibc with modifications.
28122         * m4/unlockpt.m4: New file.
28123         * modules/unlockpt: New file.
28124         * lib/stdlib.in.h (unlockpt): New declaration.
28125         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
28126         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
28127         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
28128         HAVE_UNLOCKPT.
28129         * doc/posix-functions/unlockpt.texi: Mention the new module.
28130         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
28131         * config/srclist.txt: Add unlockpt.c (commented).
28132
28133 2010-03-21  Jim Meyering  <meyering@redhat.com>
28134
28135         maint.mk: prohibit inclusion of "intprops.h" without use
28136         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
28137
28138 2010-03-21  Bruno Haible  <bruno@clisp.org>
28139
28140         New module 'grantpt'.
28141         * lib/grantpt.c: New file, from glibc with modifications.
28142         * m4/grantpt.m4: New file.
28143         * modules/grantpt: New file.
28144         * lib/stdlib.in.h (grantpt): New declaration.
28145         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
28146         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
28147         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
28148         HAVE_GRANTPT.
28149         * doc/posix-functions/grantpt.texi: Mention the new module.
28150         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
28151         * config/srclist.txt: Add grantpt.c (commented).
28152
28153 2010-03-21  Bruno Haible  <bruno@clisp.org>
28154
28155         New module 'pt_chown'.
28156         * lib/pt_chown.c: New file, from glibc with modifications.
28157         * lib/pty-private.h: New file, from glibc with modifications.
28158         * modules/pt_chown: New file.
28159         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
28160
28161 2010-03-21  Bruno Haible  <bruno@clisp.org>
28162
28163         Tests for module 'ptsname'.
28164         * modules/ptsname-tests: New file.
28165         * tests/test-ptsname.c: New file.
28166
28167         New module 'ptsname'.
28168         * lib/ptsname.c: New file, from glibc with modifications.
28169         * m4/ptsname.m4: New file.
28170         * modules/ptsname: New file.
28171         * lib/stdlib.in.h (ptsname): New declaration.
28172         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
28173         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
28174         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
28175         HAVE_PTSNAME.
28176         * doc/posix-functions/ptsname.texi: Mention the new module.
28177         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
28178         * config/srclist.txt: Add ptsname.c (commented).
28179
28180 2010-03-21  Bruno Haible  <bruno@clisp.org>
28181
28182         Tests for module 'ttyname_r'.
28183         * modules/ttyname_r-tests: New file.
28184         * tests/test-ttyname_r.c: New file.
28185
28186         New module 'ttyname_r'.
28187         * lib/ttyname_r.c: New file.
28188         * m4/ttyname_r.m4: New file.
28189         * modules/ttyname_r: New file.
28190         * lib/unistd.in.h (ttyname_r): New declaration.
28191         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
28192         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
28193         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
28194         HAVE_TTYNAME_R.
28195         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
28196         * doc/posix-functions/ttyname_r.texi: Mention the new module.
28197
28198 2010-03-20  Bruno Haible  <bruno@clisp.org>
28199
28200         signal: Undefine macro definitions in C++ mode.
28201         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
28202         sigfillset): Undefine macro definitions from the system header in C++
28203         mode.
28204         Reported by John W. Eaton <jwe@gnu.org>.
28205
28206 2010-03-20  Bruno Haible  <bruno@clisp.org>
28207
28208         Ensure no #include statements inside extern "C" { ... }.
28209         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
28210         contain #include statements.
28211         * lib/time.in.h: Likewise.
28212
28213 2010-03-20  Bruno Haible  <bruno@clisp.org>
28214
28215         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
28216         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
28217         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
28218         Reported by John W. Eaton <jwe@gnu.org>.
28219
28220 2010-03-20  Bruno Haible  <bruno@clisp.org>
28221
28222         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
28223         Reported by Jim Meyering.
28224
28225 2010-03-20  Bruno Haible  <bruno@clisp.org>
28226
28227         pipe: Set errno upon failure.
28228         * lib/pipe.h: Specify that when -1 is returned, errno is set.
28229         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
28230         errno value in error message.
28231
28232 2010-03-20  Bruno Haible  <bruno@clisp.org>
28233             Jim Meyering  <meyering@redhat.com>
28234
28235         lchown: Avoid "unused variable" warning.
28236         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
28237
28238 2010-03-20  Bruno Haible  <bruno@clisp.org>
28239
28240         Work around unlink() bug on MacOS X 10.5.6.
28241         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
28242         attempting to unlink a parent directory.
28243         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
28244         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
28245         activate for the replacement function.
28246         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
28247
28248 2010-03-20  Bruno Haible  <bruno@clisp.org>
28249
28250         Fix link errors on Solaris 8.
28251         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
28252         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
28253
28254 2010-03-19  Jim Meyering  <meyering@redhat.com>
28255
28256         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
28257         The _LIBC implementation of build_range_exp correctly honors the
28258         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
28259         However, the non-_LIBC implementation would ignore that syntax-bit
28260         flag and return REG_ERANGE unconditionally.
28261         This change makes it honor that flag.
28262         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
28263         Make two pointer parameters "const".
28264         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
28265         (parse_bracket_exp): Update caller.
28266
28267         regex.m4: correct the reversed range endpoint ([b-a]) test
28268         * m4/regex.m4: When requiring that [b-a] evoke failure,
28269         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
28270         test pass once again for x86-based systems.
28271
28272 2010-03-19  Bruno Haible  <bruno@clisp.org>
28273
28274         scandir: Fix link error on Solaris 8.
28275         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
28276         macros.
28277
28278 2010-03-19  Bruno Haible  <bruno@clisp.org>
28279
28280         getusershell: Fix documentation.
28281         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
28282         module.
28283         * doc/glibc-functions/setusershell.texi: Likewise.
28284
28285         getusershell: Provide declaration, missing on Solaris 9.
28286         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
28287         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
28288         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
28289         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
28290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28291         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
28292         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
28293         HAVE_GETUSERSHELL.
28294         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
28295
28296 2010-03-19  Bruno Haible  <bruno@clisp.org>
28297
28298         wctype: Provide iswblank function.
28299         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
28300         exists and is fine.
28301         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
28302         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
28303         * tests/test-wctype.c (main): Re-enable the iswblank tests.
28304         * doc/posix-functions/iswblank.texi: Update.
28305
28306 2010-03-19  Bruno Haible  <bruno@clisp.org>
28307
28308         Tests of module 'pty' in C++ mode.
28309         * modules/pty-tests: New file.
28310         * tests/test-pty-c++.cc: New file.
28311         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28312
28313 2010-03-19  Eric Blake  <eblake@redhat.com>
28314
28315         logb: fix documentation
28316         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
28317         1.5 declaration bug.
28318
28319         forkpty, openpty: prefer glibc's const-safe prototype
28320         * lib/forkpty.c (rpl_forkpty): New file.
28321         * lib/openpty.c (rpl_openpty): Likewise.
28322         * modules/forkpty (Files): Distribute it.
28323         * modules/openpty (Files): Likewise.
28324         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
28325         check...
28326         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
28327         replacement for for non-const BSD signature.
28328         * modules/pty (Makefile.am): Substitute witnesses.
28329         * lib/pty.in.h (forkpty, openpty): Declare replacements.
28330         * tests/test-forkpty.c: Update signature check.
28331         * tests/test-openpty.c: Likewise.
28332         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
28333         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28334
28335         forkpty, openpty: split functions into new modules
28336         * modules/pty (Makefile.am): Substitute new witnesses.
28337         (Libraries): Move library detection...
28338         * modules/forkpty: ...into new module.
28339         * modules/openpty: Another new module.
28340         * modules/pty-tests: Rename and split...
28341         * modules/forkpty-tests: ...to this...
28342         * modules/openpty-tests: ...and this.
28343         * tests/test-pty.c: Rename and split...
28344         * tests/test-forkpty.c: ...to this...
28345         * tests/test-openpty.c: ...and this.
28346         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
28347         (gl_PTY): Split library searching...
28348         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
28349         (gl_FORKPTY, gl_OPENPTY): New macros.
28350         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
28351         * NEWS: Mention the split.
28352         * MODULES.html.sh (Misc): Document the modules.
28353         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
28354         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28355
28356         pty: improve replacement header
28357         * lib/pty.in.h: New file.
28358         * modules/pty (Files): Ship it.
28359         (Makefile.am): Always build replacement.
28360         * m4/pty.m4: Rename...
28361         * m4/pty_h.m4: ...to this.
28362         (gl_PTY): Modernize setting of witness macros; update check of
28363         forkpty to take proper advantage of cache.
28364         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
28365
28366         getopt: avoid compiler warning
28367         * lib/getopt.c (attribute_hidden): Remove unused macro.
28368
28369 2010-03-18  Bruno Haible  <bruno@clisp.org>
28370
28371         Fix link errors on Solaris 8.
28372         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
28373         * modules/search-tests (test_search_c___LDADD): Likewise.
28374         * modules/signal-tests (test_signal_c___LDADD): Likewise.
28375         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
28376         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
28377         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
28378         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
28379         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
28380         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
28381
28382 2010-03-18  Bruno Haible  <bruno@clisp.org>
28383
28384         Fix bug introduced on 2010-03-14.
28385         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
28386         (gl_SPAWN_H): Require it.
28387         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
28388         Reported by Simon Josefsson.
28389
28390 2010-03-18  Bruno Haible  <bruno@clisp.org>
28391
28392         Fix typo introduced on 2009-12-31.
28393         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
28394         posix_spawn_file_actions_adddup2.
28395
28396 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
28397         and Eric Blake  <eblake@redhat.com>
28398
28399         test-vc-list-files-git: make more robust
28400         * tests/test-vc-list-files-git.sh: Unset problematic environment
28401         variables.  Chain commands together.
28402
28403 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
28404
28405         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
28406         `AC_CHECK_DECL' invocation.
28407
28408 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
28409
28410         * lib/inttostr.c (inttostr): Make sure the invocation of verify
28411         appears before executable statements. Suggested by Petr Sumbera
28412         <Petr.Sumbera@Sun.COM>.
28413
28414 2010-03-14  Bruno Haible  <bruno@clisp.org>
28415
28416         * tests/test-flock.c (test_exclusive): Comment out a test that causes
28417         portability problems. Instead use a simpler test.
28418         (main): Check that invalid arguments are rejected only on Linux.
28419
28420 2010-03-14  Bruno Haible  <bruno@clisp.org>
28421
28422         Fix bug introduced on 2009-12-31.
28423         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28424         gl_PREREQ_SYS_H_WINSOCK2 always.
28425         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
28426         SYS_SOCKET_H variable.
28427         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
28428         Update comments.
28429         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
28430         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28431         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28432         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28433         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
28434
28435 2010-03-14  Bruno Haible  <bruno@clisp.org>
28436
28437         Fix values returned by sinl, cosl.
28438         * lib/trigl.h: Add specification comments.
28439         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
28440         that combines the values from the precomputed table with the values of
28441         the Chebyshev polynomials.
28442
28443 2010-03-14  Bruno Haible  <bruno@clisp.org>
28444
28445         Fix compilation error when modules 'posix_spawn[p]' are not used.
28446         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
28447         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
28448
28449 2010-03-14  Bruno Haible  <bruno@clisp.org>
28450
28451         Fix compilation error on mingw when module 'time_r' is not used.
28452         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
28453         is 1.
28454         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
28455         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28456         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
28457         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
28458
28459 2010-03-14  Bruno Haible  <bruno@clisp.org>
28460
28461         Fix compilation error with Sun C.
28462         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
28463         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
28464         instead of GCC specific ULONG_LONG_MAX.
28465         * lib/xstrtoll.c: Likewise.
28466         * lib/xstrtoull.c: Likewise.
28467
28468 2010-03-13  Bruno Haible  <bruno@clisp.org>
28469
28470         Allow the user to disable C++ code and tests.
28471         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
28472         (gl_PROG_ANSI_CXX): Require it.
28473
28474 2010-03-13  Bruno Haible  <bruno@clisp.org>
28475
28476         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
28477         cases.
28478
28479 2010-03-13  Bruno Haible  <bruno@clisp.org>
28480
28481         Test that gnulib does not break the standard C++ headers.
28482         * tests/test-locale-c++2.cc: New file.
28483         * modules/locale-tests (Files): Add it.
28484         (Makefile.am): Compile it for test-locale-c++.
28485         * tests/test-math-c++2.cc: New file.
28486         * modules/math-tests (Files): Add it.
28487         (Makefile.am): Compile it for test-math-c++.
28488         * tests/test-signal-c++2.cc: New file.
28489         * modules/signal-tests (Files): Add it.
28490         (Makefile.am): Compile it for test-signal-c++.
28491         * tests/test-stdio-c++2.cc: New file.
28492         * modules/stdio-tests (Files): Add it.
28493         (Makefile.am): Compile it for test-stdio-c++.
28494         * tests/test-stdlib-c++2.cc: New file.
28495         * modules/stdlib-tests (Files): Add it.
28496         (Makefile.am): Compile it for test-stdlib-c++.
28497         * tests/test-string-c++2.cc: New file.
28498         * modules/string-tests (Files): Add it.
28499         (Makefile.am): Compile it for test-string-c++.
28500         * tests/test-time-c++2.cc: New file.
28501         * modules/time-tests (Files): Add it.
28502         (Makefile.am): Compile it for test-time-c++.
28503         Reported by John W. Eaton <jwe@gnu.org>.
28504
28505 2010-03-13  Bruno Haible  <bruno@clisp.org>
28506
28507         * gnulib-tool (func_usage): Clarify which options are available for
28508         --create-testdir and --create-megatestdir.
28509
28510 2010-03-13  Bruno Haible  <bruno@clisp.org>
28511
28512         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
28513         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
28514         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
28515         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28516         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
28517         when appropriate.
28518         Reported by Jim Meyering.
28519
28520 2010-03-12  Simon Josefsson  <simon@josefsson.org>
28521
28522         * gnulib-tool (func_import): Explain origin of code.
28523
28524 2010-03-12  Bruno Haible  <bruno@clisp.org>
28525
28526         Fix problem with automake's definition of CXXLINK.
28527         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
28528         Reported by Simon Josefsson and Ludovic Courtès.
28529
28530 2010-03-12  Bruno Haible  <bruno@clisp.org>
28531
28532         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
28533         stable releases.
28534
28535 2010-03-11  Bruno Haible  <bruno@clisp.org>
28536
28537         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
28538         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
28539         whether the system provides one variant or multiple variants of the
28540         function.
28541         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
28542         C++ compilers.
28543         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
28544         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
28545         Reported by Jim Meyering.
28546
28547 2010-03-09  Simon Josefsson  <simon@josefsson.org>
28548
28549         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
28550
28551 2010-03-08  Bruno Haible  <bruno@clisp.org>
28552
28553         gnulib-tool: Add support for --libtool in --create-testdir.
28554         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
28555         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
28556
28557 2010-03-08  Eric Blake  <eblake@redhat.com>
28558
28559         gnulib-tool.texi: mention possibility of git submodule
28560         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
28561         submodules.
28562         * doc/.gitignore: Ignore another generated file.
28563
28564 2010-03-08  Karl Berry  <karl@gnu.org>
28565
28566         * doc/gnulib-tool.texi (VCS Issues): Mention third option
28567         of committing gnulib files while skipping others.
28568
28569 2010-03-07  Bruno Haible  <bruno@clisp.org>
28570
28571         Tests of module 'wctype' in C++ mode.
28572         * tests/test-wctype-c++.cc: New file.
28573         * modules/wctype-tests (Files): Add it and tests/signature.h.
28574         (Depends-on): Add ansi-c++-opt.
28575         (Makefile.am): Arrange to compile and run test-wctype-c++.
28576
28577         Tests of module 'wchar' in C++ mode.
28578         * tests/test-wchar-c++.cc: New file.
28579         * modules/wchar-tests (Files): Add it and tests/signature.h.
28580         (Depends-on): Add ansi-c++-opt.
28581         (Makefile.am): Arrange to compile and run test-wchar-c++.
28582         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
28583         gl_MODULE_INDICATOR.
28584
28585         Tests of module 'unistd' in C++ mode.
28586         * tests/test-unistd-c++.cc: New file.
28587         * modules/unistd-tests (Files): Add it and tests/signature.h.
28588         (Depends-on): Add ansi-c++-opt.
28589         (Makefile.am): Arrange to compile and run test-unistd-c++.
28590         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
28591         gl_MODULE_INDICATOR.
28592
28593         Tests of module 'time' in C++ mode.
28594         * tests/test-time-c++.cc: New file.
28595         * modules/time-tests (Files): Add it and tests/signature.h.
28596         (Depends-on): Add ansi-c++-opt.
28597         (Makefile.am): Arrange to compile and run test-time-c++.
28598         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28599
28600         Tests of module 'sys_time' in C++ mode.
28601         * tests/test-sys_time-c++.cc: New file.
28602         * modules/sys_time-tests (Files): Add it and tests/signature.h.
28603         (Depends-on): Add ansi-c++-opt.
28604         (Makefile.am): Arrange to compile and run test-sys_time-c++.
28605         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
28606         gl_MODULE_INDICATOR.
28607
28608         Tests of module 'sys_stat' in C++ mode.
28609         * tests/test-sys_stat-c++.cc: New file.
28610         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
28611         (Depends-on): Add ansi-c++-opt.
28612         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
28613         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
28614         gl_MODULE_INDICATOR.
28615
28616         Tests of module 'sys_socket' in C++ mode.
28617         * tests/test-sys_socket-c++.cc: New file.
28618         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
28619         (Depends-on): Add ansi-c++-opt.
28620         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
28621         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
28622         gl_MODULE_INDICATOR.
28623
28624         Tests of module 'sys_select' in C++ mode.
28625         * tests/test-sys_select-c++.cc: New file.
28626         * modules/sys_select-tests (Files): Add it and tests/signature.h.
28627         (Depends-on): Add ansi-c++-opt.
28628         (Makefile.am): Arrange to compile and run test-sys_select-c++.
28629         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
28630         gl_MODULE_INDICATOR.
28631
28632         Tests of module 'sys_ioctl' in C++ mode.
28633         * tests/test-sys_ioctl-c++.cc: New file.
28634         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
28635         (Depends-on): Add ansi-c++-opt.
28636         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
28637         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
28638         gl_MODULE_INDICATOR.
28639
28640         Tests of module 'string' in C++ mode.
28641         * tests/test-string-c++.cc: New file.
28642         * modules/string-tests (Files): Add it and tests/signature.h.
28643         (Depends-on): Add ansi-c++-opt.
28644         (Makefile.am): Arrange to compile and run test-string-c++.
28645         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
28646         gl_MODULE_INDICATOR.
28647
28648         Tests of module 'stdlib' in C++ mode.
28649         * tests/test-stdlib-c++.cc: New file.
28650         * modules/stdlib-tests (Files): Add it and tests/signature.h.
28651         (Depends-on): Add ansi-c++-opt.
28652         (Makefile.am): Arrange to compile and run test-stdlib-c++.
28653         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
28654         gl_MODULE_INDICATOR.
28655
28656         Tests of module 'stdio' in C++ mode.
28657         * tests/test-stdio-c++.cc: New file.
28658         * modules/stdio-tests (Files): Add it and tests/signature.h.
28659         (Depends-on): Add ansi-c++-opt.
28660         (Makefile.am): Arrange to compile and run test-stdio-c++.
28661         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
28662         gl_MODULE_INDICATOR.
28663
28664         Tests of module 'spawn' in C++ mode.
28665         * tests/test-spawn-c++.cc: New file.
28666         * modules/spawn-tests (Files): Add it and tests/signature.h.
28667         (Depends-on): Add ansi-c++-opt.
28668         (Makefile.am): Arrange to compile and run test-spawn-c++.
28669         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
28670         gl_MODULE_INDICATOR.
28671
28672         Tests of module 'signal' in C++ mode.
28673         * tests/test-signal-c++.cc: New file.
28674         * modules/signal-tests (Files): Add it and tests/signature.h.
28675         (Depends-on): Add ansi-c++-opt.
28676         (Makefile.am): Arrange to compile and run test-signal-c++.
28677         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
28678         gl_MODULE_INDICATOR.
28679
28680         Tests of module 'search' in C++ mode.
28681         * tests/test-search-c++.cc: New file.
28682         * modules/search-tests (Files): Add it and tests/signature.h.
28683         (Depends-on): Add ansi-c++-opt.
28684         (Makefile.am): Arrange to compile and run test-search-c++.
28685         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
28686         gl_MODULE_INDICATOR.
28687
28688         Tests of module 'math' in C++ mode.
28689         * tests/test-math-c++.cc: New file.
28690         * modules/math-tests (Files): Add it and tests/signature.h.
28691         (Depends-on): Add ansi-c++-opt.
28692         (Makefile.am): Arrange to compile and run test-math-c++.
28693         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28694
28695         Tests of module 'locale' in C++ mode.
28696         * tests/test-locale-c++.cc: New file.
28697         * modules/locale-tests (Files): Add it and tests/signature.h.
28698         (Depends-on): Add ansi-c++-opt.
28699         (Makefile.am): Arrange to compile and run test-locale-c++.
28700         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
28701         gl_MODULE_INDICATOR.
28702
28703         Tests of module 'langinfo' in C++ mode.
28704         * tests/test-langinfo-c++.cc: New file.
28705         * modules/langinfo-tests (Files): Add it and tests/signature.h.
28706         (Depends-on): Add ansi-c++-opt.
28707         (Makefile.am): Arrange to compile and run test-langinfo-c++.
28708         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
28709         gl_MODULE_INDICATOR.
28710
28711         Tests of module 'iconv-h' in C++ mode.
28712         * tests/test-iconv-h-c++.cc: New file.
28713         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
28714         (Depends-on): Add ansi-c++-opt.
28715         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
28716
28717         Tests of module 'glob' in C++ mode.
28718         * tests/test-glob-c++.cc: New file.
28719         * modules/glob-tests (Files): Add it.
28720         (Depends-on): Add ansi-c++-opt.
28721         (Makefile.am): Arrange to compile and run test-glob-c++.
28722
28723         Tests of module 'fcntl-h' in C++ mode.
28724         * tests/test-fcntl-h-c++.cc: New file.
28725         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
28726         (Depends-on): Add ansi-c++-opt.
28727         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
28728         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
28729         gl_MODULE_INDICATOR.
28730
28731         Tests of module 'dirent' in C++ mode.
28732         * tests/test-dirent-c++.cc: New file.
28733         * modules/dirent-tests (Files): Add it and tests/signature.h.
28734         (Depends-on): Add ansi-c++-opt.
28735         (Makefile.am): Arrange to compile and run test-dirent-c++.
28736         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28737         gl_MODULE_INDICATOR.
28738
28739         New module 'ansi-c++-opt'.
28740         * modules/ansi-c++-opt: New file.
28741         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
28742
28743         Document C++ namespace mode.
28744         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
28745
28746         wctype: Avoid #define replacements in C++ mode.
28747         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
28748         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
28749         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
28750         In C++, define a namespaced alias symbol.
28751         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
28752         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
28753         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
28754         rule.
28755
28756         wchar: Avoid #define replacements in C++ mode.
28757         * lib/wchar.in.h: Include c++defs.h.
28758         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
28759         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
28760         symbol.
28761         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
28762         * modules/wchar (Depends-on): Add c++defs.
28763         (Makefile.am): Update wchar.h rule.
28764
28765         unistd: Avoid #define replacements in C++ mode.
28766         * lib/unistd.in.h: Include c++defs.h.
28767         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
28768         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
28769         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
28770         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
28771         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
28772         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
28773         symbol.
28774         (environ): Update.
28775         * modules/unistd (Depends-on): Add c++defs.
28776         (Makefile.am): Update unistd.h rule.
28777
28778         time: Avoid #define replacements in C++ mode.
28779         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
28780         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
28781         define a namespaced alias symbol.
28782         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
28783         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
28784         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
28785         * modules/time (Depends-on): Add c++defs, warn-on-use.
28786         (Makefile.am): Update time.h rule.
28787         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28788         * modules/nanosleep (configure.ac): Likewise.
28789         * modules/strptime (configure.ac): Likewise.
28790         * modules/timegm (configure.ac): Likewise.
28791
28792         sys_time: Avoid #define replacements in C++ mode.
28793         * lib/sys_time.in.h: Include c++defs.h.
28794         (gettimeofday): In C++, define a namespaced alias symbol.
28795         * modules/sys_time (Depends-on): Add c++defs.
28796         (Makefile.am): Update sys/time.h rule.
28797
28798         sys_stat: Avoid #define replacements in C++ mode.
28799         * lib/sys_stat.in.h: Include c++defs.h.
28800         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
28801         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
28802         namespaced alias symbol.
28803         In C++, define a namespaced alias symbol.
28804         * modules/sys_stat (Depends-on): Add c++defs.
28805         (Makefile.am): Update sys/stat.h rule.
28806
28807         sys_socket: Avoid #define replacements in C++ mode.
28808         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
28809         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
28810         definitions also when the system has a <sys/socket.h>.
28811         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28812         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
28813         In C++, define a namespaced alias symbol.
28814         * modules/sys_socket (Depends-on): Add c++defs.
28815         (Makefile.am): Update sys/socket.h rule.
28816
28817         sys_select: Avoid #define replacements in C++ mode.
28818         * lib/sys_select.in.h: Include c++defs.h. Enable the function
28819         definitions also when the system has a <sys/select.h>.
28820         (select): In C++, define a namespaced alias symbol.
28821         * modules/sys_select (Depends-on): Add c++defs.
28822         (Makefile.am): Update sys/select.h rule.
28823
28824         sys_ioctl: Avoid #define replacements in C++ mode.
28825         * lib/sys_ioctl.in.h: Include c++defs.h.
28826         (ioctl): In C++, define a namespaced alias symbol.
28827         * modules/sys_ioctl (Depends-on): Add c++defs.
28828         (Makefile.am): Update sys/ioctl.h rule.
28829
28830         string: Avoid #define replacements in C++ mode.
28831         * lib/string.in.h: Include c++defs.h.
28832         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
28833         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28834         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28835         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
28836         strsignal, strverscmp): In C++, define a namespaced alias symbol.
28837         * modules/string (Depends-on): Add c++defs.
28838         (Makefile.am): Update string.h rule.
28839
28840         stdlib: Avoid #define replacements in C++ mode.
28841         * lib/stdlib.in.h: Include c++defs.h.
28842         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
28843         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
28844         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
28845         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
28846         symbol.
28847         * modules/stdlib (Depends-on): Add c++defs.
28848         (Makefile.am): Update stdlib.h rule.
28849
28850         stdio: Avoid #define replacements in C++ mode.
28851         * lib/stdio.in.h: Include c++defs.h.
28852         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
28853         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
28854         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
28855         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
28856         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
28857         namespaced alias symbol.
28858         * modules/stdio (Depends-on): Add c++defs.
28859         (Makefile.am): Update stdio.h rule.
28860
28861         spawn: Avoid #define replacements in C++ mode.
28862         * lib/spawn.in.h: Include c++defs.h.
28863         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28864         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28865         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28866         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28867         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28868         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28869         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28870         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28871         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28872         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28873         In C++, define a namespaced alias symbol.
28874         * modules/spawn (Depends-on): Add c++defs.
28875         (Makefile.am): Update spawn.h rule.
28876
28877         signal: Avoid #define replacements in C++ mode.
28878         * lib/signal.in.h: Include c++defs.h.
28879         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28880         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
28881         namespaced alias symbol.
28882         * modules/signal (Depends-on): Add c++defs.
28883         (Makefile.am): Update signal.h rule.
28884
28885         search: Avoid #define replacements in C++ mode.
28886         * lib/search.in.h: Include c++defs.h.
28887         (_gl_search_compar_fn, _gl_search_action_fn): New types.
28888         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
28889         symbol.
28890         * modules/search (Depends-on): Add c++defs.
28891         (Makefile.am): Update search.h rule.
28892
28893         math: Avoid #define replacements in C++ mode.
28894         * lib/math.in.h: Include c++defs.h.
28895         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
28896         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
28897         trunc, truncl): In C++, define a namespaced alias symbol.
28898         * modules/math (Depends-on): Add c++defs.
28899         (Makefile.am): Update math.h rule.
28900
28901         locale: Avoid #define replacements in C++ mode.
28902         * lib/locale.in.h: Include c++defs.h.
28903         (duplocale): In C++, define a namespaced alias symbol.
28904         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
28905         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
28906         * modules/locale (Depends-on): Add c++defs.
28907         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
28908
28909         langinfo: Avoid #define replacements in C++ mode.
28910         * lib/langinfo.in.h: Include c++defs.h.
28911         (nl_langinfo): In C++, define a namespaced alias symbol.
28912         * modules/langinfo (Depends-on): Add c++defs.
28913         (Makefile.am): Update langinfo.h rule.
28914
28915         iconv-h: Avoid #define replacements in C++ mode.
28916         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
28917         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
28918         symbol.
28919         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28920         whenever iconv is present.
28921         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
28922         (Makefile.am): Update iconv.h rule.
28923
28924         glob: Avoid #define replacements in C++ mode.
28925         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
28926         (_gl_glob_errfunc_fn): New type.
28927         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
28928         symbol.
28929         * modules/glob (Depends-on): Add c++defs, warn-on-use.
28930         (Makefile.am): Update glob.h rule.
28931
28932         fcntl-h: Avoid #define replacements in C++ mode.
28933         * lib/fcntl.in.h: Include c++defs.h.
28934         (fcntl, open, openat): In C++, define a namespaced alias symbol.
28935         * modules/fcntl-h (Depends-on): Add c++defs.
28936         (Makefile.am): Update fcntl.h rule.
28937
28938         dirent: Avoid #define replacements in C++ mode.
28939         * lib/dirent.in.h: Include c++defs.h.
28940         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
28941         namespaced alias symbol.
28942         (dirfd): Update declaration.
28943         * modules/dirent (Depends-on): Add c++defs.
28944         (Makefile.am): Update dirent.h rule.
28945
28946         ctype: Make it usable in C++ code.
28947         * lib/ctype.in.h: Include c++defs.h.
28948         (isblank): Declare as extern "C".
28949         * modules/ctype (Depends-on): Add c++defs.
28950         (Makefile.am): Update ctype.h rule.
28951
28952         New module 'c++defs'.
28953         * modules/c++defs: New file.
28954         * build-aux/c++defs.h: New file.
28955         Reported by John W. Eaton <jwe@gnu.org>.
28956
28957 2010-03-07  Bruno Haible  <bruno@clisp.org>
28958
28959         logb: Provide missing declaration for Cygwin.
28960         * lib/math.in.h (logb): New declaration.
28961         * m4/logb.m4: New file.
28962         * modules/logb (Files): Add m4/logb.m4.
28963         (Depends-on): Add math.
28964         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
28965         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
28966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
28967         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
28968         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
28969
28970 2010-03-07  Bruno Haible  <bruno@clisp.org>
28971
28972         Fix test-cond link error.
28973         * tests/test-cond.c: Include <stdio.h>.
28974
28975 2010-03-07  Bruno Haible  <bruno@clisp.org>
28976
28977         Fix test-dirent-safer link error.
28978         * modules/dirent-safer-tests (Makefile.am): Define
28979         test_dirent_safer_LDADD.
28980
28981 2010-03-07  Bruno Haible  <bruno@clisp.org>
28982
28983         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
28984         among default module list.
28985
28986 2010-03-07  Bruno Haible  <bruno@clisp.org>
28987
28988         Fix link error on platforms with GNU libiconv.
28989         * modules/unistr/u8-strcoll-tests (Makefile): Define
28990         test_u8_strcoll_LDADD.
28991         * modules/unistr/u16-strcoll-tests (Makefile): Define
28992         test_u16_strcoll_LDADD.
28993         * modules/unistr/u32-strcoll-tests (Makefile): Define
28994         test_u32_strcoll_LDADD.
28995
28996 2010-03-07  Bruno Haible  <bruno@clisp.org>
28997
28998         Use POSIX declarations for socket functions.
28999         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
29000         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
29001         rpl_sendto): Change declaration to match POSIX.
29002         * lib/connect.c (rpl_connect): Likewise.
29003         * lib/accept.c (rpl_accept): Likewise.
29004         * lib/bind.c (rpl_bind): Likewise.
29005         * lib/getpeername.c (rpl_getpeername): Likewise.
29006         * lib/getsockname.c (rpl_getsockname): Likewise.
29007         * lib/recv.c (rpl_recv): Likewise.
29008         * lib/send.c (rpl_send): Likewise.
29009         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29010         * lib/sendto.c (rpl_sendto): Likewise.
29011
29012 2010-03-06  Bruno Haible  <bruno@clisp.org>
29013
29014         Clarify access, euidaccess, faccessat.
29015         * doc/posix-functions/faccessat.texi: Mention security problem under
29016         "Other problems", not "Portability problems".
29017         * doc/posix-functions/access.texi: Likewise. Mention a related security
29018         problem.
29019         * doc/glibc-functions/euidaccess.texi: Mention security problems.
29020         * lib/euidaccess.c: Add comments about platforms.
29021         * lib/unistd.in.h (access, euidaccess): Add warnings.
29022
29023 2010-03-07  Bruno Haible  <bruno@clisp.org>
29024
29025         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
29026         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
29027         (POSIX_SPAWN_SETSCHEDULER): Likewise.
29028         (POSIX_SPAWN_USEVFORK): Define in a way that works when
29029         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29030         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
29031         declare when POSIX_SPAWN_SETSCHEDULER is zero.
29032         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
29033         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
29034         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
29035         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
29036         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
29037         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
29038         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
29039         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
29040         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
29041         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
29042         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
29043         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
29044         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
29045         Likewise.
29046         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
29047         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
29048         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
29049         Likewise.
29050         * tests/test-spawn.c (main): Make it work when
29051         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29052
29053 2010-03-07  Bruno Haible  <bruno@clisp.org>
29054
29055         Fix incorrect Makefile.am generation in German locale.
29056         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29057         Execute sed command with character range in C locale.
29058
29059 2010-03-06  Bruno Haible  <bruno@clisp.org>
29060
29061         Tests for module 'iconv-h'.
29062         * modules/iconv-h-tests: New file.
29063         * tests/test-iconv-h.c: New file.
29064
29065         New module 'iconv-h'.
29066         * modules/iconv-h: New file.
29067         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
29068         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
29069         (configure.ac): Remove gl_ICONV_H.
29070         (Makefile.am): Remove rule for iconv.h.
29071
29072 2010-03-06  Bruno Haible  <bruno@clisp.org>
29073
29074         More consistent naming of *.m4 files.
29075         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
29076         * modules/wctype (Files): Update.
29077
29078         More consistent naming of *.m4 files.
29079         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
29080         * modules/wchar (Files): Update.
29081
29082 2010-03-06  Jim Meyering  <meyering@redhat.com>
29083
29084         euidaccess: relax license to LGPLv2+
29085         * modules/euidaccess (License): Relax to LGPLv2+.
29086
29087 2010-03-06  Bruno Haible  <bruno@clisp.org>
29088
29089         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
29090         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
29091         (Makefile.am): Augment lib_SOURCES instead.
29092
29093 2010-03-04  Jim Meyering  <meyering@redhat.com>
29094
29095         utime: remove obsolete module
29096         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
29097         unnecessary for years, and has been marked as obsolete for 10 months.
29098         * modules/utime: Remove file.
29099         * lib/utime.c: Remove file.
29100         * m4/utime.m4: Remove file.
29101         * m4/utimes-null.m4: Remove file.
29102         * doc/posix-functions/utime.texi (utime): Remove reference to
29103         the module.  Move the sole "fixed by gnulib" item into the
29104         "problems not fixed by Gnulib" list.
29105         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
29106
29107 2010-03-05  Simon Josefsson  <simon@josefsson.org>
29108
29109         * modules/exit (License): Relax license to LGPLv2+.
29110         (Status): Mark as obsolete.
29111         * NEWS: Mention deprecated 'exit' module.
29112         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
29113         of now obsolete 'exit'.
29114
29115 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29116
29117         fts-lgpl: remove unused module
29118         * modules/fts-lgpl: Remove.
29119         * MODULES.html.sh (func_all_modules): Adjust.
29120         * check-module (find_included_lib_files): Adjust.
29121         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
29122
29123 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29124
29125         copy-acl: enhance Solaris ACL error handling
29126         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
29127         * lib/set-mode-acl.c (qset_acl): Likewise.
29128
29129 2010-03-02  Bruno Haible  <bruno@clisp.org>
29130
29131         spawn: Don't override the system defined values on FreeBSD 8.
29132         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
29133         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
29134         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
29135         if HAVE_POSIX_SPAWN is 1.
29136         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
29137
29138 2010-03-01  Bruno Haible  <bruno@clisp.org>
29139
29140         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
29141         regarding Automake.
29142
29143 2010-02-25  Bruno Haible  <bruno@clisp.org>
29144
29145         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
29146         * gnulib-tool: Define 'echo' as a function only before the ksh alias
29147         setting, not afterwards.
29148         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29149
29150 2010-02-24  Eric Blake  <eblake@redhat.com>
29151
29152         bootstrap, git-version-gen: use timestamp
29153         * build-aux/git-version-gen (scriptversion): Force UTC.
29154         * build-aux/bootstrap (scriptversion): New variable.
29155
29156         bootstrap: allow older git
29157         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
29158         older than 1.6.4.  Requested by the libvirt project.
29159
29160 2010-02-23  Eric Blake  <eblake@redhat.com>
29161
29162         warn-on-use: work with old autoconf
29163         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
29164         AS_VAR semantics of autoconf 2.60.
29165         Reported by Bruno Haible.
29166
29167         bootstrap: improve some comments
29168         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
29169         clarification comments.
29170
29171         gettimeofday: provide correct function
29172         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
29173         when replacement is declared, otherwise provide gettimeofday.
29174         Reported by Michael Goffioul.
29175
29176 2010-02-23  Jim Meyering  <meyering@redhat.com>
29177
29178         lib-ignore: relax license to "unlimited", not LGPLv2+
29179         * modules/lib-ignore (License): Relax to "unlimited".
29180
29181 2010-02-23  Jim Meyering  <meyering@redhat.com>
29182
29183         lib-ignore: relax license to LGPLv2+
29184         * modules/lib-ignore (License): Relax to LGPLv2+.
29185
29186 2010-02-22  Eric Blake  <eblake@redhat.com>
29187
29188         lseek: avoid bash 3.2 broken pipe bug
29189         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
29190         warning from bash 3.2.
29191         Reported by Ben Pfaff, with analysis from Bruno Haible.
29192
29193         bootstrap: support non-FSF copyright holder
29194         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
29195         bootstrap.conf override of COPYRIGHT_HOLDER.
29196         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
29197
29198         bootstrap: interoperate with gettext 0.14.1
29199         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
29200
29201         bootstrap: allow for alternate submodule location
29202         * build-aux/bootstrap (gnulib_path): New variable; use instead of
29203         hardcoding submodule location.
29204         (gnulib_mk): Allow direct use of Makefile.am.
29205
29206         bootstrap: use GNULIB_SRCDIR to reduce disk usage
29207         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
29208         rather than reconfiguring where the submodule points.
29209
29210         gettimeofday: restore support for platforms that lack function
29211         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
29212         replacement if function is missing.
29213         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
29214         * modules/sys_time (Makefile.am): Substitute it.
29215         * lib/sys_time.in.h (gettimeofday): Check it.
29216         Reported by Michael Goffioul.
29217
29218 2010-02-21  Bruno Haible  <bruno@clisp.org>
29219
29220         * lib/stdio.in.h (obstack_printf): Fix typo.
29221
29222 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
29223
29224         vc-list-files: use bzr ls's -R option
29225         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
29226         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
29227
29228 2010-02-21  Jim Meyering  <meyering@redhat.com>
29229
29230         init.sh: fix EXEEXT shims to work also for names like test-prog
29231         * tests/init.sh: Re-exec a better shell, when needed.
29232         If the current shell lacks support for posix $(...), an init.sh-using
29233         test will now try to find a shell that supports that.  If EXEEXT is
29234         nonempty, we also require support for hyphen-in-alias-name and shell
29235         substitutions like ${var#glob}.  Failure to find such a shell results
29236         in a skipped test.
29237
29238 2010-02-21  Bruno Haible  <bruno@clisp.org>
29239
29240         Really work around around "broken pipe" error message from bash 3.2.
29241         * gnulib-tool (func_reset_sigpipe): Remove function.
29242         (echo): In bash 3.2, define to a function that uses printf.
29243         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
29244
29245 2010-02-20  Bruno Haible  <bruno@clisp.org>
29246
29247         Restore support for automake 1.9.6 with autoconf 2.61.
29248         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
29249         Reported by James Youngman <jay@gnu.org>.
29250
29251 2010-02-20  Bruno Haible  <bruno@clisp.org>
29252
29253         Improve *printf warning condition.
29254         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
29255         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
29256         and the function is overridden due to SIGPIPE emulation.
29257
29258 2010-02-20  Bruno Haible  <bruno@clisp.org>
29259
29260         * lib/stdio.in.h: Tweak comments.
29261
29262 2010-02-19  Bruno Haible  <bruno@clisp.org>
29263
29264         Make it easier to find modules. New gnulib-tool option '--find'.
29265         * gnulib-tool: New option --find.
29266         (func_usage): Document it.
29267         (func_sanitize_modulelist): New function, extracted from
29268         func_all_modules.
29269         (func_all_modules): Invoke it.
29270         * doc/gnulib-tool.texi (Which modules?): New node.
29271
29272 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
29273
29274         * lib/sys_select.in.h: Provide select replacement even if
29275         sys/select.h exists on a system, for Interix.
29276
29277 2010-02-18  Jim Meyering  <meyering@redhat.com>
29278
29279         init.sh: don't use $(...) just yet
29280         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
29281         to accommodate e.g., Solaris' /bin/sh.
29282
29283 2010-02-17  Bruno Haible  <bruno@clisp.org>
29284
29285         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
29286         Reported by Ludovic Courtès <ludo@gnu.org>.
29287
29288 2010-02-16  Simon Josefsson  <simon@josefsson.org>
29289
29290         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
29291         linking with -lintl.
29292
29293 2010-02-17  Simon Josefsson  <simon@josefsson.org>
29294
29295         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
29296         if not provided by the system's netdb.h.  Reported by
29297         ludo@gnu.org (Ludovic Courtès).
29298
29299 2010-02-15  Jim Meyering  <meyering@redhat.com>
29300
29301         init.sh: improve portability and efficiency
29302         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
29303         "dummy" in a for loop.
29304         Use '!', not '^' to select the complement of a character set used
29305         in a "case" statement.
29306         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
29307         Suggestions from Eric Blake.
29308
29309         init.sh: automatically accommodate programs with the .exe suffix
29310         Automatically arrange for an invocation of "prog" to execute the
29311         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
29312         may use the simpler "prog", yet still work when built on a system
29313         that requires specifying the added suffix.
29314         Do this by constructing a function named "prog" that invokes
29315         "prog.exe" for each .exe file in selected directories.
29316         * tests/init.sh (find_exe_basenames_): New function.
29317         (create_exe_shim_functions_): New function.
29318         (path_prepend_): Use it.
29319
29320         maint.mk: mark syntax-check sc_*.m rules as .PHONY
29321         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
29322         "make -t syntax-check" doesn't create a ton of sc_*.m files.
29323
29324 2010-02-14  Jim Meyering  <meyering@redhat.com>
29325
29326         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
29327         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
29328         (sc_prohibit_hash_pjw_without_use): New rule.
29329
29330         maint.mk: allow the default upload destination dir to be overridden
29331         * top/maint.mk (upload_dest_dir_): Define with a default that
29332         preserves the status quo.
29333         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
29334         Reported by Peter Simons.
29335
29336         maint.mk: prohibit inclusion of "hash.h" without_use
29337         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
29338
29339 2010-02-10  Jim Meyering  <meyering@redhat.com>
29340
29341         maint.mk: prohibit inclusion of "ignore-value.h" without_use
29342         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
29343
29344 2010-02-09  Eric Blake  <ebb9@byu.net>
29345         and Bruno Haible  <bruno@clisp.org>
29346
29347         obstack-printf-posix: ensure declaration
29348         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
29349         extracted from gl_FUNC_OBSTACK_PRINTF.
29350         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
29351         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29352         Likewise.
29353         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
29354         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
29355         0.
29356
29357 2010-02-08  Bruno Haible  <bruno@clisp.org>
29358
29359         gnulib-tool: Fix typo in 2010-02-07 commit.
29360         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
29361         Reported by Eric Blake.
29362
29363 2010-02-07  Bruno Haible  <bruno@clisp.org>
29364
29365         gnulib-tool: Fix up caching patches.
29366         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
29367         option --no-cache. Use associative arrays when supported by the shell.
29368         (sed_comments): New variable.
29369         (modcache): Renamed from do_cache.
29370         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
29371         abbreviate unnecessarily.
29372         (have_associative): New variable.
29373         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
29374         way also for ksh and zsh.
29375         (func_init_sed_convert_to_cache_statements): New function, extracted
29376         from func_cache_lookup_module. Add support for associative arrays.
29377         Don't set the c_MODULE_cached variable here. Ignore all lines before
29378         the first field header. Remove only the final newline, not all trailing
29379         newlines. Support empty fields correctly. Limit the use of 'eval' to
29380         assignments.
29381         (func_get_description, func_get_status, func_get_notice,
29382         func_get_applicability, func_get_filelist, func_get_dependencies,
29383         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
29384         func_get_automake_snippet, func_get_include_directive,
29385         func_get_link_directive, func_get_license, func_get_maintainer):
29386         Update documentation. List the unoptimized code first. Add support for
29387         associative arrays. Limit the use of 'eval' to assignments.
29388         (func_get_applicability): Undo stylistic pessimisations.
29389         (func_get_automake_snippet, func_get_include_directive): Reduce code
29390         duplication.
29391         (func_modules_transitive_closure, func_modules_add_dummy,
29392         func_modules_notice, func_modules_to_filelist, func_add_file,
29393         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
29394         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
29395         func_create_testdir, func_create_megatestdir): Update documentation.
29396
29397 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29398
29399         * gnulib-tool (func_cache_lookup_module): Store the module name
29400         belonging to the cache variable; error out if two different
29401         module names map to the same cache variable name.
29402
29403 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29404
29405         gnulib-tool: Make caching optional.
29406         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
29407         Update matching short versions of --no-changelog.
29408         (func_usage): Update.
29409         (sed_extract_cache_prog): Renamed from ...
29410         (sed_extract_prog): ... this; revert to old extraction script.
29411         (func_get_description, func_get_status)
29412         (func_get_notice, func_get_applicability, func_get_filelist)
29413         (func_get_dependencies, func_get_autoconf_early_snippet)
29414         (func_get_autoconf_snippet, func_get_automake_snippet)
29415         (func_get_include_directive, func_get_link_directive)
29416         (func_get_license, func_get_maintainer): If $do_cache is false,
29417         use old, non-caching extraction scripts.
29418         Suggestion by Bruno Haible.
29419
29420 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29421
29422         gnulib-tool: cache module metainformation.
29423         * gnulib-tool (sed_extract_prog): Match newline before each
29424         header, and rewrite header to a shell variable suffix.
29425         (func_cache_var, func_cache_lookup_module): New functions,
29426         to turn a module name into a cache variable prefix, and to
29427         look up and cache module metainformation.
29428         (func_get_description, func_get_status)
29429         (func_get_notice, func_get_applicability, func_get_filelist)
29430         (func_get_dependencies, func_get_autoconf_early_snippet)
29431         (func_get_autoconf_snippet, func_get_automake_snippet)
29432         (func_get_include_directive, func_get_link_directive)
29433         (func_get_license, func_get_maintainer): Use
29434         func_cache_lookup_module.
29435
29436 2010-02-07  Bruno Haible  <bruno@clisp.org>
29437
29438         fnctl: Fix missing dependency.
29439         * modules/fcntl (Depends-on): Add getdtablesize.
29440         Reported by John W. Eaton <jwe@gnu.org>.
29441
29442 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29443
29444         Argp: fix recognition of short alias options.
29445
29446         * lib/argp-parse.c (convert_options): Fix improper use of
29447         `|' between character values.
29448         * tests/test-argp.c (group1_option): New alias option
29449         --read (-r).
29450         (group1_parser): Special handling for 'r'.
29451         (test15): New test case.
29452         (test_fun): Add test15.
29453         * tests/test-argp-2.sh: Update expected --help and --usage
29454         outputs.
29455
29456 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29457
29458         * tests/test-argp.c: Fix indentation.
29459
29460 2010-02-04  Eric Blake  <ebb9@byu.net>
29461
29462         gettimeofday: expose type of second argument
29463         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
29464         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
29465         * tests/test-gettimeofday.c: Use it to silence warning.
29466         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
29467         the issue.
29468
29469 2010-02-03  Jim Meyering  <meyering@redhat.com>
29470
29471         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
29472         * lib/regcomp.c (TYPE_SIGNED): Define.
29473         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
29474
29475         regcomp.c: avoid a new -Wshadow warning
29476         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
29477
29478 2010-02-01  Jim Meyering  <meyering@redhat.com>
29479
29480         removing useless parentheses in cpp #define directives
29481         For motivation, see commit c0221df4, "define STREQ(a,b)
29482         consistently, removing useless parentheses"
29483         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
29484         * lib/mountlist.c (MNT_IGNORE): Likewise.
29485         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
29486
29487 2010-02-01  Eric Blake  <ebb9@byu.net>
29488
29489         sys_time: use link-warning
29490         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
29491         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
29492         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
29493         * modules/sys_time (Depends-on): Add warn-on-use.
29494         (Makefile.am): Always build replacement.
29495         (configure.ac): Update substitutions.
29496         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
29497         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
29498         bother with SYS_TIME_H.
29499         * modules/gettimeofday (configure.ac): Declare indicator.
29500         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
29501         in use.
29502
29503         closein-tests: silence compiler warning
29504         * tests/test-closein.c (main): Ignore fread result.
29505         * modules/closein-tests (Depends-on): Add ignore-value.
29506
29507         tests: silence warning about system return
29508         * tests/test-areadlink-with-size.c (main): Ignore system result.
29509         * tests/test-areadlink.c (main): Likewise.
29510         * tests/test-areadlinkat-with-size.c (main): Likewise.
29511         * tests/test-areadlinkat.c (main): Likewise.
29512         * tests/test-canonicalize-lgpl.c (main): Likewise.
29513         * tests/test-canonicalize.c (main): Likewise.
29514         * tests/test-chown.c (main): Likewise.
29515         * tests/test-fchownat.c (main): Likewise.
29516         * tests/test-fdutimensat.c (main): Likewise.
29517         * tests/test-fstatat.c (main): Likewise.
29518         * tests/test-futimens.c (main): Likewise.
29519         * tests/test-lchown.c (main): Likewise.
29520         * tests/test-link.c (main): Likewise.
29521         * tests/test-linkat.c (main): Likewise.
29522         * tests/test-lstat.c (main): Likewise.
29523         * tests/test-mkdir.c (main): Likewise.
29524         * tests/test-mkdirat.c (main): Likewise.
29525         * tests/test-mkfifo.c (main): Likewise.
29526         * tests/test-mkfifoat.c (main): Likewise.
29527         * tests/test-mknod.c (main): Likewise.
29528         * tests/test-readlink.c (main): Likewise.
29529         * tests/test-remove.c (main): Likewise.
29530         * tests/test-rename.c (main): Likewise.
29531         * tests/test-renameat.c (main): Likewise.
29532         * tests/test-rmdir.c (main): Likewise.
29533         * tests/test-symlink.c (main): Likewise.
29534         * tests/test-symlinkat.c (main): Likewise.
29535         * tests/test-unlink.c (main): Likewise.
29536         * tests/test-unlinkat.c (main): Likewise.
29537         * tests/test-utimens.c (main): Likewise.
29538         * tests/test-utimensat.c (main): Likewise.
29539         * modules/areadlink-tests (Depends-on): Add ignore-value.
29540         * modules/areadlink-with-size-tests (Depends-on): Likewise.
29541         * modules/areadlinkat-tests (Depends-on): Likewise.
29542         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
29543         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29544         * modules/canonicalize-tests (Depends-on): Likewise.
29545         * modules/chown-tests (Depends-on): Likewise.
29546         * modules/fdutimensat-tests (Depends-on): Likewise.
29547         * modules/futimens-tests (Depends-on): Likewise.
29548         * modules/lchown-tests (Depends-on): Likewise.
29549         * modules/link-tests (Depends-on): Likewise.
29550         * modules/linkat-tests (Depends-on): Likewise.
29551         * modules/lstat-tests (Depends-on): Likewise.
29552         * modules/mkdir-tests (Depends-on): Likewise.
29553         * modules/mkfifo-tests (Depends-on): Likewise.
29554         * modules/mkfifoat-tests (Depends-on): Likewise.
29555         * modules/mknod-tests (Depends-on): Likewise.
29556         * modules/openat-tests (Depends-on): Likewise.
29557         * modules/readlink-tests (Depends-on): Likewise.
29558         * modules/remove-tests (Depends-on): Likewise.
29559         * modules/rename-tests (Depends-on): Likewise.
29560         * modules/renameat-tests (Depends-on): Likewise.
29561         * modules/rmdir-tests (Depends-on): Likewise.
29562         * modules/symlink-tests (Depends-on): Likewise.
29563         * modules/symlinkat-tests (Depends-on): Likewise.
29564         * modules/unlink-tests (Depends-on): Likewise.
29565         * modules/utimens-tests (Depends-on): Likewise.
29566         * modules/utimensat-tests (Depends-on): Likewise.
29567
29568 2010-01-31  Bruno Haible  <bruno@clisp.org>
29569
29570         Perform the same test for many <math.h> functions.
29571         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
29572         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
29573         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
29574         of gl_MATHFUNC.
29575         * modules/acos (configure.ac): Likewise.
29576         * modules/asin (configure.ac): Likewise.
29577         * modules/atan (configure.ac): Likewise.
29578         * modules/atan2 (configure.ac): Likewise.
29579         * modules/cbrt (configure.ac): Likewise.
29580         * modules/copysign (configure.ac): Likewise.
29581         * modules/cos (configure.ac): Likewise.
29582         * modules/cosh (configure.ac): Likewise.
29583         * modules/erf (configure.ac): Likewise.
29584         * modules/erfc (configure.ac): Likewise.
29585         * modules/exp (configure.ac): Likewise.
29586         * modules/fmod (configure.ac): Likewise.
29587         * modules/hypot (configure.ac): Likewise.
29588         * modules/j0 (configure.ac): Likewise.
29589         * modules/j1 (configure.ac): Likewise.
29590         * modules/jn (configure.ac): Likewise.
29591         * modules/lgamma (configure.ac): Likewise.
29592         * modules/log (configure.ac): Likewise.
29593         * modules/log10 (configure.ac): Likewise.
29594         * modules/log1p (configure.ac): Likewise.
29595         * modules/pow (configure.ac): Likewise.
29596         * modules/remainder (configure.ac): Likewise.
29597         * modules/sin (configure.ac): Likewise.
29598         * modules/sinh (configure.ac): Likewise.
29599         * modules/tan (configure.ac): Likewise.
29600         * modules/tanh (configure.ac): Likewise.
29601         * modules/y0 (configure.ac): Likewise.
29602         * modules/y1 (configure.ac): Likewise.
29603         * modules/yn (configure.ac): Likewise.
29604         Suggested by Paolo Bonzini.
29605
29606 2010-01-31  Bruno Haible  <bruno@clisp.org>
29607
29608         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
29609
29610 2010-01-31  Bruno Haible  <bruno@clisp.org>
29611
29612         Work around getdelim() bug on FreeBSD 8.0.
29613         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
29614         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
29615         not work.
29616         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
29617         is 1.
29618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
29619         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
29620         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
29621         a non-zero size.
29622         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
29623
29624 2010-01-31  Bruno Haible  <bruno@clisp.org>
29625
29626         Work around getline() bug on FreeBSD 8.0.
29627         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
29628         and a non-zero size.
29629         * tests/test-getline.c (main): Likewise.
29630         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
29631         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
29632
29633 2010-01-28  Eric Blake  <ebb9@byu.net>
29634
29635         regex: fix build failure
29636         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
29637         platforms.
29638
29639 2010-01-28  Jim Meyering  <meyering@redhat.com>
29640
29641         regex: do not ignore memory allocation failure
29642         * lib/regex_internal.c (create_cd_newstate): Detect
29643         re_node_set_init_copy failure.   Extracted from glibc commit
29644         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29645
29646         regex: sync more white-space changes from libc
29647         * lib/regex_internal.c: White-space only changes.
29648         * lib/regexec.c: Likewise.
29649
29650         regex: add many uses of __attribute_warn_unused_result__
29651         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
29652         * lib/regexec.c: Likewise.
29653         Extracted from a messy glibc commit.
29654
29655         regcomp.c: spelling and merge-artifact from glibc
29656         * lib/regcomp.c: Merge remainder of glibc's
29657         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29658
29659         regcomp.c: sync white-space changes from glibc
29660         * lib/regcomp.c: Merge to accommodate white space
29661         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29662
29663         regcomp.c: do not ignore internal return values
29664         * lib/regcomp.c: Do not ignore internal return values.
29665         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
29666         but without its white-space changes and spelling fixes.
29667
29668         regex_internal.h: define __attribute_warn_unused_result__
29669         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
29670
29671         maint: add a syntax-check rule to check for vulnerable Makefile.in
29672         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
29673
29674 2010-01-27  Jim Meyering  <meyering@redhat.com>
29675
29676         ncftpput-ftp: clean up spaces
29677         * build-aux/ncftpput-ftp: Make Copyright line consistent.
29678         Remove trailing blanks.
29679
29680 2010-01-27  Simon Josefsson  <simon@josefsson.org>
29681
29682         * build-aux/git-version-gen: Fix copyright statement.
29683         * build-aux/gnupload: Likewise.
29684         * tests/test-arcfour.c: Likewise.
29685         * tests/test-arctwo.c: Likewise.
29686         * tests/test-count-one-bits.c: Likewise.
29687         * tests/test-crc.c: Likewise.
29688         * tests/test-des.c: Likewise.
29689         * tests/test-gc-arcfour.c: Likewise.
29690         * tests/test-gc-arctwo.c: Likewise.
29691         * tests/test-gc-des.c: Likewise.
29692         * tests/test-gc-hmac-md5.c: Likewise.
29693         * tests/test-gc-hmac-sha1.c: Likewise.
29694         * tests/test-gc-md2.c: Likewise.
29695         * tests/test-gc-md4.c: Likewise.
29696         * tests/test-gc-md5.c: Likewise.
29697         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29698         * tests/test-gc-rijndael.c: Likewise.
29699         * tests/test-gc-sha1.c: Likewise.
29700         * tests/test-gc.c: Likewise.
29701         * tests/test-gethostname.c: Likewise.
29702         * tests/test-gettimeofday.c: Likewise.
29703         * tests/test-hash.c: Likewise.
29704         * tests/test-hmac-md5.c: Likewise.
29705         * tests/test-hmac-sha1.c: Likewise.
29706         * tests/test-md2.c: Likewise.
29707         * tests/test-md4.c: Likewise.
29708         * tests/test-md5.c: Likewise.
29709         * tests/test-memchr.c: Likewise.
29710         * tests/test-memchr2.c: Likewise.
29711         * tests/test-memcmp.c: Likewise.
29712         * tests/test-memmem.c: Likewise.
29713         * tests/test-memrchr.c: Likewise.
29714         * tests/test-rawmemchr.c: Likewise.
29715         * tests/test-read-file.c: Likewise.
29716         * tests/test-rijndael.c: Likewise.
29717         * tests/test-sockets.c: Likewise.
29718         * tests/test-strchrnul.c: Likewise.
29719         * tests/test-strstr.c: Likewise.
29720         * tests/test-strtod.c: Likewise.
29721         * build-aux/ncftpput-ftp: Likewise.
29722
29723 2010-01-26  Eric Blake  <ebb9@byu.net>
29724
29725         ignore-value: update recommended header name
29726         * modules/ignore-value (Include): Only use <> for headers that
29727         exist in glibc.
29728
29729 2010-01-26  Jim Meyering  <meyering@redhat.com>
29730
29731         test-userspec.c: avoid compiler warnings
29732         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
29733         and "initialization discards qualifiers..." warnings.
29734         Put the first "uid" in its own scope, and make char* members "const".
29735
29736 2010-01-25  Bruno Haible  <bruno@clisp.org>
29737
29738         gnulib-tool: Make warning diagnostics consistent.
29739         * gnulib-tool (func_warning): New function.
29740         Use it everywhere where gnulib-tool produces output to stderr and it is
29741         not a fatal error.
29742
29743 2010-01-25  Bruno Haible  <bruno@clisp.org>
29744
29745         Fix test dependencies.
29746         * modules/xstrtol-tests (Depends-on): Add inttypes.
29747         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
29748
29749 2010-01-25 Pádraig Brady <P@draigBrady.com>
29750
29751         syntax-check: detect incorrect boolean macro values in config.h
29752         * modules/maintainer-makefile (configure.ac): Parameterize the location
29753         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
29754         The logic is from Eric Blake and the location indicated by Jim Meyering.
29755         Note the more natural CONFIG_HEADER name is prohibited by automake
29756         for backwards compatibility reasons.
29757         * top/maint.mk (sc_Wundef_boolean): New rule.
29758
29759 2010-01-25  Jim Meyering  <meyering@redhat.com>
29760
29761         bootstrap: detect MacOS 10.6's shasum, too
29762         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
29763         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
29764
29765 2010-01-23  Jim Meyering  <meyering@redhat.com>
29766
29767         xstrtoll: new module
29768         * modules/xstrtoll: New file.
29769         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
29770         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
29771         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
29772         ./configure fails if you use this module and lack "long long".
29773         * modules/xstrtoll-tests: New module.
29774         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
29775         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
29776         new init.sh-based test framework.
29777
29778 2010-01-24  Bruno Haible  <bruno@clisp.org>
29779
29780         Tests for module 'yn'.
29781         * modules/yn-tests: New file.
29782         * tests/test-yn.c: New file.
29783
29784         Tests for module 'y1'.
29785         * modules/y1-tests: New file.
29786         * tests/test-y1.c: New file.
29787
29788         Tests for module 'y0'.
29789         * modules/y0-tests: New file.
29790         * tests/test-y0.c: New file.
29791
29792         Tests for module 'tanh'.
29793         * modules/tanh-tests: New file.
29794         * tests/test-tanh.c: New file.
29795
29796         Tests for module 'tan'.
29797         * modules/tan-tests: New file.
29798         * tests/test-tan.c: New file.
29799
29800         Tests for module 'sqrt'.
29801         * modules/sqrt-tests: New file.
29802         * tests/test-sqrt.c: New file.
29803
29804         Tests for module 'sinh'.
29805         * modules/sinh-tests: New file.
29806         * tests/test-sinh.c: New file.
29807
29808         Tests for module 'sin'.
29809         * modules/sin-tests: New file.
29810         * tests/test-sin.c: New file.
29811
29812         Tests for module 'rint'.
29813         * modules/rint-tests: New file.
29814         * tests/test-rint.c: New file.
29815
29816         Tests for module 'remainder'.
29817         * modules/remainder-tests: New file.
29818         * tests/test-remainder.c: New file.
29819
29820         Tests for module 'pow'.
29821         * modules/pow-tests: New file.
29822         * tests/test-pow.c: New file.
29823
29824         Tests for module 'nextafter'.
29825         * modules/nextafter-tests: New file.
29826         * tests/test-nextafter.c: New file.
29827
29828         Tests for module 'modf'.
29829         * modules/modf-tests: New file.
29830         * tests/test-modf.c: New file.
29831
29832         Tests for module 'logb'.
29833         * modules/logb-tests: New file.
29834         * tests/test-logb.c: New file.
29835
29836         Tests for module 'log1p'.
29837         * modules/log1p-tests: New file.
29838         * tests/test-log1p.c: New file.
29839
29840         Tests for module 'log10'.
29841         * modules/log10-tests: New file.
29842         * tests/test-log10.c: New file.
29843
29844         Tests for module 'log'.
29845         * modules/log-tests: New file.
29846         * tests/test-log.c: New file.
29847
29848         Tests for module 'lgamma'.
29849         * modules/lgamma-tests: New file.
29850         * tests/test-lgamma.c: New file.
29851
29852         Tests for module 'ldexp'.
29853         * modules/ldexp-tests: New file.
29854         * tests/test-ldexp.c: New file.
29855
29856         Tests for module 'jn'.
29857         * modules/jn-tests: New file.
29858         * tests/test-jn.c: New file.
29859
29860         Tests for module 'j1'.
29861         * modules/j1-tests: New file.
29862         * tests/test-j1.c: New file.
29863
29864         Tests for module 'j0'.
29865         * modules/j0-tests: New file.
29866         * tests/test-j0.c: New file.
29867
29868         Tests for module 'hypot'.
29869         * modules/hypot-tests: New file.
29870         * tests/test-hypot.c: New file.
29871
29872         Tests for module 'fmod'.
29873         * modules/fmod-tests: New file.
29874         * tests/test-fmod.c: New file.
29875
29876         Tests for module 'fabs'.
29877         * modules/fabs-tests: New file.
29878         * tests/test-fabs.c: New file.
29879
29880         Tests for module 'exp'.
29881         * modules/exp-tests: New file.
29882         * tests/test-exp.c: New file.
29883
29884         Tests for module 'erfc'.
29885         * modules/erfc-tests: New file.
29886         * tests/test-erfc.c: New file.
29887
29888         Tests for module 'erf'.
29889         * modules/erf-tests: New file.
29890         * tests/test-erf.c: New file.
29891
29892         Tests for module 'cosh'.
29893         * modules/cosh-tests: New file.
29894         * tests/test-cosh.c: New file.
29895
29896         Tests for module 'cos'.
29897         * modules/cos-tests: New file.
29898         * tests/test-cos.c: New file.
29899
29900         Tests for module 'copysign'.
29901         * modules/copysign-tests: New file.
29902         * tests/test-copysign.c: New file.
29903
29904         Tests for module 'cbrt'.
29905         * modules/cbrt-tests: New file.
29906         * tests/test-cbrt.c: New file.
29907
29908         Tests for module 'atan2'.
29909         * modules/atan2-tests: New file.
29910         * tests/test-atan2.c: New file.
29911
29912         Tests for module 'atan'.
29913         * modules/atan-tests: New file.
29914         * tests/test-atan.c: New file.
29915
29916         Tests for module 'asin'.
29917         * modules/asin-tests: New file.
29918         * tests/test-asin.c: New file.
29919
29920         Tests for module 'acos'.
29921         * modules/acos-tests: New file.
29922         * tests/test-acos.c: New file.
29923
29924 2010-01-24  Bruno Haible  <bruno@clisp.org>
29925
29926         Fix tests for common <math.h> functions.
29927         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
29928         code snippet that references the function pointer, rather than merely
29929         calling the function. Substitute the FUNC_LIBM variable.
29930         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
29931         * modules/acos (configure.ac): Likewise.
29932         * modules/asin (configure.ac): Likewise.
29933         * modules/atan (configure.ac): Likewise.
29934         * modules/atan2 (configure.ac): Likewise.
29935         * modules/cbrt (configure.ac): Likewise.
29936         * modules/copysign (configure.ac): Likewise.
29937         * modules/cos (configure.ac): Likewise.
29938         * modules/cosh (configure.ac): Likewise.
29939         * modules/erf (configure.ac): Likewise.
29940         * modules/erfc (configure.ac): Likewise.
29941         * modules/exp (configure.ac): Likewise.
29942         * modules/fabs (configure.ac): Likewise.
29943         * modules/fmod (configure.ac): Likewise.
29944         * modules/hypot (configure.ac): Likewise.
29945         * modules/j0 (configure.ac): Likewise.
29946         * modules/j1 (configure.ac): Likewise.
29947         * modules/jn (configure.ac): Likewise.
29948         * modules/ldexp (configure.ac): Likewise.
29949         * modules/lgamma (configure.ac): Likewise.
29950         * modules/log (configure.ac): Likewise.
29951         * modules/log10 (configure.ac): Likewise.
29952         * modules/log1p (configure.ac): Likewise.
29953         * modules/logb (configure.ac): Likewise.
29954         * modules/modf (configure.ac): Likewise.
29955         * modules/nextafter (configure.ac): Likewise.
29956         * modules/pow (configure.ac): Likewise.
29957         * modules/remainder (configure.ac): Likewise.
29958         * modules/rint (configure.ac): Likewise.
29959         * modules/sin (configure.ac): Likewise.
29960         * modules/sinh (configure.ac): Likewise.
29961         * modules/tan (configure.ac): Likewise.
29962         * modules/tanh (configure.ac): Likewise.
29963         * modules/y0 (configure.ac): Likewise.
29964         * modules/y1 (configure.ac): Likewise.
29965         * modules/yn (configure.ac): Likewise.
29966
29967 2010-01-24  Bruno Haible  <bruno@clisp.org>
29968
29969         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
29970         * tests/test-acosl.c (x): New variable.
29971         (main): Store argument in x and fetch it from x.
29972         * tests/test-asinl.c (x): New variable.
29973         (main): Store argument in x and fetch it from x.
29974         * tests/test-atanl.c (x): New variable.
29975         (main): Store argument in x and fetch it from x.
29976         * tests/test-cosl.c (x): New variable.
29977         (main): Store argument in x and fetch it from x.
29978         * tests/test-expl.c (x): New variable.
29979         (main): Store argument in x and fetch it from x.
29980         * tests/test-logl.c (x): New variable.
29981         (main): Store argument in x and fetch it from x.
29982         * tests/test-sinl.c (x): New variable.
29983         (main): Store argument in x and fetch it from x.
29984         * tests/test-sqrtl.c (x): New variable.
29985         (main): Store argument in x and fetch it from x.
29986         * tests/test-tanl.c (x): New variable.
29987         (main): Store argument in x and fetch it from x.
29988
29989 2010-01-24  Bruno Haible  <bruno@clisp.org>
29990
29991         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
29992         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
29993         assignments to the initial TESTS_ENVIRONMENT.
29994         * doc/gnulib.texi (Unit test modules): Document it.
29995         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
29996         TESTS_ENVIRONMENT.
29997         * modules/btowc-tests (Makefile.am): Likewise.
29998         * modules/c-stack-tests (Makefile.am): Likewise.
29999         * modules/c-strcase-tests (Makefile.am): Likewise.
30000         * modules/copy-file-tests (Makefile.am): Likewise.
30001         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
30002         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
30003         * modules/mbrtowc-tests (Makefile.am): Likewise.
30004         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30005         * modules/mbscasestr-tests (Makefile.am): Likewise.
30006         * modules/mbschr-tests (Makefile.am): Likewise.
30007         * modules/mbscspn-tests (Makefile.am): Likewise.
30008         * modules/mbsinit-tests (Makefile.am): Likewise.
30009         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30010         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
30011         * modules/mbspbrk-tests (Makefile.am): Likewise.
30012         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30013         * modules/mbsrchr-tests (Makefile.am): Likewise.
30014         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
30015         * modules/mbsspn-tests (Makefile.am): Likewise.
30016         * modules/mbsstr-tests (Makefile.am): Likewise.
30017         * modules/nl_langinfo-tests (Makefile.am): Likewise.
30018         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
30019         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30020         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30021         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30022         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30023         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
30024         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30025         * modules/wcrtomb-tests (Makefile.am): Likewise.
30026         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
30027         * modules/wcsrtombs-tests (Makefile.am): Likewise.
30028         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
30029         assignments from TESTS_ENVIRONMENT.
30030         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
30031         augmentation.
30032         * modules/argp-version-etc-tests (Makefile.am): Likewise.
30033         * modules/atexit-tests (Makefile.am): Likewise.
30034         * modules/binary-io-tests (Makefile.am): Likewise.
30035         * modules/closein-tests (Makefile.am): Likewise.
30036         * modules/dprintf-posix-tests (Makefile.am): Likewise.
30037         * modules/exclude-tests (Makefile.am): Likewise.
30038         * modules/fflush-tests (Makefile.am): Likewise.
30039         * modules/fpending-tests (Makefile.am): Likewise.
30040         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30041         * modules/freadahead-tests (Makefile.am): Likewise.
30042         * modules/freadptr-tests (Makefile.am): Likewise.
30043         * modules/freadseek-tests (Makefile.am): Likewise.
30044         * modules/fseek-tests (Makefile.am): Likewise.
30045         * modules/fseeko-tests (Makefile.am): Likewise.
30046         * modules/ftell-tests (Makefile.am): Likewise.
30047         * modules/ftello-tests (Makefile.am): Likewise.
30048         * modules/idpriv-drop-tests (Makefile.am): Likewise.
30049         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
30050         * modules/lseek-tests (Makefile.am): Likewise.
30051         * modules/parse-duration-tests (Makefile.am): Likewise.
30052         * modules/perror-tests (Makefile.am): Likewise.
30053         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
30054         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
30055         * modules/pipe-tests (Makefile.am): Likewise.
30056         * modules/pread-tests (Makefile.am): Likewise.
30057         * modules/printf-posix-tests (Makefile.am): Likewise.
30058         * modules/select-tests (Makefile.am): Likewise.
30059         * modules/sigpipe-tests (Makefile.am): Likewise.
30060         * modules/tsearch-tests (Makefile.am): Likewise.
30061         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
30062         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
30063         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30064         * modules/uniwidth/width-tests (Makefile.am): Likewise.
30065         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
30066         * modules/version-etc-tests (Makefile.am): Likewise.
30067         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30068         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30069         * modules/xalloc-die-tests (Makefile.am): Likewise.
30070         * modules/xprintf-posix-tests (Makefile.am): Likewise.
30071         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30072         * modules/xstrtol-tests (Makefile.am): Likewise.
30073         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30074         * modules/yesno-tests (Makefile.am): Likewise.
30075         Suggested by Jim Meyering.
30076
30077 2010-01-24  Bruno Haible  <bruno@clisp.org>
30078
30079         More documentation.
30080         * doc/gnulib.texi (Writing modules): New chapter.
30081         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
30082         the new chapter.
30083
30084 2010-01-24  Jim Meyering  <meyering@redhat.com>
30085
30086         maint.mk: do not prepend "./" after filtering
30087         * top/maint.mk (_prepend_srcdir_prefix): New variable
30088         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
30089         "./" when $(srcdir) is ".".
30090
30091         define STREQ(a,b) consistently, removing useless parentheses
30092         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
30093         since the only risk is that "a" or "b" contains an unparenthesized
30094         comma, but if either did that, STREQ would have 3 or more arguments.
30095         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
30096         * lib/fts.c (STREQ): Remove unnecessary parentheses.
30097         * lib/hash-triple.c (STREQ): Likewise.
30098         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
30099         * lib/getugroups.c (STREQ): Likewise.
30100
30101 2010-01-23  Jim Meyering  <meyering@redhat.com>
30102
30103         maint.mk: fix syntax-check in a non-srcdir build directory
30104         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
30105         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
30106
30107 2010-01-22  Jim Meyering  <meyering@redhat.com>
30108
30109         userspec: add unit tests
30110         * tests/test-userspec.c: New file.
30111         * modules/userspec-tests: Likewise.
30112
30113 2010-01-21  Jim Meyering  <meyering@redhat.com>
30114
30115         maint.mk: handle source file names containing "." robustly
30116         * top/maint.mk (_dot_escaped_srcdir): Define.
30117         (VC_LIST): Use it in LHS of sed substitution.
30118
30119 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
30120
30121         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
30122         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
30123         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
30124         from a non-srcdir build.
30125
30126 2010-01-20  Eric Blake  <ebb9@byu.net>
30127
30128         warn-on-use: use instead of link-warning
30129         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
30130         * modules/unistd (Depends-on, Makefile.am): Likewise.
30131         * modules/arpa_inet (Depends-on): Replace link-warning with
30132         warn-on-use.
30133         (Makefile.am): Update rules accordingly.
30134         * modules/ctype (Depends-on, Makefile.am): Likewise.
30135         * modules/dirent (Depends-on, Makefile.am): Likewise.
30136         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
30137         * modules/inttypes (Depends-on, Makefile.am): Likewise.
30138         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30139         * modules/locale (Depends-on, Makefile.am): Likewise.
30140         * modules/math (Depends-on, Makefile.am): Likewise.
30141         * modules/search (Depends-on, Makefile.am): Likewise.
30142         * modules/signal (Depends-on, Makefile.am): Likewise.
30143         * modules/spawn (Depends-on, Makefile.am): Likewise.
30144         * modules/stdlib (Depends-on, Makefile.am): Likewise.
30145         * modules/string (Depends-on, Makefile.am): Likewise.
30146         * modules/strings (Depends-on, Makefile.am): Likewise.
30147         * modules/sys_file (Depends-on, Makefile.am): Likewise.
30148         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
30149         * modules/sys_select (Depends-on, Makefile.am): Likewise.
30150         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
30151         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
30152         * modules/sys_times (Depends-on, Makefile.am): Likewise.
30153         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30154         * modules/wchar (Depends-on, Makefile.am): Likewise.
30155         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
30156         should be poisoned.
30157         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
30158         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
30159         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
30160         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30161         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30162         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30163         * m4/math_h.m4 (gl_MATH_H): Likewise.
30164         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30165         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30166         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30167         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30168         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30169         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30170         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30171         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
30172         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
30173         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30174         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30175         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30176         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30177         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30178         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30179         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30180         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
30181         GL_LINK_WARNING.
30182         * lib/ctype.in.h: Likewise.
30183         * lib/dirent.in.h: Likewise.
30184         * lib/fcntl.in.h: Likewise.
30185         * lib/inttypes.in.h: Likewise.
30186         * lib/langinfo.in.h: Likewise.
30187         * lib/locale.in.h: Likewise.
30188         * lib/math.in.h: Likewise.
30189         * lib/search.in.h: Likewise.
30190         * lib/signal.in.h: Likewise.
30191         * lib/spawn.in.h: Likewise.
30192         * lib/stdio.in.h: Likewise.
30193         * lib/stdlib.in.h: Likewise.
30194         * lib/string.in.h: Likewise.
30195         * lib/strings.in.h: Likewise.
30196         * lib/sys_file.in.h: Likewise.
30197         * lib/sys_ioctl.in.h: Likewise.
30198         * lib/sys_select.in.h: Likewise.
30199         * lib/sys_socket.in.h: Likewise.
30200         * lib/sys_stat.in.h: Likewise.
30201         * lib/sys_times.in.h: Likewise.
30202         * lib/sys_utsname.in.h: Likewise.
30203         * lib/unistd.in.h: Likewise.
30204         * lib/wchar.in.h: Likewise.
30205
30206 2010-01-20  Bruno Haible  <bruno@clisp.org>
30207
30208         Avoid duplicate -lm.
30209         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
30210         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
30211         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
30212         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
30213         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
30214         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
30215         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
30216         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
30217         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
30218         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
30219         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
30220         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30221         Reported by Paolo Bonzini.
30222
30223 2010-01-19  Bruno Haible  <bruno@clisp.org>
30224
30225         langinfo, nl_langinfo: Relicense under LGPLv2+.
30226         * modules/langinfo (License): Change to LGPLv2+.
30227         * modules/nl_langinfo (License): Likewise.
30228         Patch by David Lutterkort <lutter@redhat.com>.
30229
30230 2010-01-19  Bruno Haible  <bruno@clisp.org>
30231
30232         Avoid compilation error with cc on OSF/1 5.1.
30233         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
30234         statement, not before.
30235         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30236
30237 2010-01-18  Bruno Haible  <bruno@clisp.org>
30238
30239         Avoid a link error due to the __printf__ symbol.
30240         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
30241         and 2.6.x.
30242         (__format__, __printf__): Remove definitions.
30243         * lib/argp-fmtstream.h: Likewise.
30244         * lib/argp.h: Likewise.
30245         * lib/error.h: Likewise.
30246         * lib/vasnprintf.h: Likewise.
30247         * lib/xprintf.h: Likewise.
30248         * lib/xvasprintf.h: Likewise.
30249         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30250
30251 2010-01-18  Bruno Haible  <bruno@clisp.org>
30252
30253         Tests for module 'tanl'.
30254         * modules/tanl-tests: New file.
30255         * tests/test-tanl.c: New file.
30256
30257         Tests for module 'sqrtl'.
30258         * modules/sqrtl-tests: New file.
30259         * tests/test-sqrtl.c: New file.
30260
30261         Tests for module 'sinl'.
30262         * modules/sinl-tests: New file.
30263         * tests/test-sinl.c: New file.
30264
30265         Tests for module 'logl'.
30266         * modules/logl-tests: New file.
30267         * tests/test-logl.c: New file.
30268
30269         Tests for module 'expl'.
30270         * modules/expl-tests: New file.
30271         * tests/test-expl.c: New file.
30272
30273         Tests for module 'cosl'.
30274         * modules/cosl-tests: New file.
30275         * tests/test-cosl.c: New file.
30276
30277         Tests for module 'atanl'.
30278         * modules/atanl-tests: New file.
30279         * tests/test-atanl.c: New file.
30280
30281         Tests for module 'asinl'.
30282         * modules/asinl-tests: New file.
30283         * tests/test-asinl.c: New file.
30284
30285         Tests for module 'acosl'.
30286         * modules/acosl-tests: New file.
30287         * tests/test-acosl.c: New file.
30288
30289         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30290         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
30291         tanl): Use the standard gnulib idiom.
30292         * lib/cosl.c: Don't include trigl.c and sincosl.c.
30293         * lib/sinl.c: Likewise.
30294         * lib/tanl.c: Don't include trigl.c.
30295         (kernel_tanl): Make static.
30296         * lib/sincosl.c: Include trigl.h first.
30297         * lib/trigl.c: Likewise.
30298         * m4/acosl.m4: New file.
30299         * m4/asinl.m4: New file.
30300         * m4/atanl.m4: New file.
30301         * m4/cosl.m4: New file.
30302         * m4/expl.m4: New file.
30303         * m4/logl.m4: New file.
30304         * m4/sinl.m4: New file.
30305         * m4/sqrtl.m4: New file.
30306         * m4/tanl.m4: New file.
30307         * m4/mathl.m4: Remove file.
30308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
30309         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30310         Don't initialize GNULIB_MATHL.
30311         * modules/acosl: New file.
30312         * modules/asinl: New file.
30313         * modules/atanl: New file.
30314         * modules/cosl: New file.
30315         * modules/expl: New file.
30316         * modules/logl: New file.
30317         * modules/sinl: New file.
30318         * modules/sqrtl: New file.
30319         * modules/tanl: New file.
30320         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
30321         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
30322         substitute GNULIB_MATHL.
30323         * modules/mathl: Rewritten.
30324         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
30325         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
30326         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
30327         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
30328         * doc/posix-functions/expl.texi: Mention the 'expl' module.
30329         * doc/posix-functions/logl.texi: Mention the 'logl' module.
30330         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
30331         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
30332         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
30333
30334 2010-01-18  Bruno Haible  <bruno@clisp.org>
30335
30336         sqrt: Make gl_FUNC_SQRT requirable.
30337         * m4/sqrt.m4: New file.
30338         * modules/sqrt (Files): Add it.
30339         (configure.ac): Invoke gl_FUNC_SQRT.
30340
30341 2010-01-18  Bruno Haible  <bruno@clisp.org>
30342
30343         New modules for common <math.h> functions.
30344         * m4/mathfunc.m4: New file.
30345         * modules/acos: New file.
30346         * modules/asin: New file.
30347         * modules/atan: New file.
30348         * modules/atan2: New file.
30349         * modules/cbrt: New file.
30350         * modules/copysign: New file.
30351         * modules/cos: New file.
30352         * modules/cosh: New file.
30353         * modules/erf: New file.
30354         * modules/erfc: New file.
30355         * modules/exp: New file.
30356         * modules/fabs: New file.
30357         * modules/fmod: New file.
30358         * modules/hypot: New file.
30359         * modules/j0: New file.
30360         * modules/j1: New file.
30361         * modules/jn: New file.
30362         * modules/ldexp: New file.
30363         * modules/lgamma: New file.
30364         * modules/log: New file.
30365         * modules/log10: New file.
30366         * modules/log1p: New file.
30367         * modules/logb: New file.
30368         * modules/modf: New file.
30369         * modules/nextafter: New file.
30370         * modules/pow: New file.
30371         * modules/remainder: New file.
30372         * modules/rint: New file.
30373         * modules/sin: New file.
30374         * modules/sinh: New file.
30375         * modules/sqrt: New file.
30376         * modules/tan: New file.
30377         * modules/tanh: New file.
30378         * modules/y0: New file.
30379         * modules/y1: New file.
30380         * modules/yn: New file.
30381         * doc/posix-functions/acos.texi: Mention the 'acos' module.
30382         * doc/posix-functions/asin.texi: Mention the 'asin' module.
30383         * doc/posix-functions/atan.texi: Mention the 'atan' module.
30384         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
30385         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
30386         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
30387         * doc/posix-functions/cos.texi: Mention the 'cos' module.
30388         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
30389         * doc/posix-functions/erf.texi: Mention the 'erf' module.
30390         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
30391         * doc/posix-functions/exp.texi: Mention the 'exp' module.
30392         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
30393         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
30394         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
30395         * doc/posix-functions/j0.texi: Mention the 'j0' module.
30396         * doc/posix-functions/j1.texi: Mention the 'j1' module.
30397         * doc/posix-functions/jn.texi: Mention the 'jn' module.
30398         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
30399         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
30400         * doc/posix-functions/log.texi: Mention the 'log' module.
30401         * doc/posix-functions/log10.texi: Mention the 'log10' module.
30402         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
30403         * doc/posix-functions/logb.texi: Mention the 'logb' module.
30404         * doc/posix-functions/modf.texi: Mention the 'modf' module.
30405         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
30406         * doc/posix-functions/pow.texi: Mention the 'pow' module.
30407         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
30408         * doc/posix-functions/rint.texi: Mention the 'rint' module.
30409         * doc/posix-functions/sin.texi: Mention the 'sin' module.
30410         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
30411         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
30412         * doc/posix-functions/tan.texi: Mention the 'tan' module.
30413         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
30414         * doc/posix-functions/y0.texi: Mention the 'y0' module.
30415         * doc/posix-functions/y1.texi: Mention the 'y1' module.
30416         * doc/posix-functions/yn.texi: Mention the 'yn' module.
30417
30418 2010-01-18  Jim Meyering  <meyering@redhat.com>
30419
30420         ignore-value: relax license to LGPLv2+
30421         * modules/ignore-value (License): Relax to LGPLv2+.
30422
30423         getdate: don't leak when TZ contains two or more '"'s
30424         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
30425         double quote in TZ after the first one.
30426
30427         readtokens: do not leak internal token_lengths buffer
30428         * lib/readtokens.c (readtokens): Free the local, lengths,
30429         when the supplied "token_lengths" parameter is NULL.
30430
30431 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30432
30433         Fix a couple of missing LIBTHREAD link failures on AIX.
30434         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
30435         $(LIBTHREAD).
30436         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
30437
30438         Link test-poll against INET_PTON_LIB.
30439         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
30440         for inet_pton on Solaris 10.
30441
30442 2010-01-17  Bruno Haible  <bruno@clisp.org>
30443
30444         unistdio/*-sprintf: Fix typo in module description.
30445         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
30446         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
30447         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
30448         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
30449         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
30450         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
30451         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
30452         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30453
30454 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30455
30456         gnulib-tool: fix filelist for AIX, HP-UX ksh.
30457         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
30458         variables in shell case patterns, for AIX and HP-UX ksh.
30459
30460         Split large sed scripts, for HP-UX sed.
30461         * modules/stdio: Split sed scripts around 50 sed commands,
30462         to avoid HP-UX limit of 99 commands, in the near future.
30463         * modules/string: Likewise.
30464         * modules/unistd: Likewise.
30465
30466         gnulib-tool: avoid writing in the current directory.
30467         * gnulib-tool (func_emit_lib_Makefile_am)
30468         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
30469         not in the current directory, so concurrent gnulib-tool
30470         instances do not interfere.
30471
30472 2010-01-16  Jim Meyering  <meyering@redhat.com>
30473
30474         doc: update users.txt
30475         * users.txt: Add grep.
30476         (diffutils, gzip): Update URLs.
30477
30478 2010-01-12  Bruno Haible  <bruno@clisp.org>
30479
30480         posix_spawn: Avoid test failure on Cygwin.
30481         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
30482         characters.
30483         Reported by Simon Josefsson.
30484
30485 2010-01-12  Bruno Haible  <bruno@clisp.org>
30486
30487         * tests/test-cond.c (main): When skipping the test, show the reason.
30488
30489 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30490
30491         * lib/striconv.c (str_cd_iconv): Avoid if before free.
30492
30493 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30494
30495         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
30496         VC_LIST_ALWAYS_EXCLUDE_REGEX.
30497
30498 2010-01-12  Eric Blake  <ebb9@byu.net>
30499
30500         build: guarantee AS_VAR_IF
30501         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
30502         (gl_AS_VAR_IF): Move...
30503         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
30504         Reported by Simon Josefsson.
30505
30506 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30507
30508         * lib/stdio.in.h: Fix typo.
30509
30510 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30511
30512         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
30513         libgpg-error.
30514
30515 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30516
30517         * tests/test-xalloc-die.sh: Use $EXEEXT.
30518
30519 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30520             Bruno Haible  <bruno@clisp.org>
30521
30522         getlogin, getlogin_r: Avoid test failure.
30523         * tests/test-getlogin.c: Include <stdio.h>.
30524         (main): Skip the test when the function fails because stdin is not a
30525         tty.
30526         * tests/test-getlogin_r.c: Include <stdio.h>.
30527         (main): Skip the test when the function fails because stdin is not a
30528         tty.
30529
30530 2010-01-11  Eric Blake  <ebb9@byu.net>
30531
30532         tests: avoid more large file warnings
30533         * tests/test-fflush.c: Avoid warning about ftell use.
30534         * tests/test-fseek.c: Avoid warning about fseek use.
30535
30536 2010-01-10  Bruno Haible  <bruno@clisp.org>
30537
30538         nproc: Work better on Linux when /proc and /sys are not mounted.
30539         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
30540         as lower bound when, on glibc/Linux systems,
30541         sysconf (_SC_NPROCESSORS_CONF) returns 1.
30542         Suggested by Pádraig Brady <P@draigbrady.com>.
30543         Reported by Dmitry V. Levin <ldv@altlinux.org>.
30544
30545         nproc: Refactor.
30546         * lib/nproc.c (num_processors_via_affinity_mask): New function,
30547         extracted from num_processors.
30548         (num_processors): Call it.
30549
30550 2010-01-11  Jim Meyering  <meyering@redhat.com>
30551
30552         utimecmp: avoid new warning from upcoming gcc-4.5.0
30553         * lib/utimecmp.c (BILLION): Define using #define rather than an
30554         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
30555
30556 2010-01-11  Eric Blake  <ebb9@byu.net>
30557
30558         math: add portability warnings for classification macros
30559         * modules/math (Depends-on): Add warn-on-use.
30560         (Makefile.am): Provide new substitutions.
30561         * m4/math_h.m4 (gl_MATH_H): Require inline.
30562         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
30563         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
30564         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
30565         implement warnings.
30566
30567         unistd: warn on use of environ without module
30568         * modules/unistd (Depends-on): Add warn-on-use.
30569         (Makefile.am): Provide new substitutions.
30570         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
30571         * lib/unistd.in.h (environ): Wrap with a warning helper function.
30572
30573         stdio: warn on suspicious uses
30574         * modules/stdio (Depends-on): Add warn-on-use.
30575         (Makefile.am): Provide new substitutions.
30576         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
30577         fseeko.
30578         * lib/stdio.in.h (gets): Always warn on use.
30579         (fseek, ftell): Adjust when warnings are issued, and honor
30580         _GL_NO_LARGE_FILES as a way to silence the warning.
30581         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
30582         any warning about large file offsets.
30583         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
30584         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
30585         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
30586         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
30587         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
30588         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
30589         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
30590         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
30591
30592         warn-on-use: new module
30593         * modules/warn-on-use: New file.
30594         * build-aux/warn-on-use.h: Likewise.
30595         * m4/warn-on-use.m4: Likewise.
30596         * MODULES.html.sh (Support for building): Mention it.
30597
30598 2010-01-10  Bruno Haible  <bruno@clisp.org>
30599
30600         Tests for module 'unistr/u32-strdup'.
30601         * modules/unistr/u32-strdup-tests: New file.
30602         * tests/unistr/test-u32-strdup.c: New file.
30603
30604         Tests for module 'unistr/u16-strdup'.
30605         * modules/unistr/u16-strdup-tests: New file.
30606         * tests/unistr/test-u16-strdup.c: New file.
30607
30608         Tests for module 'unistr/u8-strdup'.
30609         * modules/unistr/u8-strdup-tests: New file.
30610         * tests/unistr/test-u8-strdup.c: New file.
30611         * tests/unistr/test-strdup.h: New file.
30612
30613         Tests for module 'unistr/u32-strncmp'.
30614         * modules/unistr/u32-strncmp-tests: New file.
30615         * tests/unistr/test-u32-strncmp.c: New file.
30616
30617         Tests for module 'unistr/u16-strncmp'.
30618         * modules/unistr/u16-strncmp-tests: New file.
30619         * tests/unistr/test-u16-strncmp.c: New file.
30620
30621         Tests for module 'unistr/u8-strncmp'.
30622         * modules/unistr/u8-strncmp-tests: New file.
30623         * tests/unistr/test-u8-strncmp.c: New file.
30624         * tests/unistr/test-strncmp.h: New file.
30625
30626         Tests for module 'unistr/u32-strcoll'.
30627         * modules/unistr/u32-strcoll-tests: New file.
30628         * tests/unistr/test-u32-strcoll.c: New file.
30629
30630         Tests for module 'unistr/u16-strcoll'.
30631         * modules/unistr/u16-strcoll-tests: New file.
30632         * tests/unistr/test-u16-strcoll.c: New file.
30633
30634         Tests for module 'unistr/u8-strcoll'.
30635         * modules/unistr/u8-strcoll-tests: New file.
30636         * tests/unistr/test-u8-strcoll.c: New file.
30637
30638         Tests for module 'unistr/u32-strcmp'.
30639         * modules/unistr/u32-strcmp-tests: New file.
30640         * tests/unistr/test-u32-strcmp.c: New file.
30641         * tests/unistr/test-u32-strcmp.h: New file.
30642
30643         Tests for module 'unistr/u16-strcmp'.
30644         * modules/unistr/u16-strcmp-tests: New file.
30645         * tests/unistr/test-u16-strcmp.c: New file.
30646         * tests/unistr/test-u16-strcmp.h: New file.
30647
30648         Tests for module 'unistr/u8-strcmp'.
30649         * modules/unistr/u8-strcmp-tests: New file.
30650         * tests/unistr/test-u8-strcmp.c: New file.
30651         * tests/unistr/test-u8-strcmp.h: New file.
30652         * tests/unistr/test-strcmp.h: New file.
30653
30654         Tests for module 'unistr/u32-strncat'.
30655         * modules/unistr/u32-strncat-tests: New file.
30656         * tests/unistr/test-u32-strncat.c: New file.
30657
30658         Tests for module 'unistr/u16-strncat'.
30659         * modules/unistr/u16-strncat-tests: New file.
30660         * tests/unistr/test-u16-strncat.c: New file.
30661
30662         Tests for module 'unistr/u8-strncat'.
30663         * modules/unistr/u8-strncat-tests: New file.
30664         * tests/unistr/test-u8-strncat.c: New file.
30665         * tests/unistr/test-strncat.h: New file.
30666
30667         Tests for module 'unistr/u32-strcat'.
30668         * modules/unistr/u32-strcat-tests: New file.
30669         * tests/unistr/test-u32-strcat.c: New file.
30670
30671         Tests for module 'unistr/u16-strcat'.
30672         * modules/unistr/u16-strcat-tests: New file.
30673         * tests/unistr/test-u16-strcat.c: New file.
30674
30675         Tests for module 'unistr/u8-strcat'.
30676         * modules/unistr/u8-strcat-tests: New file.
30677         * tests/unistr/test-u8-strcat.c: New file.
30678         * tests/unistr/test-strcat.h: New file.
30679
30680         Tests for module 'unistr/u32-stpncpy'.
30681         * modules/unistr/u32-stpncpy-tests: New file.
30682         * tests/unistr/test-u32-stpncpy.c: New file.
30683
30684         Tests for module 'unistr/u16-stpncpy'.
30685         * modules/unistr/u16-stpncpy-tests: New file.
30686         * tests/unistr/test-u16-stpncpy.c: New file.
30687
30688         Tests for module 'unistr/u8-stpncpy'.
30689         * modules/unistr/u8-stpncpy-tests: New file.
30690         * tests/unistr/test-u8-stpncpy.c: New file.
30691         * tests/unistr/test-stpncpy.h: New file.
30692
30693         Tests for module 'unistr/u32-strncpy'.
30694         * modules/unistr/u32-strncpy-tests: New file.
30695         * tests/unistr/test-u32-strncpy.c: New file.
30696
30697         Tests for module 'unistr/u16-strncpy'.
30698         * modules/unistr/u16-strncpy-tests: New file.
30699         * tests/unistr/test-u16-strncpy.c: New file.
30700
30701         Tests for module 'unistr/u8-strncpy'.
30702         * modules/unistr/u8-strncpy-tests: New file.
30703         * tests/unistr/test-u8-strncpy.c: New file.
30704         * tests/unistr/test-strncpy.h: New file.
30705
30706         Tests for module 'unistr/u32-stpcpy'.
30707         * modules/unistr/u32-stpcpy-tests: New file.
30708         * tests/unistr/test-u32-stpcpy.c: New file.
30709
30710         Tests for module 'unistr/u16-stpcpy'.
30711         * modules/unistr/u16-stpcpy-tests: New file.
30712         * tests/unistr/test-u16-stpcpy.c: New file.
30713
30714         Tests for module 'unistr/u8-stpcpy'.
30715         * modules/unistr/u8-stpcpy-tests: New file.
30716         * tests/unistr/test-u8-stpcpy.c: New file.
30717         * tests/unistr/test-stpcpy.h: New file.
30718
30719         Tests for module 'unistr/u32-strcpy'.
30720         * modules/unistr/u32-strcpy-tests: New file.
30721         * tests/unistr/test-u32-strcpy.c: New file.
30722
30723         Tests for module 'unistr/u16-strcpy'.
30724         * modules/unistr/u16-strcpy-tests: New file.
30725         * tests/unistr/test-u16-strcpy.c: New file.
30726
30727         Tests for module 'unistr/u8-strcpy'.
30728         * modules/unistr/u8-strcpy-tests: New file.
30729         * tests/unistr/test-u8-strcpy.c: New file.
30730         * tests/unistr/test-strcpy.h: New file.
30731
30732         Tests for module 'unistr/u32-strnlen'.
30733         * modules/unistr/u32-strnlen-tests: New file.
30734         * tests/unistr/test-u32-strnlen.c: New file.
30735
30736         Tests for module 'unistr/u16-strnlen'.
30737         * modules/unistr/u16-strnlen-tests: New file.
30738         * tests/unistr/test-u16-strnlen.c: New file.
30739
30740         Tests for module 'unistr/u8-strnlen'.
30741         * modules/unistr/u8-strnlen-tests: New file.
30742         * tests/unistr/test-u8-strnlen.c: New file.
30743         * tests/unistr/test-strnlen.h: New file.
30744
30745         Tests for module 'unistr/u32-strlen'.
30746         * modules/unistr/u32-strlen-tests: New file.
30747         * tests/unistr/test-u32-strlen.c: New file.
30748
30749         Tests for module 'unistr/u16-strlen'.
30750         * modules/unistr/u16-strlen-tests: New file.
30751         * tests/unistr/test-u16-strlen.c: New file.
30752
30753         Tests for module 'unistr/u8-strlen'.
30754         * modules/unistr/u8-strlen-tests: New file.
30755         * tests/unistr/test-u8-strlen.c: New file.
30756
30757         Tests for module 'unistr/u32-prev'.
30758         * modules/unistr/u32-prev-tests: New file.
30759         * tests/unistr/test-u32-prev.c: New file.
30760
30761         Tests for module 'unistr/u16-prev'.
30762         * modules/unistr/u16-prev-tests: New file.
30763         * tests/unistr/test-u16-prev.c: New file.
30764
30765         Tests for module 'unistr/u8-prev'.
30766         * modules/unistr/u8-prev-tests: New file.
30767         * tests/unistr/test-u8-prev.c: New file.
30768
30769         Tests for module 'unistr/u32-next'.
30770         * modules/unistr/u32-next-tests: New file.
30771         * tests/unistr/test-u32-next.c: New file.
30772
30773         Tests for module 'unistr/u16-next'.
30774         * modules/unistr/u16-next-tests: New file.
30775         * tests/unistr/test-u16-next.c: New file.
30776
30777         Tests for module 'unistr/u8-next'.
30778         * modules/unistr/u8-next-tests: New file.
30779         * tests/unistr/test-u8-next.c: New file.
30780
30781         Tests for module 'unistr/u32-strmbtouc'.
30782         * modules/unistr/u32-strmbtouc-tests: New file.
30783         * tests/unistr/test-u32-strmbtouc.c: New file.
30784
30785         Tests for module 'unistr/u16-strmbtouc'.
30786         * modules/unistr/u16-strmbtouc-tests: New file.
30787         * tests/unistr/test-u16-strmbtouc.c: New file.
30788
30789         Tests for module 'unistr/u8-strmbtouc'.
30790         * modules/unistr/u8-strmbtouc-tests: New file.
30791         * tests/unistr/test-u8-strmbtouc.c: New file.
30792
30793         Tests for module 'unistr/u32-strmblen'.
30794         * modules/unistr/u32-strmblen-tests: New file.
30795         * tests/unistr/test-u32-strmblen.c: New file.
30796
30797         Tests for module 'unistr/u16-strmblen'.
30798         * modules/unistr/u16-strmblen-tests: New file.
30799         * tests/unistr/test-u16-strmblen.c: New file.
30800
30801         Tests for module 'unistr/u8-strmblen'.
30802         * modules/unistr/u8-strmblen-tests: New file.
30803         * tests/unistr/test-u8-strmblen.c: New file.
30804
30805         Tests for module 'unistr/u32-cpy-alloc'.
30806         * modules/unistr/u32-cpy-alloc-tests: New file.
30807         * tests/unistr/test-u32-cpy-alloc.c: New file.
30808
30809         Tests for module 'unistr/u16-cpy-alloc'.
30810         * modules/unistr/u16-cpy-alloc-tests: New file.
30811         * tests/unistr/test-u16-cpy-alloc.c: New file.
30812
30813         Tests for module 'unistr/u8-cpy-alloc'.
30814         * modules/unistr/u8-cpy-alloc-tests: New file.
30815         * tests/unistr/test-u8-cpy-alloc.c: New file.
30816         * tests/unistr/test-cpy-alloc.h: New file.
30817
30818         Tests for module 'unistr/u32-mbsnlen'.
30819         * modules/unistr/u32-mbsnlen-tests: New file.
30820         * tests/unistr/test-u32-mbsnlen.c: New file.
30821
30822         Tests for module 'unistr/u16-mbsnlen'.
30823         * modules/unistr/u16-mbsnlen-tests: New file.
30824         * tests/unistr/test-u16-mbsnlen.c: New file.
30825
30826         Tests for module 'unistr/u8-mbsnlen'.
30827         * modules/unistr/u8-mbsnlen-tests: New file.
30828         * tests/unistr/test-u8-mbsnlen.c: New file.
30829
30830         Tests for module 'unistr/u32-chr'.
30831         * modules/unistr/u32-chr-tests: New file.
30832         * tests/unistr/test-u32-chr.c: New file.
30833
30834         Tests for module 'unistr/u16-chr'.
30835         * modules/unistr/u16-chr-tests: New file.
30836         * tests/unistr/test-u16-chr.c: New file.
30837
30838         Tests for module 'unistr/u8-chr'.
30839         * modules/unistr/u8-chr-tests: New file.
30840         * tests/unistr/test-u8-chr.c: New file.
30841         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
30842
30843         Tests for module 'unistr/u32-cmp2'.
30844         * modules/unistr/u32-cmp2-tests: New file.
30845         * tests/unistr/test-u32-cmp2.c: New file.
30846
30847         Tests for module 'unistr/u16-cmp2'.
30848         * modules/unistr/u16-cmp2-tests: New file.
30849         * tests/unistr/test-u16-cmp2.c: New file.
30850
30851         Tests for module 'unistr/u8-cmp2'.
30852         * modules/unistr/u8-cmp2-tests: New file.
30853         * tests/unistr/test-u8-cmp2.c: New file.
30854         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
30855
30856         Tests for module 'unistr/u32-cmp'.
30857         * modules/unistr/u32-cmp-tests: New file.
30858         * tests/unistr/test-u32-cmp.c: New file.
30859
30860         Tests for module 'unistr/u16-cmp'.
30861         * modules/unistr/u16-cmp-tests: New file.
30862         * tests/unistr/test-u16-cmp.c: New file.
30863
30864         Tests for module 'unistr/u8-cmp'.
30865         * modules/unistr/u8-cmp-tests: New file.
30866         * tests/unistr/test-u8-cmp.c: New file.
30867         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
30868
30869         Tests for module 'unistr/u32-set'.
30870         * modules/unistr/u32-set-tests: New file.
30871         * tests/unistr/test-u32-set.c: New file.
30872
30873         Tests for module 'unistr/u16-set'.
30874         * modules/unistr/u16-set-tests: New file.
30875         * tests/unistr/test-u16-set.c: New file.
30876
30877         Tests for module 'unistr/u8-set'.
30878         * modules/unistr/u8-set-tests: New file.
30879         * tests/unistr/test-u8-set.c: New file.
30880         * tests/unistr/test-set.h: New file.
30881
30882         Tests for module 'unistr/u32-move'.
30883         * modules/unistr/u32-move-tests: New file.
30884         * tests/unistr/test-u32-move.c: New file.
30885
30886         Tests for module 'unistr/u16-move'.
30887         * modules/unistr/u16-move-tests: New file.
30888         * tests/unistr/test-u16-move.c: New file.
30889
30890         Tests for module 'unistr/u8-move'.
30891         * modules/unistr/u8-move-tests: New file.
30892         * tests/unistr/test-u8-move.c: New file.
30893         * tests/unistr/test-move.h: New file.
30894
30895         Tests for module 'unistr/u32-cpy'.
30896         * modules/unistr/u32-cpy-tests: New file.
30897         * tests/unistr/test-u32-cpy.c: New file.
30898
30899         Tests for module 'unistr/u16-cpy'.
30900         * modules/unistr/u16-cpy-tests: New file.
30901         * tests/unistr/test-u16-cpy.c: New file.
30902
30903         Tests for module 'unistr/u8-cpy'.
30904         * modules/unistr/u8-cpy-tests: New file.
30905         * tests/unistr/test-u8-cpy.c: New file.
30906         * tests/unistr/test-cpy.h: New file.
30907
30908 2010-01-09  Bruno Haible  <bruno@clisp.org>
30909
30910         Tests for module 'unistr/u32-uctomb'.
30911         * modules/unistr/u32-uctomb-tests: New file.
30912         * tests/unistr/test-u32-uctomb.c: New file.
30913
30914         Tests for module 'unistr/u16-uctomb'.
30915         * modules/unistr/u16-uctomb-tests: New file.
30916         * tests/unistr/test-u16-uctomb.c: New file.
30917
30918         Tests for module 'unistr/u8-uctomb'.
30919         * modules/unistr/u8-uctomb-tests: New file.
30920         * tests/unistr/test-u8-uctomb.c: New file.
30921
30922         Tests for module 'unistr/u32-mbtoucr'.
30923         * modules/unistr/u32-mbtoucr-tests: New file.
30924         * tests/unistr/test-u32-mbtoucr.c: New file.
30925
30926         Tests for module 'unistr/u16-mbtoucr'.
30927         * modules/unistr/u16-mbtoucr-tests: New file.
30928         * tests/unistr/test-u16-mbtoucr.c: New file.
30929
30930         Tests for module 'unistr/u8-mbtoucr'.
30931         * modules/unistr/u8-mbtoucr-tests: New file.
30932         * tests/unistr/test-u8-mbtoucr.c: New file.
30933
30934         Tests for module 'unistr/u32-mbtouc'.
30935         * modules/unistr/u32-mbtouc-tests: New file.
30936         * tests/unistr/test-u32-mbtouc.c: New file.
30937
30938         Tests for module 'unistr/u16-mbtouc'.
30939         * modules/unistr/u16-mbtouc-tests: New file.
30940         * tests/unistr/test-u16-mbtouc.c: New file.
30941
30942         Tests for module 'unistr/u8-mbtouc'.
30943         * modules/unistr/u8-mbtouc-tests: New file.
30944         * tests/unistr/test-u8-mbtouc.c: New file.
30945
30946         Tests for module 'unistr/u32-mbtouc-unsafe'.
30947         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
30948         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
30949         * tests/unistr/test-u32-mbtouc.h: New file.
30950
30951         Tests for module 'unistr/u16-mbtouc-unsafe'.
30952         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
30953         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
30954         * tests/unistr/test-u16-mbtouc.h: New file.
30955
30956         Tests for module 'unistr/u8-mbtouc-unsafe'.
30957         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
30958         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
30959         * tests/unistr/test-u8-mbtouc.h: New file.
30960
30961         Tests for module 'unistr/u32-mblen'.
30962         * modules/unistr/u32-mblen-tests: New file.
30963         * tests/unistr/test-u32-mblen.c: New file.
30964
30965         Tests for module 'unistr/u16-mblen'.
30966         * modules/unistr/u16-mblen-tests: New file.
30967         * tests/unistr/test-u16-mblen.c: New file.
30968
30969         Tests for module 'unistr/u8-mblen'.
30970         * modules/unistr/u8-mblen-tests: New file.
30971         * tests/unistr/test-u8-mblen.c: New file.
30972
30973         Tests for module 'unistr/u32-to-u16'.
30974         * modules/unistr/u32-to-u16-tests: New file.
30975         * tests/unistr/test-u32-to-u16.c: New file.
30976
30977         Tests for module 'unistr/u32-to-u8'.
30978         * modules/unistr/u32-to-u8-tests: New file.
30979         * tests/unistr/test-u32-to-u8.c: New file.
30980
30981         Tests for module 'unistr/u16-to-u32'.
30982         * modules/unistr/u16-to-u32-tests: New file.
30983         * tests/unistr/test-u16-to-u32.c: New file.
30984
30985         Tests for module 'unistr/u16-to-u8'.
30986         * modules/unistr/u16-to-u8-tests: New file.
30987         * tests/unistr/test-u16-to-u8.c: New file.
30988
30989         Tests for module 'unistr/u8-to-u32'.
30990         * modules/unistr/u8-to-u32-tests: New file.
30991         * tests/unistr/test-u8-to-u32.c: New file.
30992
30993         Tests for module 'unistr/u8-to-u16'.
30994         * modules/unistr/u8-to-u16-tests: New file.
30995         * tests/unistr/test-u8-to-u16.c: New file.
30996
30997         Tests for module 'unistr/u32-check'.
30998         * modules/unistr/u32-check-tests: New file.
30999         * tests/unistr/test-u32-check.c: New file.
31000
31001         Tests for module 'unistr/u16-check'.
31002         * modules/unistr/u16-check-tests: New file.
31003         * tests/unistr/test-u16-check.c: New file.
31004
31005         Tests for module 'unistr/u8-check'.
31006         * modules/unistr/u8-check-tests: New file.
31007         * tests/unistr/test-u8-check.c: New file.
31008
31009         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
31010         (category_equals): New function.
31011         (main): Add more tests.
31012         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
31013
31014         * tests/unictype/test-bidi_byname.c (main): Add more tests.
31015
31016 2010-01-10  Bruno Haible  <bruno@clisp.org>
31017
31018         unistr/u*-strcoll: Try harder to distinguish different strings.
31019         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
31020         compare s1 and s2 to see if they are different.
31021
31022 2010-01-10  Bruno Haible  <bruno@clisp.org>
31023
31024         unistr/u*-stpncpy: Fix the return value.
31025         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
31026         description of the return value consistent with stpncpy in glibc.
31027         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
31028         written non-NUL unit.
31029
31030 2010-01-10  Bruno Haible  <bruno@clisp.org>
31031
31032         unistr/u*-next: Add missing dependencies.
31033         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
31034         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
31035         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
31036
31037 2010-01-10  Bruno Haible  <bruno@clisp.org>
31038
31039         unistr/u8-mbsnlen: Fix return value for incomplete character.
31040         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
31041         u8_mblen.
31042         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
31043         Remove unistr/u8-mblen.
31044         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
31045         u16_mblen.
31046         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
31047         Remove unistr/u16-mblen.
31048
31049 2010-01-10  Bruno Haible  <bruno@clisp.org>
31050
31051         wchar: Fix compilation error when <wchar.h> is used from coreutils.
31052         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
31053         Reported by Brian Gough <bjg@gnu.org> and
31054         Chris Clayton <chris2553@googlemail.com> via
31055         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
31056
31057 2010-01-09  Bruno Haible  <bruno@clisp.org>
31058
31059         unistr/u16-to-u32: Reject invalid input.
31060         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
31061         u16_mbtouc.
31062         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
31063         Remove unistr/u16-mbtouc.
31064
31065         unistr/u16-to-u8: Reject invalid input.
31066         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
31067         u16_mbtouc.
31068         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
31069         Remove unistr/u16-mbtouc.
31070
31071         unistr/u8-to-u32: Reject invalid input.
31072         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
31073         u8_mbtouc.
31074         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
31075         Remove unistr/u8-mbtouc.
31076
31077         unistr/u8-to-u16: Reject invalid input.
31078         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
31079         u8_mbtouc.
31080         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
31081         Remove unistr/u8-mbtouc.
31082
31083 2010-01-09  Bruno Haible  <bruno@clisp.org>
31084
31085         Tests for module 'getlogin'.
31086         * modules/getlogin-tests: New file.
31087         * tests/test-getlogin.c: New file.
31088
31089         New module 'getlogin'.
31090         * lib/unistd.in.h (getlogin): New declaration.
31091         * lib/getlogin.c: New file.
31092         * m4/getlogin.m4: New file.
31093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
31094         HAVE_GETLOGIN.
31095         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
31096         HAVE_GETLOGIN.
31097         * modules/getlogin: New file.
31098         * doc/posix-functions/getlogin.texi: Mention the new module.
31099         Reported by John W. Eaton <jwe@gnu.org>.
31100
31101 2010-01-09  Bruno Haible  <bruno@clisp.org>
31102
31103         getlogin_r: Support for native Windows.
31104         * lib/getlogin_r.c: Include <windows.h>
31105         (getlogin_r): Implement for native Windows.
31106         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
31107         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
31108         via John W. Eaton <jwe@gnu.org>.
31109
31110 2010-01-09  Bruno Haible  <bruno@clisp.org>
31111
31112         getlogin_r: Small fixes.
31113         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
31114         succeeds.
31115         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
31116         before testing whether getlogin_r is declared. No need to set
31117         HAVE_DECL_GETLOGIN_R to 1.
31118         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
31119
31120 2010-01-09  Bruno Haible  <bruno@clisp.org>
31121
31122         * lib/unistd.in.h (getlogin_r): Add comment.
31123
31124 2010-01-09  Bruno Haible  <bruno@clisp.org>
31125
31126         Tests for module 'getlogin_r'.
31127         * modules/getlogin_r-tests: New file.
31128         * tests/test-getlogin_r.c: New file.
31129
31130 2010-01-09  Jim Meyering  <meyering@redhat.com>
31131
31132         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
31133         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
31134         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
31135
31136 2010-01-08  Simon Josefsson  <simon@josefsson.org>
31137
31138         * lib/dup2.c (rpl_dup2): Improve comment.
31139
31140 2010-01-08  Eric Blake  <ebb9@byu.net>
31141
31142         maint.mk: allow packages to add makefile @@ exceptions
31143         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
31144         (sc_makefile_check): Rename...
31145         (sc_makefile_at_at_check): ...to this, and use hook.
31146
31147         dup2: work around mingw bug
31148         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
31149         Reported by Simon Josefsson.
31150
31151 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
31152
31153         glob: Fix C++ compilation.
31154         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
31155         C++.
31156
31157 2010-01-07  Bruno Haible  <bruno@clisp.org>
31158
31159         Fix indentation of wctype.in.h, broken since 2007-01-06.
31160         * lib/wctype.in.h: Fix indentation of preprocessor directives.
31161
31162 2010-01-07  Bruno Haible  <bruno@clisp.org>
31163
31164         mbslen: Avoid collision with system function.
31165         * lib/string.in.h [MirBSD]: Include <wchar.h>.
31166         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
31167         * m4/mbslen.m4: New file.
31168         * modules/mbslen (Files): Add it.
31169         (configure.ac): Invoke gl_MBSLEN.
31170         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
31171         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
31172         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
31173         via Ian Beckwith <ianb@erislabs.net>.
31174
31175 2010-01-07  Bruno Haible  <bruno@clisp.org>
31176
31177         dirent: Document the last fix.
31178         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
31179
31180 2010-01-07  Bruno Haible  <bruno@clisp.org>
31181
31182         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
31183         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
31184         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
31185         va_list are defined.
31186         * doc/posix-headers/stdio.texi: Document the bug of missing types.
31187         Reported by Eric Blake.
31188
31189 2010-01-07  Bruno Haible  <bruno@clisp.org>
31190
31191         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
31192         * modules/xlist (Depends-on): Add 'list',
31193         * modules/xoset (Depends-on): Add 'oset'.
31194         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31195
31196 2010-01-07  Bruno Haible  <bruno@clisp.org>
31197
31198         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
31199         * doc/posix-functions/strncasecmp.texi: Likewise.
31200
31201 2010-01-07  Bruno Haible  <bruno@clisp.org>
31202
31203         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
31204
31205 2010-01-07  John W. Eaton  <jwe@octave.org>
31206
31207         wctype: allow C++ use
31208         * lib/wctype.in.h: Add extern "C" block for C++.
31209
31210 2010-01-06  Eric Blake  <ebb9@byu.net>
31211
31212         maint.mk: detect incorrect GFDL usage
31213         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
31214
31215 2010-01-06  Jim Meyering  <meyering@redhat.com>
31216         and Eric Blake  <ebb9@byu.net>
31217
31218         maint.mk: ignore multi-line copyright in NEWS
31219         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
31220
31221 2010-01-06  Eric Blake  <ebb9@byu.net>
31222
31223         select: add missing dependency
31224         * modules/select-tests (Depends-on): Move sockets dependency...
31225         * modules/select (Depends-on): ...here.
31226         Reported by Ian Beckwith.
31227
31228         doc: regenerate INSTALL
31229         * doc/INSTALL: Reflect recent autoconf update.
31230         * doc/INSTALL.ISO: Likewise.
31231         * doc/INSTALL.UTF-8: Likewise.
31232
31233         pread: fix compilation on glibc
31234         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
31235         Reported by Ralf Wildenhues.
31236
31237         dirent: fix test failure
31238         * lib/dirent.in.h (includes): Guarantee ino_t.
31239         Reported by Ralf Wildenhues.
31240
31241 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
31242
31243         linkat, renameat: avoid bad free
31244         * lib/at-func2.c (at_func2): Fix typo.
31245         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
31246
31247 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31248
31249         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
31250         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
31251         to avoid failure of symlink test later.
31252
31253 2010-01-06  Eric Blake  <ebb9@byu.net>
31254
31255         stdio, unistd: guarantee ssize_t
31256         * lib/unistd.in.h (includes): Ensure that types required by POSIX
31257         2008 are exposed when needed.
31258         * lib/stdio.in.h (includes): Likewise.
31259         Reported by Ralf Wildenhues.
31260
31261 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
31262
31263         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
31264         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
31265         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
31266
31267 2010-01-06  Jim Meyering  <meyering@redhat.com>
31268
31269         readtokens: this module *does* require xalloc.h
31270         It uses only functions that were omitted by the old syntax-check rule.
31271         * lib/readtokens.c: Include "xalloc.h" once again.
31272         * modules/readtokens (Depends-on): Add xalloc.
31273         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
31274
31275 2010-01-05  Eric Blake  <ebb9@byu.net>
31276
31277         maint: support 'make announcement' from a VPATH build
31278         * top/maint.mk (announcement): Look for correct NEWS file.
31279
31280 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
31281
31282         utimens (fdutimens): ignore a negative FD, per contract
31283         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
31284         when we have a valid file descriptor.  Otherwise, using a brand
31285         new glibc (with just-patched futimens that now fails with EBADF)
31286         would cause this function to fail with ENOSYS.
31287         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
31288         See also http://bugzilla.redhat.com/552320.
31289
31290 2010-01-05  Eric Blake  <ebb9@byu.net>
31291
31292         strcase: document what it provides
31293         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
31294         gnulib module.
31295         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
31296         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
31297
31298 2010-01-05  Jim Meyering  <meyering@redhat.com>
31299
31300         maint: remove useless inclusions of "xalloc.h"
31301         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
31302         * lib/readtokens.c: Likewise.
31303         * lib/same.c: Likewise.
31304         * modules/getloadavg (Depends-on): Remove xalloc.
31305         * modules/readtokens: Likewise.
31306         * modules/same: Likewise.
31307
31308         maint.mk: include 4 more function names in alloca.h-checking regexp
31309         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
31310         regexp.  Before, we would give a false-positive (saying alloca.h
31311         is included unnecessarily) when the only uses involved omitted symbols.
31312
31313         xalloc.h: use consistent formatting
31314         * lib/xalloc.h: Move declarations to start in the first column.
31315
31316 2010-01-05  Eric Blake  <ebb9@byu.net>
31317
31318         mkdir: avoid xalloc
31319         * lib/mkdir.c (includes): Drop unused header.
31320         Reported by John W. Eaton.
31321
31322 2010-01-04  Jim Meyering  <meyering@redhat.com>
31323
31324         nl_langinfo: avoid configure-time syntax error
31325         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
31326         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
31327         the empty string.  Don't let that provoke a shell syntax error.
31328
31329         regcomp, regexec, fnmatch: avoid array bounds read error
31330         * lib/regcomp.c (build_equiv_class): From glibc:
31331         Use only the low 24 bits of a findidx return value as an index
31332         into the weights array.  Patch by Ulrich Drepper:
31333         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
31334         * lib/regexec.c (check_node_accept_bytes): Likewise.
31335         * lib/fnmatch_loop.c (FCT): Likewise.
31336
31337         regcomp: skip collseq lookup when there are no rules
31338         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
31339         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
31340
31341         regcomp: recognize ill-formed { } expressions
31342         * lib/regcomp.c (parse_dup_op): From glibc:
31343         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
31344
31345         regcomp: fix typo in comment
31346         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
31347         s/satisfy/satisfies/.
31348
31349         regcomp: sync from glibc: remove dead store
31350         * lib/regcomp.c (duplicate_node_closure): Remove useless
31351         search_duplicated_node call and dead store.
31352
31353         regcomp: sync from glibc; always use nl_langinfo
31354         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
31355         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
31356         * modules/regex (Depends-on): Add nl_langinfo.
31357
31358 2010-01-04  Eric Blake  <ebb9@byu.net>
31359
31360         fdopendir: fix configure test
31361         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
31362
31363 2010-01-01  Bruno Haible  <bruno@clisp.org>
31364
31365         wchar: Remove unused configure check.
31366         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
31367
31368 2010-01-01  Eric Blake  <ebb9@byu.net>
31369
31370         headers: make check of system header explicit
31371         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
31372         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
31373         ourselves.
31374         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31375         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31376         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31377         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
31378         internals.
31379         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
31380         missing.
31381         Suggested by Bruno Haible.
31382
31383 2010-01-01  Jim Meyering  <meyering@redhat.com>
31384
31385         ChangeLog: tweak to eliminate unnecessary copyright line
31386         * ChangeLog: Remove a copyright line that was mistakenly updated
31387         by today's update-copyright run.  Reported by Eric Blake.
31388
31389         test-update-copyright: don't let envvar setting cause test failure
31390         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31391
31392 2010-01-01  Bruno Haible  <bruno@clisp.org>
31393
31394         localename: Avoid gcc warning.
31395         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
31396         function if it is not used.
31397
31398 2010-01-01  Jim Meyering  <meyering@redhat.com>
31399
31400         update nearly all FSF copyright year lists to include 2010
31401         Use the same procedure as for 2009, outlined in
31402         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
31403
31404         version-etc: set COPYRIGHT_YEAR to 2010
31405         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
31406
31407 2009-12-31  Eric Blake  <ebb9@byu.net>
31408
31409         doc: correct availability of cygwin 1.5.x getopt
31410         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
31411         variables.
31412         * doc/posix-functions/opterr.texi (opterr): Likewise.
31413         * doc/posix-functions/optind.texi (optind): Likewise.
31414         * doc/posix-functions/optopt.texi (optopt): Likewise.
31415         * doc/posix-functions/tzname.texi (tzname): Likewise.
31416
31417         openat: update maintainer
31418         * modules/openat (Maintainer): Add myself.
31419
31420         utimens: avoid shadowing warning
31421         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
31422         buffers into one, to avoid shadowing, as well as avoiding a
31423         redundant stat.
31424         Reported by Jim Meyering.
31425
31426         test-dup2: avoid compiler warning
31427         * tests/test-dup2.c (is_inheritable): Only define if used.
31428
31429 2010-01-01  Bruno Haible  <bruno@clisp.org>
31430
31431         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
31432         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
31433         defined, use wctomb instead of wcrtomb.
31434
31435 2010-01-01  Bruno Haible  <bruno@clisp.org>
31436
31437         iconv: Reject native Solaris iconv.
31438         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
31439         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
31440
31441 2009-12-31  Bruno Haible  <bruno@clisp.org>
31442
31443         * tests/test-signal.c (main): Remove test of 'SIG'.
31444
31445 2009-12-31  Bruno Haible  <bruno@clisp.org>
31446
31447         spawn: Fix incomplete fix.
31448         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31449         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31450         warnings for GNULIB_POSIXCHECK again.
31451         Reported by Eric Blake.
31452
31453 2009-12-31  Bruno Haible  <bruno@clisp.org>
31454
31455         Avoid namespace pollution on glibc systems.
31456         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
31457         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
31458         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
31459         glibc systems.
31460
31461 2009-12-31  Bruno Haible  <bruno@clisp.org>
31462
31463         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
31464         (gl_REPLACE_WCHAR_H): Turn into a no-op.
31465         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
31466         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
31467         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
31468         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
31469         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
31470
31471 2009-12-31  Bruno Haible  <bruno@clisp.org>
31472
31473         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31474         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
31475         afterwards.
31476
31477 2009-12-31  Bruno Haible  <bruno@clisp.org>
31478
31479         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
31480         SYS_UTSNAME_H.
31481
31482 2009-12-31  Bruno Haible  <bruno@clisp.org>
31483
31484         spawn: Fix misapplied patch.
31485         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31486         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31487         warnings for GNULIB_POSIXCHECK.
31488
31489 2009-12-31  Bruno Haible  <bruno@clisp.org>
31490
31491         times: Update after sys_times changed.
31492         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
31493         * modules/times (Files): Add it.
31494         (configure.ac): Invoke gl_FUNC_TIMES.
31495
31496 2009-12-31  Bruno Haible  <bruno@clisp.org>
31497
31498         Use AC_C_INLINE where necessary.
31499         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
31500         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31501         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31502         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31503         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31504         * m4/mbiter.m4 (gl_MBITER): Likewise.
31505         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31506         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31507         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
31508         * modules/u64 (configure.ac): Likewise.
31509
31510 2009-12-31  Bruno Haible  <bruno@clisp.org>
31511
31512         Use AC_C_INLINE instead of module 'inline' where possible.
31513         * modules/inline (Description): Clarify purpose.
31514         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
31515         * modules/count-one-bits (Depends-on): Remove inline.
31516         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
31517         * modules/openat (Depends-on): Remove inline.
31518         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
31519         instead of depending on module 'inline'.
31520         * modules/filevercmp (Depends-on, configure.ac): Likewise.
31521         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
31522         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
31523         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
31524         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
31525         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
31526         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
31527         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
31528         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
31529         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
31530         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
31531         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
31532         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
31533         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
31534         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
31535         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
31536         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
31537         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
31538         Likewise.
31539         * modules/unictype/property-ascii-hex-digit (Depends-on,
31540         configure.ac): Likewise.
31541         * modules/unictype/property-bidi-arabic-digit (Depends-on,
31542         configure.ac): Likewise.
31543         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
31544         configure.ac): Likewise.
31545         * modules/unictype/property-bidi-block-separator (Depends-on,
31546         configure.ac): Likewise.
31547         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
31548         configure.ac): Likewise.
31549         * modules/unictype/property-bidi-common-separator (Depends-on,
31550         configure.ac): Likewise.
31551         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
31552         Likewise.
31553         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
31554         configure.ac): Likewise.
31555         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
31556         configure.ac): Likewise.
31557         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
31558         configure.ac): Likewise.
31559         * modules/unictype/property-bidi-european-digit (Depends-on,
31560         configure.ac): Likewise.
31561         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
31562         configure.ac): Likewise.
31563         * modules/unictype/property-bidi-left-to-right (Depends-on,
31564         configure.ac): Likewise.
31565         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
31566         configure.ac): Likewise.
31567         * modules/unictype/property-bidi-other-neutral (Depends-on,
31568         configure.ac): Likewise.
31569         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
31570         Likewise.
31571         * modules/unictype/property-bidi-segment-separator (Depends-on,
31572         configure.ac): Likewise.
31573         * modules/unictype/property-bidi-whitespace (Depends-on,
31574         configure.ac): Likewise.
31575         * modules/unictype/property-combining (Depends-on, configure.ac):
31576         Likewise.
31577         * modules/unictype/property-composite (Depends-on, configure.ac):
31578         Likewise.
31579         * modules/unictype/property-currency-symbol (Depends-on,
31580         configure.ac): Likewise.
31581         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
31582         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
31583         Likewise.
31584         * modules/unictype/property-default-ignorable-code-point (Depends-on,
31585         configure.ac): Likewise.
31586         * modules/unictype/property-deprecated (Depends-on, configure.ac):
31587         Likewise.
31588         * modules/unictype/property-diacritic (Depends-on, configure.ac):
31589         Likewise.
31590         * modules/unictype/property-extender (Depends-on, configure.ac):
31591         Likewise.
31592         * modules/unictype/property-format-control (Depends-on, configure.ac):
31593         Likewise.
31594         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
31595         Likewise.
31596         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
31597         Likewise.
31598         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
31599         Likewise.
31600         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
31601         Likewise.
31602         * modules/unictype/property-hyphen (Depends-on, configure.ac):
31603         Likewise.
31604         * modules/unictype/property-id-continue (Depends-on, configure.ac):
31605         Likewise.
31606         * modules/unictype/property-id-start (Depends-on, configure.ac):
31607         Likewise.
31608         * modules/unictype/property-ideographic (Depends-on, configure.ac):
31609         Likewise.
31610         * modules/unictype/property-ids-binary-operator (Depends-on,
31611         configure.ac): Likewise.
31612         * modules/unictype/property-ids-trinary-operator (Depends-on,
31613         configure.ac): Likewise.
31614         * modules/unictype/property-ignorable-control (Depends-on,
31615         configure.ac): Likewise.
31616         * modules/unictype/property-iso-control (Depends-on, configure.ac):
31617         Likewise.
31618         * modules/unictype/property-join-control (Depends-on, configure.ac):
31619         Likewise.
31620         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
31621         Likewise.
31622         * modules/unictype/property-line-separator (Depends-on, configure.ac):
31623         Likewise.
31624         * modules/unictype/property-logical-order-exception (Depends-on,
31625         configure.ac): Likewise.
31626         * modules/unictype/property-lowercase (Depends-on, configure.ac):
31627         Likewise.
31628         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
31629         * modules/unictype/property-non-break (Depends-on, configure.ac):
31630         Likewise.
31631         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
31632         Likewise.
31633         * modules/unictype/property-numeric (Depends-on, configure.ac):
31634         Likewise.
31635         * modules/unictype/property-other-alphabetic (Depends-on,
31636         configure.ac): Likewise.
31637         * modules/unictype/property-other-default-ignorable-code-point
31638         (Depends-on, configure.ac): Likewise.
31639         * modules/unictype/property-other-grapheme-extend (Depends-on,
31640         configure.ac): Likewise.
31641         * modules/unictype/property-other-id-continue (Depends-on,
31642         configure.ac): Likewise.
31643         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
31644         Likewise.
31645         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
31646         Likewise.
31647         * modules/unictype/property-other-math (Depends-on, configure.ac):
31648         Likewise.
31649         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
31650         Likewise.
31651         * modules/unictype/property-paired-punctuation (Depends-on,
31652         configure.ac): Likewise.
31653         * modules/unictype/property-paragraph-separator (Depends-on,
31654         configure.ac): Likewise.
31655         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
31656         Likewise.
31657         * modules/unictype/property-pattern-white-space (Depends-on,
31658         configure.ac): Likewise.
31659         * modules/unictype/property-private-use (Depends-on, configure.ac):
31660         Likewise.
31661         * modules/unictype/property-punctuation (Depends-on, configure.ac):
31662         Likewise.
31663         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
31664         Likewise.
31665         * modules/unictype/property-radical (Depends-on, configure.ac):
31666         Likewise.
31667         * modules/unictype/property-sentence-terminal (Depends-on,
31668         configure.ac): Likewise.
31669         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
31670         Likewise.
31671         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
31672         * modules/unictype/property-terminal-punctuation (Depends-on,
31673         configure.ac): Likewise.
31674         * modules/unictype/property-titlecase (Depends-on, configure.ac):
31675         Likewise.
31676         * modules/unictype/property-unassigned-code-value (Depends-on,
31677         configure.ac): Likewise.
31678         * modules/unictype/property-unified-ideograph (Depends-on,
31679         configure.ac): Likewise.
31680         * modules/unictype/property-uppercase (Depends-on, configure.ac):
31681         Likewise.
31682         * modules/unictype/property-variation-selector (Depends-on,
31683         configure.ac): Likewise.
31684         * modules/unictype/property-white-space (Depends-on, configure.ac):
31685         Likewise.
31686         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
31687         Likewise.
31688         * modules/unictype/property-xid-start (Depends-on, configure.ac):
31689         Likewise.
31690         * modules/unictype/property-zero-width (Depends-on, configure.ac):
31691         Likewise.
31692         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
31693         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
31694         Likewise.
31695
31696 2009-12-31  Bruno Haible  <bruno@clisp.org>
31697
31698         Remove unnecessary AC_C_INLINE invocation.
31699         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
31700         since 2009-08-21.
31701
31702 2009-12-31  Jim Meyering  <meyering@redhat.com>
31703
31704         maint.mk: don't require explicit gpg_key_ID in cfg.mk
31705         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
31706         With this change, we can all remove the gpg_key_ID = ... definition
31707         from our respective cfg.mk files.
31708
31709         maint.mk: create announcement template in ~/, not in /tmp
31710         * top/maint.mk (emit_upload_commands): Adjust.
31711         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
31712         Remove temporary file, .ci-msg.
31713
31714 2009-12-31  Eric Blake  <ebb9@byu.net>
31715
31716         link-warning: always build headers with link warnings
31717         * modules/arpa_inet (Makefile.am): Always build replacement
31718         header.
31719         * modules/ctype (Makefile.am): Likewise.
31720         * modules/dirent (Makefile.am): Likewise.
31721         * modules/inttypes (Makefile.am): Likewise.
31722         * modules/langinfo (Makefile.am): Likewise.
31723         * modules/locale (Makefile.am): Likewise.
31724         * modules/spawn (Makefile.am): Likewise.
31725         * modules/sys_file (Makefile.am): Likewise.
31726         * modules/sys_ioctl (Makefile.am): Likewise.
31727         * modules/sys_select (Makefile.am): Likewise.
31728         * modules/sys_socket (Makefile.am): Likewise.
31729         * modules/sys_times (Makefile.am): Likewise.
31730         * modules/sys_utsname (Makefile.am): Likewise.
31731         * modules/sys_wait (Makefile.am): Likewise.
31732         * modules/wchar (Makefile.am): Likewise.
31733         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
31734         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
31735         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
31736         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
31737         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
31738         Likewise.
31739         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31740         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31741         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
31742         Likewise.
31743         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
31744         Likewise.
31745         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
31746         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
31747         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
31748         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31749         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31750         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31751         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31752         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
31753         (gl_WCHAR_H_DEFAULTS): Likewise.
31754
31755 2009-12-31  Eric Blake  <ebb9@byu.net>
31756
31757         signal, spawn: use link warnings
31758         * lib/signal.in.h (sigset_t): Make unconditional.
31759         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
31760         (sigpending, sigprocmask, sigaction): Add link warnings.
31761         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
31762         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
31763         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
31764         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
31765         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
31766         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
31767         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
31768         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
31769         (posix_spawn_file_actions_destroy)
31770         (posix_spawn_file_actions_addopen)
31771         (posix_spawn_file_actions_addclose)
31772         (posix_spawn_file_actions_adddup2): Likewise.
31773         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
31774         * tests/test-signal.c (main): Enhance test.
31775
31776         spawn: improve wrapper support
31777         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
31778         (gl_SPAWN_H_DEFAULTS): New defaults.
31779         * modules/spawn (Makefile.am): Substitute them.
31780         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
31781         Only declare if missing or broken.
31782
31783         sys_times, sys_utsname: use include_next
31784         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
31785         header.
31786         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
31787         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31788         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31789         * modules/sys_times (Depends-on): Add include_next.
31790         (Makefile.am): Substitute additional values.
31791         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
31792         * lib/sys_times.in.h (includes): Include native header, if
31793         available.
31794         * lib/sys_utsname.in.h (includes): Likewise.
31795         * tests/test-sys_times.c (main): Enhance test.
31796
31797         fdutimensat: revert prior patch
31798         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
31799         utimens.h.
31800         Reported by Bruno Haible.
31801
31802 2009-12-30  Eric Blake  <ebb9@byu.net>
31803
31804         sys_wait: drop link-warning dependency
31805         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
31806         link-warning efforts.
31807         * lib/sys_wait.in.h: Likewise.
31808
31809         fdutimensat: remove bogus dependency
31810         * modules/fdutimensat (Depends-on): Drop inline.
31811
31812         unistd: fix typo
31813         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
31814
31815 2009-12-30  Bruno Haible  <bruno@clisp.org>
31816
31817         Fix compilation error with Solaris cc.
31818         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
31819         * lib/unicase/u16-is-invariant.c: Likewise.
31820         * lib/unicase/u32-is-invariant.c: Likewise.
31821         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31822
31823 2009-12-30  Bruno Haible  <bruno@clisp.org>
31824
31825         Fix test crash.
31826         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
31827         locales.
31828         Reported by Simon Josefsson <simon@josefsson.org>.
31829
31830 2009-12-30  Bruno Haible  <bruno@clisp.org>
31831
31832         Fix compilation error on most platforms.
31833         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
31834         Reported by Simon Josefsson <simon@josefsson.org>
31835         and Nelson H. F. Beebe <beebe@math.utah.edu>.
31836
31837 2009-12-30  Eric Blake  <ebb9@byu.net>
31838
31839         futimens, utimensat: work around ntfs-3g bug
31840         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
31841         a ctime bug is present, and expand workaround to cover ntfs-3g.
31842         * lib/utimens.c (fdutimens, lutimens): Likewise.
31843         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
31844         (validate_timespec): Adjust return value.
31845         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
31846         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31847         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
31848
31849 2009-12-29  Eric Blake  <ebb9@byu.net>
31850
31851         link-warning: make usage consistent
31852         * modules/ctype (Depends-on): Add link-warning.
31853         (Makefile.am): Update rules accordingly.
31854         * modules/langinfo (Depends-on, Makefile.am): Likewise.
31855         * modules/locale (Depends-on, Makefile.am): Likewise.
31856         * modules/sys_file (Makefile.am): Likewise.
31857         * modules/getopt-posix (Makefile.am): Delete unused link warning
31858         efforts.
31859         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
31860         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
31861         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
31862         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
31863
31864         stdio: remove unused variables
31865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
31866         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
31867         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31868
31869         tests: test more substitute headers
31870         * modules/ctype-tests: New file.
31871         * modules/dirent-tests: Likewise.
31872         * modules/spawn-tests: Likewise.
31873         * modules/sys_file-tests: Likewise.
31874         * modules/sys_ioctl-tests: Likewise.
31875         * modules/sys_wait-tests: Likewise.
31876         * tests/test-ctype.c: Likewise.
31877         * tests/test-dirent.c: Likewise.
31878         * tests/test-spawn.c: Likewise.
31879         * tests/test-sys_file.c: Likewise.
31880         * tests/test-sys_ioctl.c: Likewise.
31881         * tests/test-sys_wait.c: Likewise.
31882         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
31883         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
31884         whether or not flock is in use.
31885
31886         tests: remove License section from module
31887         * modules/arpa_inet-tests: Remove unneeded section.
31888         * modules/byteswap-tests: Likewise.
31889         * modules/ceilf-tests: Likewise.
31890         * modules/ceill-tests: Likewise.
31891         * modules/crypto/des-tests: Likewise.
31892         * modules/crypto/gc-arcfour-tests: Likewise.
31893         * modules/crypto/gc-arctwo-tests: Likewise.
31894         * modules/crypto/gc-des-tests: Likewise.
31895         * modules/crypto/gc-hmac-md5-tests: Likewise.
31896         * modules/crypto/gc-hmac-sha1-tests: Likewise.
31897         * modules/crypto/gc-md2-tests: Likewise.
31898         * modules/crypto/gc-md4-tests: Likewise.
31899         * modules/crypto/gc-md5-tests: Likewise.
31900         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
31901         * modules/crypto/gc-rijndael-tests: Likewise.
31902         * modules/crypto/gc-sha1-tests: Likewise.
31903         * modules/crypto/gc-tests: Likewise.
31904         * modules/crypto/md2-tests: Likewise.
31905         * modules/crypto/md4-tests: Likewise.
31906         * modules/fcntl-h-tests: Likewise.
31907         * modules/floorf-tests: Likewise.
31908         * modules/floorl-tests: Likewise.
31909         * modules/frexp-nolibm-tests: Likewise.
31910         * modules/frexp-tests: Likewise.
31911         * modules/frexpl-nolibm-tests: Likewise.
31912         * modules/frexpl-tests: Likewise.
31913         * modules/getaddrinfo-tests: Likewise.
31914         * modules/inttypes-tests: Likewise.
31915         * modules/isfinite-tests: Likewise.
31916         * modules/isinf-tests: Likewise.
31917         * modules/ldexpl-tests: Likewise.
31918         * modules/locale-tests: Likewise.
31919         * modules/math-tests: Likewise.
31920         * modules/netdb-tests: Likewise.
31921         * modules/netinet_in-tests: Likewise.
31922         * modules/printf-frexp-tests: Likewise.
31923         * modules/printf-frexpl-tests: Likewise.
31924         * modules/priv-set-tests: Likewise.
31925         * modules/random_r-tests: Likewise.
31926         * modules/round-tests: Likewise.
31927         * modules/roundf-tests: Likewise.
31928         * modules/roundl-tests: Likewise.
31929         * modules/search-tests: Likewise.
31930         * modules/select-tests: Likewise.
31931         * modules/signal-tests: Likewise.
31932         * modules/stdbool-tests: Likewise.
31933         * modules/stddef-tests: Likewise.
31934         * modules/stdint-tests: Likewise.
31935         * modules/stdio-tests: Likewise.
31936         * modules/stdlib-tests: Likewise.
31937         * modules/string-tests: Likewise.
31938         * modules/strings-tests: Likewise.
31939         * modules/sys_select-tests: Likewise.
31940         * modules/sys_socket-tests: Likewise.
31941         * modules/sys_stat-tests: Likewise.
31942         * modules/sys_time-tests: Likewise.
31943         * modules/sys_utsname-tests: Likewise.
31944         * modules/sysexits-tests: Likewise.
31945         * modules/time-tests: Likewise.
31946         * modules/trunc-tests: Likewise.
31947         * modules/truncf-tests: Likewise.
31948         * modules/truncl-tests: Likewise.
31949         * modules/tsearch-tests: Likewise.
31950         * modules/unistd-tests: Likewise.
31951         * modules/wchar-tests: Likewise.
31952         * modules/wctype-tests: Likewise.
31953
31954         tests: fix license on several tests
31955         * tests/test-des.c: Update to GPLv3+.
31956         * tests/test-flock.c: Likewise.
31957         * tests/test-fsync.c: Likewise.
31958         * tests/test-futimens.h: Likewise.
31959         * tests/test-gc-arcfour.c: Likewise.
31960         * tests/test-gc-arctwo.c: Likewise.
31961         * tests/test-gc-des.c: Likewise.
31962         * tests/test-gc-hmac-md5.c: Likewise.
31963         * tests/test-gc-hmac-sha1.c: Likewise.
31964         * tests/test-gc-md2.c: Likewise.
31965         * tests/test-gc-md4.c: Likewise.
31966         * tests/test-gc-md5.c: Likewise.
31967         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31968         * tests/test-gc-rijndael.c: Likewise.
31969         * tests/test-gc-sha1.c: Likewise.
31970         * tests/test-gc.c: Likewise.
31971         * tests/test-getcwd.c: Likewise.
31972         * tests/test-link.c: Likewise.
31973         * tests/test-link.h: Likewise.
31974         * tests/test-lutimens.h: Likewise.
31975         * tests/test-md2.c: Likewise.
31976         * tests/test-md4.c: Likewise.
31977         * tests/test-mkdir.h: Likewise.
31978         * tests/test-rename.c: Likewise.
31979         * tests/test-rename.h: Likewise.
31980         * tests/test-safe-alloc.c: Likewise.
31981         * tests/test-utimens-common.h: Likewise.
31982         * tests/test-utimens.h: Likewise.
31983
31984         maint: sync license texts
31985         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
31986         * doc/gpl-3.0.texi: Revert copyright year update.
31987         * doc/lgpl-3.0.texi: Likewise.
31988
31989 2009-12-29  Jim Meyering  <meyering@redhat.com>
31990
31991         update nearly all FSF copyright year lists to include 2009
31992         The files named by the following are exempted:
31993             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
31994               test -f "$dst" && { echo "$dst"; continue; }
31995               test -d "$dst" || continue
31996               echo "$dst"/$(basename "$src")
31997             done > exempt
31998             git ls-files tests/unictype >> exempt
31999         In the remaining files, convert to all-interval notation if
32000         - there is already at least one year interval like 2000-2003
32001         - the file is maintained by me
32002         - the file is in lib/uni*/, where that style already prevails
32003         Otherwise, use update-copyright's default.
32004
32005 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32006         and Eric Blake  <ebb9@byu.net>
32007
32008         tests: don't require debug system() to pass
32009         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
32010         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32011         * tests/test-unlink.h (test_unlink_func): Likewise.
32012         * tests/test-fstatat.c (main): ...into callers.
32013         * tests/test-lstat.c (main): Likewise.
32014         * tests/test-rmdir.c (main): Likewise.
32015         * tests/test-unlink.c (main): Likewise.
32016         * tests/test-unlinkat.c (main): Likewise.
32017         * tests/test-areadlink-with-size.c (main): Don't require a
32018         debug-only system call to pass, aiding cross-testing to mingw.
32019         * tests/test-areadlink.c (main): Likewise.
32020         * tests/test-areadlinkat-with-size.c (main): Likewise.
32021         * tests/test-areadlinkat.c (main): Likewise.
32022         * tests/test-canonicalize-lgpl.c (main): Likewise.
32023         * tests/test-canonicalize.c (main): Likewise.
32024         * tests/test-chown.c (main): Likewise.
32025         * tests/test-fchownat.c (main): Likewise.
32026         * tests/test-lchown.c (main): Likewise.
32027         * tests/test-fdutimensat.c (main): Likewise.
32028         * tests/test-futimens.c (main): Likewise.
32029         * tests/test-link.c (main): Likewise.
32030         * tests/test-linkat.c (main): Likewise.
32031         * tests/test-mkdir.c (main): Likewise.
32032         * tests/test-mkdirat.c (main): Likewise.
32033         * tests/test-mkfifo.c (main): Likewise.
32034         * tests/test-mkfifoat.c (main): Likewise.
32035         * tests/test-mknod.c (main): Likewise.
32036         * tests/test-readlink.c (main): Likewise.
32037         * tests/test-remove.c (main): Likewise.
32038         * tests/test-rename.c (main): Likewise.
32039         * tests/test-renameat.c (main): Likewise.
32040         * tests/test-symlink.c (main): Likewise.
32041         * tests/test-symlinkat.c (main): Likewise.
32042         * tests/test-utimens.c (main): Likewise.
32043         * tests/test-utimensat.c (main): Likewise.
32044
32045 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32046
32047         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
32048         on $(UNUSED_PARAMETER_H) to avoid build failure.
32049
32050 2009-12-28  Jim Meyering  <meyering@redhat.com>
32051
32052         update-copyright: you may specify a max. line length other than 72
32053         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32054
32055         maint: use consistent FSF copyright line syntax
32056         * lib/posixtm.c: Add missing comma in FSF copyright line.
32057         * lib/posixtm.h: Likewise.
32058         * lib/getugroups.c: Add missing ", Inc.".
32059
32060         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
32061         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
32062         FSF copyright line.  Remove trailing blanks.
32063
32064 2009-12-28  Eric Blake  <ebb9@byu.net>
32065
32066         test-dup2: reduce dependencies
32067         * modules/cloexec (Configure.ac): Set witness.
32068         * modules/dup2-tests (Depends-on): Drop cloexec.
32069         * tests/test-dup2.c (main): Skip portion of test if cloexec module
32070         not present.
32071         Suggested by Bruno Haible.
32072
32073 2009-12-26  Bruno Haible  <bruno@clisp.org>
32074
32075         Remove an unneeded dependency.
32076         * modules/fseterr (Depends-on): Remove dup2.
32077
32078 2009-12-26  Eric Blake  <ebb9@byu.net>
32079
32080         tests: use macros.h in more places
32081         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
32082         (ASSERT_STREAM): Provide default of stderr.
32083         * tests/test-dirent-safer.c: Include macros.h, using alternate
32084         stream for assertions.
32085         * tests/test-dup-safer.c: Likewise.
32086         * tests/test-freopen-safer.c: Likewise.
32087         * tests/test-getopt.c: Likewise.
32088         * tests/test-openat-safer.c: Likewise.
32089         * tests/test-pipe.c: Likewise.
32090         * tests/test-popen-safer.c: Likewise.
32091         * modules/dirent-safer-tests (Files): Include macros.h.
32092         * modules/unistd-safer-tests (Files): Likewise.
32093         * modules/freopen-safer-tests (Files): Likewise.
32094         * modules/getopt-posix-tests (Files): Likewise.
32095         * modules/openat-safer-tests (Files): Likewise.
32096         * modules/pipe-tests (Files): Likewise.
32097
32098 2009-12-26  Bruno Haible  <bruno@clisp.org>
32099
32100         javacomp: Portability fix.
32101         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
32102         that it also works on Solaris.
32103
32104 2009-12-26  Bruno Haible  <bruno@clisp.org>
32105
32106         localename: Fix storage allocation of gl_locale_name_thread's result.
32107         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
32108         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
32109         all platforms that have 'uselocale'.
32110         (gl_locale_name_thread_unsafe): New function, extracted from
32111         gl_locale_name_thread.
32112         (gl_locale_name_thread): Call struniq on all platforms that have
32113         'uselocale'.
32114         * tests/test-localename.c (test_locale_name_thread): Check that the
32115         resulting strings are permanently allocated.
32116         * modules/localename-tests (Depends-on): Add strdup.
32117
32118 2009-12-26  Bruno Haible  <bruno@clisp.org>
32119
32120         * tests/test-localename.c (categories): Fill in the strings.
32121
32122 2009-12-26  Jim Meyering  <meyering@redhat.com>
32123
32124         isdir: complete the removal of m4/isdir.m4
32125         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
32126
32127         isdir: clean up, since at least grep still uses it
32128         * lib/isdir.c: Include "isdir.h".
32129         (S_ISDIR): Remove now-unneeded definition.
32130         * modules/isdir (Files): Add lib/isdir.h.
32131         * lib/isdir.h: New file, with declaration.
32132         * m4/isdir.m4: Remove file -- unneeded.
32133
32134 2009-12-25  Bruno Haible  <bruno@clisp.org>
32135
32136         selinux-h: Make generated .h files standalone.
32137         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
32138         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
32139         * lib/se-selinux.in.h: Likewise.
32140         * modules/selinux-h (Depends-on): Add unused-parameter.
32141         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
32142         selinux/selinux.h and selinux/context.h.
32143         Suggested by Eric Blake.
32144
32145 2009-12-25  Bruno Haible  <bruno@clisp.org>
32146
32147         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
32148         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
32149         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
32150         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
32151         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
32152
32153 2009-12-24  Bruno Haible  <bruno@clisp.org>
32154
32155         openat: Fix warning.
32156         * lib/openat-proc.c: Include <unistd.h>.
32157
32158 2009-12-24  Bruno Haible  <bruno@clisp.org>
32159
32160         New module 'unused-parameter'.
32161         * build-aux/unused-parameter.h: New file, extracted from earlier
32162         gnulib-common.m4.
32163         * modules/unused-parameter: New file.
32164         * lib/unistr.h: Include unused-parameter.h.
32165         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
32166         _GL_UNUSED.
32167         * modules/unistr/base (Depends-on): Add unused-parameter.
32168
32169 2009-12-24  Bruno Haible  <bruno@clisp.org>
32170
32171         Add missing dependencies to 'extensions' module.
32172         * m4/extensions.m4: Add comment.
32173         * modules/accept4 (Depends-on): Add extensions.
32174         * modules/dup3 (Depends-on): Likewise.
32175         * modules/fcntl (Depends-on): Likewise.
32176         * modules/futimens (Depends-on): Likewise.
32177         * modules/mknod (Depends-on): Likewise.
32178         * modules/pipe2 (Depends-on): Likewise.
32179         * modules/stat-time (Depends-on): Likewise.
32180         * modules/strcasestr-simple (Depends-on): Likewise.
32181         * modules/strsignal (Depends-on): Likewise.
32182         * modules/utimensat (Depends-on): Likewise.
32183         * modules/localcharset (Depends-on): Likewise. Needed because of
32184         gl_FCNTL_O_FLAGS.
32185         * modules/wcrtomb (Depends-on): Likewise. Needed because of
32186         AC_TYPE_MBSTATE_T.
32187         * modules/wcsnrtombs (Depends-on): Likewise.
32188         * modules/wcsrtombs (Depends-on): Likewise.
32189
32190 2009-12-24  Bruno Haible  <bruno@clisp.org>
32191
32192         binary-io: Avoid gcc warning due to SET_BINARY.
32193         * lib/binary-io.h (SET_BINARY): Cast the result to void.
32194         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
32195
32196 2009-12-24  Bruno Haible  <bruno@clisp.org>
32197
32198         Avoid future namespace pollution on glibc systems.
32199         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
32200         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
32201         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
32202         glibc systems.
32203
32204 2009-12-24  Bruno Haible  <bruno@clisp.org>
32205
32206         Refactor common macros used in tests.
32207         * tests/macros.h: New file.
32208         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
32209         and/or <stdlib.h>, if appropriate.
32210         (ASSERT, SIZEOF): Remove macros.
32211         * tests/test-areadlink-with-size.c: Likewise.
32212         * tests/test-areadlinkat.c: Likewise.
32213         * tests/test-areadlinkat-with-size.c: Likewise.
32214         * tests/test-argmatch.c: Likewise.
32215         * tests/test-argv-iter.c: Likewise.
32216         * tests/test-array-mergesort.c: Likewise.
32217         * tests/test-array_list.c: Likewise.
32218         * tests/test-array_oset.c: Likewise.
32219         * tests/test-avltree_list.c: Likewise.
32220         * tests/test-avltree_oset.c: Likewise.
32221         * tests/test-avltreehash_list.c: Likewise.
32222         * tests/test-base64.c: Likewise.
32223         * tests/test-binary-io.c: Likewise.
32224         * tests/test-bitrotate.c: Likewise.
32225         * tests/test-btowc.c: Likewise.
32226         * tests/test-byteswap.c: Likewise.
32227         * tests/test-c-ctype.c: Likewise.
32228         * tests/test-c-stack.c: Likewise.
32229         * tests/test-c-strcasecmp.c: Likewise.
32230         * tests/test-c-strcasestr.c: Likewise.
32231         * tests/test-c-strncasecmp.c: Likewise.
32232         * tests/test-c-strstr.c: Likewise.
32233         * tests/test-canonicalize-lgpl.c: Likewise.
32234         * tests/test-canonicalize.c: Likewise.
32235         * tests/test-carray_list.c: Likewise.
32236         * tests/test-ceilf1.c: Likewise.
32237         * tests/test-ceilf2.c: Likewise.
32238         * tests/test-ceill.c: Likewise.
32239         * tests/test-chown.c: Likewise.
32240         * tests/test-cloexec.c: Likewise.
32241         * tests/test-copy-acl.c: Likewise.
32242         * tests/test-copy-file.c: Likewise.
32243         * tests/test-count-one-bits.c: Likewise.
32244         * tests/test-dprintf-posix.c: Likewise.
32245         * tests/test-dup2.c: Likewise.
32246         * tests/test-dup3.c: Likewise.
32247         * tests/test-duplocale.c: Likewise.
32248         * tests/test-fbufmode.c: Likewise.
32249         * tests/test-fchdir.c: Likewise.
32250         * tests/test-fchownat.c: Likewise.
32251         * tests/test-fcntl-safer.c: Likewise.
32252         * tests/test-fcntl.c: Likewise.
32253         * tests/test-fdopendir.c: Likewise.
32254         * tests/test-fdutimensat.c: Likewise.
32255         * tests/test-fflush2.c: Likewise.
32256         * tests/test-file-has-acl.c: Likewise.
32257         * tests/test-filevercmp.c: Likewise.
32258         * tests/test-flock.c: Likewise.
32259         * tests/test-floorf1.c: Likewise.
32260         * tests/test-floorf2.c: Likewise.
32261         * tests/test-floorl.c: Likewise.
32262         * tests/test-fnmatch.c: Likewise.
32263         * tests/test-fopen.h: Likewise.
32264         * tests/test-fpending.c: Likewise.
32265         * tests/test-fprintf-posix.c: Likewise.
32266         * tests/test-fpurge.c: Likewise.
32267         * tests/test-freadable.c: Likewise.
32268         * tests/test-freadahead.c: Likewise.
32269         * tests/test-freading.c: Likewise.
32270         * tests/test-freadptr.c: Likewise.
32271         * tests/test-freadptr2.c: Likewise.
32272         * tests/test-freadseek.c: Likewise.
32273         * tests/test-freopen.c: Likewise.
32274         * tests/test-frexp.c: Likewise.
32275         * tests/test-frexpl.c: Likewise.
32276         * tests/test-fseek.c: Likewise.
32277         * tests/test-fseeko.c: Likewise.
32278         * tests/test-fstatat.c: Likewise.
32279         * tests/test-fstrcmp.c: Likewise.
32280         * tests/test-fsync.c: Likewise.
32281         * tests/test-ftell.c: Likewise.
32282         * tests/test-ftello.c: Likewise.
32283         * tests/test-func.c: Likewise.
32284         * tests/test-futimens.c: Likewise.
32285         * tests/test-fwritable.c: Likewise.
32286         * tests/test-fwriting.c: Likewise.
32287         * tests/test-getcwd.c: Likewise.
32288         * tests/test-getdate.c: Likewise.
32289         * tests/test-getdelim.c: Likewise.
32290         * tests/test-getdtablesize.c: Likewise.
32291         * tests/test-getgroups.c: Likewise.
32292         * tests/test-getline.c: Likewise.
32293         * tests/test-getndelim2.c: Likewise.
32294         * tests/test-glob.c: Likewise.
32295         * tests/test-hash.c: Likewise.
32296         * tests/test-i-ring.c: Likewise.
32297         * tests/test-iconv-utf.c: Likewise.
32298         * tests/test-iconv.c: Likewise.
32299         * tests/test-idpriv-drop.c: Likewise.
32300         * tests/test-idpriv-droptemp.c: Likewise.
32301         * tests/test-inet_ntop.c: Likewise.
32302         * tests/test-inet_pton.c: Likewise.
32303         * tests/test-isblank.c: Likewise.
32304         * tests/test-isfinite.c: Likewise.
32305         * tests/test-isinf.c: Likewise.
32306         * tests/test-isnan.c: Likewise.
32307         * tests/test-isnand.h: Likewise.
32308         * tests/test-isnanf.h: Likewise.
32309         * tests/test-isnanl.h: Likewise.
32310         * tests/test-lchown.c: Likewise.
32311         * tests/test-ldexpl.c: Likewise.
32312         * tests/test-link.c: Likewise.
32313         * tests/test-linkat.c: Likewise.
32314         * tests/test-linked_list.c: Likewise.
32315         * tests/test-linkedhash_list.c: Likewise.
32316         * tests/test-localename.c: Likewise.
32317         * tests/test-lseek.c: Likewise.
32318         * tests/test-lstat.c: Likewise.
32319         * tests/test-mbmemcasecmp.c: Likewise.
32320         * tests/test-mbmemcasecoll.c: Likewise.
32321         * tests/test-mbrtowc.c: Likewise.
32322         * tests/test-mbscasecmp.c: Likewise.
32323         * tests/test-mbscasestr1.c: Likewise.
32324         * tests/test-mbscasestr2.c: Likewise.
32325         * tests/test-mbscasestr3.c: Likewise.
32326         * tests/test-mbscasestr4.c: Likewise.
32327         * tests/test-mbschr.c: Likewise.
32328         * tests/test-mbscspn.c: Likewise.
32329         * tests/test-mbsinit.c: Likewise.
32330         * tests/test-mbsncasecmp.c: Likewise.
32331         * tests/test-mbsnrtowcs.c: Likewise.
32332         * tests/test-mbspbrk.c: Likewise.
32333         * tests/test-mbspcasecmp.c: Likewise.
32334         * tests/test-mbsrchr.c: Likewise.
32335         * tests/test-mbsrtowcs.c: Likewise.
32336         * tests/test-mbsspn.c: Likewise.
32337         * tests/test-mbsstr1.c: Likewise.
32338         * tests/test-mbsstr2.c: Likewise.
32339         * tests/test-mbsstr3.c: Likewise.
32340         * tests/test-memchr.c: Likewise.
32341         * tests/test-memchr2.c: Likewise.
32342         * tests/test-memcmp.c: Likewise.
32343         * tests/test-memmem.c: Likewise.
32344         * tests/test-memrchr.c: Likewise.
32345         * tests/test-mkdir.c: Likewise.
32346         * tests/test-mkdirat.c: Likewise.
32347         * tests/test-mkfifo.c: Likewise.
32348         * tests/test-mkfifoat.c: Likewise.
32349         * tests/test-mknod.c: Likewise.
32350         * tests/test-nanosleep.c: Likewise.
32351         * tests/test-nl_langinfo.c: Likewise.
32352         * tests/test-obstack-printf.c: Likewise.
32353         * tests/test-open.c: Likewise.
32354         * tests/test-openat.c: Likewise.
32355         * tests/test-pipe-filter-gi1.c: Likewise.
32356         * tests/test-pipe-filter-gi2-main.c: Likewise.
32357         * tests/test-pipe-filter-ii1.c: Likewise.
32358         * tests/test-pipe-filter-ii2-main.c: Likewise.
32359         * tests/test-pipe2.c: Likewise.
32360         * tests/test-popen.h: Likewise.
32361         * tests/test-posixtm.c: Likewise.
32362         * tests/test-pread.c: Likewise.
32363         * tests/test-printf-frexp.c: Likewise.
32364         * tests/test-printf-frexpl.c: Likewise.
32365         * tests/test-printf-posix.c: Likewise.
32366         * tests/test-priv-set.c: Likewise.
32367         * tests/test-quotearg.c: Likewise.
32368         * tests/test-random_r.c: Likewise.
32369         * tests/test-rawmemchr.c: Likewise.
32370         * tests/test-rbtree_list.c: Likewise.
32371         * tests/test-rbtree_oset.c: Likewise.
32372         * tests/test-rbtreehash_list.c: Likewise.
32373         * tests/test-readlink.c: Likewise.
32374         * tests/test-remove.c: Likewise.
32375         * tests/test-rename.c: Likewise.
32376         * tests/test-renameat.c: Likewise.
32377         * tests/test-rmdir.c: Likewise.
32378         * tests/test-round1.c: Likewise.
32379         * tests/test-roundf1.c: Likewise.
32380         * tests/test-roundl.c: Likewise.
32381         * tests/test-safe-alloc.c: Likewise.
32382         * tests/test-sameacls.c: Likewise.
32383         * tests/test-set-mode-acl.c: Likewise.
32384         * tests/test-setenv.c: Likewise.
32385         * tests/test-sigaction.c: Likewise.
32386         * tests/test-signbit.c: Likewise.
32387         * tests/test-sleep.c: Likewise.
32388         * tests/test-snprintf-posix.c: Likewise.
32389         * tests/test-snprintf.c: Likewise.
32390         * tests/test-sprintf-posix.c: Likewise.
32391         * tests/test-stat-time.c: Likewise.
32392         * tests/test-stat.c: Likewise.
32393         * tests/test-strcasestr.c: Likewise.
32394         * tests/test-strchrnul.c: Likewise.
32395         * tests/test-strerror.c: Likewise.
32396         * tests/test-striconv.c: Likewise.
32397         * tests/test-striconveh.c: Likewise.
32398         * tests/test-striconveha.c: Likewise.
32399         * tests/test-strsignal.c: Likewise.
32400         * tests/test-strstr.c: Likewise.
32401         * tests/test-strtod.c: Likewise.
32402         * tests/test-strverscmp.c: Likewise.
32403         * tests/test-symlink.c: Likewise.
32404         * tests/test-symlinkat.c: Likewise.
32405         * tests/test-trunc1.c: Likewise.
32406         * tests/test-trunc2.c: Likewise.
32407         * tests/test-truncf1.c: Likewise.
32408         * tests/test-truncf2.c: Likewise.
32409         * tests/test-truncl.c: Likewise.
32410         * tests/test-uname.c: Likewise.
32411         * tests/test-unlink.c: Likewise.
32412         * tests/test-unlinkat.c: Likewise.
32413         * tests/test-unsetenv.c: Likewise.
32414         * tests/test-usleep.c: Likewise.
32415         * tests/test-utimens.c: Likewise.
32416         * tests/test-utimensat.c: Likewise.
32417         * tests/test-vasnprintf-posix.c: Likewise.
32418         * tests/test-vasnprintf-posix2.c: Likewise.
32419         * tests/test-vasnprintf.c: Likewise.
32420         * tests/test-vasprintf-posix.c: Likewise.
32421         * tests/test-vasprintf.c: Likewise.
32422         * tests/test-vdprintf-posix.c: Likewise.
32423         * tests/test-vfprintf-posix.c: Likewise.
32424         * tests/test-vprintf-posix.c: Likewise.
32425         * tests/test-vsnprintf-posix.c: Likewise.
32426         * tests/test-vsnprintf.c: Likewise.
32427         * tests/test-vsprintf-posix.c: Likewise.
32428         * tests/test-wcrtomb.c: Likewise.
32429         * tests/test-wcsnrtombs.c: Likewise.
32430         * tests/test-wcsrtombs.c: Likewise.
32431         * tests/test-wctype.c: Likewise.
32432         * tests/test-wcwidth.c: Likewise.
32433         * tests/test-xfprintf-posix.c: Likewise.
32434         * tests/test-xmemdup0.c: Likewise.
32435         * tests/test-xprintf-posix.c: Likewise.
32436         * tests/test-xvasprintf.c: Likewise.
32437         * tests/unicase/test-locale-language.c: Likewise.
32438         * tests/unicase/test-mapping-part1.h: Likewise.
32439         * tests/unicase/test-predicate-part1.h: Likewise.
32440         * tests/unicase/test-u8-casecmp.c: Likewise.
32441         * tests/unicase/test-u8-casecoll.c: Likewise.
32442         * tests/unicase/test-u8-casefold.c: Likewise.
32443         * tests/unicase/test-u8-is-cased.c: Likewise.
32444         * tests/unicase/test-u8-is-casefolded.c: Likewise.
32445         * tests/unicase/test-u8-is-lowercase.c: Likewise.
32446         * tests/unicase/test-u8-is-titlecase.c: Likewise.
32447         * tests/unicase/test-u8-is-uppercase.c: Likewise.
32448         * tests/unicase/test-u8-tolower.c: Likewise.
32449         * tests/unicase/test-u8-totitle.c: Likewise.
32450         * tests/unicase/test-u8-toupper.c: Likewise.
32451         * tests/unicase/test-u16-casecmp.c: Likewise.
32452         * tests/unicase/test-u16-casecoll.c: Likewise.
32453         * tests/unicase/test-u16-casefold.c: Likewise.
32454         * tests/unicase/test-u16-is-cased.c: Likewise.
32455         * tests/unicase/test-u16-is-casefolded.c: Likewise.
32456         * tests/unicase/test-u16-is-lowercase.c: Likewise.
32457         * tests/unicase/test-u16-is-titlecase.c: Likewise.
32458         * tests/unicase/test-u16-is-uppercase.c: Likewise.
32459         * tests/unicase/test-u16-tolower.c: Likewise.
32460         * tests/unicase/test-u16-totitle.c: Likewise.
32461         * tests/unicase/test-u16-toupper.c: Likewise.
32462         * tests/unicase/test-u32-casecmp.c: Likewise.
32463         * tests/unicase/test-u32-casecoll.c: Likewise.
32464         * tests/unicase/test-u32-casefold.c: Likewise.
32465         * tests/unicase/test-u32-is-cased.c: Likewise.
32466         * tests/unicase/test-u32-is-casefolded.c: Likewise.
32467         * tests/unicase/test-u32-is-lowercase.c: Likewise.
32468         * tests/unicase/test-u32-is-titlecase.c: Likewise.
32469         * tests/unicase/test-u32-is-uppercase.c: Likewise.
32470         * tests/unicase/test-u32-tolower.c: Likewise.
32471         * tests/unicase/test-u32-totitle.c: Likewise.
32472         * tests/unicase/test-u32-toupper.c: Likewise.
32473         * tests/unicase/test-ulc-casecmp.c: Likewise.
32474         * tests/unicase/test-ulc-casecoll.c: Likewise.
32475         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32476         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
32477         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32478         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32479         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
32480         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
32481         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32482         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32483         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32484         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
32485         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32486         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32487         * tests/unictype/test-bidi_byname.c: Likewise.
32488         * tests/unictype/test-bidi_name.c: Likewise.
32489         * tests/unictype/test-bidi_of.c: Likewise.
32490         * tests/unictype/test-bidi_test.c: Likewise.
32491         * tests/unictype/test-block_list.c: Likewise.
32492         * tests/unictype/test-block_of.c: Likewise.
32493         * tests/unictype/test-block_test.c: Likewise.
32494         * tests/unictype/test-categ_and.c: Likewise.
32495         * tests/unictype/test-categ_and_not.c: Likewise.
32496         * tests/unictype/test-categ_byname.c: Likewise.
32497         * tests/unictype/test-categ_name.c: Likewise.
32498         * tests/unictype/test-categ_none.c: Likewise.
32499         * tests/unictype/test-categ_of.c: Likewise.
32500         * tests/unictype/test-categ_or.c: Likewise.
32501         * tests/unictype/test-categ_test_withtable.c: Likewise.
32502         * tests/unictype/test-combining.c: Likewise.
32503         * tests/unictype/test-decdigit.c: Likewise.
32504         * tests/unictype/test-digit.c: Likewise.
32505         * tests/unictype/test-mirror.c: Likewise.
32506         * tests/unictype/test-numeric.c: Likewise.
32507         * tests/unictype/test-pr_byname.c: Likewise.
32508         * tests/unictype/test-pr_test.c: Likewise.
32509         * tests/unictype/test-predicate-part1.h: Likewise.
32510         * tests/unictype/test-scripts.c: Likewise.
32511         * tests/unictype/test-sy_c_ident.c: Likewise.
32512         * tests/unictype/test-sy_java_ident.c: Likewise.
32513         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
32514         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
32515         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
32516         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
32517         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
32518         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
32519         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
32520         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
32521         * tests/uninorm/test-canonical-decomposition.c: Likewise.
32522         * tests/uninorm/test-compat-decomposition.c: Likewise.
32523         * tests/uninorm/test-composition.c: Likewise.
32524         * tests/uninorm/test-decomposing-form.c: Likewise.
32525         * tests/uninorm/test-decomposition.c: Likewise.
32526         * tests/uninorm/test-u8-nfc.c: Likewise.
32527         * tests/uninorm/test-u8-nfd.c: Likewise.
32528         * tests/uninorm/test-u8-nfkc.c: Likewise.
32529         * tests/uninorm/test-u8-nfkd.c: Likewise.
32530         * tests/uninorm/test-u8-normcmp.c: Likewise.
32531         * tests/uninorm/test-u8-normcoll.c: Likewise.
32532         * tests/uninorm/test-u16-nfc.c: Likewise.
32533         * tests/uninorm/test-u16-nfd.c: Likewise.
32534         * tests/uninorm/test-u16-nfkc.c: Likewise.
32535         * tests/uninorm/test-u16-nfkd.c: Likewise.
32536         * tests/uninorm/test-u16-normcmp.c: Likewise.
32537         * tests/uninorm/test-u16-normcoll.c: Likewise.
32538         * tests/uninorm/test-u32-nfc.c: Likewise.
32539         * tests/uninorm/test-u32-nfd.c: Likewise.
32540         * tests/uninorm/test-u32-nfkc.c: Likewise.
32541         * tests/uninorm/test-u32-nfkd.c: Likewise.
32542         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32543         * tests/uninorm/test-u32-normcmp.c: Likewise.
32544         * tests/uninorm/test-u32-normcoll.c: Likewise.
32545         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
32546         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32547         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32548         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32549         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32550         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32551         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32552         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32553         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32554         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32555         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32556         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32557         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32558         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32559         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32560         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32561         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32562         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32563         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32564         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32565         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32566         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32567         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32568         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32569         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32570         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32571         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32572         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32573         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32574         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
32575         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
32576         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
32577         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
32578         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32579         * tests/uniwidth/test-u8-width.c: Likewise.
32580         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32581         * tests/uniwidth/test-u16-width.c: Likewise.
32582         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32583         * tests/uniwidth/test-u32-width.c: Likewise.
32584         * tests/uniwidth/test-uc_width.c: Likewise.
32585         * tests/uniwidth/test-uc_width2.c: Likewise.
32586         * modules/acl-tests (Files): Add tests/macros.h.
32587         * modules/areadlink-tests (Files): Likewise.
32588         * modules/areadlink-with-size-tests (Files): Likewise.
32589         * modules/areadlinkat-tests (Files): Likewise.
32590         * modules/areadlinkat-with-size-tests (Files): Likewise.
32591         * modules/argmatch-tests (Files): Likewise.
32592         * modules/argv-iter-tests (Files): Likewise.
32593         * modules/array-list-tests (Files): Likewise.
32594         * modules/array-mergesort-tests (Files): Likewise.
32595         * modules/array-oset-tests (Files): Likewise.
32596         * modules/avltree-list-tests (Files): Likewise.
32597         * modules/avltree-oset-tests (Files): Likewise.
32598         * modules/avltreehash-list-tests (Files): Likewise.
32599         * modules/base64-tests (Files): Likewise.
32600         * modules/binary-io-tests (Files): Likewise.
32601         * modules/bitrotate-tests (Files): Likewise.
32602         * modules/btowc-tests (Files): Likewise.
32603         * modules/byteswap-tests (Files): Likewise.
32604         * modules/c-ctype-tests (Files): Likewise.
32605         * modules/c-stack-tests (Files): Likewise.
32606         * modules/c-strcase-tests (Files): Likewise.
32607         * modules/c-strcasestr-tests (Files): Likewise.
32608         * modules/c-strstr-tests (Files): Likewise.
32609         * modules/canonicalize-lgpl-tests (Files): Likewise.
32610         * modules/canonicalize-tests (Files): Likewise.
32611         * modules/carray-list-tests (Files): Likewise.
32612         * modules/ceilf-tests (Files): Likewise.
32613         * modules/ceill-tests (Files): Likewise.
32614         * modules/chown-tests (Files): Likewise.
32615         * modules/cloexec-tests (Files): Likewise.
32616         * modules/copy-file-tests (Files): Likewise.
32617         * modules/count-one-bits-tests (Files): Likewise.
32618         * modules/dprintf-posix-tests (Files): Likewise.
32619         * modules/dup2-tests (Files): Likewise.
32620         * modules/dup3-tests (Files): Likewise.
32621         * modules/duplocale-tests (Files): Likewise.
32622         * modules/fbufmode-tests (Files): Likewise.
32623         * modules/fchdir-tests (Files): Likewise.
32624         * modules/fcntl-safer-tests (Files): Likewise.
32625         * modules/fcntl-tests (Files): Likewise.
32626         * modules/fdopendir-tests (Files): Likewise.
32627         * modules/fdutimensat-tests (Files): Likewise.
32628         * modules/fflush-tests (Files): Likewise.
32629         * modules/filevercmp-tests (Files): Likewise.
32630         * modules/flock-tests (Files): Likewise.
32631         * modules/floorf-tests (Files): Likewise.
32632         * modules/floorl-tests (Files): Likewise.
32633         * modules/fnmatch-tests (Files): Likewise.
32634         * modules/fopen-safer-tests (Files): Likewise.
32635         * modules/fopen-tests (Files): Likewise.
32636         * modules/fpending-tests (Files): Likewise.
32637         * modules/fprintf-posix-tests (Files): Likewise.
32638         * modules/fpurge-tests (Files): Likewise.
32639         * modules/freadable-tests (Files): Likewise.
32640         * modules/freadahead-tests (Files): Likewise.
32641         * modules/freading-tests (Files): Likewise.
32642         * modules/freadptr-tests (Files): Likewise.
32643         * modules/freadseek-tests (Files): Likewise.
32644         * modules/freopen-tests (Files): Likewise.
32645         * modules/frexp-nolibm-tests (Files): Likewise.
32646         * modules/frexp-tests (Files): Likewise.
32647         * modules/frexpl-nolibm-tests (Files): Likewise.
32648         * modules/frexpl-tests (Files): Likewise.
32649         * modules/fseek-tests (Files): Likewise.
32650         * modules/fseeko-tests (Files): Likewise.
32651         * modules/fstrcmp-tests (Files): Likewise.
32652         * modules/fsync-tests (Files): Likewise.
32653         * modules/ftell-tests (Files): Likewise.
32654         * modules/ftello-tests (Files): Likewise.
32655         * modules/func-tests (Files): Likewise.
32656         * modules/futimens-tests (Files): Likewise.
32657         * modules/fwritable-tests (Files): Likewise.
32658         * modules/fwriting-tests (Files): Likewise.
32659         * modules/getcwd-tests (Files): Likewise.
32660         * modules/getdate-tests (Files): Likewise.
32661         * modules/getdelim-tests (Files): Likewise.
32662         * modules/getdtablesize-tests (Files): Likewise.
32663         * modules/getgroups-tests (Files): Likewise.
32664         * modules/getline-tests (Files): Likewise.
32665         * modules/getndelim2-tests (Files): Likewise.
32666         * modules/glob-tests (Files): Likewise.
32667         * modules/hash-tests (Files): Likewise.
32668         * modules/i-ring-tests (Files): Likewise.
32669         * modules/iconv-tests (Files): Likewise.
32670         * modules/iconv_open-utf-tests (Files): Likewise.
32671         * modules/idpriv-drop-tests (Files): Likewise.
32672         * modules/idpriv-droptemp-tests (Files): Likewise.
32673         * modules/inet_ntop-tests (Files): Likewise.
32674         * modules/inet_pton-tests (Files): Likewise.
32675         * modules/isblank-tests (Files): Likewise.
32676         * modules/isfinite-tests (Files): Likewise.
32677         * modules/isinf-tests (Files): Likewise.
32678         * modules/isnan-tests (Files): Likewise.
32679         * modules/isnand-nolibm-tests (Files): Likewise.
32680         * modules/isnand-tests (Files): Likewise.
32681         * modules/isnanf-nolibm-tests (Files): Likewise.
32682         * modules/isnanf-tests (Files): Likewise.
32683         * modules/isnanl-nolibm-tests (Files): Likewise.
32684         * modules/isnanl-tests (Files): Likewise.
32685         * modules/lchown-tests (Files): Likewise.
32686         * modules/ldexpl-tests (Files): Likewise.
32687         * modules/link-tests (Files): Likewise.
32688         * modules/linkat-tests (Files): Likewise.
32689         * modules/linked-list-tests (Files): Likewise.
32690         * modules/linkedhash-list-tests (Files): Likewise.
32691         * modules/localename-tests (Files): Likewise.
32692         * modules/lseek-tests (Files): Likewise.
32693         * modules/lstat-tests (Files): Likewise.
32694         * modules/mbmemcasecmp-tests (Files): Likewise.
32695         * modules/mbmemcasecoll-tests (Files): Likewise.
32696         * modules/mbrtowc-tests (Files): Likewise.
32697         * modules/mbscasecmp-tests (Files): Likewise.
32698         * modules/mbscasestr-tests (Files): Likewise.
32699         * modules/mbschr-tests (Files): Likewise.
32700         * modules/mbscspn-tests (Files): Likewise.
32701         * modules/mbsinit-tests (Files): Likewise.
32702         * modules/mbsncasecmp-tests (Files): Likewise.
32703         * modules/mbsnrtowcs-tests (Files): Likewise.
32704         * modules/mbspbrk-tests (Files): Likewise.
32705         * modules/mbspcasecmp-tests (Files): Likewise.
32706         * modules/mbsrchr-tests (Files): Likewise.
32707         * modules/mbsrtowcs-tests (Files): Likewise.
32708         * modules/mbsspn-tests (Files): Likewise.
32709         * modules/mbsstr-tests (Files): Likewise.
32710         * modules/memchr-tests (Files): Likewise.
32711         * modules/memchr2-tests (Files): Likewise.
32712         * modules/memcmp-tests (Files): Likewise.
32713         * modules/memmem-tests (Files): Likewise.
32714         * modules/memrchr-tests (Files): Likewise.
32715         * modules/mkdir-tests (Files): Likewise.
32716         * modules/mkfifo-tests (Files): Likewise.
32717         * modules/mkfifoat-tests (Files): Likewise.
32718         * modules/mknod-tests (Files): Likewise.
32719         * modules/nanosleep-tests (Files): Likewise.
32720         * modules/nl_langinfo-tests (Files): Likewise.
32721         * modules/obstack-printf-tests (Files): Likewise.
32722         * modules/open-tests (Files): Likewise.
32723         * modules/openat-tests (Files): Likewise.
32724         * modules/pipe-filter-gi-tests (Files): Likewise.
32725         * modules/pipe-filter-ii-tests (Files): Likewise.
32726         * modules/pipe2-tests (Files): Likewise.
32727         * modules/popen-safer-tests (Files): Likewise.
32728         * modules/popen-tests (Files): Likewise.
32729         * modules/posixtm-tests (Files): Likewise.
32730         * modules/pread-tests (Files): Likewise.
32731         * modules/printf-frexp-tests (Files): Likewise.
32732         * modules/printf-frexpl-tests (Files): Likewise.
32733         * modules/printf-posix-tests (Files): Likewise.
32734         * modules/priv-set-tests (Files): Likewise.
32735         * modules/quotearg-tests (Files): Likewise.
32736         * modules/random_r-tests (Files): Likewise.
32737         * modules/rawmemchr-tests (Files): Likewise.
32738         * modules/rbtree-list-tests (Files): Likewise.
32739         * modules/rbtree-oset-tests (Files): Likewise.
32740         * modules/rbtreehash-list-tests (Files): Likewise.
32741         * modules/readlink-tests (Files): Likewise.
32742         * modules/remove-tests (Files): Likewise.
32743         * modules/rename-tests (Files): Likewise.
32744         * modules/renameat-tests (Files): Likewise.
32745         * modules/rmdir-tests (Files): Likewise.
32746         * modules/round-tests (Files): Likewise.
32747         * modules/roundf-tests (Files): Likewise.
32748         * modules/roundl-tests (Files): Likewise.
32749         * modules/safe-alloc-tests (Files): Likewise.
32750         * modules/setenv-tests (Files): Likewise.
32751         * modules/sigaction-tests (Files): Likewise.
32752         * modules/signbit-tests (Files): Likewise.
32753         * modules/sleep-tests (Files): Likewise.
32754         * modules/snprintf-posix-tests (Files): Likewise.
32755         * modules/snprintf-tests (Files): Likewise.
32756         * modules/sprintf-posix-tests (Files): Likewise.
32757         * modules/stat-tests (Files): Likewise.
32758         * modules/stat-time-tests (Files): Likewise.
32759         * modules/strcasestr-tests (Files): Likewise.
32760         * modules/strchrnul-tests (Files): Likewise.
32761         * modules/strerror-tests (Files): Likewise.
32762         * modules/striconv-tests (Files): Likewise.
32763         * modules/striconveh-tests (Files): Likewise.
32764         * modules/striconveha-tests (Files): Likewise.
32765         * modules/strsignal-tests (Files): Likewise.
32766         * modules/strstr-tests (Files): Likewise.
32767         * modules/strtod-tests (Files): Likewise.
32768         * modules/strverscmp-tests (Files): Likewise.
32769         * modules/symlink-tests (Files): Likewise.
32770         * modules/symlinkat-tests (Files): Likewise.
32771         * modules/trunc-tests (Files): Likewise.
32772         * modules/truncf-tests (Files): Likewise.
32773         * modules/truncl-tests (Files): Likewise.
32774         * modules/uname-tests (Files): Likewise.
32775         * modules/unicase/cased-tests (Files): Likewise.
32776         * modules/unicase/ignorable-tests (Files): Likewise.
32777         * modules/unicase/locale-language-tests (Files): Likewise.
32778         * modules/unicase/tolower-tests (Files): Likewise.
32779         * modules/unicase/totitle-tests (Files): Likewise.
32780         * modules/unicase/toupper-tests (Files): Likewise.
32781         * modules/unicase/u8-casecmp-tests (Files): Likewise.
32782         * modules/unicase/u8-casecoll-tests (Files): Likewise.
32783         * modules/unicase/u8-casefold-tests (Files): Likewise.
32784         * modules/unicase/u8-is-cased-tests (Files): Likewise.
32785         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
32786         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
32787         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
32788         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
32789         * modules/unicase/u8-tolower-tests (Files): Likewise.
32790         * modules/unicase/u8-totitle-tests (Files): Likewise.
32791         * modules/unicase/u8-toupper-tests (Files): Likewise.
32792         * modules/unicase/u16-casecmp-tests (Files): Likewise.
32793         * modules/unicase/u16-casecoll-tests (Files): Likewise.
32794         * modules/unicase/u16-casefold-tests (Files): Likewise.
32795         * modules/unicase/u16-is-cased-tests (Files): Likewise.
32796         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
32797         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
32798         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
32799         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
32800         * modules/unicase/u16-tolower-tests (Files): Likewise.
32801         * modules/unicase/u16-totitle-tests (Files): Likewise.
32802         * modules/unicase/u16-toupper-tests (Files): Likewise.
32803         * modules/unicase/u32-casecmp-tests (Files): Likewise.
32804         * modules/unicase/u32-casecoll-tests (Files): Likewise.
32805         * modules/unicase/u32-casefold-tests (Files): Likewise.
32806         * modules/unicase/u32-is-cased-tests (Files): Likewise.
32807         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
32808         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
32809         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
32810         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
32811         * modules/unicase/u32-tolower-tests (Files): Likewise.
32812         * modules/unicase/u32-totitle-tests (Files): Likewise.
32813         * modules/unicase/u32-toupper-tests (Files): Likewise.
32814         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
32815         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
32816         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
32817         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
32818         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
32819         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
32820         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
32821         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
32822         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
32823         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
32824         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
32825         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
32826         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
32827         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
32828         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
32829         * modules/unictype/bidicategory-name-tests (Files): Likewise.
32830         * modules/unictype/bidicategory-of-tests (Files): Likewise.
32831         * modules/unictype/bidicategory-test-tests (Files): Likewise.
32832         * modules/unictype/block-list-tests (Files): Likewise.
32833         * modules/unictype/block-of-tests (Files): Likewise.
32834         * modules/unictype/block-test-tests (Files): Likewise.
32835         * modules/unictype/category-C-tests (Files): Likewise.
32836         * modules/unictype/category-Cc-tests (Files): Likewise.
32837         * modules/unictype/category-Cf-tests (Files): Likewise.
32838         * modules/unictype/category-Cn-tests (Files): Likewise.
32839         * modules/unictype/category-Co-tests (Files): Likewise.
32840         * modules/unictype/category-Cs-tests (Files): Likewise.
32841         * modules/unictype/category-L-tests (Files): Likewise.
32842         * modules/unictype/category-Ll-tests (Files): Likewise.
32843         * modules/unictype/category-Lm-tests (Files): Likewise.
32844         * modules/unictype/category-Lo-tests (Files): Likewise.
32845         * modules/unictype/category-Lt-tests (Files): Likewise.
32846         * modules/unictype/category-Lu-tests (Files): Likewise.
32847         * modules/unictype/category-M-tests (Files): Likewise.
32848         * modules/unictype/category-Mc-tests (Files): Likewise.
32849         * modules/unictype/category-Me-tests (Files): Likewise.
32850         * modules/unictype/category-Mn-tests (Files): Likewise.
32851         * modules/unictype/category-N-tests (Files): Likewise.
32852         * modules/unictype/category-Nd-tests (Files): Likewise.
32853         * modules/unictype/category-Nl-tests (Files): Likewise.
32854         * modules/unictype/category-No-tests (Files): Likewise.
32855         * modules/unictype/category-P-tests (Files): Likewise.
32856         * modules/unictype/category-Pc-tests (Files): Likewise.
32857         * modules/unictype/category-Pd-tests (Files): Likewise.
32858         * modules/unictype/category-Pe-tests (Files): Likewise.
32859         * modules/unictype/category-Pf-tests (Files): Likewise.
32860         * modules/unictype/category-Pi-tests (Files): Likewise.
32861         * modules/unictype/category-Po-tests (Files): Likewise.
32862         * modules/unictype/category-Ps-tests (Files): Likewise.
32863         * modules/unictype/category-S-tests (Files): Likewise.
32864         * modules/unictype/category-Sc-tests (Files): Likewise.
32865         * modules/unictype/category-Sk-tests (Files): Likewise.
32866         * modules/unictype/category-Sm-tests (Files): Likewise.
32867         * modules/unictype/category-So-tests (Files): Likewise.
32868         * modules/unictype/category-Z-tests (Files): Likewise.
32869         * modules/unictype/category-Zl-tests (Files): Likewise.
32870         * modules/unictype/category-Zp-tests (Files): Likewise.
32871         * modules/unictype/category-Zs-tests (Files): Likewise.
32872         * modules/unictype/category-and-not-tests (Files): Likewise.
32873         * modules/unictype/category-and-tests (Files): Likewise.
32874         * modules/unictype/category-byname-tests (Files): Likewise.
32875         * modules/unictype/category-name-tests (Files): Likewise.
32876         * modules/unictype/category-none-tests (Files): Likewise.
32877         * modules/unictype/category-of-tests (Files): Likewise.
32878         * modules/unictype/category-or-tests (Files): Likewise.
32879         * modules/unictype/category-test-withtable-tests (Files): Likewise.
32880         * modules/unictype/combining-class-tests (Files): Likewise.
32881         * modules/unictype/ctype-alnum-tests (Files): Likewise.
32882         * modules/unictype/ctype-alpha-tests (Files): Likewise.
32883         * modules/unictype/ctype-blank-tests (Files): Likewise.
32884         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
32885         * modules/unictype/ctype-digit-tests (Files): Likewise.
32886         * modules/unictype/ctype-graph-tests (Files): Likewise.
32887         * modules/unictype/ctype-lower-tests (Files): Likewise.
32888         * modules/unictype/ctype-print-tests (Files): Likewise.
32889         * modules/unictype/ctype-punct-tests (Files): Likewise.
32890         * modules/unictype/ctype-space-tests (Files): Likewise.
32891         * modules/unictype/ctype-upper-tests (Files): Likewise.
32892         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
32893         * modules/unictype/decimal-digit-tests (Files): Likewise.
32894         * modules/unictype/digit-tests (Files): Likewise.
32895         * modules/unictype/mirror-tests (Files): Likewise.
32896         * modules/unictype/numeric-tests (Files): Likewise.
32897         * modules/unictype/property-alphabetic-tests (Files): Likewise.
32898         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
32899         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
32900         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
32901         Likewise.
32902         * modules/unictype/property-bidi-block-separator-tests (Files):
32903         Likewise.
32904         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
32905         Likewise.
32906         * modules/unictype/property-bidi-common-separator-tests (Files):
32907         Likewise.
32908         * modules/unictype/property-bidi-control-tests (Files): Likewise.
32909         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
32910         Likewise.
32911         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
32912         Likewise.
32913         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
32914         Likewise.
32915         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
32916         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
32917         Likewise.
32918         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
32919         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
32920         Likewise.
32921         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
32922         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
32923         * modules/unictype/property-bidi-segment-separator-tests (Files):
32924         Likewise.
32925         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
32926         * modules/unictype/property-byname-tests (Files): Likewise.
32927         * modules/unictype/property-combining-tests (Files): Likewise.
32928         * modules/unictype/property-composite-tests (Files): Likewise.
32929         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
32930         * modules/unictype/property-dash-tests (Files): Likewise.
32931         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
32932         * modules/unictype/property-default-ignorable-code-point-tests (Files):
32933         Likewise.
32934         * modules/unictype/property-deprecated-tests (Files): Likewise.
32935         * modules/unictype/property-diacritic-tests (Files): Likewise.
32936         * modules/unictype/property-extender-tests (Files): Likewise.
32937         * modules/unictype/property-format-control-tests (Files): Likewise.
32938         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
32939         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
32940         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
32941         * modules/unictype/property-hex-digit-tests (Files): Likewise.
32942         * modules/unictype/property-hyphen-tests (Files): Likewise.
32943         * modules/unictype/property-id-continue-tests (Files): Likewise.
32944         * modules/unictype/property-id-start-tests (Files): Likewise.
32945         * modules/unictype/property-ideographic-tests (Files): Likewise.
32946         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
32947         * modules/unictype/property-ids-trinary-operator-tests (Files):
32948         Likewise.
32949         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
32950         * modules/unictype/property-iso-control-tests (Files): Likewise.
32951         * modules/unictype/property-join-control-tests (Files): Likewise.
32952         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
32953         * modules/unictype/property-line-separator-tests (Files): Likewise.
32954         * modules/unictype/property-logical-order-exception-tests (Files):
32955         Likewise.
32956         * modules/unictype/property-lowercase-tests (Files): Likewise.
32957         * modules/unictype/property-math-tests (Files): Likewise.
32958         * modules/unictype/property-non-break-tests (Files): Likewise.
32959         * modules/unictype/property-not-a-character-tests (Files): Likewise.
32960         * modules/unictype/property-numeric-tests (Files): Likewise.
32961         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
32962         * modules/unictype/property-other-default-ignorable-code-point-tests
32963         (Files): Likewise.
32964         * modules/unictype/property-other-grapheme-extend-tests (Files):
32965         Likewise.
32966         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
32967         * modules/unictype/property-other-id-start-tests (Files): Likewise.
32968         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
32969         * modules/unictype/property-other-math-tests (Files): Likewise.
32970         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
32971         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
32972         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
32973         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
32974         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
32975         * modules/unictype/property-private-use-tests (Files): Likewise.
32976         * modules/unictype/property-punctuation-tests (Files): Likewise.
32977         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
32978         * modules/unictype/property-radical-tests (Files): Likewise.
32979         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
32980         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
32981         * modules/unictype/property-space-tests (Files): Likewise.
32982         * modules/unictype/property-terminal-punctuation-tests (Files):
32983         Likewise.
32984         * modules/unictype/property-test-tests (Files): Likewise.
32985         * modules/unictype/property-titlecase-tests (Files): Likewise.
32986         * modules/unictype/property-unassigned-code-value-tests (Files):
32987         Likewise.
32988         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
32989         * modules/unictype/property-uppercase-tests (Files): Likewise.
32990         * modules/unictype/property-variation-selector-tests (Files): Likewise.
32991         * modules/unictype/property-white-space-tests (Files): Likewise.
32992         * modules/unictype/property-xid-continue-tests (Files): Likewise.
32993         * modules/unictype/property-xid-start-tests (Files): Likewise.
32994         * modules/unictype/property-zero-width-tests (Files): Likewise.
32995         * modules/unictype/scripts-tests (Files): Likewise.
32996         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
32997         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
32998         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
32999         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
33000         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
33001         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
33002         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
33003         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
33004         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
33005         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
33006         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
33007         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
33008         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
33009         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
33010         * modules/uninorm/composition-tests (Files): Likewise.
33011         * modules/uninorm/decomposing-form-tests (Files): Likewise.
33012         * modules/uninorm/decomposition-tests (Files): Likewise.
33013         * modules/uninorm/filter-tests (Files): Likewise.
33014         * modules/uninorm/nfc-tests (Files): Likewise.
33015         * modules/uninorm/nfd-tests (Files): Likewise.
33016         * modules/uninorm/nfkc-tests (Files): Likewise.
33017         * modules/uninorm/nfkd-tests (Files): Likewise.
33018         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
33019         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
33020         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
33021         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
33022         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
33023         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
33024         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
33025         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33026         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
33027         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
33028         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
33029         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
33030         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33031         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
33032         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
33033         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
33034         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
33035         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33036         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
33037         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
33038         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
33039         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
33040         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33041         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
33042         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
33043         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
33044         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
33045         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
33046         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
33047         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
33048         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
33049         * modules/uniwidth/u8-width-tests (Files): Likewise.
33050         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
33051         * modules/uniwidth/u16-width-tests (Files): Likewise.
33052         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
33053         * modules/uniwidth/u32-width-tests (Files): Likewise.
33054         * modules/uniwidth/width-tests (Files): Likewise.
33055         * modules/unlink-tests (Files): Likewise.
33056         * modules/unsetenv-tests (Files): Likewise.
33057         * modules/usleep-tests (Files): Likewise.
33058         * modules/utimens-tests (Files): Likewise.
33059         * modules/utimensat-tests (Files): Likewise.
33060         * modules/vasnprintf-posix-tests (Files): Likewise.
33061         * modules/vasnprintf-tests (Files): Likewise.
33062         * modules/vasprintf-posix-tests (Files): Likewise.
33063         * modules/vasprintf-tests (Files): Likewise.
33064         * modules/vdprintf-posix-tests (Files): Likewise.
33065         * modules/vfprintf-posix-tests (Files): Likewise.
33066         * modules/vprintf-posix-tests (Files): Likewise.
33067         * modules/vsnprintf-posix-tests (Files): Likewise.
33068         * modules/vsnprintf-tests (Files): Likewise.
33069         * modules/vsprintf-posix-tests (Files): Likewise.
33070         * modules/wcrtomb-tests (Files): Likewise.
33071         * modules/wcsnrtombs-tests (Files): Likewise.
33072         * modules/wcsrtombs-tests (Files): Likewise.
33073         * modules/wctype-tests (Files): Likewise.
33074         * modules/wcwidth-tests (Files): Likewise.
33075         * modules/xmemdup0-tests (Files): Likewise.
33076         * modules/xprintf-posix-tests (Files): Likewise.
33077         * modules/xvasprintf-tests (Files): Likewise.
33078
33079 2009-12-24  Eric Blake  <ebb9@byu.net>
33080
33081         test-nanosleep: fix typo
33082         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
33083         patch.
33084         Reported by Bruno Haible.
33085
33086 2009-12-24  Bruno Haible  <bruno@clisp.org>
33087
33088         Reduce namespace pollution on glibc systems.
33089         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
33090         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
33091         systems.
33092         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
33093         <getopt.h> on glibc systems.
33094         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
33095         systems.
33096         * lib/fcntl.c: Include <unistd.h> here instead.
33097
33098 2009-12-24  Bruno Haible  <bruno@clisp.org>
33099
33100         * lib/stdlib.in.h (includes): Fix typo in today's commit.
33101
33102 2009-12-24  Eric Blake  <ebb9@byu.net>
33103
33104         tests: add signature checks
33105         * tests/signature.h (SIGNATURE_CHECK): New file.
33106         * modules/atexit-tests (Files): Use it.
33107         * modules/btowc-tests (Files): Likewise.
33108         * modules/canonicalize-lgpl-tests (Files): Likewise.
33109         * modules/ceilf-tests (Files): Likewise.
33110         * modules/ceill-tests (Files): Likewise.
33111         * modules/chown-tests (Files): Likewise.
33112         * modules/dprintf-posix-tests (Files): Likewise.
33113         * modules/dup2-tests (Files): Likewise.
33114         * modules/dup3-tests (Files): Likewise.
33115         * modules/duplocale-tests (Files): Likewise.
33116         * modules/fchdir-tests (Files): Likewise.
33117         * modules/fcntl-tests (Files): Likewise.
33118         * modules/fdopendir-tests (Files): Likewise.
33119         * modules/fflush-tests (Files): Likewise.
33120         * modules/flock-tests (Files): Likewise.
33121         * modules/floorf-tests (Files): Likewise.
33122         * modules/floorl-tests (Files): Likewise.
33123         * modules/fnmatch-tests (Files): Likewise.
33124         * modules/fopen-tests (Files): Likewise.
33125         * modules/fprintf-posix-tests (Files): Likewise.
33126         * modules/freopen-tests (Files): Likewise.
33127         * modules/frexp-nolibm-tests (Files): Likewise.
33128         * modules/frexp-tests (Files): Likewise.
33129         * modules/frexpl-nolibm-tests (Files): Likewise.
33130         * modules/frexpl-tests (Files): Likewise.
33131         * modules/fseek-tests (Files): Likewise.
33132         * modules/fseeko-tests (Files): Likewise.
33133         * modules/fsync-tests (Files): Likewise.
33134         * modules/ftell-tests (Files): Likewise.
33135         * modules/ftello-tests (Files): Likewise.
33136         * modules/futimens-tests (Files): Likewise.
33137         * modules/getaddrinfo-tests (Files): Likewise.
33138         * modules/getcwd-tests (Files): Likewise.
33139         * modules/getdelim-tests (Files): Likewise.
33140         * modules/getdtablesize-tests (Files): Likewise.
33141         * modules/getgroups-tests (Files): Likewise.
33142         * modules/gethostname-tests (Files): Likewise.
33143         * modules/getline-tests (Files): Likewise.
33144         * modules/getopt-posix-tests (Files): Likewise.
33145         * modules/gettimeofday-tests (Files): Likewise.
33146         * modules/glob-tests (Files): Likewise.
33147         * modules/iconv-tests (Files): Likewise.
33148         * modules/inet_ntop-tests (Files): Likewise.
33149         * modules/inet_pton-tests (Files): Likewise.
33150         * modules/isblank-tests (Files): Likewise.
33151         * modules/lchown-tests (Files): Likewise.
33152         * modules/ldexpl-tests (Files): Likewise.
33153         * modules/link-tests (Files): Likewise.
33154         * modules/linkat-tests (Files): Likewise.
33155         * modules/lseek-tests (Files): Likewise.
33156         * modules/lstat-tests (Files): Likewise.
33157         * modules/mbrtowc-tests (Files): Likewise.
33158         * modules/mbsinit-tests (Files): Likewise.
33159         * modules/mbsnrtowcs-tests (Files): Likewise.
33160         * modules/mbsrtowcs-tests (Files): Likewise.
33161         * modules/memchr-tests (Files): Likewise.
33162         * modules/memcmp-tests (Files): Likewise.
33163         * modules/memmem-tests (Files): Likewise.
33164         * modules/memrchr-tests (Files): Likewise.
33165         * modules/mkdir-tests (Files): Likewise.
33166         * modules/mkfifo-tests (Files): Likewise.
33167         * modules/mkfifoat-tests (Files): Likewise.
33168         * modules/mknod-tests (Files): Likewise.
33169         * modules/nanosleep-tests (Files): Likewise.
33170         * modules/nl_langinfo-tests (Files): Likewise.
33171         * modules/obstack-printf-tests (Files): Likewise.
33172         * modules/open-tests (Files): Likewise.
33173         * modules/openat-tests (Files): Likewise.
33174         * modules/perror-tests (Files): Likewise.
33175         * modules/pipe2-tests (Files): Likewise.
33176         * modules/poll-tests (Files): Likewise.
33177         * modules/popen-tests (Files): Likewise.
33178         * modules/posix_spawn-tests (Files): Likewise.
33179         * modules/posix_spawnp-tests (Files): Likewise.
33180         * modules/pread-tests (Files): Likewise.
33181         * modules/printf-posix-tests (Files): Likewise.
33182         * modules/pty-tests (Files): Likewise.
33183         * modules/random_r-tests (Files): Likewise.
33184         * modules/rawmemchr-tests (Files): Likewise.
33185         * modules/readlink-tests (Files): Likewise.
33186         * modules/remove-tests (Files): Likewise.
33187         * modules/rename-tests (Files): Likewise.
33188         * modules/renameat-tests (Files): Likewise.
33189         * modules/rmdir-tests (Files): Likewise.
33190         * modules/round-tests (Files): Likewise.
33191         * modules/roundf-tests (Files): Likewise.
33192         * modules/roundl-tests (Files): Likewise.
33193         * modules/select-tests (Files): Likewise.
33194         * modules/setenv-tests (Files): Likewise.
33195         * modules/sigaction-tests (Files): Likewise.
33196         * modules/sleep-tests (Files): Likewise.
33197         * modules/snprintf-posix-tests (Files): Likewise.
33198         * modules/snprintf-tests (Files): Likewise.
33199         * modules/sprintf-posix-tests (Files): Likewise.
33200         * modules/stat-tests (Files): Likewise.
33201         * modules/strcasestr-tests (Files): Likewise.
33202         * modules/strchrnul-tests (Files): Likewise.
33203         * modules/strerror-tests (Files): Likewise.
33204         * modules/strsignal-tests (Files): Likewise.
33205         * modules/strstr-tests (Files): Likewise.
33206         * modules/strtod-tests (Files): Likewise.
33207         * modules/strverscmp-tests (Files): Likewise.
33208         * modules/symlink-tests (Files): Likewise.
33209         * modules/symlinkat-tests (Files): Likewise.
33210         * modules/times-tests (Files): Likewise.
33211         * modules/trunc-tests (Files): Likewise.
33212         * modules/truncf-tests (Files): Likewise.
33213         * modules/truncl-tests (Files): Likewise.
33214         * modules/tsearch-tests (Files): Likewise.
33215         * modules/uname-tests (Files): Likewise.
33216         * modules/unlink-tests (Files): Likewise.
33217         * modules/unsetenv-tests (Files): Likewise.
33218         * modules/usleep-tests (Files): Likewise.
33219         * modules/utimensat-tests (Files): Likewise.
33220         * modules/vasprintf-tests (Files): Likewise.
33221         * modules/vdprintf-posix-tests (Files): Likewise.
33222         * modules/vfprintf-posix-tests (Files): Likewise.
33223         * modules/vprintf-posix-tests (Files): Likewise.
33224         * modules/vsnprintf-posix-tests (Files): Likewise.
33225         * modules/vsnprintf-tests (Files): Likewise.
33226         * modules/vsprintf-posix-tests (Files): Likewise.
33227         * modules/wcrtomb-tests (Files): Likewise.
33228         * modules/wcsnrtombs-tests (Files): Likewise.
33229         * modules/wcsrtombs-tests (Files): Likewise.
33230         * modules/wcwidth-tests (Files): Likewise.
33231         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
33232         * tests/test-isinf.c (isinf): Likewise.
33233         * tests/test-isnan.c (isnan): Likewise.
33234         * tests/test-signbit.c (signbit): Likewise.
33235         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
33236         declaration, either as macro or with correct signature.
33237         (select): Ensure function under test is declared with correct
33238         signature in correct header.
33239         * tests/test-atexit.c (atexit): Likewise.
33240         * tests/test-btowc.c (btowc): Likewise.
33241         * tests/test-canonicalize-lgpl.c (realpath)
33242         (canonicalize_file_name): Likewise.
33243         * tests/test-ceilf1.c (ceilf): Likewise.
33244         * tests/test-ceill.c (ceill): Likewise.
33245         * tests/test-chown.c (chown): Likewise.
33246         * tests/test-dprintf-posix.c (dprintf): Likewise.
33247         * tests/test-dup2.c (dup2): Likewise.
33248         * tests/test-dup3.c (dup3): Likewise.
33249         * tests/test-duplocale.c (duplocale): Likewise.
33250         * tests/test-fchdir.c (fchdir): Likewise.
33251         * tests/test-fchownat.c (fchownat): Likewise.
33252         * tests/test-fcntl.c (fcntl): Likewise.
33253         * tests/test-fdopendir.c (fdopendir): Likewise.
33254         * tests/test-fflush.c (fflush): Likewise.
33255         * tests/test-flock.c (flock): Likewise.
33256         * tests/test-floorf1.c (floorf): Likewise.
33257         * tests/test-floorl.c (floorl): Likewise.
33258         * tests/test-fnmatch.c (fnmatch): Likewise.
33259         * tests/test-fopen.c (fopen): Likewise.
33260         * tests/test-fprintf-posix.c (fprintf): Likewise.
33261         * tests/test-freopen.c (freopen): Likewise.
33262         * tests/test-frexp.c (frexp): Likewise.
33263         * tests/test-frexpl.c (frexpl): Likewise.
33264         * tests/test-fseek.c (fseek): Likewise.
33265         * tests/test-fseeko.c (fseeko): Likewise.
33266         * tests/test-fstatat.c (fstatat): Likewise.
33267         * tests/test-fsync.c (fsync): Likewise.
33268         * tests/test-ftell.c (ftell): Likewise.
33269         * tests/test-ftello.c (ftello): Likewise.
33270         * tests/test-futimens.c (futimens): Likewise.
33271         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
33272         (gai_strerror): Likewise.
33273         * tests/test-getcwd.c (getcwd): Likewise.
33274         * tests/test-getdelim.c (getdelim): Likewise.
33275         * tests/test-getdtablesize.c (getdtablesize): Likewise.
33276         * tests/test-getgroups.c (getgroups): Likewise.
33277         * tests/test-gethostname.c (gethostname): Likewise.
33278         * tests/test-getline.c (getline): Likewise.
33279         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
33280         Likewise.
33281         * tests/test-gettimeofday.c (gettimeofday): Likewise.
33282         * tests/test-glob.c (glob, globfree): Likewise.
33283         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
33284         * tests/test-inet_ntop.c (inet_ntop): Likewise.
33285         * tests/test-inet_pton.c (inet_pton): Likewise.
33286         * tests/test-isblank.c (isblank): Likewise.
33287         * tests/test-lchown.c (lchown): Likewise.
33288         * tests/test-ldexpl.c (ldexpl): Likewise.
33289         * tests/test-link.c (link): Likewise.
33290         * tests/test-linkat.c (linkat): Likewise.
33291         * tests/test-lseek.c (lseek): Likewise.
33292         * tests/test-lstat.c (lstat): Likewise.
33293         * tests/test-mbrtowc.c (mbrtowc): Likewise.
33294         * tests/test-mbsinit.c (mbsinit): Likewise.
33295         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
33296         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
33297         * tests/test-memchr.c (memchr): Likewise.
33298         * tests/test-memcmp.c (memcmp): Likewise.
33299         * tests/test-memmem.c (memmem): Likewise.
33300         * tests/test-memrchr.c (memrchr): Likewise.
33301         * tests/test-mkdir.c (mkdir): Likewise.
33302         * tests/test-mkdirat.c (mkdirat): Likewise.
33303         * tests/test-mkfifo.c (mkfifo): Likewise.
33304         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
33305         * tests/test-mknod.c (mknod): Likewise.
33306         * tests/test-nanosleep.c (nanosleep): Likewise.
33307         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
33308         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
33309         Likewise.
33310         * tests/test-open.c (open): Likewise.
33311         * tests/test-openat.c (openat): Likewise.
33312         * tests/test-perror.c (perror): Likewise.
33313         * tests/test-pipe2.c (pipe2): Likewise.
33314         * tests/test-poll.c (poll): Likewise.
33315         * tests/test-popen.c (popen, pclose): Likewise.
33316         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
33317         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
33318         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
33319         (posix_spawn_file_actions_destroy)
33320         (posix_spawn_file_actions_addclose)
33321         (posix_spawn_file_actions_addopen)
33322         (posix_spawn_file_actions_adddup2): Likewise.
33323         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
33324         * tests/test-pread.c (pread): Likewise.
33325         * tests/test-printf-posix.c (printf): Likewise.
33326         * tests/test-pty.c (openpty, forkpty): Likewise.
33327         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
33328         (random_r): Likewise.
33329         * tests/test-rawmemchr.c (rawmemchr): Likewise.
33330         * tests/test-readlink.c (readlink): Likewise.
33331         * tests/test-remove.c (remove): Likewise.
33332         * tests/test-rename.c (rename): Likewise.
33333         * tests/test-renameat.c (renameat): Likewise.
33334         * tests/test-rmdir.c (rmdir): Likewise.
33335         * tests/test-round1.c (round): Likewise.
33336         * tests/test-roundf1.c (roundf): Likewise.
33337         * tests/test-roundl.c (roundl): Likewise.
33338         * tests/test-setenv.c (setenv): Likewise.
33339         * tests/test-sigaction.c (sigaction): Likewise.
33340         * tests/test-sleep.c (sleep): Likewise.
33341         * tests/test-snprintf.c (snprintf): Likewise.
33342         * tests/test-sprintf-posix.c (sprintf): Likewise.
33343         * tests/test-stat.c (stat): Likewise.
33344         * tests/test-stpncpy.c (stpncpy): Likewise.
33345         * tests/test-strcasestr.c (strcasestr): Likewise.
33346         * tests/test-strchrnul.c (strchrnul): Likewise.
33347         * tests/test-strerror.c (strerror): Likewise.
33348         * tests/test-strsignal.c (strsignal): Likewise.
33349         * tests/test-strstr.c (strstr): Likewise.
33350         * tests/test-strtod.c (strtod): Likewise.
33351         * tests/test-strverscmp.c (strverscmp): Likewise.
33352         * tests/test-symlink.c (symlink): Likewise.
33353         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
33354         * tests/test-times.c (times): Likewise.
33355         * tests/test-trunc1.c (trunc): Likewise.
33356         * tests/test-truncf1.c (truncf): Likewise.
33357         * tests/test-truncl.c (truncl): Likewise.
33358         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
33359         Likewise.
33360         * tests/test-uname.c (uname): Likewise.
33361         * tests/test-unlink.c (unlink): Likewise.
33362         * tests/test-unlinkat.c (unlinkat): Likewise.
33363         * tests/test-unsetenv.c (unsetenv): Likewise.
33364         * tests/test-usleep.c (usleep): Likewise.
33365         * tests/test-utimensat.c (utimensat): Likewise.
33366         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
33367         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
33368         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
33369         * tests/test-vprintf-posix.c (vprintf): Likewise.
33370         * tests/test-vsnprintf.c (vsnprintf): Likewise.
33371         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
33372         * tests/test-wcrtomb.c (wcrtomb): Likewise.
33373         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
33374         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
33375         * tests/test-wcwidth.c (wcwidth): Likewise.
33376
33377         build: pull in conditional headers during GNULIB_POSIXCHECK
33378         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
33379         definitions from any conditionally-included headers.
33380         * lib/stdlib.in.h (includes): Likewise.
33381         * lib/unistd.in.h (includes): Likewise.
33382
33383 2009-12-24  Bruno Haible  <bruno@clisp.org>
33384
33385         * tests/test-argv-iter.c: Include header file being tested immediately
33386         after config.h.
33387         * tests/test-base64.c: Likewise.
33388         * tests/test-flock.c: Likewise.
33389         * tests/test-fsync.c: Likewise.
33390         * tests/test-getdate.c: Likewise.
33391         * tests/test-getndelim2.c: Likewise.
33392         * tests/test-isfinite.c: Likewise.
33393         * tests/test-isinf.c: Likewise.
33394         * tests/test-strerror.c: Likewise.
33395         * tests/test-strsignal.c: Likewise.
33396
33397 2009-12-23  Eric Blake  <ebb9@byu.net>
33398
33399         unistd: work around cygwin bug
33400         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
33401         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
33402         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33403
33404 2009-12-23  Bruno Haible  <bruno@clisp.org>
33405
33406         localename: More tests.
33407         * tests/test-localename.c (SIZEOF): New macro.
33408         (categories): New variable.
33409         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
33410         test_locale_name_default): Add test w.r.t. thread locale.
33411         (test_locale_name_thread): New function.
33412         (main): Invoke it.
33413
33414         localename: Make aware of thread locale.
33415         * lib/localename.h (gl_locale_name_thread): New declaration.
33416         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
33417         behaviour with respect to thread locale.
33418         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
33419         <langinfo.h>, glthread/lock.h.
33420         (SIZE_BITS): New macro.
33421         (string_hash): New function.
33422         (struct hash_node): New type.
33423         (HASH_TABLE_SIZE): New macro.
33424         (struniq_hash_table, struniq_lock): New variables.
33425         (struniq): New function.
33426         (gl_locale_name_thread): New function.
33427         (gl_locale_name): Invoke it.
33428         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
33429         * modules/localename (Depends-on): Add lock.
33430         Reported by Mike Gran <spk121@yahoo.com>.
33431
33432 2009-12-23  Eric Blake  <ebb9@byu.net>
33433
33434         va-args: new module
33435         * modules/va-args: New file.
33436         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
33437         * MODULES.html.sh (Core language properties): Mention it.
33438
33439         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
33440         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
33441         named alias for __attribute__((__unused__)).
33442         * lib/chown.c: Update client.
33443         * lib/fchmodat.c: Likewise.
33444         * lib/fts.c: Likewise.
33445         * lib/getdate.y: Likewise.
33446         * lib/getgroups.c: Likewise.
33447         * lib/getopt.c: Likewise.
33448         * lib/getugroups.c: Likewise.
33449         * lib/mkdir.c: Likewise.
33450         * lib/mkfifo.c: Likewise.
33451         * lib/mkfifoat.c: Likewise.
33452         * lib/mknod.c: Likewise.
33453         * lib/mknodat.c: Likewise.
33454         * lib/readlink.c: Likewise.
33455         * lib/se-context.in.h: Likewise.
33456         * lib/se-selinux.in.h: Likewise.
33457         * lib/sockets.c: Likewise.
33458         * lib/symlink.c: Likewise.
33459         * lib/symlinkat.c: Likewise.
33460         * lib/unicodeio.c: Likewise.
33461         * lib/unistr.h: Likewise.
33462         * tests/test-areadlink.c: Likewise.
33463         * tests/test-areadlinkat.c: Likewise.
33464         * tests/test-filenamecat.c: Likewise.
33465         * tests/test-fseeko.c: Likewise.
33466         * tests/test-ftello.c: Likewise.
33467         * tests/test-getdate.c: Likewise.
33468         * tests/test-getgroups.c: Likewise.
33469         * tests/test-gethostname.c: Likewise.
33470         * tests/test-quotearg.c: Likewise.
33471         * tests/test-version-etc.c: Likewise.
33472         * tests/test-xalloc-die.c: Likewise.
33473         * tests/test-xfprintf-posix.c: Likewise.
33474         * tests/test-xprintf-posix.c: Likewise.
33475         * tests/test-xvasprintf.c: Likewise.
33476
33477         tests: avoid compiler warnings
33478         * tests/test-fcntl.c (main): Delete unused parameters.
33479         * tests/test-freopen-safer.c (main): Likewise.
33480         * tests/test-xalloc-die.c (main): Mark unused parameters.
33481         * tests/test-fseeko.c (main): Likewise.
33482         * tests/test-ftello.c (main): Likewise.
33483         * tests/test-nanosleep.c (main): Avoid declaration warning.
33484         * tests/test-sleep.c (main): Likewise.
33485         * tests/test-unsetenv.c (main): Silence warning about string
33486         literal.
33487         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
33488
33489 2009-12-23  Bruno Haible  <bruno@clisp.org>
33490
33491         * tests/test-localename.c (test_locale_name): New function, extracted
33492         from main. Also test mixed situations.
33493         (test_locale_name_posix, test_locale_name_environ,
33494         test_locale_name_default): New functions.
33495         (main): Invoke them all.
33496         * modules/localename-tests (configure.ac): Test for newlocale.
33497
33498 2009-12-23  Bruno Haible  <bruno@clisp.org>
33499
33500         unistd: Ensure getcwd gets declared before being overridden.
33501         * lib/unistd.in.h: Conditionally include <io.h>.
33502
33503 2009-12-22  Bruno Haible  <bruno@clisp.org>
33504
33505         wchar: Diagnose broken combination of glibc and gcc versions and flags.
33506         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
33507         (gl_WCHAR_H): Invoke it.
33508         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
33509         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
33510         Reported by Karl Berry <karl@freefriends.org>.
33511
33512 2009-12-22  Eric Blake  <ebb9@byu.net>
33513
33514         math, unistd: avoid redundant includes
33515         * lib/math.in.h (isnan): No need to re-include <math.h>.
33516         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
33517
33518         getsubopt: work around cygwin bug
33519         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
33520         avoid conflicting with system getsubopt.
33521         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
33522         bug.
33523
33524         getopt: synchronize from glibc
33525         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
33526         parameter order.  Adjust all callers.
33527         (_getopt_internal_r, main): Adjust quoting in error messages.
33528         Drop considerations for outdated POSIX 1003.2 error message.
33529         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
33530         callers.
33531         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
33532
33533         test-getopt: test stderr behavior
33534         * modules/getopt-posix-tests (Depends-on): Add dup2.
33535         * tests/test-getopt.c (ASSERT): Avoid stderr.
33536         (main): Move stderr to a temporary file.
33537         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
33538         Instead, add parameter to inform caller if output occurred.
33539         (test_getopt): Adjust all existing tests to expect silence, and
33540         add new tests of leading ":".
33541         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33542         glibc shortcomings with leading "-:" or "+:" in optstring.
33543         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33544         Likewise.
33545         * doc/posix-functions/getopt.texi (getopt): Likewise.
33546
33547         test-getopt: enhance test
33548         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
33549         supports optind=0.
33550         * tests/test-getopt.c (OPTIND_MIN): Move...
33551         * tests/test-getopt.h (OPTIND_MIN): ...here.
33552         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
33553         Require that optind=0 works, since modern BSD supports it in
33554         addition to optreset, and since coreutils expects it.
33555         (test_getopt_long_only): New test.
33556         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33557         glibc shortcomings with 'W;', and enforcement of optind=0.
33558         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33559         Likewise.
33560
33561 2009-12-21  Bruno Haible  <bruno@clisp.org>
33562
33563         localename: Improvements for MacOS X and Cygwin.
33564         * lib/localename.h (gl_locale_name_environ): New declaration.
33565         * lib/localename.c (gl_locale_name_environ): New function, extracted from
33566         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
33567         (gl_locale_name_posix): Invoke it.
33568         (gl_locale_name_default): Add comments. Use Windows native API also on
33569         Cygwin.
33570
33571 2009-12-21  Bruno Haible  <bruno@clisp.org>
33572
33573         Update list of Win32 locale ids.
33574         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
33575         (LANG_SAMI): Renamed from LANG_SAAMI.
33576         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
33577         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
33578         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
33579         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
33580         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
33581         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
33582         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
33583         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
33584         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
33585         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
33586         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
33587         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
33588         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
33589         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
33590         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
33591         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
33592         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
33593         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
33594         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
33595         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
33596         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
33597         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
33598         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
33599         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
33600         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
33601         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
33602         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
33603         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
33604         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
33605         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
33606         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
33607         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
33608         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
33609         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
33610         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
33611         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
33612         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
33613         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
33614         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
33615         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
33616         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
33617         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
33618         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
33619         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
33620         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
33621         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
33622         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
33623         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
33624         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
33625         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
33626         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
33627         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
33628         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
33629         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
33630         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
33631         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
33632         Add more languages and countries for Sami, Sorbian. Add more countries
33633         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
33634         for Pashto. Change country for Syriac, Tswana.
33635
33636 2009-12-21  Eric Blake  <ebb9@byu.net>
33637
33638         test-utimens: avoid spurious failure
33639         * tests/test-chown.h (nap): Factor...
33640         * tests/nap.h: ...into new file.
33641         * tests/test-lchown.h (nap): Avoid duplication.
33642         * tests/test-utimens-common.h (nap): Use shared implementation,
33643         necessary on file systems with 1-second resolution.
33644         * modules/chown-tests (Files): Include new file.
33645         * modules/fdutimensat-tests (Files): Likewise.
33646         * modules/futimens-tests (Files): Likewise.
33647         * modules/lchown-tests (Files): Likewise.
33648         * modules/openat-tests (Files): Likewise.
33649         * modules/utimens-tests (Files): Likewise.
33650         * modules/utimensat-tests (Files): Likewise.
33651
33652 2009-12-19  Eric Blake  <ebb9@byu.net>
33653
33654         futimens, utimensat: work around Linux bug
33655         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
33656         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33657         * lib/utimensat.c (rpl_utimensat): Work around it.
33658         * lib/futimens.c (rpl_futimens): Adjust comment.
33659
33660         utimens: work around Linux ctime bug
33661         * lib/utimens.c (detect_ctime_bug): New helper function.
33662         (update_timespec): Differentiate between workaround needed for
33663         this bug vs. what is needed for systems that lack utimensat.
33664         (fdutimens, lutimens): Work around bug.
33665
33666         utimens: check for ctime update
33667         * tests/test-utimens-common.h (check_ctime): Define.
33668         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
33669         * tests/test-futimens.h (test_futimens): Likewise.
33670         * tests/test-lutimens.h (test_lutimens): Likewise.
33671         * doc/posix-functions/futimens.texi (futimens): Document the bug.
33672         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33673
33674 2009-12-19  Bruno Haible  <bruno@clisp.org>
33675
33676         dprintf-posix: Check against memory leak fixed on 2009-12-15.
33677         * tests/test-dprintf-posix2.sh: New file.
33678         * tests/test-dprintf-posix2.c: New file.
33679         * modules/dprintf-posix-tests (Files): Add them.
33680         (configure.ac): Check for getrlimit and setrlimit.
33681         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33682
33683 2009-12-19  Bruno Haible  <bruno@clisp.org>
33684
33685         fprintf-posix: Check against memory leak fixed on 2009-12-15.
33686         * tests/test-fprintf-posix3.sh: New file.
33687         * tests/test-fprintf-posix3.c: New file.
33688         * modules/fprintf-posix-tests (Files): Add them.
33689         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33690
33691 2009-12-19  Eric Blake  <ebb9@byu.net>
33692
33693         dirfd: fix prototype
33694         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
33695         * lib/dirfd.c (dirfd): Likewise.
33696
33697         canonicalize: reduce memory usage
33698         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
33699         allocation to size.
33700         Reported by Solar Designer <solar@openwall.com>.
33701
33702 2009-12-19  Bruno Haible  <bruno@clisp.org>
33703
33704         New module attribute 'Applicability'.
33705         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
33706         * gnulib-tool: New option --extract-applicability.
33707         (func_usage): Document it.
33708         (sed_extract_prog): Recognize it.
33709         (func_get_applicability): New function.
33710         (func_import): Generalize handling of 'link-warning' module.
33711         * modules/link-warning (Applicability): New section.
33712         * modules/arg-nonnull (Applicability): New section.
33713         Repoted by Simon Josefsson <simon@josefsson.org>.
33714
33715 2009-12-19  Bruno Haible  <bruno@clisp.org>
33716
33717         fflush: tweak
33718         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
33719         * lib/fseeko.c (rpl_fseeko): Likewise.
33720
33721 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
33722
33723         * lib/gl_list.h: Fix typo in comment.
33724
33725 2009-12-16  Eric Blake  <ebb9@byu.net>
33726
33727         fcntl: use to simplify other modules
33728         * modules/cloexec (Depends-on): Add fcntl.
33729         * modules/fchdir (Depends-on): Likewise.
33730         * modules/fd-safer-flag (Depends-on): Likewise.
33731         * modules/unistd-safer (Depends-on): Likewise.
33732         * modules/dup3 (configure.ac): Set module indicator.
33733         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
33734         missing.
33735         * lib/fchdir.c (_gl_register_dup): Fix comment.
33736         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
33737         * lib/dup-safer.c (dup_safer): Likewise.
33738         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
33739         * lib/dup3.c (dup3): Likewise.
33740         * tests/test-fchdir.c (main): Enhance test.
33741         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
33742
33743         fcntl: port portions of fcntl to mingw
33744         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
33745         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
33746         replacement for mingw.
33747         * modules/fcntl (Description): Update.
33748         (Depends-on): Add dup2.
33749         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
33750         * modules/fcntl-h (Makefile.am): Substitute it.
33751         * lib/fcntl.in.h (fcntl): Update declaration.
33752         (F_DUPFD, F_GETFD): New macros, when needed.
33753         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33754         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
33755         * tests/test-fcntl.c (check_flags, main): Enhance test for items
33756         we now guarantee.
33757
33758         fcntl: work around cygwin bug in F_DUPFD
33759         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
33760         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
33761         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
33762         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
33763         * doc/posix-functions/fcntl.texi (fcntl): Document it.
33764
33765         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
33766         * modules/fcntl (Files): List new files.
33767         (configure.ac): Run a test.
33768         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
33769         * lib/fcntl.c (rpl_fcntl): Likewise.
33770         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
33771         (gl_FCNTL_H): Always replace fcntl.h.
33772         * modules/fcntl-h (Makefile.am): Substitute witnesses.
33773         * lib/fcntl.in.h (fcntl): Declare replacement.
33774         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
33775         needed, plus a witness.
33776         * doc/posix-functions/fcntl.texi (fcntl): Document this.
33777         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33778         * tests/test-fcntl.c: New file.
33779         * modules/fcntl-tests: Likewise.
33780
33781         binary-io: avoid potential compilation warning
33782         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
33783         directives.
33784
33785         fflush: avoid compilation error on NetBSD
33786         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
33787         between off_t and fpos_t, since the latter is sometimes a struct.
33788         * lib/fseeko.c (rpl_fseeko): Likewise.
33789         Reported by Alexander Nasonov <alnsn@yandex.ru>.
33790
33791 2009-12-15  Eric Blake  <ebb9@byu.net>
33792
33793         fcntl-h, stdio, sys_ioctl: fix declarations
33794         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
33795         function must not take arguments.
33796         * lib/sys_ioctl.in.h (ioctl): Likewise.
33797         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
33798         (open): Add a link warning.
33799
33800 2009-12-15  Jim Meyering  <meyering@redhat.com>
33801
33802         areadlink, areadlink-with-size: relax license to LGPLv2+
33803         * modules/areadlink (License): Relax to LGPLv2+.
33804         * modules/areadlink-with-size (License): Likewise.
33805
33806 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
33807             Bruno Haible  <bruno@clisp.org>
33808
33809         *printf: Fix memory leak.
33810         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
33811         * lib/vfprintf.c (vfprintf): Likewise.
33812         * lib/dprintf.c (dprintf): Likewise.
33813         * lib/vdprintf.c (vdprintf): Likewise.
33814
33815 2009-12-14  Eric Blake  <ebb9@byu.net>
33816
33817         accept4: adjust module dependencies
33818         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
33819
33820         utimens: one more try at avoiding compiler warning
33821         * lib/utimens.c (lutimens): Lower scope of result.
33822
33823 2009-12-13  Bruno Haible  <bruno@clisp.org>
33824
33825         Move the malloc checking from module 'list' to new module 'xlist'.
33826         * modules/xlist: New file.
33827         * lib/gl_xlist.h: New file.
33828         * lib/gl_xlist.c: New file.
33829         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
33830         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
33831         gl_list_add_last, gl_list_add_before, gl_list_add_after,
33832         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
33833         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
33834         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
33835         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
33836         gl_sortedlist_nx_add): New declarations.
33837         (struct gl_list_implementation): Rename and change methods accordingly.
33838         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
33839         (gl_list_nx_create): Renamed from gl_list_create.
33840         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33841         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33842         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33843         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33844         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33845         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33846         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33847         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33848         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
33849         gl_list_create_empty.
33850         (gl_list_nx_create): Renamed from gl_list_create.
33851         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33852         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33853         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33854         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33855         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33856         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33857         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33858         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33859         * lib/gl_array_list.c: Don't include xalloc.h.
33860         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
33861         NULL upon out-of-memory.
33862         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
33863         out-of-memory.
33864         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
33865         Change return type to 'int'.
33866         (gl_array_nx_set_at): Renamed from gl_array_set_at.
33867         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33868         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
33869         upon out-of-memory.
33870         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
33871         upon out-of-memory.
33872         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
33873         upon out-of-memory.
33874         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
33875         upon out-of-memory.
33876         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
33877         out-of-memory.
33878         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
33879         Update.
33880         (gl_array_list_implementation): Update.
33881         * lib/gl_carray_list.c: Don't include xalloc.h.
33882         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
33883         Return NULL upon out-of-memory.
33884         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
33885         out-of-memory.
33886         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
33887         Change return type to 'int'.
33888         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
33889         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33890         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
33891         upon out-of-memory.
33892         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
33893         upon out-of-memory.
33894         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
33895         out-of-memory.
33896         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
33897         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
33898         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
33899         Update.
33900         (gl_carray_list_implementation): Update.
33901         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
33902         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
33903         gl_linked_create_empty. Return NULL upon out-of-memory.
33904         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
33905         out-of-memory.
33906         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
33907         Change return type to 'int'. Return -1 upon out-of-memory.
33908         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
33909         out-of-memory.
33910         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
33911         upon out-of-memory.
33912         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
33913         upon out-of-memory.
33914         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
33915         NULL upon out-of-memory.
33916         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
33917         upon out-of-memory.
33918         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
33919         out-of-memory.
33920         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
33921         Update.
33922         * lib/gl_linked_list.c: Don't include xalloc.h.
33923         (gl_linked_list_implementation): Update.
33924         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
33925         (add_to_bucket): Change return type to 'int'.
33926         (gl_linkedhash_list_implementation): Update.
33927         * lib/gl_anytree_list1.h (free_subtree): New function.
33928         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
33929         gl_tree_create_empty. Return NULL upon out-of-memory.
33930         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
33931         Change return type to 'int'. Return -1 upon out-of-memory.
33932         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
33933         out-of-memory.
33934         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
33935         (gl_tree_remove_node): New function, moved here from
33936         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
33937         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
33938         Update.
33939         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
33940         malloc, not xmalloc. Return NULL upon out-of-memory.
33941         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33942         out-of-memory.
33943         (gl_tree_remove_node_from_tree): New function, extracted from
33944         gl_tree_remove_node.
33945         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33946         upon out-of-memory.
33947         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33948         out-of-memory.
33949         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33950         upon out-of-memory.
33951         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33952         upon out-of-memory.
33953         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33954         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
33955         not xmalloc. Return NULL upon out-of-memory.
33956         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33957         out-of-memory.
33958         (gl_tree_remove_node_from_tree): New function, extracted from
33959         gl_tree_remove_node.
33960         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33961         upon out-of-memory.
33962         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33963         out-of-memory.
33964         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33965         upon out-of-memory.
33966         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33967         upon out-of-memory.
33968         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33969         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
33970         gl_anytree_list1.h before gl_anyavltree_list2.h.
33971         (gl_avltree_list_implementation): Update.
33972         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
33973         gl_anytree_list1.h before gl_anyavltree_list2.h.
33974         (gl_rbtree_list_implementation): Update.
33975         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
33976         Change return type to 'int'. Return -1 upon out-of-memory. Use
33977         __builtin_expect.
33978         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
33979         (gl_avltreehash_list_implementation): Update.
33980         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
33981         (gl_rbtreehash_list_implementation): Update.
33982         * modules/array-list (Depends-on): Remove xalloc.
33983         * modules/carray-list (Depends-on): Likewise.
33984         * modules/linked-list (Depends-on): Likewise.
33985         * modules/linkedhash-list (Depends-on): Likewise.
33986         * modules/avltree-list (Depends-on): Likewise.
33987         * modules/rbtree-list (Depends-on): Likewise.
33988         * modules/avltreehash-list (Depends-on): Likewise.
33989         * modules/rbtreehash-list (Depends-on): Likewise.
33990
33991         * modules/xsublist: New file.
33992         * lib/gl_xsublist.h: New file.
33993         * lib/gl_xsublist.c: New file.
33994         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
33995         (gl_sublist_nx_create): New declaration.
33996         * lib/gl_sublist.c: Don't include xalloc.h.
33997         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
33998         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
33999         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
34000         Change return type to 'int'. Return -1 upon out-of-memory.
34001         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
34002         upon out-of-memory.
34003         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
34004         NULL upon out-of-memory.
34005         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
34006         upon out-of-memory.
34007         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
34008         NULL upon out-of-memory.
34009         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
34010         NULL upon out-of-memory.
34011         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
34012         upon out-of-memory.
34013         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
34014         (gl_sublist_list_implementation): Update.
34015         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
34016         upon out-of-memory.
34017         * modules/sublist (Depends-on): Remove xalloc.
34018
34019         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
34020         * tests/test-carray_list.c: Likewise.
34021         * tests/test-linked_list.c: Likewise.
34022         * tests/test-linkedhash_list.c: Likewise.
34023         * tests/test-avltree_list.c: Likewise.
34024         * tests/test-rbtree_list.c: Likewise.
34025         * tests/test-avltreehash_list.c: Likewise.
34026         * tests/test-rbtreehash_list.c: Likewise.
34027         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
34028         * modules/carray-list-tests (Makefile.am): Likewise.
34029         * modules/linked-list-tests (Makefile.am): Likewise.
34030         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34031         * modules/avltree-list-tests (Makefile.am): Likewise.
34032         * modules/rbtree-list-tests (Makefile.am): Likewise.
34033         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34034         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34035
34036         * NEWS: Mention the changes.
34037
34038         * lib/clean-temp.c: Include gl_xlist.h.
34039         * modules/clean-temp (Depends-on): Add xlist.
34040
34041         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
34042         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
34043
34044         * tests/test-array_oset.c: Include gl_xlist.h.
34045         * modules/array-oset-tests (Depends-on): Add xlist.
34046
34047         Reported by José E. Marchesi <jemarch@gnu.org>.
34048
34049 2009-12-13  Bruno Haible  <bruno@clisp.org>
34050
34051         Move the malloc checking from module 'oset' to new module 'xoset'.
34052         * modules/xoset: New file.
34053         * lib/gl_xoset.h: New file.
34054         * lib/gl_xoset.c: New file.
34055         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
34056         declarations.
34057         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
34058         (struct gl_oset_implementation): Rename and change methods accordingly.
34059         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
34060         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34061         'int'. Mark as __warn_unused_result__.
34062         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
34063         gl_oset_create_empty.
34064         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34065         'int'.
34066         * lib/gl_array_oset.c: Don't include xalloc.h.
34067         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
34068         malloc, not xmalloc.
34069         (grow): Change return type to 'int'. Don't call xalloc_die.
34070         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
34071         to 'int'.
34072         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
34073         'int'.
34074         (gl_array_oset_implementation): Update.
34075         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
34076         gl_tree_create_empty.
34077         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
34078         'int'.
34079         * lib/gl_avltree_oset.c: Don't include xalloc.h.
34080         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34081         xmalloc.
34082         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34083         not xmalloc.
34084         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34085         xmalloc.
34086         (gl_avltree_oset_implementation): Update.
34087         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
34088         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34089         xmalloc.
34090         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34091         not xmalloc.
34092         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34093         xmalloc.
34094         (gl_rbtree_oset_implementation): Update.
34095         * modules/array-oset (Depends-on): Remove xalloc.
34096         * modules/avltree-oset (Depends-on): Likewise.
34097         * modules/rbtree-oset (Depends-on): Likewise.
34098         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
34099         * tests/test-avltree_oset.c: Likewise.
34100         * tests/test-rbtree_oset.c: Likewise.
34101         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
34102         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
34103         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34104         * NEWS: Mention the change.
34105
34106 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
34107
34108         maint.mk: allow a project to override release-prep commands
34109         * top/maint.mk (alpha, beta, stable): Move release-preparatory
34110         commands into a new rule.
34111         (release-prep): New rule.
34112         (release-prep-hook): New overridable variable.
34113
34114 2009-12-13  Bruno Haible  <bruno@clisp.org>
34115
34116         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
34117
34118 2009-12-13  Jim Meyering  <meyering@redhat.com>
34119
34120         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
34121         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
34122
34123 2009-12-12  Bruno Haible  <bruno@clisp.org>
34124
34125         duplocale: Tweak.
34126         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
34127
34128 2009-12-12  Karl Berry  <karl@gnu.org>
34129
34130         * config/srclist.txt (strtoll.c): tab changes, no more sync.
34131
34132 2009-12-12  Bruno Haible  <bruno@clisp.org>
34133
34134         * m4/po.m4: Undo incorrect untabification.
34135
34136 2009-12-12  Bruno Haible  <bruno@clisp.org>
34137
34138         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
34139         * modules/c-strtod (Depends-on): Add locale.
34140         * modules/c-strtold (Depends-on): Likewise.
34141
34142 2009-12-12  Bruno Haible  <bruno@clisp.org>
34143
34144         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
34145
34146 2009-12-11  Eric Blake  <ebb9@byu.net>
34147
34148         setenv: relax requirement in light of POSIX ruling
34149         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
34150         not NULL.
34151         * tests/test-setenv.c (main): Relax test.
34152         * tests/test-unsetenv.c (main): Likewise.
34153         * doc/posix-functions/setenv.texi (setenv): Document this.
34154         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34155
34156 2009-12-11  Bruno Haible  <bruno@clisp.org>
34157
34158         New module 'fd-safer-flag'.
34159         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
34160         * lib/dup-safer.c (dup_safer_flag): Remove function.
34161         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
34162         * lib/fd-safer.c (fd_safer_flag): Remove function.
34163         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
34164         * modules/cloexec (configure.ac): Drop indicator macro.
34165         * modules/fd-safer-flag: New file.
34166         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
34167         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
34168         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
34169
34170 2009-12-11  Bruno Haible  <bruno@clisp.org>
34171
34172         Tests for module 'nl_langinfo'.
34173         * modules/nl_langinfo-tests: New file.
34174         * tests/test-nl_langinfo.sh: New file.
34175         * tests/test-nl_langinfo.c: New file.
34176
34177         New module 'nl_langinfo'.
34178         * lib/nl_langinfo.c: New file.
34179         * m4/nl_langinfo.m4: New file.
34180         * modules/nl_langinfo: New file.
34181         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
34182
34183 2009-12-11  Bruno Haible  <bruno@clisp.org>
34184
34185         Tests for module 'langinfo'.
34186         * modules/langinfo-tests: New file.
34187         * tests/test-langinfo.c: New file.
34188
34189         New module 'langinfo'.
34190         * lib/langinfo.in.h: New file.
34191         * m4/langinfo_h.m4: New file.
34192         * modules/langinfo: New file.
34193         * doc/posix-headers/langinfo.texi: Mention the new module.
34194
34195 2009-12-11  Bruno Haible  <bruno@clisp.org>
34196
34197         * lib/config.charset: Untabify.
34198
34199 2009-12-11  Bruno Haible  <bruno@clisp.org>
34200
34201         * modules/unistd-safer (configure.ac): Drop indicator macro.
34202
34203 2009-12-11  Bruno Haible  <bruno@clisp.org>
34204
34205         Move pipe2-safer code to its own file.
34206         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
34207         * lib/pipe-safer.c (pipe2_safer): Remove function.
34208         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
34209         (Makefile.am): Add it to lib_SOURCES.
34210
34211 2009-12-10  Bruno Haible  <bruno@clisp.org>
34212
34213         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
34214
34215 2009-12-10  Bruno Haible  <bruno@clisp.org>
34216
34217         Declare which arguments expect non-NULL values, for GCC and clang.
34218         * build-aux/arg-nonnull.h: New file.
34219         * modules/arg-nonnull: New file.
34220         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
34221         (inet_ntop, inet_pton): Use it.
34222         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
34223         (closedir, dirfd, opendir, scandir, alphasort): Use it.
34224         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
34225         (open, openat): Use it.
34226         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
34227         (fnmatch): Use it.
34228         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
34229         (getopt, getopt_long, getopt_long_only): Use it.
34230         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
34231         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
34232         Use it.
34233         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
34234         (iconv_open): Use it.
34235         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
34236         (strtoimax, strtoumax): Use it.
34237         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
34238         (duplocale): Use it.
34239         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
34240         (frexp, frexpl): Use it.
34241         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
34242         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
34243         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
34244         (tsearch, tfind, tdelete, twalk): Use it.
34245         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
34246         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34247         sigpending): Use it.
34248         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
34249         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34250         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34251         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34252         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34253         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34254         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34255         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34256         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34257         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34258         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34259         Use it.
34260         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
34261         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
34262         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
34263         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
34264         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
34265         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
34266         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
34267         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
34268         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
34269         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
34270         strtoull, unsetenv): Use it.
34271         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
34272         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34273         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34274         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
34275         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
34276         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
34277         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
34278         (strcasecmp, strncasecmp): Use it.
34279         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
34280         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
34281         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
34282         rpl_setsockopt): Use it.
34283         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
34284         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
34285         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
34286         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
34287         (gettimeofday): Use it.
34288         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
34289         (times): Use it.
34290         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
34291         (uname): Use it.
34292         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
34293         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
34294         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
34295         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
34296         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
34297         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
34298         unlinkat, write): Use it.
34299         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
34300         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
34301         * lib/argv-iter.h: Include arg-nonnull.h.
34302         (_ATTRIBUTE_NONNULL_): Remove macro.
34303         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
34304         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
34305         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
34306         optimization.
34307         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
34308         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
34309         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
34310         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
34311         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
34312         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
34313         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
34314         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
34315         * modules/arpa_inet (Depends-on): Add arg-nonnull.
34316         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
34317         * modules/dirent (Depends-on): Add arg-nonnull.
34318         (Makefile.am): Insert arg-nonnull.h into dirent.h.
34319         * modules/fcntl-h (Depends-on): Add arg-nonnull.
34320         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
34321         * modules/fnmatch (Depends-on): Add arg-nonnull.
34322         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
34323         * modules/getopt-posix (Depends-on): Add arg-nonnull.
34324         (Makefile.am): Insert arg-nonnull.h into getopt.h.
34325         * modules/glob (Depends-on): Add arg-nonnull.
34326         (Makefile.am): Insert arg-nonnull.h into glob.h.
34327         * modules/iconv_open (Depends-on): Add arg-nonnull.
34328         (Makefile.am): Insert arg-nonnull.h into iconv.h.
34329         * modules/inttypes (Depends-on): Add arg-nonnull.
34330         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
34331         * modules/locale (Depends-on): Add arg-nonnull.
34332         (Makefile.am): Insert arg-nonnull.h into locale.h.
34333         * modules/math (Depends-on): Add arg-nonnull.
34334         (Makefile.am): Insert arg-nonnull.h into math.h.
34335         * modules/netdb (Depends-on): Add arg-nonnull.
34336         (Makefile.am): Insert arg-nonnull.h into netdb.h.
34337         * modules/search (Depends-on): Add arg-nonnull.
34338         (Makefile.am): Insert arg-nonnull.h into search.h.
34339         * modules/signal (Depends-on): Add arg-nonnull.
34340         (Makefile.am): Insert arg-nonnull.h into signal.h.
34341         * modules/spawn (Depends-on): Add arg-nonnull.
34342         (Makefile.am): Insert arg-nonnull.h into spawn.h.
34343         * modules/stdio (Depends-on): Add arg-nonnull.
34344         (Makefile.am): Insert arg-nonnull.h into stdio.h.
34345         * modules/stdlib (Depends-on): Add arg-nonnull.
34346         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
34347         * modules/string (Depends-on): Add arg-nonnull.
34348         (Makefile.am): Insert arg-nonnull.h into string.h.
34349         * modules/strings (Depends-on): Add arg-nonnull.
34350         (Makefile.am): Insert arg-nonnull.h into strings.h.
34351         * modules/sys_socket (Depends-on): Add arg-nonnull.
34352         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
34353         * modules/sys_stat (Depends-on): Add arg-nonnull.
34354         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
34355         * modules/sys_time (Depends-on): Add arg-nonnull.
34356         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
34357         * modules/sys_times (Depends-on): Add arg-nonnull.
34358         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
34359         * modules/sys_utsname (Depends-on): Add arg-nonnull.
34360         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
34361         * modules/time (Depends-on): Add arg-nonnull.
34362         (Makefile.am): Insert arg-nonnull.h into time.h.
34363         * modules/unistd (Depends-on): Add arg-nonnull.
34364         (Makefile.am): Insert arg-nonnull.h into unistd.h.
34365         * modules/wchar (Depends-on): Add arg-nonnull.
34366         (Makefile.am): Insert arg-nonnull.h into wchar.h.
34367         * modules/argv-iter (Depends-on): Add arg-nonnull.
34368         * tests/test-canonicalize.c (null_ptr): New function.
34369         (main): Use it.
34370         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
34371         (main): Use it.
34372         * tests/test-memmem.c (null_ptr): New function.
34373         (main): Use it.
34374         Reported by Jim Meyering.
34375
34376 2009-12-10  Bruno Haible  <bruno@clisp.org>
34377
34378         Use spaces for indentation, not tabs.
34379         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
34380         * m4/*.m4: Untabify.
34381         * build-aux/*.h: Untabify.
34382         * tests/**/*.[hc]: Untabify.
34383         * README: New section "Indent with spaces, not TABs", based on
34384         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
34385         * NEWS: Mention the change.
34386
34387 2009-12-10  Bruno Haible  <bruno@clisp.org>
34388
34389         pty test: Fix link error.
34390         * modules/pty-tests (Makefile.am): Add the default LDADD value to
34391         test_pty_LDADD.
34392
34393 2009-12-07  Simon Josefsson  <simon@josefsson.org>
34394
34395         * modules/pty: New file.
34396         * modules/pty-tests: New file.
34397         * m4/pty.m4: New file.
34398         * tests/test-pty.c: New file.
34399         * doc/glibc-headers/pty.texi: Modified.
34400         * doc/glibc-functions/forkpty.texi: Modified.
34401         * doc/glibc-functions/openpty.texi: Modified.
34402
34403 2009-12-10  Bruno Haible  <bruno@clisp.org>
34404
34405         Avoid syntax error in C++ mode.
34406         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
34407
34408 2009-12-10  Bruno Haible  <bruno@clisp.org>
34409
34410         Use sed with option -e.
34411         * gnulib-tool (func_version, func_emit_copyright_notice,
34412         func_emit_initmacro_end, func_import, func_create_testdir): Pass
34413         option -e to sed.
34414         * modules/link-warning (Makefile.am): Likewise.
34415
34416 2009-12-10  Jim Meyering  <meyering@redhat.com>
34417
34418         mgetgroups: do not write bytes beyond end of malloc'd buffer
34419         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
34420         username, we call getgroups with a one-element-shorter buffer,
34421         but still told it the length was original, max_n_groups.
34422
34423 2009-12-09  Eric Blake  <ebb9@byu.net>
34424
34425         cloexec: relax license
34426         * modules/cloexec (Maintainer): Add myself.
34427         (License): Use LGPL, not GPL.
34428
34429         link-warning: optimize generation
34430         * modules/link-warning (Makefile.am): Reduce process usage.
34431
34432 2009-12-09  Bruno Haible  <bruno@clisp.org>
34433
34434         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
34435         workaround was added on 2009-11-17.
34436
34437 2009-12-09  Jim Meyering  <meyering@redhat.com>
34438             Bruno Haible  <bruno@clisp.org>
34439
34440         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
34441         * modules/link-warning (Makefile.am): Make the comment-removing sed
34442         command more robust in the face of bootstrap-prepended comment lines.
34443
34444 2009-12-09  Bruno Haible  <bruno@clisp.org>
34445
34446         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
34447         most one group.
34448
34449 2009-12-09  Simon Josefsson <simon@josefsson.org>
34450             Bruno Haible  <bruno@clisp.org>
34451
34452         * build-aux/link-warning.h: Add copyright notice.
34453         * modules/link-warning (Makefile.am): Generate link-warning.h from
34454         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
34455         * NEWS: Mention change in link-warning module.
34456         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
34457         * modules/dirent (Makefile.am): Add dependency to dirent.h.
34458         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
34459         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
34460         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
34461         * modules/math (Makefile.am): Add dependency to math.h.
34462         * modules/search (Makefile.am): Add dependency to search.h.
34463         * modules/signal (Makefile.am): Add dependency to signal.h.
34464         * modules/spawn (Makefile.am): Add dependency to spawn.h.
34465         * modules/stdio (Makefile.am): Add dependency to stdio.h.
34466         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
34467         * modules/string (Makefile.am): Add dependency to string.h.
34468         * modules/strings (Makefile.am): Add dependency to strings.h.
34469         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
34470         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
34471         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
34472         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
34473         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
34474         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
34475         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
34476         * modules/unistd (Makefile.am): Add dependency to unistd.h.
34477         * modules/wchar (Makefile.am): Add dependency to wchar.h.
34478
34479 2009-12-09  Bruno Haible  <bruno@clisp.org>
34480
34481         fchdir: Optimize away rpl_fstat when possible.
34482         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
34483         REPLACE_OPEN_DIRECTORY.
34484         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
34485
34486 2009-12-09  Bruno Haible  <bruno@clisp.org>
34487
34488         * lib/fchdir.c: Update comment.
34489
34490 2009-12-09  Bruno Haible  <bruno@clisp.org>
34491
34492         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
34493
34494 2009-12-08  Eric Blake  <ebb9@byu.net>
34495
34496         fchdir: avoid memory leak on re-registration.
34497         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
34498
34499 2009-12-08  Jim Meyering  <meyering@redhat.com>
34500
34501         init.sh: avoid Solaris 10 /bin/sh portability problem
34502         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
34503         sourced script:
34504           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
34505           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
34506           bar
34507         tests/init.sh relied on that, accepting a --set-path=DIR argument,
34508         and two tests used that idiom.
34509         * tests/init.sh: Update suggested usage comments.
34510         (path_prepend_): New function, to be used in place
34511         of the --src-path=DIR option.
34512         (setup_): Move PATH-prepending code into path_prepend_.
34513         * tests/test-pread.sh: Adapt to new usage.
34514         * tests/test-xalloc-die.sh: Likewise.
34515
34516 2009-12-08  Simon Josefsson  <simon@josefsson.org>
34517
34518         * doc/gnulib.texi (Glibc pty.h): Add.
34519         * doc/glibc-functions/forkpty.texi: Add.
34520         * doc/glibc-functions/openpty.texi: Add.
34521         Suggested by Bruno Haible.
34522
34523 2009-12-08  Eric Blake  <ebb9@byu.net>
34524
34525         fchdir: fix logic bugs
34526         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
34527         * tests/test-fchdir.c (main): Enhance test.
34528         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
34529         is in use.
34530
34531         dup2: fix logic bugs
34532         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
34533         REPLACE_DUP2 to decide when rpl_dup2 is needed.
34534         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
34535         exists.
34536         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
34537
34538 2009-12-07  Eric Blake  <ebb9@byu.net>
34539
34540         unlink: fix m4 detection
34541         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
34542
34543         unistd-safer: add unit test
34544         * modules/unistd-safer-tests: New file.
34545         * tests/test-dup-safer.c: Likewise.
34546         * tests/test-cloexec.c (setmode): Avoid compiler warning.
34547         * tests/test-dup2.c (setmode): Likewise.
34548         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
34549
34550         cloexec: preserve text vs. binary across dup_cloexec
34551         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
34552         mode.
34553         * modules/dup2-tests (Depends-on): Add binary-io.
34554         * modules/cloexec-tests (Depends-on): Likewise.
34555         * tests/test-dup2.c (setmode, is_mode): New helpers.
34556         (main): Add tests that translation mode is preserved.
34557         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
34558         Reported by Bruno Haible.
34559
34560         mgetgroups: reduce duplicate listings
34561         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
34562         resulting array.
34563         * tests/test-chown.h (test_chown): Simplify client.
34564         * tests/test-lchown.h (test_lchown): Likewise.
34565
34566 2009-12-06  Bruno Haible  <bruno@clisp.org>
34567
34568         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
34569         value.
34570
34571 2009-12-06  Bruno Haible  <bruno@clisp.org>
34572
34573         * lib/progname.c: Include stdio.h, stdlib.h.
34574         (set_program_name): Reject a NULL argument.
34575
34576 2009-12-05  Eric Blake  <ebb9@byu.net>
34577
34578         pipe2-safer: new module
34579         * modules/pipe2-safer: New file.
34580         * lib/unistd-safer.h (pipe2_safer): New prototype.
34581         * lib/unistd--.h (pipe2): New wrapper.
34582         * lib/pipe-safer.c (pipe2_safer): New function.
34583         * modules/pipe (Depends-on): Add pipe2-safer.
34584         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
34585
34586         stdlib-safer: preserve cloexec flag for mkostemp[s]
34587         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
34588         fd_safer_flag.
34589
34590         unistd-safer: allow preservation of cloexec status via flag
34591         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
34592         prototypes.
34593         * lib/dup-safer.c (dup_safer_flag): New function.
34594         * lib/fd-safer.c (fd_safer_flag): Likewise.
34595         * modules/cloexec (configure.ac): Set witness.
34596
34597         test-dup2: enhance test
34598         * modules/dup2-tests (Depends-on): Add cloexec.
34599         * tests/test-dup2.c (main): Enhance test.
34600
34601         cloexec: add dup_cloexec
34602         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
34603         header and comments.
34604         * lib/cloexec.c (set_cloexec_flag): Add comments.
34605         (dup_cloexec): New function, with mingw implementation borrowed
34606         from...
34607         * lib/w32spawn.h (dup_noinherit): ...here.
34608         * modules/execute (Depends-on): Add cloexec.
34609         * modules/pipe (Depends-on): Likewise.
34610         * modules/cloexec (Depends-on): Add dup2.
34611         * modules/cloexec-tests (Files): New file.
34612         * tests/test-cloexec.c: Likewise.
34613
34614         test-xalloc-die: fix test for mingw
34615         * modules/xalloc-die-tests (Files): Add tests/init.sh.
34616         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
34617         directory and .exe suffix off argv[0] output.
34618
34619         test-fseeko: fix test for mingw
34620         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
34621         than undefining fseek, so test will pass on mingw.
34622
34623 2009-12-05  Bruno Haible  <bruno@clisp.org>
34624
34625         * lib/progname.h (set_program_name): Clarify specification.
34626         * lib/progname.c (set_program_name): Likewise.
34627         Reported by Jim Meyering.
34628
34629 2009-12-05  Jim Meyering  <meyering@redhat.com>
34630
34631         maint.mk: backslash-escape parens in default regexp
34632         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
34633         backslash-escape the literal parentheses.
34634
34635         maint.mk: news-date-check: use grep -E
34636         * top/maint.mk (today): Define a Make variable, not a...
34637         (news-date-check): ...shell variable.
34638         (news-date-regexp): Use the Make variable.
34639         Use grep's -E option.  Change the failing diagnostic to mention
34640         the variable, $(news-date-regexp).
34641
34642 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
34643
34644         maintainer-makefile: allow customization of NEWS entry format
34645         * top/maint.mk (news-date-regexp): New overridable variable.
34646         (news-date-check): Use it.
34647
34648 2009-12-04  Eric Blake  <ebb9@byu.net>
34649
34650         mgetgroups: add xgetgroups, and avoid ENOSYS failures
34651         * lib/mgetgroups.h (xgetgroups): New prototype.
34652         * lib/mgetgroups.c (xgetgroups): New wrapper.
34653         (mgetgroups): Handle ENOSYS.
34654         * modules/mgetgroups (Depends-on): Add realloc.
34655         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
34656
34657         mgetgroups: avoid argument promotion issues with -1
34658         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
34659         for invalid gid_t.
34660         * tests/test-chown.h (getegid, test_chown): Likewise.
34661         * tests/test-lchown.h (getegid, test_lchown): Likewise.
34662
34663 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
34664
34665         exclude: Fix header file problems.
34666         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
34667
34668 2009-12-01  Jim Meyering  <meyering@redhat.com>
34669
34670         fts: fts_open: do not let an empty string cause immediate failure
34671         This is required in support of GNU rm, for which the command
34672         "rm A '' B" must process and remove both A and B, in spite of
34673         the empty string argument.
34674         * lib/fts.c (fts_open): Do not let the presence of an empty string
34675         cause fts_open to fail immediately.  Most fts-using tools must be
34676         able to process all arguments, in order, and can be expected to
34677         diagnose such arguments themselves.
34678
34679 2009-11-30  Eric Blake  <ebb9@byu.net>
34680
34681         utimens: fix compilation error
34682         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
34683         Declare variable at right scope.
34684
34685 2009-11-29  Jim Meyering  <meyering@redhat.com>
34686
34687         bootstrap: handle perl-5.11's changed --version output
34688         * build-aux/bootstrap (get_version): Handle perl separately,
34689         since perl-5.11's --version output is different.
34690
34691 2009-11-28  Jim Meyering  <meyering@redhat.com>
34692
34693         userspec: depend on the inttostr module, too
34694         * modules/userspec (Depends-on): Add inttostr.
34695
34696         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
34697         * lib/userspec.c (parse_with_separator): Do not accept a user ID
34698         number of MAXUID when it evaluates to (uid_t) -1.
34699         Likewise for group ID.  Reported by Matt McCutchen in
34700         <http://savannah.gnu.org/bugs/?28113>
34701
34702         userspec: reformat to use spaces, not TABs
34703         * lib/userspec.c: Expand TABs to spaces.
34704         Add Emacs' "indent-tabs-mode: nil" hint.
34705
34706 2009-11-27  Eric Blake  <ebb9@byu.net>
34707
34708         getopt-gnu: flush out another BSD bug
34709         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
34710         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
34711         flush out BSD bug.
34712         * tests/test-getopt.h (test_getopt): End lists with NULL.
34713         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34714         (test_getopt_long_posix): Enhance test.
34715         * modules/getopt-posix-tests (Depends-on): Add stdbool.
34716         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
34717         getopt-gnu.
34718         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34719         Likewise.
34720
34721 2009-11-27  Simon Josefsson  <simon@josefsson.org>
34722
34723         * modules/idpriv-droptemp-tests (Notice): Fix text.
34724
34725 2009-11-27  Jim Meyering  <meyering@redhat.com>
34726
34727         test-xalloc-die: avoid spurious failure due to libtool argv difference
34728         In a libtool-enabled project, this test would fail due to a difference
34729         in the emitted program name, e.g.,
34730         -test-xalloc-die: memory exhausted
34731         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
34732         Use program to avoid that.
34733         * modules/xalloc-die-tests (Depends-on): Add progname.
34734         * tests/test-xalloc-die.c: Include progname.h".
34735         (program_name): Remove decl.
34736         (main): Call set_program_name.
34737         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
34738
34739 2009-11-26  Richard Jones  <rjones@redhat.com>
34740
34741         w32sock: leave win32 error in place.
34742         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
34743
34744 2009-11-26  Eric Blake  <ebb9@byu.net>
34745
34746         init.sh: suggest to use skip_ and fail_ functions in comments
34747         * tests/init.sh: Add a sentence.
34748
34749 2009-11-25  Bruno Haible  <bruno@clisp.org>
34750
34751         init.sh: add documentation in comments
34752         * tests/init.sh: Add some developer and user documentation.
34753
34754 2009-11-26  Jim Meyering  <meyering@redhat.com>
34755
34756         init.sh: accommodate even those who specify bogus srcdir manually
34757         * tests/init.sh: Normally, srcdir is guaranteed by automake and
34758         configure-time tests to be sanitized, so that there is no need to
34759         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
34760         (with no double quotes) suffices.  However, since tests may be
34761         invoked manually, and since you may explicitly set srcdir to the
34762         name of a directory containing spaces, do quote its uses here.
34763         * tests/test-pread.sh: Likewise.
34764         Suggested by Bruno Haible.
34765
34766         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
34767         * tests/test-pread.sh: Write no data into the pipe, because
34768         test-pread actually reads none.  This avoids a diagnostic,
34769         "bash: echo: write error: Broken pipe", that arises in the unusual
34770         event something is ignoring SIGPIPE, and might be interpreted
34771         as some sort of failure.  Reported by Bruno Haible.
34772
34773 2009-11-25  Jim Meyering  <meyering@redhat.com>
34774
34775         test-pread: cover failure with ESPIPE and EINVAL
34776         * tests/test-pread.c (main): Test for failure, too.
34777         * tests/test-pread.sh: Invoke with stdin on a pipe.
34778         Suggested by Eric Blake.
34779
34780         pread: improvement and fix
34781         * modules/pread (Depends-on): Depend on lseek, for portability to
34782         e.g., mingw.  Suggested by Eric Blake.
34783         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
34784
34785         unistd.in.h: correct declaration of pread
34786         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
34787         Reported by Richard W.M. Jones.
34788
34789         test-pread.sh: distribute the test script
34790         * modules/pread-tests (Files): Include test-pread.sh.
34791
34792         test-pread.sh: clean up
34793         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
34794         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
34795         That is unnecessary, since it's always ".".
34796         Suggestion from Eric Blake.
34797
34798         test-pread.sh: make executable
34799         * tests/test-pread.sh: Set executable bit.
34800         Reported by Eric Blake.
34801
34802         correct typo in test-pread.sh
34803         * tests/test-pread.sh: Add #! line.
34804
34805         test pread
34806         * tests/test-pread.c: New file.
34807         * tests/test-pread.sh: Likewise.
34808         * modules/pread-tests: Likewise.
34809
34810         pread: new module
34811         * modules/pread: New file.
34812         * lib/unistd.in.h (pread): Define/declare.
34813         * lib/pread.c (pread): New file.
34814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
34815         * modules/unistd (Makefile.am): Substitute witnesses.
34816         * doc/posix-functions/pread.texi (pread): Update.
34817         * MODULES.html.sh: Add pread.
34818
34819 2009-11-25  Jim Meyering  <meyering@redhat.com>
34820
34821         tests/init.sh: new file to be used via most *.sh tests
34822         * tests/init.sh: New file.
34823
34824 2009-11-25  Eric Blake  <ebb9@byu.net>
34825
34826         utimens: work around older Linux failure with symlinks
34827         * lib/utimens.c (lutimensat_works_really): New variable.
34828         (fdutimens, lutimens): Use it to manage kernels that support
34829         nanosecond times on files, but not on symlinks.
34830         Reported by OndÅ™ej Vašík.
34831
34832         utimes: fix configure grammar
34833         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
34834
34835 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
34836
34837         regex: Fix fastmap for multibyte character ranges.
34838         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
34839         characters when a multibyte character range is included.
34840
34841 2009-11-22  Andy Wingo  <wingo@pobox.com>
34842
34843         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
34844         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
34845
34846 2009-11-24  Bruno Haible  <bruno@clisp.org>
34847
34848         doc: Most *_l functions exist in MacOS X 10.5.
34849         * doc/posix-functions/duplocale.texi: Update platforms list.
34850         * doc/posix-functions/freelocale.texi: Likewise.
34851         * doc/posix-functions/newlocale.texi: Likewise.
34852         * doc/posix-functions/uselocale.texi: Likewise.
34853         * doc/posix-functions/isalnum_l.texi: Likewise.
34854         * doc/posix-functions/isalpha_l.texi: Likewise.
34855         * doc/posix-functions/isblank_l.texi: Likewise.
34856         * doc/posix-functions/iscntrl_l.texi: Likewise.
34857         * doc/posix-functions/isdigit_l.texi: Likewise.
34858         * doc/posix-functions/isgraph_l.texi: Likewise.
34859         * doc/posix-functions/islower_l.texi: Likewise.
34860         * doc/posix-functions/isprint_l.texi: Likewise.
34861         * doc/posix-functions/ispunct_l.texi: Likewise.
34862         * doc/posix-functions/isspace_l.texi: Likewise.
34863         * doc/posix-functions/isupper_l.texi: Likewise.
34864         * doc/posix-functions/iswalnum_l.texi: Likewise.
34865         * doc/posix-functions/iswalpha_l.texi: Likewise.
34866         * doc/posix-functions/iswblank_l.texi: Likewise.
34867         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34868         * doc/posix-functions/iswctype_l.texi: Likewise.
34869         * doc/posix-functions/iswdigit_l.texi: Likewise.
34870         * doc/posix-functions/iswgraph_l.texi: Likewise.
34871         * doc/posix-functions/iswlower_l.texi: Likewise.
34872         * doc/posix-functions/iswprint_l.texi: Likewise.
34873         * doc/posix-functions/iswpunct_l.texi: Likewise.
34874         * doc/posix-functions/iswspace_l.texi: Likewise.
34875         * doc/posix-functions/iswupper_l.texi: Likewise.
34876         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34877         * doc/posix-functions/isxdigit_l.texi: Likewise.
34878         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
34879         * doc/posix-functions/strcasecmp_l.texi: Likewise.
34880         * doc/posix-functions/strcoll_l.texi: Likewise.
34881         * doc/posix-functions/strfmon_l.texi: Likewise.
34882         * doc/posix-functions/strftime_l.texi: Likewise.
34883         * doc/posix-functions/strncasecmp_l.texi: Likewise.
34884         * doc/posix-functions/strxfrm_l.texi: Likewise.
34885         * doc/posix-functions/tolower_l.texi: Likewise.
34886         * doc/posix-functions/toupper_l.texi: Likewise.
34887         * doc/posix-functions/towctrans_l.texi: Likewise.
34888         * doc/posix-functions/towlower_l.texi: Likewise.
34889         * doc/posix-functions/towupper_l.texi: Likewise.
34890         * doc/posix-functions/wcscoll_l.texi: Likewise.
34891         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34892         * doc/posix-functions/wctrans_l.texi: Likewise.
34893         * doc/posix-functions/wctype_l.texi: Likewise.
34894         * doc/glibc-functions/strptime_l.texi: Likewise.
34895         * doc/glibc-functions/strtod_l.texi: Likewise.
34896         * doc/glibc-functions/strtof_l.texi: Likewise.
34897         * doc/glibc-functions/strtol_l.texi: Likewise.
34898         * doc/glibc-functions/strtold_l.texi: Likewise.
34899         * doc/glibc-functions/strtoll_l.texi: Likewise.
34900         * doc/glibc-functions/strtoul_l.texi: Likewise.
34901         * doc/glibc-functions/strtoull_l.texi: Likewise.
34902         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34903         * doc/glibc-functions/wcstod_l.texi: Likewise.
34904         * doc/glibc-functions/wcstof_l.texi: Likewise.
34905         * doc/glibc-functions/wcstol_l.texi: Likewise.
34906         * doc/glibc-functions/wcstold_l.texi: Likewise.
34907         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34908         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34909         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34910
34911 2009-11-24  Bruno Haible  <bruno@clisp.org>
34912
34913         duplocale: Fix logic bug.
34914         * lib/duplocale.c: Don't include <langinfo.h>.
34915         (_NL_LOCALE_NAME): Remove macro.
34916         (rpl_duplocale): Use setlocale instead of nl_langinfo.
34917         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
34918
34919 2009-11-23  Jim Meyering  <meyering@redhat.com>
34920
34921         test-update-copyright: don't hard-code /usr/bin/perl
34922         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
34923         perl to print the current year.  Gilles Espinasse reported that
34924         the replaced use of perl was hard-coded as /usr/bin/perl.
34925
34926 2009-11-23  Bruno Haible  <bruno@clisp.org>
34927
34928         duplocale: Add support for glibc 2.3.x.
34929         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
34930
34931 2009-11-22  Bruno Haible  <bruno@clisp.org>
34932
34933         vasnprintf: Tiny optimization.
34934         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
34935         MacOS X.
34936
34937 2009-11-22  Bruno Haible  <bruno@clisp.org>
34938
34939         Tests for module 'duplocale'.
34940         * modules/duplocale-tests: New file.
34941         * tests/test-duplocale.c: New file.
34942
34943         New module 'duplocale'.
34944         * m4/duplocale.m4: New file.
34945         * lib/locale.in.h (duplocale): New declaration.
34946         * lib/duplocale.c: New file.
34947         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
34948         gl_LOCALE_H_DEFAULTS): New macros.
34949         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
34950         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
34951         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
34952         REPLACE_DUPLOCALE.
34953         * modules/duplocale: New file.
34954         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
34955
34956 2009-11-22  Bruno Haible  <bruno@clisp.org>
34957
34958         * modules/locale-tests (configure.ac): Test for newlocale function.
34959         * tests/test-locale.c: When the system has extended locale functions,
34960         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
34961
34962         locale: Make locale_t available when possible.
34963         * lib/locale.in.h: Include <xlocale.h> when it exists.
34964         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
34965         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
34966         * modules/locale (Depends-on): Add extensions.
34967         (Makefile.am): Also substitute HAVE_XLOCALE_H.
34968         * doc/posix-headers/locale.texi: Document the problem with locale_t.
34969
34970 2009-11-22  Bruno Haible  <bruno@clisp.org>
34971
34972         Add comments.
34973         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
34974         invocation.
34975         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34976         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34977         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34978
34979 2009-11-22  Bruno Haible  <bruno@clisp.org>
34980
34981         error: account for the possibility of freopen (stdout).
34982         * lib/error.c: Include <unistd.h>.
34983         (flush_stdout): New function, extracted from error and error_at_line.
34984         Determine stdout's fd dynamically.
34985         (error, error_at_line): Invoke flush_stdout.
34986         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
34987         * modules/error (Depends-on): Add unistd.
34988
34989 2009-11-22  Bruno Haible  <bruno@clisp.org>
34990
34991         diffseq: Add comment.
34992         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
34993
34994 2009-11-22  Jim Meyering  <meyering@redhat.com>
34995
34996         c-stack: avoid defining an unused static function
34997         * lib/c-stack.c (find_stack_direction): Do not define this function
34998         when it will not be used.
34999
35000         diffseq: avoid spurious gcc warnings
35001         * lib/diffseq.h (IF_LINT2): Define.
35002         (compareseq): Use it to initialize two members of "part".
35003         This avoids two used-uninitialized warnings.
35004
35005 2009-11-21  Jim Meyering  <meyering@redhat.com>
35006
35007         c-stack: avoid "ignoring return value of `write'" warning
35008         * lib/c-stack.c: Include "ignore-value.h".
35009         (die): Explicitly ignore each write return value.
35010         * modules/c-stack (Depends-on): Add ignore-value.
35011
35012 2009-11-21  Bruno Haible  <bruno@clisp.org>
35013
35014         diffseq: reduce scope of variable 'best'.
35015         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
35016         variable, earlier used for two different purposes.
35017
35018 2009-11-21  Jim Meyering  <meyering@redhat.com>
35019
35020         diffseq: remove useless assignment to "best"
35021         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
35022         assignment.  At that point "best" is already guaranteed to be zero.
35023
35024 2009-11-20  Eric Blake  <ebb9@byu.net>
35025
35026         build: mention ftp redirector in release announcements
35027         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
35028         values that used to come from cfg.mk; mention FTP redirect URL.
35029         * build-aux/announce-gen: Mention the mirror list.
35030         Suggested by Karl Berry.
35031
35032         nanosleep: improve port to mingw
35033         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
35034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
35035         LIB_NANOSLEEP, but only when needed.
35036         * modules/select (Link): Document LIBSOCKET.
35037         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
35038         enough.
35039
35040         nanosleep: work around cygwin bug
35041         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
35042         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
35043         bug.
35044         (getnow): Delete, not needed.
35045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
35046         LIB_CLOCK_GETTIME.
35047         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
35048         clock-time, gettime.
35049         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
35050         bug.
35051         * modules/nanosleep-tests: New test.
35052         * tests/test-nanosleep.c: New file.
35053
35054         sleep: work around cygwin bug
35055         * lib/sleep.c (rpl_sleep): Work around the bug.
35056         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
35057         (gl_PREREQ_SLEEP): Delete unused macro.
35058         * modules/sleep (Depends-on): Add verify.
35059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35060         * modules/unistd (Makefile.am): Substitute witness.
35061         * lib/unistd.in.h (sleep): Update prototype.
35062         * doc/posix-functions/sleep.texi (sleep): Document the bug.
35063         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
35064         * modules/sleep-tests (Depends-on): Check for alarm.
35065
35066 2009-11-20  Jim Meyering  <meyering@redhat.com>
35067
35068         maint.mk: improve sc_prohibit_magic_number_exit
35069         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
35070         so it does not match uses like System.exit(1).
35071         Add comments showing how to correct all offenders.
35072
35073 2009-11-19  Eric Blake  <ebb9@byu.net>
35074
35075         xalloc-die-tests: add missing library
35076         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
35077
35078         test-xvasprintf: silence compiler warnings
35079         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
35080         empty string from gcc.
35081
35082 2009-11-19  Jim Meyering  <meyering@redhat.com>
35083
35084         xfreopen: new module, from coreutils
35085         * modules/xfreopen: New module.
35086         * lib/xfreopen.c: New file.
35087         * lib/xfreopen.h: New file.
35088         * MODULES.html.sh (File stream based Input/Output"): Add it.
35089
35090 2009-11-19  Eric Blake  <ebb9@byu.net>
35091
35092         manywarnings: depend on warnings
35093         * modules/manywarnings (Depends-on): Add warnings.
35094
35095         build: avoid compiler warnings
35096         * lib/select.c (rpl_select): Delete unused variable.
35097         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
35098
35099 2009-11-18  Eric Blake  <ebb9@byu.net>
35100
35101         tests: avoid false negative with --with-packager
35102         * tests/test-version-etc.sh: Discard packager information.
35103         * tests/test-argp-version-etc-1.sh: Likewise.
35104         Reported by Mike Frysinger.
35105
35106         utimens: fix regression on Solaris
35107         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
35108         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
35109         can only change fd timestamps via futimesat.  Instead, use an
35110         additional witness macro to avoid BSD bug.
35111         Reported by Jim Meyering.
35112
35113 2009-11-17  Eric Blake  <ebb9@byu.net>
35114
35115         usleep: use it to simplify tests
35116         * modules/stat-time-tests (Depends-on): Add usleep.
35117         (configure.ac): Drop usleep check.
35118         * modules/chown-tests (Depends-on, configure.ac): Likewise.
35119         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
35120         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
35121         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
35122         * modules/openat-tests (Depends-on, configure.ac): Likewise.
35123         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
35124         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
35125         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
35126         Likewise.
35127         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
35128         * tests/test-lchown.h (nap): Likewise.
35129         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
35130         * tests/test-stat-time.c (nap): Likewise.
35131         * tests/test-utimens-common.h (nap): Update comments.
35132
35133         usleep: new module
35134         * modules/usleep: New file.
35135         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
35136         * lib/usleep.c (usleep): Likewise.
35137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35138         * modules/unistd (Makefile.am): Substitute witnesses.
35139         * lib/unistd.in.h (usleep): Add declaration.
35140         * doc/pastposix-functions/usleep.texi (usleep): Document this.
35141         * MODULES.html.sh (Date and time): Likewise.
35142         * modules/usleep-tests (Depends-on): New test.
35143         * tests/test-usleep.c: New file.
35144
35145         chown: work around OpenBSD bug
35146         * lib/chown.c (rpl_chown): Work around the bug.
35147         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
35148         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
35149         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
35150         * modules/chown (Depends-on): Add stdbool.
35151         * modules/lchown (Depends-on): Likewise.
35152         * doc/posix-functions/chown.texi (chown): Document the bug.
35153         * doc/posix-functions/lchown.texi (lchown): Likewise.
35154         * tests/test-lchown.h (test_chown): Relax test.
35155
35156         mkstemp: avoid conflict with C++ keyword template
35157         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
35158         * lib/mkostemp.c (mkostemp): Likewise.
35159         * lib/mkostemps.c (mkostemps): Likewise.
35160         * lib/mkstemp.c (mkstemp): Likewise.
35161         * lib/mkstemps.c (mkstemps): Likewise.
35162
35163         xalloc-die-tests: optimize
35164         * tests/test-xalloc-die.sh: Reduce number of processes.
35165
35166 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35167
35168         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
35169         patch from ludo@gnu.org (Ludovic Courtès).
35170
35171 2009-11-17  Jim Meyering  <meyering@redhat.com>
35172
35173         version-etc: use proper license string
35174         * modules/version-etc (License): Use LGPL, not LGPLv3+.
35175         * modules/version-etc-fsf: Likewise.
35176
35177 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35178
35179         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
35180         printed to stdout.  Deal with EOL differences.
35181
35182 2009-11-17  Eric Blake  <ebb9@byu.net>
35183
35184         unsetenv: work around Solaris bug
35185         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
35186         * lib/unsetenv.c (rpl_unsetenv): Work around it.
35187         Reported by Jim Meyering.
35188
35189         vasnprintf: avoid compiler warnings
35190         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
35191         variables.
35192         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
35193
35194 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35195
35196         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
35197         settings since xalloc-die is no longer the self test,
35198         xalloc-die.sh is.
35199
35200 2009-11-17  Jim Meyering  <meyering@redhat.com>
35201
35202         test-xalloc-die.sh: make the code agree with the commit log
35203         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
35204         at the end, just in case you happen to have a test-xalloc-die
35205         program in some other PATH directory.
35206
35207         test-xalloc-die.sh: fix a portability bug
35208         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
35209         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
35210         Otherwise, argv[0] (as often seen in diagnostics) would be too
35211         system-dependent, sometimes with, and sometimes without the leading "./".
35212
35213         version-etc-fsf: relax license to LGPLv3+
35214         * modules/version-etc-fsf (License): Relax license.
35215
35216 2009-11-16  Eric Blake  <ebb9@byu.net>
35217
35218         xalloc-die-tests: avoid printing null pointer
35219         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
35220         shell script.
35221         * tests/test-xalloc-die.c (program_name): Declare.
35222         * tests/test-xalloc-die.sh (tmpfiles): New file.
35223
35224         setenv, unsetenv: work around various bugs
35225         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
35226         (setenv) [HAVE_SETENV]: Work around bugs.
35227         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
35228         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
35229         for bugs.
35230         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
35231         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
35232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
35233         * modules/stdlib (Makefile.am): Update substitutions.
35234         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
35235         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
35236         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35237         * modules/setenv-tests: New test.
35238         * modules/unsetenv-tests: Likewise.
35239         * tests/test-setenv.c: New file.
35240         * tests/test-unsetenv.c: Likewise.
35241
35242 2009-11-16  Jim Meyering  <meyering@redhat.com>
35243
35244         version-etc: relax license to LGPLv3+
35245         * modules/version-etc (License): Relax license.
35246
35247         better AC_REQUIRE expanded-before-required-warning avoidance
35248         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
35249         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
35250         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
35251         which is no longer needed.
35252
35253 2009-11-16  Eric Blake  <ebb9@byu.net>
35254
35255         test-freading: clean up temporary file
35256         * tests/test-freading.c (main): Remove file on success, and use
35257         ASSERT more liberally.
35258         Reported by Jim Meyering.
35259
35260 2009-11-16  Jim Meyering  <meyering@redhat.com>
35261
35262         avoid new AC_REQUIRE expanded-before-required warnings
35263         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
35264         merely using it.
35265         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
35266         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
35267
35268 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35269
35270         * tests/test-xalloc-die.c: New file.
35271         * modules/xalloc-die-tests: New file.
35272         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
35273         XFAIL_TESTS so it can be appended by modules.
35274
35275 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35276
35277         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
35278         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
35279
35280 2009-11-14  Eric Blake  <ebb9@byu.net>
35281
35282         fnmatch: avoid compiler warning
35283         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
35284         to silence compiler warning about mismatch signedness in ?:.
35285         Reported by Robert Millan.
35286
35287         intprops: add double-inclusion guard
35288         * lib/intprops.h: Allow idempotent includes.
35289         Suggested by Bruce Korb.
35290
35291         openat: detect Solaris fchownat bug
35292         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
35293         penalizing glibc chownat when only lchownat is broken.
35294         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
35295         trailing slash bugs.
35296         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
35297         * modules/openat-tests (Files): Include more files.
35298         (Depends-on): Add mgetgroups, sleep, stat-time.
35299         (configure.ac): Add additional checks.
35300         (Makefile.am): Build new test.
35301         * tests/test-fchownat.c: New file.
35302
35303         lchown: detect Solaris and FreeBSD bug
35304         * lib/lchown.c (rpl_lchown): Work around bug.
35305         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
35306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35307         * modules/unistd (Makefile.am): Populate it.
35308         * lib/unistd.in.h (lchown): Update declaration.
35309         * doc/posix-functions/lchown.texi (lchown): Document the bug.
35310         * modules/lchown-tests: New file.
35311         * tests/test-lchown.h (test_lchown): Likewise.
35312         * tests/test-lchown.c (main): Likewise.
35313
35314         chown: detect Solaris and FreeBSD bug
35315         * lib/chown.c (rpl_chown): Work around bug.
35316         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
35317         (gl_PREREQ_CHOWN): Delete.
35318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35319         * modules/unistd (Makefile.am): Populate it.
35320         * lib/unistd.in.h (chown): Update declaration.
35321         * lib/lchown.c (chown): Update client.
35322         * modules/lchown (Depends-on): Add lstat.
35323         * doc/posix-functions/chown.texi (chown): Document the bug.
35324         * doc/posix-functions/getgroups.texi (getgroups): Document
35325         getgroups pitfall.
35326         * modules/chown-tests: New file.
35327         * tests/test-chown.h (test_chown): Likewise.
35328         * tests/test-chown.c (main): Likewise.
35329
35330 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
35331
35332         gnulib-tool: correctly detect absence of m4 directories
35333         * gnulib-tool: Avoid extra newline on data passed to wc -l.
35334
35335 2009-11-14  Jim Meyering  <meyering@redhat.com>
35336
35337         maint.mk: Prohibit inclusion of "xalloc.h" without use.
35338         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35339
35340 2009-11-14  John W. Eaton  <jwe@gnu.org>
35341
35342         strftime.h: wrap funtion declaration in extern "C" block
35343         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
35344
35345 2009-11-13  Eric Blake  <ebb9@byu.net>
35346
35347         getgroups: avoid compiler warning
35348         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
35349
35350         getgroups: work around FreeBSD bug
35351         * lib/getgroups.c (rpl_getgroups): Work around the bug.
35352         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
35353         * doc/posix-functions/getgroups.texi (getgroups): Document it.
35354         * tests/test-getgroups.c (main): Fix buffer overrun.
35355
35356         getgroups: avoid compilation failure
35357         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
35358         * modules/getgroups (Depends-on): Add stdint.
35359
35360 2009-11-13  Jim Meyering  <meyering@redhat.com>
35361
35362         test-getgroups: avoid compilation failure
35363         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
35364
35365 2009-11-13  Eric Blake  <ebb9@byu.net>
35366
35367         mgetgroups: new module, taken from coreutils
35368         * modules/mgetgroups: New file.
35369         * lib/mgetgroups.h: Likewise.
35370         * lib/mgetgroups.c (mgetgroups): Likewise.
35371         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
35372         * MODULES.html.sh (Users and groups): Mention it.
35373
35374         getgroups: don't expose GETGROUPS_T to user
35375         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
35376         an element at a time if GETGROUPS_T is wrong size.
35377         * lib/getugroups.h (getugroups): Change signature.
35378         * lib/unistd.in.h (getgroups): Likewise.
35379         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
35380         signature needs fixing.
35381         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
35382         AC_TYPE_GETGROUPS.
35383         * modules/group-member (Depends-on): Add getgroups.
35384         * lib/group-member.c (group_info, get_group_info): Use gid_t.
35385         (group_member): Rely on getgroups replacement.
35386         * lib/getugroups.c (getugroups): Use gid_t.
35387         * tests/test-getgroups.c (main): Likewise.
35388         * NEWS: Mention the signature change.
35389         * doc/posix-functions/getgroups.texi (getgroups): Mention the
35390         problem with signature.
35391         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
35392         GETGROUPS_T is still useful for setgroups.
35393
35394         getgroups, getugroups: provide stubs for mingw
35395         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
35396         * lib/getugroups.c (getugroups): Likewise.
35397         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
35398         function.  Modernize replacement scheme.
35399         (gl_PREREQ_GETGROUPS): Delete.
35400         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
35401         * modules/getgroups (configure.ac): Declare witness.
35402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35403         * modules/unistd (Depends-on): Substitute witness.
35404         * lib/unistd.in.h (getgroups): Declare replacement.
35405
35406         getgroups: avoid calling exit
35407         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
35408         drop xalloc.
35409         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
35410         dependencies.
35411         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
35412         exiting, in the rare case of malloc failure.
35413
35414         getgroups: fix logic error
35415         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
35416         has more than 20 groups.
35417         * modules/getgroups-tests: New test.
35418         * tests/test-getgroups.c: New file.
35419
35420 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35421
35422         * tests/test-base64.c: Improve.
35423
35424 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35425
35426         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
35427         Blake <ebb9@byu.net>.
35428
35429 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35430
35431         * tests/test-xvasprintf.c: Add %s%s related checks.
35432
35433 2009-11-12  Eric Blake  <ebb9@byu.net>
35434
35435         version-etc: match standards.texi style
35436         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
35437         and use <> only for URLs.
35438
35439 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
35440
35441         fts: do not fail on a submount during traversal
35442         * lib/fts.c (fts_build): Read the stat info again after opening
35443         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
35444         Original report at http://bugzilla.redhat.com/501848.
35445
35446 2009-11-12  Jim Meyering  <meyering@redhat.com>
35447
35448         bootstrap: sync from coreutils
35449         * build-aux/bootstrap (bootstrap_epilogue): New function.
35450         Use git_modules_config in one more place.  This make bootstrap's
35451         --gnulib-srcdir option more useful for testing.
35452
35453         bootstrap: generalize autoheader check
35454         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
35455         AC_CONFIG_HEADERS.
35456
35457 2009-11-11  Eric Blake  <ebb9@byu.net>
35458
35459         mkfifoat: use new modules for Solaris and BSD bugs
35460         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
35461         * lib/mkfifoat.c (mknodat): Split...
35462         * lib/mknodat.c (mknodat): ...into new file.
35463         * modules/mkfifoat (Files): Ship new file.
35464         (Depends-on): Add mkfifo, mknod.
35465         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
35466         (Depends-on): Add symlink.
35467         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
35468         redundant with test_mkfifo.h.
35469         (do_mkfifoat, do_mknodat): New helpers.
35470
35471         mknod: new module
35472         * modules/mknod: New file.
35473         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
35474         * lib/mknod.c (mknod): Likewise.
35475         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35476         defaults.
35477         * modules/sys_stat (Makefile.am): Substitute them.
35478         * lib/sys_stat.in.h (mknod): Declare replacement.
35479         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35480         Document it.
35481         * doc/posix-functions/mknod.texi (mknod): Likewise.
35482         * modules/mknod-tests: New test.
35483         * tests/test-mknod.c: Likewise.
35484
35485         mkfifo: new module
35486         * modules/mkfifo: New file.
35487         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
35488         * lib/mkfifo.c (mkfifo): Likewise.
35489         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35490         defaults.
35491         * modules/sys_stat (Makefile.am): Substitute them.
35492         * lib/sys_stat.in.h (mkfifo): Declare replacement.
35493         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35494         Document it.
35495         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
35496         * modules/mkfifo-tests: New test.
35497         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
35498         from test-mkfifoat.c.
35499         * tests/test-mkfifo.c: New file.
35500
35501         readlink: detect FreeBSD bug
35502         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
35503         slash on symlink.
35504         * doc/posix-functions/readlink.texi (readlink): Document the bug.
35505         * tests/test-readlink.h (test_readlink): Enhance test.
35506
35507         symlink: detect FreeBSD bug
35508         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
35509         slash on symlink.
35510         * doc/posix-functions/symlink.texi (symlink): Document the bug.
35511         * tests/test-symlink.h (test_symlink): Enhance test.
35512
35513 2009-11-10  Eric Blake  <ebb9@byu.net>
35514
35515         link: detect FreeBSD bug
35516         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
35517         symlink.
35518         * doc/posix-functions/link.texi (link): Document the bug.
35519         * tests/test-link.h (test_link): Enhance test.
35520         * tests/test-linkat.c (main): Update caller.
35521
35522         unlink, remove: detect FreeBSD bug
35523         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
35524         slash on symlink.
35525         * doc/posix-functions/unlink.texi (unlink): Document the bug.
35526         * doc/posix-functions/remove.texi (remove): Likewise.
35527         * tests/test-unlink.h (test_unlink): Enhance test.
35528         * tests/test-remove.c (main): Likewise.
35529
35530 2009-11-09  Eric Blake  <ebb9@byu.net>
35531
35532         rename: detect FreeBSD bug
35533         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
35534         slash on symlink.
35535         * modules/renameat-tests (Depends-on): Add filenamecat.
35536         * tests/test-rename.h (test_rename): Allow one more errno.
35537         * tests/test-renameat.c (main): Likewise.
35538         * doc/posix-functions/rename.texi (rename): Document the bug.
35539
35540         open: detect FreeBSD bug
35541         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
35542         symlink.
35543         * doc/posix-functions/open.texi (open): Document the bug.
35544         * doc/posix-functions/utimes.texi (utimes): Likewise.
35545         * tests/test-open.h (test_open): Add parameters, and test symlink
35546         handling.
35547         * tests/test-open.c (main): Adjust caller.
35548         * tests/test-fcntl-safer.c (main): Likewise.
35549         * modules/open-tests (Depends-on): Add stdbool, symlink.
35550         * modules/fcntl-safer-tests (Depends-on): Likewise.
35551         * tests/test-openat.c (main): Add test-open tests.
35552
35553         stat: detect FreeBSD bug
35554         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
35555         symlink.
35556         * doc/posix-functions/stat.texi (stat): Document the bug.
35557         * tests/test-stat.h (test_stat_func): Add argument.
35558         * tests/test-stat.c (main): Adjust caller.
35559         * tests/test-fstatat.c (main): Likewise.
35560         * modules/stat-tests (Depends-on): Add stdbool, symlink.
35561         Reported by Jim Meyering.
35562
35563 2009-11-09  James Youngman  <jay@gnu.org>
35564
35565         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
35566         * lib/strftime.c: Correct placement of #include "ignore-value.h".
35567
35568 2009-11-08  Jim Meyering  <meyering@redhat.com>
35569
35570         utimens: remove invalid futimesat call
35571         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
35572         It used the file descriptor of the target file as the DIR_FD
35573         parameter and NULL as the file name.  That caused failure with
35574         errno == EFAULT on FreeBSD-8.0-rc2
35575
35576 2009-11-07  Eric Blake  <ebb9@byu.net>
35577
35578         fflush, freadseek: use fseeko, not fseek
35579         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35580         (clear_ungetc_buffer): Avoid potential problems on large files.
35581         * lib/freadseek.c (freadseek): Likewise.
35582         * modules/freadseek (Depends-on): Add fseeko.
35583         * modules/fseek (configure.ac): Set a witness.
35584         * tests/test-fflush.c (main): Use fseeko.
35585         * tests/test-fpurge.c (fseek): Disable link warning.
35586         * tests/test-freadable.c (fseek): Likewise.
35587         * tests/test-freading.c (fseek): Likewise.
35588         * tests/test-fseeko.c (fseek): Likewise.
35589         * tests/test-ftell.c (fseek): Likewise.
35590         * tests/test-ftello.c (fseek): Likewise.
35591         * tests/test-fwritable.c (fseek): Likewise.
35592         * tests/test-fwriting.c (fseek): Likewise.
35593
35594 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35595
35596         * modules/memchr (Depends-on): Drop getpagesize dependency.
35597
35598 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35599
35600         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
35601         Reported by Ludovic Courtès.
35602         * build-aux/pmccabe2html: Improve example usage.
35603         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
35604
35605 2009-11-06  Jim Meyering  <meyering@redhat.com>
35606
35607         do-release-commit-and-tag: New module.
35608         Automate the release-commit and tag process.
35609         * build-aux/do-release-commit-and-tag: New script, from coreutils.
35610         * modules/do-release-commit-and-tag: New file.
35611         * MODULES.html.sh (Support for maintaining and releasing): Add it.
35612
35613 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35614
35615         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
35616         because test-select.c uses inet_pton.
35617
35618 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35619
35620         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
35621         GETADDRINFO_LIB.  Bump serial number.
35622         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
35623         Suggested by Eric Blake <ebb9@byu.net>.
35624
35625 2009-11-05  Eric Blake  <ebb9@byu.net>
35626
35627         strtod: detect darwin bug
35628         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
35629         Reported by Leo Davis.
35630
35631         freopen-safer: new module
35632         * modules/freopen-safer: New module.
35633         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
35634         * lib/freopen-safer.c (freopen_safer): New file.
35635         * lib/stdio-safer.h (freopen_safer): New declaration.
35636         * lib/stdio--.h (freopen): New override.
35637         * MODULES.html.sh (File stream based Input/Output): Mention it.
35638         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
35639         freopen-safer module.
35640         * doc/posix-functions/stderr.texi (stderr): Likewise.
35641         * doc/posix-functions/stdin.texi (stdin): Likewise.
35642         * doc/posix-functions/stdout.texi (stdout): Likewise.
35643         * modules/freopen-safer-tests: New test.
35644         * tests/test-reopen-safer.c: New file.
35645
35646 2009-11-05  Jim Meyering  <meyering@redhat.com>
35647
35648         maint.mk: Prohibit inclusion of "close-stream.h" without use.
35649         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35650
35651 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35652
35653         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
35654
35655 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35656
35657         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
35658
35659 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35660
35661         Fix link error.
35662         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35663         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35664
35665 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35666
35667         * tests/test-func.c: Also test value of __func__.
35668
35669 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35670
35671         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
35672         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
35673
35674 2009-11-05  Bruno Haible  <bruno@clisp.org>
35675
35676         Fix link error.
35677         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35678         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35679         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
35680
35681 2009-11-05  Bruno Haible  <bruno@clisp.org>
35682
35683         Tests for module 'inet_pton'.
35684         * modules/inet_pton-tests: New file.
35685         * tests/test-inet_pton.c: New file.
35686
35687 2009-11-05  Bruno Haible  <bruno@clisp.org>
35688
35689         Tests for module 'inet_ntop'.
35690         * modules/inet_ntop-tests: New file.
35691         * tests/test-inet_ntop.c: New file.
35692
35693 2009-11-04  Eric Blake  <ebb9@byu.net>
35694
35695         stdlib-safer: wrap all mkstemp variants
35696         * modules/mkostemp (configure.ac): Set witness.
35697         * modules/mkostemps (configure.ac): Likewise.
35698         * modules/mkstemps (configure.ac): Likewise.
35699         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
35700         (mkstemps_safer): Wrap more functions.
35701         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
35702         wrapping.
35703         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
35704         (mkstemps_safer): Implement the wrappers.
35705
35706         mkstemps, mkostemps: new modules
35707         * modules/mkostemps: New module.
35708         * modules/mkstemps: Likewise.
35709         * lib/mkostemps.c (mkostemps): New file.
35710         * lib/mkstemps.c (mkstemps): Likewise.
35711         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
35712         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
35713         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
35714         * modules/stdlib (Makefile.am): Substitute them.
35715         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
35716         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
35717         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
35718         * doc/gnulib.texi (Glibc stdlib.h): Include them.
35719         * MODULES.html.sh (File system functions): Mention them.
35720
35721         tempname: resync from glibc
35722         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
35723         same values for __GT_FILE as glibc.  Abort even when assertions
35724         are disabled.
35725         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
35726         match its value otherwise.  Allow idempotent inclusion.
35727         * lib/mkdtemp.c (mkdtemp): Adjust caller.
35728         * lib/mkostemp.c (mkostemp): Likewise.
35729         * lib/mkstemp.c (mkstemp): Likewise.
35730         * lib/tmpfile.c (tmpfile): Likewise.
35731         * NEWS: Document this.
35732
35733         utimens: fix use of futimens on older Linux
35734         * lib/utimens.c (fdutimens): Use updated, rather than original,
35735         timespec to avoid bug in older Linux kernel.
35736         Reported by Simon Josefsson.
35737
35738 2009-11-04  Bruno Haible  <bruno@clisp.org>
35739
35740         Make num_processors more flexible and consistent.
35741         * lib/nproc.h (enum nproc_query): New type.
35742         (num_processors): Add a 'query' argument.
35743         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
35744         (num_processors): Add a 'query' argument. Test the value of the
35745         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
35746         mingw, count the number of CPUs available for the current process.
35747         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
35748         Check for sched_getaffinity and sched_getaffinity_np.
35749         * modules/nproc (Depends-on): Add c-ctype, extensions.
35750         * NEWS: Mention the change.
35751
35752 2009-11-03  Bruno Haible  <bruno@clisp.org>
35753
35754         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
35755
35756 2009-11-03  Jim Meyering  <meyering@redhat.com>
35757
35758         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
35759         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
35760         if it is defined.
35761
35762 2009-11-02  Eric Blake  <ebb9@byu.net>
35763
35764         mktime, timegm: share common declaration
35765         * lib/mktime-internal.h: New file.
35766         * lib/mktime.c: Use it rather than open-coding a declaration.
35767         * lib/timegm.c: Likewise.
35768         * modules/mktime (Files): Ship it.
35769         * modules/timegm (Files): Likewise.
35770         Suggested by Bruno Haible.
35771
35772         test-update-copyright: update test to match script changes
35773         * tests/test-update-copyright.sh: Avoid hard-coding perl
35774         location.  Don't update *.bak created by earlier runs.
35775
35776 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
35777             Simon Josefsson  <simon@josefsson.org>
35778             Bruno Haible  <bruno@clisp.org>
35779
35780         Fix link error on Solaris 8.
35781         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
35782         also in libnsl. Define also INET_PTON_LIB.
35783         * modules/inet_pton (Link): New section.
35784
35785 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35786             Bruno Haible  <bruno@clisp.org>
35787
35788         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
35789         * modules/inet_ntop (Link): New section.
35790         Reported by Boyan Kasarov <bkasarov@gmail.com>.
35791
35792 2009-11-02  Eric Blake  <ebb9@byu.net>
35793
35794         maint: avoid compiler warnings in m4 macros
35795         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
35796         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
35797
35798 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35799
35800         * m4/pmccabe2html.m4: Remove file.
35801         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
35802         function.  Change maintainer.
35803         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
35804         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
35805         Courtès).
35806
35807 2009-10-31  Eric Blake  <ebb9@byu.net>
35808
35809         fseeko: fix m4 regression
35810         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
35811         regression from 2009-10-27.
35812         Reported by Ralf Wildenhues.
35813
35814 2009-10-31  Jim Meyering  <meyering@redhat.com>
35815
35816         inttostr: aesthetics and improved (compile-time) safety
35817         Define inttype_is_signed rather than inttype_is_unsigned,
35818         since the sole use is via "#if inttype_is_signed".
35819         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
35820         inttype_is_unsigned.
35821         * lib/offtostr.c (inttype_is_signed): Likewise.
35822         * lib/uinttostr.c (inttype_is_signed): Likewise.
35823         * lib/umaxtostr.c (inttype_is_signed): Likewise.
35824         * lib/inttostr.c (inttostr): Use verify to cross-check the
35825         inttype_is_signed value and the signedness of the actual type.
35826         * modules/inttostr (Depends-on): Add verify.
35827
35828 2009-10-30  Eric Blake  <ebb9@byu.net>
35829
35830         build: avoid compiler warnings
35831         * lib/fchmodat.c (lchmod): Mark unused variables.
35832         * lib/getopt.c (_getopt_initialize): Likewise.
35833         * lib/mktime.c (__mktime_internal): Provide prototype.
35834         * lib/inttostr.c (inttostr): Avoid compiler warning even with
35835         older gcc that do not understand #pragma GCC diagnostic.
35836         * lib/uinttostr.c (inttype_is_unsigned): Define.
35837         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
35838
35839 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35840
35841         stat: fix compilation on AIX
35842         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
35843         only see struct stat64.
35844
35845 2009-10-30  Eric Blake  <ebb9@byu.net>
35846
35847         exclude: make more robust
35848         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
35849         rather than masking a coding bug.
35850         Suggested by Bruno Haible.
35851
35852 2009-10-30  Jim Meyering  <meyering@redhat.com>
35853
35854         perl scripts: remove #!/usr/bin/perl in favor of more portable...
35855         Rather than putting #!/usr/bin/perl on the first line,
35856         start with a variant of what's recommended by "man perlrun" that
35857         invokes the first "perl" program from your shell's search path.
35858         * build-aux/gitlog-to-changelog: Replace #!... as above.
35859         Add a "Local Variables" perl mode setting.
35860         Prompted by a patch from Ludovic Courtès.
35861         Improved by Eric Blake.
35862         * build-aux/useless-if-before-free: Likewise.
35863         * build-aux/announce-gen: Likewise.
35864         * build-aux/update-copyright: Likewise.
35865
35866 2009-10-29  Eric Blake  <ebb9@byu.net>
35867
35868         filenamecat-lgpl: adjust clients
35869         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
35870         filenamecat.
35871         * modules/renameat (Depends-on): Likewise.
35872
35873         filenamecat: split into filenamecat-lgpl
35874         * modules/filenamecat-lgpl: New module.
35875         * modules/filenamecat (Files): Move library-safe files into
35876         filenamecat-lgpl.
35877         (Depends-on): Add filenamecat-lgpl.
35878         (configure.ac): Declare witness.
35879         * lib/filenamecat.h (file_name_concat): Only declare when using
35880         GPL module.
35881         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
35882         Move...
35883         * lib/filenamecat-lgpl.c: ...into new file.
35884         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
35885         (gl_FILE_NAME_CONCAT): Use it.
35886         * MODULES.html.sh (File system functions): Mention new module.
35887
35888         argp: avoid memory leak
35889         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
35890         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
35891         base_name, since the latter malloc()s and can call exit().
35892         Leak introduced 2006-07-03.
35893
35894         dirname-lgpl: adjust clients that don't need full dirname
35895         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
35896         * modules/filenamecat (Depends-on): Likewise.
35897         * modules/linkat (Depends-on): Likewise.
35898         * modules/mkancesdirs (Depends-on): Likewise.
35899         * modules/mkdir (Depends-on): Likewise.
35900         * modules/openat (Depends-on): Likewise.
35901         * modules/savewd (Depends-on): Likewise.
35902         * modules/rename (Depends-on): Likewise.
35903         (License): Relax license.
35904         * modules/mkdir-tests (Depends-on): Drop progname.
35905         (Makefile.am): Delete unneeded LDADD.
35906         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
35907
35908         dirname: split into dirname-lgpl
35909         * modules/dirname-lgpl: New module.
35910         * modules/dirname (Files): Move library-safe files into
35911         dirname-lgpl.
35912         (Depends-on): Add dirname-lgpl.
35913         (configure.ac): Declare witness.
35914         * modules/double-slash-root (License): Relax license.
35915         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
35916         module.
35917         * lib/dirname.c (dir_len, mdir_name): Move...
35918         * lib/dirname-lgpl.c: ...into new file.
35919         * lib/basename.c (last_component, base_len): Move...
35920         * lib/basename-lgpl.c: ...into new file.
35921         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
35922         (gl_DIRNAME): Use it.
35923         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
35924         Mention new module.
35925         * modules/dirname-tests (Depends-on): Add progname.
35926         * tests/test-dirname.c (program_name): Delete.
35927
35928         mkdir: make safe for libraries
35929         * modules/mkdir (Depends-on): Drop xalloc.
35930         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
35931         exit.
35932
35933         tests: avoid some compiler warnings
35934         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
35935         literals.
35936         * tests/test-memchr.c (main): Avoid type mismatch.
35937         * tests/test-arpa_inet.c (main): Avoid unused parameters.
35938         * tests/test-base64.c (main): Likewise.
35939         * tests/test-getdelim.c (main): Likewise.
35940         * tests/test-gethostname.c (main): Likewise.
35941         * tests/test-getline.c (main): Likewise.
35942         * tests/test-netinet_in.c (main): Likewise.
35943         * tests/test-select.c (open_server_socket, main): Likewise.
35944         * tests/test-select-stdin.c (main): Likewise.
35945         * tests/test-sockets.c (main): Likewise.
35946         * tests/test-strsignal.c (main): Likewise.
35947         * tests/test-sys_select.c (main): Likewise.
35948         * tests/test-sys_socket.c (main): Likewise.
35949         * tests/test-u64.c (main): Likewise.
35950         * tests/test-xfprintf-posix.c (main): Likewise.
35951         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
35952
35953         sockets: avoid compiler warning
35954         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
35955
35956         maint: detect usage(1) and other suspicious exits
35957         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
35958
35959 2009-10-29  Jim Meyering  <meyering@redhat.com>
35960
35961         timespec: long-to-int truncation could make timespec_cmp malfunction
35962         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
35963         a multiple of 2^32 nanoseconds as no difference.
35964
35965 2009-10-28  Jim Meyering  <meyering@redhat.com>
35966
35967         fprintftime: wrap macro code argument in "do {...} while(0)"
35968         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
35969         cpy macro must be a statement that can be followed by a semicolon.
35970         Now that the else clause contains a comment and is hence longer
35971         than one line, I require curly braces.  That in turn requires
35972         that we wrap this code block in the standard do...while(0).
35973
35974         fprintftime: remove stray semicolon from previous change
35975         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
35976
35977         fprintftime: avoid a warning about ignored fwrite return value
35978         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
35979         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
35980         that is unsafe.
35981         * modules/fprintftime (Depends-on): Add ignore-value.
35982
35983         exclude: avoid an unwarranted warning
35984         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
35985
35986 2009-10-27  Eric Blake  <ebb9@byu.net>
35987
35988         fseek: avoid compilation failure when fflush is replaced
35989         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
35990         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
35991         module is in use.
35992         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
35993         module is not in use; since REPLACE_FSEEK worked otherwise.
35994         (GNULIB_FTELLO): Likewise for ftell.
35995         Reported by Ian Beckwith and others.
35996
35997 2009-10-27  Bruno Haible  <bruno@clisp.org>
35998
35999         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
36000         Reported by Jim Meyering.
36001
36002 2009-10-27  Jim Meyering  <jim@meyering.net>
36003             Bruno Haible  <bruno@clisp.org>
36004
36005         Avoid warning despite dropping the return value of fwrite.
36006         * lib/unicodeio.c: Include ignore-value.h.
36007         (fwrite_success_callback): Explicitly ignore fwrite's return value.
36008         * modules/unicodeio (Depends-on): Add ignore-value.
36009
36010 2009-10-26  Eric Blake  <ebb9@byu.net>
36011
36012         areadlinkat: fix fallback path
36013         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
36014         pointer and zero.
36015
36016 2009-10-22  Pádraig Brady  <P@draigBrady.com>
36017
36018         Use a better IO block size for modern systems
36019         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
36020         * lib/md2.c: Likewise.
36021         * lib/md4.c: Likewise.
36022         * lib/md5.c: Likewise.
36023         * lib/sha1.c: Likewise.
36024         * lib/sha256.c: Likewise.
36025         * lib/sha512.c: Likewise.
36026
36027 2009-10-22  Eric Blake  <ebb9@byu.net>
36028
36029         tests: avoid several compiler warnings
36030         * tests/test-getcwd.c (main): Avoid buffer underflow.
36031         * tests/test-getdate.c (main): String literals are not safe with
36032         putenv, so use setenv.  Declare unused argument.
36033         * modules/getdate-tests (Depends-on): Add setenv.
36034         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
36035         problems with string literals in char *.
36036         * tests/test-hash.c (main): Avoid shadowing declaration.
36037         (insert_new): Treat string literals as char const *.
36038         * tests/test-getopt.h (test_getopt): Likewise.
36039         (getopt_loop): Alter types to minimize casting elsewhere.
36040         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
36041         (test_getopt_long_posix): Likewise.
36042         (do_getopt_long): Add wrapper to minimize casting.
36043         * tests/test-atexit.c (clear_temp_file): Use void.
36044         * tests/test-areadlink-with-size.c (main): Declare unused
36045         arguments.
36046         * tests/test-areadlink.c (main): Likewise.
36047         * tests/test-areadlinkat-with-size.c (main): Likewise.
36048         * tests/test-areadlinkat.c (main): Likewise.
36049         * tests/test-canonicalize-lgpl.c (main): Likewise.
36050         * tests/test-canonicalize.c (main): Likewise.
36051         * tests/test-dirent-safer.c (main): Likewise.
36052         * tests/test-dirname.c (main): Likewise.
36053         * tests/test-dup2.c (main): Likewise.
36054         * tests/test-fchdir.c (main): Likewise.
36055         * tests/test-fcntl-h.c (main): Likewise.
36056         * tests/test-fcntl-safer.c (main): Likewise.
36057         * tests/test-fdopendir.c (main): Likewise.
36058         * tests/test-fdutimensat.c (main): Likewise.
36059         * tests/test-fflush.c (main): Likewise.
36060         * tests/test-filenamecat.c (main): Likewise.
36061         * tests/test-filevercmp.c (main): Likewise.
36062         * tests/test-fopen-safer.c (main): Likewise.
36063         * tests/test-fopen.c (main): Likewise.
36064         * tests/test-fpending.c (main): Likewise.
36065         * tests/test-fpurge.c (main): Likewise.
36066         * tests/test-freading.c (main): Likewise.
36067         * tests/test-fstatat.c (main): Likewise.
36068         * tests/test-fsync.c (main): Likewise.
36069         * tests/test-futimens.c (main): Likewise.
36070         * tests/test-getndelim2.c (main): Likewise.
36071         * tests/test-gettimeofday.c (main): Likewise.
36072         * tests/test-getopt.c (main): Likewise.
36073         * tests/test-i-ring.c (main): Likewise.
36074         * tests/test-inttypes.c (main): Likewise.
36075         * tests/test-link.c (main): Likewise.
36076         * tests/test-lstat.c (main): Likewise.
36077         * tests/test-math.c (main): Likewise.
36078         * tests/test-md5.c (main): Likewise.
36079         * tests/test-memchr2.c (main): Likewise.
36080         * tests/test-memrchr.c (main): Likewise.
36081         * tests/test-mkdir.c (main): Likewise.
36082         * tests/test-mkdirat.c (main): Likewise.
36083         * tests/test-mkfifoat.c (main): Likewise.
36084         * tests/test-open.c (main): Likewise.
36085         * tests/test-openat-safer.c (main): Likewise.
36086         * tests/test-openat.c (main): Likewise.
36087         * tests/test-quotearg.c (main): Likewise.
36088         * tests/test-rawmemchr.c (main): Likewise.
36089         * tests/test-readlink.c (main): Likewise.
36090         * tests/test-remove.c (main): Likewise.
36091         * tests/test-rename.c (main): Likewise.
36092         * tests/test-renameat.c (main): Likewise.
36093         * tests/test-rmdir.c (main): Likewise.
36094         * tests/test-sha1.c (main): Likewise.
36095         * tests/test-signal.c (main): Likewise.
36096         * tests/test-sigaction.c (main): Likewise.
36097         * tests/test-stat.c (main): Likewise.
36098         * tests/test-stat-time.c (main): Likewise.
36099         * tests/test-stddef.c (main): Likewise.
36100         * tests/test-stdint.c (main): Likewise.
36101         * tests/test-stdio.c (main): Likewise.
36102         * tests/test-stdlib.c (main): Likewise.
36103         * tests/test-strchrnul.c (main): Likewise.
36104         * tests/test-strerror.c (main): Likewise.
36105         * tests/test-string.c (main): Likewise.
36106         * tests/test-strtod.c (main): Likewise.
36107         * tests/test-strverscmp.c (main): Likewise.
36108         * tests/test-symlink.c (main): Likewise.
36109         * tests/test-symlinkat.c (main): Likewise.
36110         * tests/test-sys_stat.c (main): Likewise.
36111         * tests/test-sys_time.c (main): Likewise.
36112         * tests/test-time.c (main): Likewise.
36113         * tests/test-unistd.c (main): Likewise.
36114         * tests/test-unlink.c (main): Likewise.
36115         * tests/test-unlinkat.c (main): Likewise.
36116         * tests/test-utimens.c (main): Likewise.
36117         * tests/test-utimensat.c (main): Likewise.
36118         * tests/test-version-etc.c (main): Likewise.
36119         * tests/test-wchar.c (main): Likewise.
36120         * tests/test-wctype.c (main): Likewise.
36121         * tests/test-xprintf-posix.c (main): Likewise.
36122         * tests/test-posixtm.c (main): Likewise.
36123         (STREQ): Delete unused macro.
36124         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
36125         shadowed variables.
36126         * tests/test-memchr.c (main): Likewise.
36127
36128 2009-10-21  Eric Blake  <ebb9@byu.net>
36129
36130         areadlinkat: avoid failure on older glibc
36131         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
36132         rather than mis-comparing 0 against FUNC_RESULT of char*.
36133
36134 2009-10-21  Bruno Haible  <bruno@clisp.org>
36135
36136         * modules/stpncpy (License): Relicense under LGPLv2+.
36137         Reported by David Lutterkort <lutter@redhat.com>.
36138
36139 2009-10-20  Eric Blake  <ebb9@byu.net>
36140
36141         utimensat: work around Solaris 9 bug
36142         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
36143         has trailing slash bugs.
36144         * tests/test-lutimens.h (test_lutimens): Enhance test.
36145         * tests/test-utimens.h (test_utimens): Likewise.
36146         * doc/posix-functions/utime.texi (utime): Enhance documentation.
36147         * doc/posix-functions/utimes.texi (utimes): Likewise.
36148         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36149         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
36150         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
36151         * doc/posix-functions/futimens.texi (futimens): Likewise.
36152
36153         fdutimensat: new module
36154         * modules/fdutimensat: New file.
36155         * lib/fdutimensat.c (fdutimensat): Likewise.
36156         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
36157         * MODULES.html.sh (File system functions): Mention module.
36158         * modules/fdutimensat-tests: New test.
36159         * tests/test-fdutimensat.c: Likewise.
36160
36161         doc: regenerate INSTALL
36162         * doc/INSTALL: Reflect recent autoconf update.
36163         * doc/INSTALL.ISO: Likewise.
36164         * doc/INSTALL.UTF-8: Likewise.
36165
36166 2009-10-20  Pádraig Brady  <P@draigBrady.com>
36167
36168         acl: warn if ACL support is not detected
36169         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
36170
36171 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
36172
36173         * lib/nproc.h: Add extern "C" block for C++.
36174
36175 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
36176             Bruno Haible  <bruno@clisp.org>
36177
36178         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
36179         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
36180         * doc/posix-functions/isalpha.texi: Likewise.
36181         * doc/posix-functions/isblank.texi: Likewise.
36182         * doc/posix-functions/iscntrl.texi: Likewise.
36183         * doc/posix-functions/isdigit.texi: Likewise.
36184         * doc/posix-functions/isgraph.texi: Likewise.
36185         * doc/posix-functions/islower.texi: Likewise.
36186         * doc/posix-functions/isprint.texi: Likewise.
36187         * doc/posix-functions/ispunct.texi: Likewise.
36188         * doc/posix-functions/isspace.texi: Likewise.
36189         * doc/posix-functions/isupper.texi: Likewise.
36190         * doc/posix-functions/isxdigit.texi: Likewise.
36191
36192 2009-10-18  Bruno Haible  <bruno@clisp.org>
36193
36194         Tests for module 'isblank'.
36195         * modules/isblank-tests: New file.
36196         * tests/test-isblank.c: New file.
36197
36198         New module 'isblank'.
36199         * lib/isblank.c: New file.
36200         * m4/isblank.m4: New file.
36201         * modules/isblank: New file.
36202         * doc/posix-functions/isblank.texi: Mention the new module.
36203
36204 2009-10-18  Bruno Haible  <bruno@clisp.org>
36205
36206         New module 'ctype'.
36207         * lib/ctype.in.h: New file.
36208         * m4/ctype.m4: New file.
36209         * modules/ctype: New file.
36210         * doc/posix-headers/ctype.texi: Mention the new module.
36211
36212 2009-10-18  Jim Meyering  <meyering@redhat.com>
36213
36214         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
36215         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
36216         right after its initialization, rather than farther down.
36217         Keeping these in close proximity makes it easier to ensure
36218         that each such variable is initialized.  E.g.,
36219
36220             LIB_CLOCK_GETTIME=
36221             AC_SUBST([LIB_CLOCK_GETTIME])
36222
36223         This change also increments these serial numbers.
36224         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
36225         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36226         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36227
36228 2009-10-18  Bruno Haible  <bruno@clisp.org>
36229
36230         Don't let environment variables perturb build.
36231         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
36232         (gl_PREREQ_GETHRXTIME): ... not here.
36233
36234 2009-10-18  Bruno Haible  <bruno@clisp.org>
36235
36236         Avoid symlink attack in localcharset module.
36237         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
36238         (O_NOFOLLOW): Define fallback.
36239         (get_charset_aliases): Don't open the file if it is a symbolic link.
36240         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
36241         gl_FCNTL_H.
36242         (gl_FCNTL_H): Require it.
36243         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
36244         * modules/localcharset (Files): Add m4/fcntl_h.m4.
36245         Reported by Fergal Glynn <fglynn@veracode.com>.
36246
36247 2009-10-18  Bruno Haible  <bruno@clisp.org>
36248
36249         Implement nproc for mingw.
36250         * lib/nproc.c: Include <windows.h>
36251         (num_processors): On native Windows platforms, try GetSystemInfo.
36252
36253 2009-10-18  Bruno Haible  <bruno@clisp.org>
36254
36255         Implement nproc for IRIX.
36256         * lib/nproc.c: Include <sys/sysmp.h>.
36257         (num_processors): On IRIX systems, try sysmp.
36258         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
36259
36260 2009-10-18  Bruno Haible  <bruno@clisp.org>
36261
36262         Implement nproc for HP-UX.
36263         * lib/nproc.c: Include <sys/pstat.h>
36264         (num_processors): On HP-UX systems, try pstat_getdynamic.
36265         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
36266         pstat_getdynamic.
36267
36268 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
36269             Bruno Haible  <bruno@clisp.org>
36270
36271         Implement nproc for NetBSD, OpenBSD.
36272         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
36273         (ARRAY_SIZE): New macro.
36274         (num_processors): On BSD systems, try sysctl of HW_NCPU.
36275         * m4/nproc.m4: New file.
36276         * modules/nproc (Files): Add m4/nproc.m4.
36277         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
36278         (Makefile.am): Instead, augment lib_SOURCES.
36279
36280 2009-10-18  Bruno Haible  <bruno@clisp.org>
36281
36282         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
36283         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
36284         sys/param.h.
36285
36286 2009-10-16  Eric Blake  <ebb9@byu.net>
36287
36288         utimensat: new module
36289         * modules/utimensat: New file.
36290         * lib/utimensat.c (utimensat): Likewise.
36291         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36292         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
36293         so we can work around Linux bugs.
36294         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36295         * modules/sys_stat (Makefile.am): Substitute them.
36296         * lib/sys_stat.in.h (utimensat): Declare it.
36297         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36298         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36299         * modules/utimensat-tests: New test.
36300         * tests/test-utimensat.c: Likewise.
36301
36302         utimens: let lutimens work on non-symlinks
36303         * lib/utimens.c (lutimens): Fall back to utimens rather than
36304         failing with ENOSYS, when file is not a symlink.
36305         (utimens): Reduce redirection.
36306         * tests/test-lutimens.h (test_lutimens): Update test to cover
36307         non-symlinks.
36308         * tests/test-utimens.h (test_utimens): Update test to cover
36309         symlinks.
36310         * tests/test-utimens.c (main): Update caller.
36311
36312         utimens: cache whether utimensat syscall works
36313         * lib/utimens.c (utimensat_works_really): New cache variable.
36314         (fdutimens, lutimens): Use it to avoid failing syscall.
36315
36316         test-stat-time, test-utimens: improve portability
36317         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
36318         ext4 on alpha, and for cygwin.
36319         * tests/test-utimens-common.h: New file.
36320         (nap): Factor delays into single function.
36321         * tests/test-lutimens.h (test_lutimens): Use new header.
36322         * tests/test-futimens.h (test_futimens): Likewise.
36323         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
36324         timestamps to occur from same machine, as was done previously for
36325         test_utimens.
36326         * modules/utimens-tests (Files): Ship new file.
36327         * modules/futimens-tests (Files): Likewise.
36328         Reported in part by Jim Meyering.
36329
36330         sys_stat: sort replacement declarations
36331         * lib/sys_stat.in.h: Sort declarations.
36332         * lib/futimens.c (futimens): Fix typo.
36333
36334 2009-10-15  Jim Meyering  <meyering@redhat.com>
36335
36336         don't let environment settings perturb build
36337         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
36338         could cause a configure-time and/or build-time malfunction.
36339         Typically, a configure-time function-in-library test is performed
36340         via code like this:
36341
36342           LIB_VAR=
36343           AC_SUBST([LIB_VAR])
36344           prefix_saved_LIBS=$LIBS
36345             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
36346                        [test "$ac_cv_search_FUNC" = "none required" ||
36347                         LIB_VAR=$ac_cv_search_FUNC])
36348           LIBS=$prefix_saved_LIBS
36349
36350         However, in each of the files affected by this change, the LIB_VAR=
36351         initialization was omitted.  Thus, when set in the environment, its
36352         value would propagate into generated Makefiles when FUNC is not found
36353         in LIB_NAME.
36354         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
36355         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36356         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36357
36358 2009-10-14  Eric Blake  <ebb9@byu.net>
36359
36360         fchdir: avoid infinite recursion in mingw
36361         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
36362         recursing.
36363
36364         test-stat-time: port to mingw
36365         * tests/test-stat-time.c (force_unlink): Return a value.
36366         (test_ctime) [W32]: Fix compilation error.
36367         (nap): Don't call usleep with too large an argument.  Use
36368         force_unlink.
36369         * doc/pastposix-functions/usleep.texi (usleep): Document the
36370         portability issue.
36371
36372 2009-10-13  Jim Meyering  <meyering@redhat.com>
36373
36374         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
36375         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
36376         * modules/pipe-filter-ii: Likewise.
36377         * modules/sys_socket-tests: Likewise.
36378         * modules/tsearch-tests: Likewise.
36379         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
36380         (check): Depend on it.
36381
36382 2009-10-12  Eric Blake  <ebb9@byu.net>
36383
36384         utimens-tests: port to NFS file systems
36385         * tests/test-utimens.h (test_utimens): Refactor utimecmp
36386         comparisons to avoid spurious failures from timestamp drift
36387         between NFS machines.
36388
36389 2009-10-12  Eric Blake  <ebb9@byu.net>
36390
36391         stat-time-tests: minor cleanups
36392         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
36393         * tests/test-stat-time.c (nap): Separate assignment from call.
36394         Suggested by Paolo Bonzini and Bruno Haible.
36395
36396         sys_stat: guarantee struct timespec
36397         * lib/sys_stat.in.h (includes): Always include <time.h>
36398         * modules/sys_stat (Depends-on): Add time.
36399         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
36400         mode_t permission values.
36401         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
36402         get at subsecond timestamps.
36403
36404 2009-10-10  Eric Blake  <ebb9@byu.net>
36405
36406         futimens: new module
36407         * modules/futimens: New file.
36408         * lib/futimens.c (futimens): Likewise.
36409         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
36410         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
36411         we can work around Linux bugs.
36412         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36413         * modules/sys_stat (Makefile.am): Substitute them.
36414         * lib/sys_stat.in.h (futimens): Declare it.
36415         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36416         * doc/posix-functions/futimens.texi (futimens): Likewise.
36417         * modules/futimens-tests: New test.
36418         * tests/test-futimens.c: Likewise.
36419
36420         utimens: introduce fdutimens
36421         * lib/utimens.h (fdutimens): New prototype.
36422         * lib/utimens.c (gl_futimens): Move guts...
36423         (fdutimens): ...to new interface.
36424         * tests/test-utimens.c (do_fdutimens): Use it.
36425
36426         utimens: add UTIME_NOW and UTIME_OMIT support
36427         * lib/utimens.c (validate_timespec, update_timespec): New helper
36428         functions.
36429         (gl_futimens, lutimens): Use them.
36430         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
36431         stdbool, sys_stat.
36432         (Link): Mention resulting library dependency.
36433         * modules/utimecmp (Link): Likewise.
36434         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
36435         (Makefile.am): Pick up library dependency.
36436         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
36437         definition.
36438         * tests/test-sys_stat.c: Test the definitions.
36439         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
36440         * NEWS: Document library dependency.
36441
36442         utimecmp: support symlink timestamps
36443         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
36444         hashing when possible.  Use pathconf when available.
36445         (SYSCALL_RESOLUTION): Recognize tighter resolution.
36446         * modules/utimecmp (Depends-on): Add lstat.
36447
36448         utimens: add lutimens interface
36449         * lib/utimens.c (lutimens): New function.
36450         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
36451         * lib/utimens.h (lutimens): Declare new interface.
36452         * tests/test-utimens.c (main): Enhance test.
36453         * tests/test-lutimens.h (test_lutimens): New file.
36454         * modules/utimens-tests (Files): Distribute it.
36455         (Depends-on): Add symlink.
36456         (configure.ac): Check for usleep.
36457
36458         utimens: validate futimens usage
36459         * lib/utimens.c (gl_futimens): Require valid fd up front, using
36460         fewer syscalls on failure later on.  Avoid compiler warning on
36461         mingw.
36462         * modules/utimens (Depends-on): Add dup2.
36463
36464         utimens: add test
36465         * modules/utimens-tests: New test.
36466         * tests/test-utimens.h: New file.
36467         * tests/test-futimens.h: Likewise.
36468         * tests/test-utimens.c: Likewise.
36469
36470         doc: mention timestamp portability issues
36471         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
36472         instead.
36473         * doc/posix-functions/utime.texi (utime): Likewise.
36474         * doc/posix-functions/utimes.texi (utimes): Likewise.
36475         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
36476         instead.
36477         * doc/posix-functions/futimens.texi (futimens): Mention utimens
36478         module.
36479         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36480         Mention weakness with symlink timestamps.
36481         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
36482         to utimensat/futimens instead.
36483         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
36484
36485         test-dup2: enhance test
36486         * tests/test-dup2.c (main): Also check AT_FDCWD.
36487
36488         test-stat-time: avoid more spurious failures
36489         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
36490         xfs; and avoid race if the two timestamps cross quantization edge.
36491
36492         relocatable: prefer 'file system' over 'filesystem'
36493         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
36494         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
36495         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
36496         * doc/relocatable.texi (Enabling Relocatability): Likewise.
36497         * lib/relocatable.c (compute_curr_prefix): Likewise.
36498
36499 2009-10-10  Jim Meyering  <meyering@redhat.com>
36500
36501         stat-time-tests: check for the usleep function
36502         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
36503
36504 2009-10-10  Bruno Haible  <bruno@clisp.org>
36505
36506         * modules/xnanosleep: Put the Link section after the Include section.
36507
36508 2009-10-09  Eric Blake  <ebb9@byu.net>
36509
36510         dup2: work around FreeBSD 6.1 bug
36511         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
36512         * doc/posix-functions/dup2.texi (dup2): Document it.
36513         Reported by Nelson H. F. Beebe and Jim Meyering.
36514
36515         test-stat-time: port to buggy NFS clients
36516         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
36517         (test_ctime): Also skip test if mtime and ctime are skewed.
36518
36519         maint: prefer 'file system' over 'filesystem'
36520         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36521         * doc/posix-functions/lstat.texi (lstat): Likewise.
36522         * lib/file-has-acl.c (file_has_acl): Likewise.
36523         * lib/fwriteerror.c [TEST]: Likewise.
36524         * tests/test-areadlink.h (test_areadlink): Likewise.
36525         * tests/test-areadlinkat-with-size.c (main): Likewise.
36526         * tests/test-areadlinkat.c (main): Likewise.
36527         * tests/test-canonicalize-lgpl.c (main): Likewise.
36528         * tests/test-canonicalize.c (main): Likewise.
36529         * tests/test-fstatat.c (main): Likewise.
36530         * tests/test-linkat.c (main): Likewise.
36531         * tests/test-lstat.h (test_lstat_func): Likewise.
36532         * tests/test-mkdir.h (test_mkdir): Likewise.
36533         * tests/test-readlink.h (test_readlink): Likewise.
36534         * tests/test-remove.c (main): Likewise.
36535         * tests/test-rename.h (test_rename): Likewise.
36536         * tests/test-renameat.c (main): Likewise.
36537         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36538         * tests/test-symlink.h (test_symlink): Likewise.
36539         * tests/test-symlinkat.c (main): Likewise.
36540         * tests/test-unlink.h (test_unlink_func): Likewise.
36541         * tests/test-unlinkat.c (main): Likewise.
36542
36543         maint: make realtime library usage explicit
36544         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
36545         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
36546         * modules/settime (Link): Likewise.
36547         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
36548
36549         test-stat-time: speed up execution
36550         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
36551         warning on mingw.
36552         (nap): New helper function.
36553         (prepare_test): Use it to reduce sleep time.
36554         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
36555         execution.
36556         * modules/stat-time-tests (configure.ac): Check for usleep.
36557
36558 2009-10-09  Jim Meyering  <meyering@redhat.com>
36559
36560         selinux-h: always use getfilecon wrappers
36561         * lib/getfilecon.c: New file.
36562         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
36563         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
36564         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
36565         (fgetfilecon): Provide a stub.
36566         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
36567         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
36568         file unconditionally.
36569         When <selinux/selinux.h> is found, arrange to use wrappers.
36570         * modules/selinux-h (Files): Add getfilecon.c.
36571         (Makefile.am): Substitute include-next-related bits
36572         into the now-always-generated selinux/selinux.h file.
36573         * doc/glibc-functions/lgetfilecon.texi: New file.
36574         * doc/glibc-functions/fgetfilecon.texi: New file.
36575         * doc/glibc-functions/getfilecon.texi: New file.
36576         * doc/glibc-functions/getfilecon-desc.texi: New file.
36577         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
36578         which to pull in the new files.
36579         * MODULES.html.sh (Misc): Add selinux-h.
36580
36581 2009-10-08  Jim Meyering  <meyering@redhat.com>
36582
36583         unistd: fix comment typo
36584         * lib/unistd.in.h (euidaccess): Fix a comment typo.
36585
36586 2009-10-08  Eric Blake  <ebb9@byu.net>
36587
36588         areadlink: use SIZE_MAX consistently
36589         * modules/areadlink (Depends-on): Add stdint.
36590         * modules/areadlink-with-size (Depends-on): Likewise.
36591         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
36592         gives NULL; drop sys/types, since unistd gives size_t; and add
36593         stdint for SIZE_MAX.
36594         (SIZE_MAX): Rely on headers.
36595         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
36596         and add stdint.
36597         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
36598         (SIZE_MAX): Likewise.
36599         (INITIAL_BUF_SIZE): Turn into enum.
36600         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
36601
36602 2009-10-08  Jim Meyering  <meyering@redhat.com>
36603
36604         areadlinkat: avoid compilation failure
36605         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
36606         Fix typo in comment.
36607
36608 2009-10-07  Eric Blake  <ebb9@byu.net>
36609
36610         areadlinkat-with-size: new module
36611         * modules/areadlinkat-with-size: New module.
36612         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
36613         * lib/areadlink.h (areadlinkat): Declare it.
36614         * MODULES.html.sh (File system functions): Mention it.
36615         * modules/areadlinkat-with-size-tests: New test.
36616         * tests/test-areadlinkat-with-size.c: New file.
36617
36618         xreadlinkat: new module
36619         * modules/xreadlinkat: New module.
36620         * lib/xreadlinkat.c (xreadlinkat): New file.
36621         * lib/xreadlink.h (xreadlinkat): Declare it.
36622         * MODULES.html.sh (File system functions): Mention it.
36623
36624         areadlinkat: new module
36625         * lib/at-func.c (FUNC_FAIL): New define.
36626         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
36627         * modules/areadlinkat: New module.
36628         * lib/linkat.c (areadlinkat): Move...
36629         * lib/areadlinkat.c (areadlinkat): ...to new file.
36630         * lib/areadlink.h (areadlinkat): Declare it.
36631         * modules/linkat (Depends-on): Add areadlinkat.
36632         * MODULES.html.sh (File system functions): Mention it.
36633         * modules/areadlinkat-tests: New test.
36634         * tests/test-areadlinkat.c: New file.
36635
36636         areadlink, areadlink-with-size: add tests
36637         * modules/areadlink-tests: New test.
36638         * modules/areadlink-with-size-tests: Likewise.
36639         * tests/test-areadlink.h: New file.
36640         * tests/test-areadlink.c: Likewise.
36641         * tests/test-areadlink-with-size.c: Likewise.
36642
36643         maint: minor cleanups
36644         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
36645         _UNUSED_PARAMETER_ instead.
36646         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
36647         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
36648         * modules/linkat-tests (Files): Distribute test-link.h.
36649
36650         openat, utimens: whitespace cleanup
36651         * lib/openat.c: Prefer space throughout, rather than mix of 8
36652         spaces vs. tabs.
36653         * lib/at-func.c: Likewise.
36654         * lib/utimens.c: Likewise.
36655
36656         openat: avoid using wrong fd
36657         * lib/openat.c (openat_permissive): Reject user's fd if saving the
36658         working directory chooses same fd.
36659         * lib/at-func.c (AT_FUNC_NAME): Likewise.
36660
36661         mkdir, mkdirat: fix cygwin 1.5.x bug
36662         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
36663         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
36664         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
36665         bug.
36666         (gl_PREREQ_MKDIR): Delete unused macro.
36667         * modules/mkdir (Files): Track file rename.
36668         (configure.ac): Update macro name.
36669         * modules/openat (Depends-on): Add mkdir.
36670         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
36671
36672         mkdir, mkdirat: add tests
36673         * modules/mkdir-tests: New test.
36674         * tests/test-mkdir.h: New file.
36675         * tests/test-mkdir.c: Likewise.
36676         * tests/test-mkdirat.c: Likewise.
36677         * modules/openat-tests (Files): Add new files.
36678         (Makefile.am): Run new test.
36679
36680 2009-10-06  Eric Blake  <ebb9@byu.net>
36681
36682         doc: tweak *at function documentation
36683         * doc/posix-functions/faccessat.texi (faccessat): Mention
36684         known issue with replacement.
36685         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
36686         * doc/posix-functions/linkat.texi (linkat): Likewise.
36687         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36688         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36689         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36690         * doc/posix-functions/renameat.texi (renameat): Likewise.
36691         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36692
36693         openat: fix GNU/Hurd bug in unlinkat
36694         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
36695         broken.
36696         * doc/posix-functions/unlink.texi (unlink): Document this.
36697         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
36698
36699         fdopendir: fix GNU/Hurd bug
36700         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
36701         allowing non-directory fds.
36702         * lib/fdopendir.c (rpl_fdopendir): Work around it.
36703         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36704         * modules/dirent (Makefile.am): Substitute it.
36705         * lib/dirent.in.h (fdopendir): Declare replacement.
36706         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
36707         * tests/test-fdopendir.c (main): Test something other than
36708         /dev/null, since on Hurd that behaves like a directory.
36709
36710         test-symlink: port to GNU/Hurd
36711         * tests/test-symlink.h (test_symlink): Relax expected errno.
36712
36713         doc: tweak more cygwin information
36714         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
36715         now compatible with glibc.
36716         * doc/posix-functions/getopt.texi (getopt): Likewise.
36717
36718         getopt-gnu: add another test
36719         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
36720         guarantee behavior relied on by m4.
36721         * tests/test-getopt.c (main): Use it.
36722         * modules/getopt-posix-tests (Depends-on): Add setenv.
36723         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
36724
36725         getopt: fix compilation on darwin
36726         * lib/getopt.in.h (includes): Leave breadcrumbs during system
36727         include.
36728         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
36729         Reported by Ludovic Courtès.
36730
36731 2009-10-06  Bruno Haible  <bruno@clisp.org>
36732
36733         * modules/size_max (Description): Discourage its use.
36734         Reported by Simon Josefsson.
36735
36736 2009-10-06  Jim Meyering  <meyering@redhat.com>
36737
36738         linkat: avoid compilation failure
36739         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
36740
36741 2009-10-05  Eric Blake  <ebb9@byu.net>
36742
36743         linkat: support Linux 2.6.17
36744         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
36745         linkat on Linux, but allow cache variable override.
36746         * lib/linkat.c (rpl_linkat): Define override.
36747         * modules/linkat (Depends-on): Add symlinkat.
36748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
36749         * modules/unistd (Makefile.am): Substitute it.
36750         * lib/unistd.in.h (linkat): Declare replacement.
36751         Reported by Pádraig Brady.
36752
36753         quotearg: port test to systems with C.UTF-8 locale
36754         * tests/test-quotearg.c (struct result_strings): Add another
36755         member, differentiating between C.ASCII and C.UTF-8 handling.
36756         (compare_strings): Add parameter.
36757         (main): Adjust all callers.
36758
36759         getopt: avoid clash with FreeBSD _getopt_internal
36760         * lib/getopt.in.h (_getopt_internal): Override the name.
36761         * lib/getopt_int.h (includes): Pick up any overrides.
36762         Reported by Reuben Thomas.
36763
36764         hash: allow C89 compilation
36765         * lib/hash.c (check_tuning): Move declaration before statement.
36766         Reported by Reuben Thomas.
36767
36768 2009-10-05  Karl Berry  <karl@gnu.org>
36769
36770         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
36771
36772 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
36773             Bruno Haible  <bruno@clisp.org>
36774
36775         * lib/uname.c (uname): Use a table-driven algorithm to compute
36776         Windows NT versions.
36777
36778 2009-10-04  Bruno Haible  <bruno@clisp.org>
36779
36780         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
36781         program_invocation_short_name.
36782         * modules/progname (configure.ac): Test for presence of
36783         program_invocation_short_name.
36784         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36785
36786 2009-10-04  Bruno Haible  <bruno@clisp.org>
36787
36788         * lib/progname.c (set_program_name): Fix comment.
36789         Reported by Jim Meyering.
36790
36791 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36792             Bruno Haible  <bruno@clisp.org>
36793
36794         * lib/uname.c: Include <string.h>.
36795         (uname): Do only one call to GetVersionEx in the common case.
36796
36797 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36798             Bruno Haible  <bruno@clisp.org>
36799
36800         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
36801         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
36802         (uname): Add support for Windows CE and various non-x86 CPU types.
36803
36804 2009-10-03  Bruno Haible  <bruno@clisp.org>
36805
36806         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
36807         invocation to tests/configure.ac.
36808         Reported by Ian Beckwith <ianb@erislabs.net>.
36809
36810 2009-10-02  Eric Blake  <ebb9@byu.net>
36811
36812         fchdir: avoid compiler warning
36813         * lib/fchdir.c (canonicalize_file_name)
36814         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
36815
36816         test-open: support mingw errno values
36817         * tests/test-open.h (test_open): Relax test.
36818         * tests/test-fopen.h (test_fopen): Likewise.
36819         * tests/test-openat-safer.c (main): Likewise.
36820
36821         open: fix opening directory on mingw
36822         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
36823
36824         test-open: on GNU/Hurd, /dev/null is a directory
36825         * tests/test-fopen.h (main): Rename...
36826         (test_fopen): ...to this.  Use a guaranteed non-directory when
36827         confirming open behavior on trailing slash.
36828         * tests/test-openat-safer.c (main): Likewise.
36829         * tests/test-open.h (main): Likewise....
36830         (test_open): ...to this.
36831         * tests/test-fopen.c (main): Adjust caller.
36832         * tests/test-fopen-safer.c (main): Likewise.
36833         * tests/test-open.c (main): Likewise.
36834         * tests/test-fcntl-safer.c (main): Likewise.
36835         Reported by Samuel Thibault.
36836
36837         rename, fchdir: don't ignore chdir failure
36838         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
36839         * lib/rename.c (rpl_rename) [W32]: Likewise.
36840         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
36841         an empty destination directory if source cannot be renamed,
36842         although there is still possibility for failure.
36843         * doc/posix-functions/rename.texi (rename): Document the race.
36844         Reported by Jim Meyering.
36845
36846         maint: cleanup whitespace in recent commits
36847         * lib/rename.c (rpl_rename): Remove tabs.
36848         * tests/test-link.h (test_link): Likewise.
36849         * lib/fchdir.c (get_name): Likewise.
36850         Reported by Jim Meyering.
36851
36852 2009-10-02  Ben Pfaff  <blp@gnu.org>
36853
36854         relocatable-prog-wrapper: Add missing dependency on
36855         double-slash-root.
36856         * modules/relocatable-prog-wrapper: Add dependency.
36857         Reported by Ian Beckwith <ianb@erislabs.net>.
36858
36859 2009-10-02  Eric Blake  <ebb9@byu.net>
36860
36861         renameat: fix Solaris bugs
36862         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
36863         needed fixing.
36864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
36865         * modules/stdio (Makefile.am): Substitute it.
36866         * lib/stdio.in.h (renameat): Declare replacement.
36867         * lib/renameat.c (rpl_renameat): Implement fix.
36868
36869         renameat: new module
36870         * modules/renameat: New file.
36871         * lib/renameat.c (renameat): Likewise.
36872         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
36873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36874         * modules/stdio (Makefile.am): Substitute them.
36875         * lib/stdio.in.h (renameat): Declare it.
36876         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36877         * doc/posix-functions/renameat.texi (renameat): Likewise.
36878         * modules/renameat-tests: New test.
36879         * tests/test-renameat.c: Likewise.
36880
36881         rename: fix mingw bugs
36882         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
36883         directory overwrite bugs.
36884
36885         rename: fix another cygwin 1.5 bug
36886         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
36887         checks.
36888         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
36889         unnecessary cygwin workarounds.  Also work around bug with moving
36890         full directory onto an empty one.
36891         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
36892
36893         rename-dest-slash: merge into rename module
36894         * modules/rename-dest-slash (Status): Mark obsolete.
36895         (Depends-on): Add rename.
36896         (Files): Let rename do it all.
36897         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
36898         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
36899         * m4/rename-dest-slash.m4: ...so this file can be deleted.
36900         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
36901         * lib/rename.c (rpl_rename): Update comments.
36902
36903         rename: fix cygwin 1.5.x bugs
36904         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
36905         * lib/rename.c (rpl_rename): Work around them.
36906         * modules/rename (Depends-on): Add same-inode.
36907
36908         rename: fix Solaris 10 bug
36909         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36910         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
36911         was the only bug.
36912
36913         rename: fix Solaris 9 bug
36914         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
36915         on non-directory.  Avoid calling exit.
36916         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
36917         strdup.
36918         * modules/rename-tests (Depends-on): Drop lstat.
36919         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36920         (gl_PREREQ_RENAME): Delete unused macro.
36921
36922         rename-dest-slash: fix NetBSD bug
36923         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
36924         links.
36925         * modules/rename-dest-slash (Depends-on): Add same-inode.
36926
36927         rename-tests: new test, exposes several platform bugs
36928         * modules/rename-tests: New file.
36929         * tests/test-rename.h: Likewise.
36930         * tests/test-rename.c: Likewise.
36931         * doc/posix-functions/rename.texi (rename): Improve documentation,
36932         including bugs that will eventually be fixed in gnulib.
36933
36934 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
36935
36936         * lib/uname.c: Include <stdlib.h>
36937         (uname): Assume version info is available.
36938
36939 2009-10-02  Jim Meyering  <meyering@redhat.com>
36940
36941         gnu-web-doc-update: correct --help output
36942         * build-aux/gnu-web-doc-update: Make --help output relevant.
36943
36944         gnu-web-doc-update: add standard options
36945         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
36946
36947         gnu-web-doc-update: New module.
36948         Use this script to automatically update the on-line web documentation
36949         for your GNU project at http://www.gnu.org/software/$pkg/manual/
36950         * modules/gnu-web-doc-update: New file, from coreutils.
36951         * build-aux/gnu-web-doc-update: New script.
36952
36953 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
36954
36955         link: LoadLibrary is not needed.
36956         * lib/link.c: Use GetModuleHandle.
36957
36958 2009-10-01  Eric Blake  <ebb9@byu.net>
36959
36960         getopt: bump serial number
36961         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
36962         change.
36963
36964         tests: tighten link, rmdir, and remove tests
36965         * tests/test-link.h (includes): No need to use <config.h> here.
36966         Clean up if directory hard link was created, otherwise test for
36967         trailing '.'.
36968         * tests/test-linkat.c (main): Simplify.
36969         * tests/test-remove.c (main): Enhance test for trailing '.'.
36970         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36971
36972 2009-10-01  Jim Meyering  <meyering@redhat.com>
36973
36974         maint.mk: requiring "make major" was annoying, for a "minor" release.
36975         What is intended is "stable", to contrast with alpha and beta,
36976         so require "make stable", not "make major".
36977         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
36978         (get_tool_versions): Likewise.
36979         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
36980
36981 2009-09-30  Ben Pfaff  <blp@gnu.org>
36982
36983         Fix broken build of replacement for Windows tmpfile().
36984         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
36985         flags argument added along with the 'mkostemp' module.
36986
36987 2009-09-28  Bruno Haible  <bruno@clisp.org>
36988
36989         Avoid identifier clash with POSIX function 'remove' defined as a macro.
36990         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
36991         to 'remove_elt'.
36992         (gl_list_remove): Update.
36993         * lib/gl_list.c (gl_list_remove): Update.
36994         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
36995         to 'remove_elt'.
36996         (gl_oset_remove): Update.
36997         * lib/gl_list.c (gl_oset_remove): Update.
36998         Reported by Eric Blake.
36999
37000 2009-09-28  Eric Blake  <ebb9@byu.net>
37001
37002         doc: mention yet more cygwin 1.7 status
37003         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
37004         cygwin.
37005         * doc/glibc-functions/execvpe.texi (execvpe): New file.
37006         * doc/gnulib.texi (Glibc unistd.h): Mention it.
37007
37008         argp: fix test failure
37009         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
37010         that are not upper-case.  Pass correct range to tolower.
37011
37012 2009-09-27  Jim Meyering  <meyering@redhat.com>
37013
37014         test-yesno: work around sparc-dash here-document infelicity
37015         Without this change, the literal \177 byte in a here document
37016         would make dash 0.5.5.1-3 access uninitialized memory.
37017         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
37018         Instead, use a marker, "@", and filter through tr to create the desired
37019         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
37020
37021 2009-09-27  Bruno Haible  <bruno@clisp.org>
37022
37023         Disable untested support for new flavours of ACLs on AIX.
37024         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
37025         progress.
37026         * lib/set-mode-acl.c (qset_acl): Likewise.
37027
37028 2008-12-07  Bruno Haible  <bruno@clisp.org>
37029
37030         Add support for new flavours of ACLs on AIX. (Untested.)
37031         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
37032         (file_has_acl): Add support for newer AIX.
37033         * lib/set-mode-acl.c (qset_acl): Likewise.
37034         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
37035         Rainer Tammer <tammer@tammer.net>.
37036
37037 2009-09-26  Eric Blake  <ebb9@byu.net>
37038
37039         argp: fix compilation of getopt
37040         * lib/getopt.in.h (includes): Use different guard than glibc.
37041         Reported by Sergey Poznyakoff.
37042
37043         doc: mention more cygwin 1.7 status
37044         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
37045         bug.
37046         * doc/posix-functions/execl.texi (execl): Likewise.
37047         * doc/posix-functions/execle.texi (execle): Likewise.
37048         * doc/posix-functions/execlp.texi (execlp): Likewise.
37049         * doc/posix-functions/execv.texi (execv): Likewise.
37050         * doc/posix-functions/execve.texi (execve): Likewise.
37051         * doc/posix-functions/execvp.texi (execvp): Likewise.
37052         * doc/glibc-functions/canonicalize_file_name.texi
37053         (canonicalize_file_name): Cygwin 1.7 now provides this.
37054         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
37055         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
37056         on AT_SYMLINK_NOFOLLOW.
37057
37058 2009-09-24  Eric Blake  <ebb9@byu.net>
37059
37060         test-linkat: make test more robust
37061         * tests/test-linkat.c (main): Avoid collision with EEXIST.
37062
37063         getopt: fix inclusion guards for cygwin
37064         * modules/getopt-posix (Depends-on): Add include-next.
37065         (Makefile.am): Substitute more items in replacement header.
37066         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
37067         <getopt.h>.
37068         * lib/getopt.in.h (includes): Use split inclusion guard, and
37069         prefer <getopt.h> over include <unistd.h> when one is present.
37070         (option): Also override name of 'struct option'.
37071
37072         same-inode: revert prior change; it is not yet ready
37073         * NEWS: Undo mention of this change.
37074         * lib/same-inode.h (same-inode.h): Undo tri-state change.
37075         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37076         * lib/cycle-check.c (cycle_check): Likewise.
37077         * lib/same.c (same_name): Likewise.
37078         * lib/at-func2.c (at_func2): Likewise.
37079
37080 2009-09-23  Eric Blake  <ebb9@byu.net>
37081
37082         linkat: new module
37083         * modules/linkat: New file.
37084         * lib/at-func2.c (at_func2): Likewise.
37085         * lib/linkat.c (linkat): Likewise.
37086         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
37087         * lib/openat-priv.h (at_func2): Add declaration.
37088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37089         * modules/unistd (Makefile.am): Substitute them.
37090         * lib/unistd.in.h (linkat): Declare it.
37091         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37092         * doc/posix-functions/linkat.texi (linkat): Likewise.
37093         * doc/posix-functions/link.texi (link): Tweak wording.
37094         * tests/test-link.c (main): Move guts...
37095         * tests/test-link.h (test_link): ...into new file.
37096         * modules/linkat-tests: New test.
37097         * tests/test-linkat.c: Likewise.
37098         * modules/link-tests (Files): Ship new file.
37099         (Depends-on): Add stdbool.
37100
37101         dirname: add library-safe mdir_name
37102         * lib/dirname.h (mdir_name): New prototype.
37103         * lib/dirname.c (dir_name): Move guts...
37104         (mdir_name): ...to new function that avoids xalloc_die.
37105
37106         fchdir: another mingw fix
37107         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
37108         * lib/fchdir.c (get_name): New helper method; skips canonicalize
37109         on mingw (where it has not yet been ported), and make it optional
37110         elsewhere.
37111         (_gl_register_fd): Use it.
37112
37113         same-inode: make SAME_INODE tri-state, to port to mingw
37114         * NEWS: Mention this change.
37115         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
37116         st_ino always being 0.
37117         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37118         * lib/cycle-check.c (cycle_check): Likewise.
37119         * lib/same.c (same_name): Likewise.
37120
37121         lstat: avoid mingw compilation error
37122         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
37123         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
37124         lstat ourselves.
37125         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
37126         was adequate.
37127         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
37128         the checks for lstat.
37129         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
37130
37131         link: fix test failure on Solaris 9
37132         * lib/link.c (rpl_link): Don't assume link will catch bogus
37133         trailing slash on source.
37134
37135         test-symlinkat: enhance test
37136         * tests/test-readlink.c (main): Move guts...
37137         * tests/test-readlink.h (test_readlink): ...into new file.
37138         * tests/test-symlink.c (main): Move guts...
37139         * tests/test-symlink.h (test_symlink): ...into new file.
37140         * tests/test-symlinkat.c (main): Use new files for further
37141         coverage.
37142         (do_symlink, do_readlink): New helper functions.
37143         * modules/symlink-tests (Files): Ship new file.
37144         (Depends-on): Add stdbool.
37145         * modules/readlink-tests (Files): Ship new file.
37146         (Depends-on): Add stdbool.
37147         * modules/symlinkat-tests (Files): Use new files.
37148
37149 2009-09-23  Eric Blake  <ebb9@byu.net>
37150
37151         readlink: document portability issue with symlink length
37152         * doc/posix-functions/lstat.texi (lstat): Mention that some file
37153         systems have bogus st_size on symlinks, and mention the
37154         areadlink-with-size module.
37155         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37156         * doc/posix-functions/readlink.texi (readlink): Mention the
37157         areadlink module, and ERANGE failure.
37158         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37159         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
37160
37161         readlink: fix Solaris 9 bug with trailing slash
37162         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
37163         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
37164         * doc/posix-functions/readlink.texi (readlink): Document this.
37165         * modules/readlink-tests: New test.
37166         * tests/test-readlink.c: Likewise.
37167
37168         readlink: fix cygwin 1.5.x bug with return type
37169         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
37170         * lib/unistd.in.h (readlink): Use ssize_t.
37171         * lib/readlink.c (readlink): Likewise.
37172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37173         * modules/unistd (Makefile.am): Substitute it.
37174         * lib/unistd.in.h (readlink): Declare replacement.
37175         * doc/posix-functions/readlink.texi (readlink): Document this.
37176
37177         symlink: use throughout gnulib
37178         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
37179         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
37180         symlink is not used.
37181         * modules/symlinkat (Depends-on): Add symlink.
37182         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37183         * modules/canonicalize-tests (Depends-on): Likewise.
37184         * modules/lstat-tests (Depends-on): Likewise.
37185         * modules/openat-tests (Depends-on): Likewise.
37186         * modules/remove-tests (Depends-on): Likewise.
37187         * modules/rmdir-tests (Depends-on): Likewise.
37188         * modules/unlink-tests (Depends-on): Likewise.
37189         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
37190         * tests/test-canonicalize.c (symlink): Likewise.
37191         * tests/test-fstatat.c (symlink): Likewise.
37192         * tests/test-lstat.c (symlink): Likewise.
37193         * tests/test-remove.c (symlink): Likewise.
37194         * tests/test-rmdir.c (symlink): Likewise.
37195         * tests/test-unlink.c (symlink): Likewise.
37196         * tests/test-unlinkat.c (symlink): Likewise.
37197
37198         symlink: new module, for Solaris 9 bug
37199         * modules/symlink: New file.
37200         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
37201         * lib/symlink.c: Likewise.
37202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37203         * modules/unistd (Makefile.am): Substitute them.
37204         * lib/unistd.in.h (symlink): Declare replacement.
37205         * MODULES.html.sh (File system functions): Mention it.
37206         * doc/posix-functions/symlink.texi (symlink): Likewise.
37207         * modules/symlink-tests: New test.
37208         * tests/test-symlink.c: Likewise.
37209
37210 2009-09-23  Bruno Haible  <bruno@clisp.org>
37211
37212         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
37213         when needed.
37214         Test case: gnulib-tool --import --with-tests atexit inttypes.
37215         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
37216
37217 2009-09-23  Bruno Haible  <bruno@clisp.org>
37218
37219         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
37220         subcommand, not in a subshell.
37221
37222 2009-09-22  Eric Blake  <ebb9@byu.net>
37223
37224         unistd: sort replacement declarations
37225         * lib/unistd.in.h: Sort declarations.
37226
37227         open, openat: minor optimization
37228         * lib/open.c (open): If open succeeded, len is non-zero.
37229         * lib/openat.c (rpl_openat): Likewise.
37230
37231         link-follow: ensure correct result
37232         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
37233         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
37234         distinguish between possible failures.
37235
37236 2009-09-21  Eric Blake  <ebb9@byu.net>
37237
37238         fts: avoid compiler warning
37239         * lib/fts.c (dirent_inode_sort_may_be_useful)
37240         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
37241
37242 2009-09-19  Bruno Haible  <bruno@clisp.org>
37243
37244         * lib/progreloc.c (canonicalize_file_name): New declaration.
37245
37246 2009-09-19  Eric Blake  <ebb9@byu.net>
37247
37248         link: fix quoting
37249         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
37250
37251         openat: fix openat bugs on Solaris 9
37252         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
37253         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
37254         * modules/openat (Depends-on): Add open.
37255         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
37256         * modules/fcntl-h (Makefile.am): Substitute it.
37257         * lib/fcntl.in.h (openat): Declare replacement.
37258         * doc/posix-functions/openat.texi (openat): Document this.
37259
37260         openat: move fstatat and unlinkat into correct files
37261         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
37262         compiled.
37263         * lib/openat.c (fstatat, unlinkat): Move...
37264         * lib/fstatat.c (fstatat): ...into correct files.
37265         * lib/unlinkat.c (unlinkat): Likewise.
37266
37267         openat: fix unlinkat bugs on Solaris 9
37268         * lib/unlinkat.c (unlinkat): New file.
37269         * modules/openat (Depends-on): Add unlink.
37270         (Files): Distribute it.
37271         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
37272         trailing slash behavior is broken.
37273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37274         * modules/unistd (Makefile.am): Substitute it.
37275         * lib/unistd.in.h (unlinkat): Declare replacement.
37276         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
37277
37278         openat: fix fstatat bugs on Solaris 9
37279         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
37280         stat.
37281         * doc/posix-functions/fstatat.texi (fstatat): Document this.
37282
37283         test-unlinkat: enhance test, to expose Solaris 9 bug
37284         * tests/test-unlink.c (main): Factor guts...
37285         * tests/test-unlink.h (test_rmdir_func): ...into new file.
37286         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
37287         * tests/test-rmdir.c (main): Adjust caller.
37288         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
37289         (unlinker): New helper function.
37290         (rmdirat): Enhance check.
37291         * modules/rmdir-tests (Depends-on): Add stdbool.
37292         * modules/unlink-tests (Depends-on): Likewise.
37293         (Files): Add test-unlink.h.
37294         * modules/openat-tests (Files): Likewise.
37295         (Depends-on): Add unlinkdir.
37296
37297         test-fstatat: new test, to expose Solaris 9 bugs
37298         * tests/test-stat.c (main): Factor guts...
37299         * tests/test-stat.h (test_stat_func): ...into new file.
37300         * tests/test-lstat.c (main): Factor guts...
37301         * tests/test-lstat.h (test_lstat_func): ...into new file.
37302         * tests/test-fstatat.c: New file.
37303         * modules/stat-tests (Files): Add test-stat.h.
37304         * modules/lstat-tests (Files): Add test-lstat.h.
37305         (Depends-on): Add stdbool.
37306         * modules/openat-tests (Depends-on): Add pathmax.
37307         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
37308         (Makefile.am): Run new test.
37309
37310         remove: new module, for mingw and Solaris 9 bugs
37311         * modules/remove: New file.
37312         * lib/remove.c: Likewise.
37313         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
37314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37315         * modules/stdio (Makefile.am): Use them.
37316         * lib/stdio.in.h (remove): Declare replacement.
37317         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37318         * doc/posix-functions/remove.texi (remove): Likewise.
37319         * modules/remove-tests: New test.
37320         * tests/test-remove.c: Likewise.
37321
37322         unlink: new module, for Solaris 9 bug
37323         * modules/unlink: New file.
37324         * lib/unlink.c: Likewise.
37325         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
37326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37327         * modules/unistd (Makefile.am): Use them.
37328         * lib/unistd.in.h (stat): Declare replacement.
37329         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37330         * doc/posix-functions/unlink.texi (unlink): Likewise.
37331         * modules/unlink-tests: New test.
37332         * tests/test-unlink.c: Likewise.
37333
37334         lstat: fix Solaris 9 bug
37335         * lib/lstat.c (lstat): Also check for trailing slash on
37336         non-symlink, non-directories.  Use stat module to simplify logic.
37337         * doc/posix-functions/lstat.texi (lstat): Document it.
37338         * modules/lstat-tests (Depends-on): Add errno, same-inode.
37339         (configure.ac): Check for symlink.
37340         * tests/test-lstat.c (main): Add more tests.
37341
37342         stat: add as dependency to other modules
37343         * modules/chown (Depends-on): Add stat.
37344         * modules/euidaccess (Depends-on): Likewise.
37345         * modules/fchdir (Depends-on): Likewise.
37346         * modules/isdir (Depends-on): Likewise.
37347         * modules/link (Depends-on): Likewise.
37348         * modules/lstat (Depends-on): Likewise.
37349         * modules/mkdir-p (Depends-on): Likewise.
37350         * modules/modechange (Depends-on): Likewise.
37351         * modules/open (Depends-on): Likewise.
37352         * modules/readlink (Depends-on): Likewise.
37353         * modules/same (Depends-on): Likewise.
37354
37355         stat: fix Solaris 9 bug
37356         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
37357         slash.
37358         * lib/stat.c (rpl_stat): Work around it.
37359         * doc/posix-functions/stat.texi (stat): Update documentation.
37360
37361         stat: new module, for mingw bug
37362         * modules/stat: New file.
37363         * lib/stat.c: Likewise.
37364         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37365         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37366         * modules/sys_stat (Makefile.am): Use them.
37367         * lib/sys_stat.in.h (stat): Declare replacement.
37368         * lib/openat.c (fstatat): Deal with lstat and stat being function
37369         macros.
37370         * modules/openat (Depends-on): Add inline.
37371         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37372         * doc/posix-functions/stat.texi (stat): Likewise.
37373         * modules/stat-tests: New test.
37374         * tests/test-stat.c: Likewise.
37375
37376 2009-09-19  Jim Meyering  <meyering@redhat.com>
37377
37378         syntax-check: detect unnecessary inclusion of canonicalize.h
37379         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
37380
37381 2009-09-19  Eric Blake  <ebb9@byu.net>
37382
37383         canonicalize-lgpl: adjust clients to use correct header
37384         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37385         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
37386         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
37387         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
37388         * lib/progreloc.c (includes): Likewise.
37389
37390 2009-09-19  Jim Meyering  <meyering@redhat.com>
37391
37392         test-posixtm.c: correct a comment
37393         * tests/test-posixtm.c: Correct first-line comment.
37394         Spotted by Eric Blake.
37395
37396 2009-09-16  Jim Meyering  <meyering@redhat.com>
37397
37398         posixtm-tests: make T const-correct; add a test case
37399         * tests/test-posixtm.c (T): Declare const.
37400         Add a test for -(2^31+1).
37401         Remove useless can-succeed-only-in-2002 test.
37402
37403         posixtm-tests: adjust the sole failing test
37404         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
37405         expected output matches what mktime now produces.  Cross-checked via
37406         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
37407
37408         posixtm: move #ifdef'd tests into a new module
37409         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
37410         * tests/test-posixtm.c: ... this new file.
37411         * modules/posixtm-tests: New module.
37412
37413 2009-09-19  Eric Blake  <ebb9@byu.net>
37414
37415         openat: simplify use of at-func.c
37416         * lib/at-func.c (includes): Include prerequisites here, to
37417         simplify requirements on client files.
37418         * lib/openat-priv.h: Add double-inclusion guard.
37419         * lib/faccessat.c (includes): Simplify.
37420         * lib/fchmodat.c (includes): Likewise.
37421         * lib/fchownat.c (includes): Likewise.
37422         * lib/mkdirat.c (includes): Likewise.
37423         * lib/mkfifoat.c (includes): Likewise.
37424         * lib/symlinkat.c (includes): Likewise.
37425
37426         openat: allow return of fd 0
37427         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
37428         * modules/save-cwd (Depends-on): Replace fcntl-safer with
37429         unistd-safer.
37430         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
37431         <fcntl.h>; this module does not leak fds.
37432         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
37433         must be allowed to return 0, leaving openat_safer to add the
37434         safety.
37435         (openat_permissive): Avoid writing to just-opened fd 2 if
37436         restoring the current directory fails.
37437         * lib/openat-die.c (openat_restore_fail): Add comment.
37438         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
37439         (save_cwd): Guarantee safe fd, but without use of open_safer.
37440         * tests/test-openat.c: New test.
37441         * modules/openat-tests (Files, Makefile.am): Distribute and build
37442         new file.
37443
37444         relocatable-prog-wrapper: fix build
37445         * modules/relocatable-prog-wrapper (Files): Update name of
37446         canonicalize m4 file, broken on 2009-09-17.
37447         Reported by emad hajjar <aleppos@hotmail.com>.
37448
37449 2009-09-19  Bruno Haible  <bruno@clisp.org>
37450
37451         * lib/safe-alloc.h: Use the standard header with GPL copyright.
37452         * lib/safe-alloc.c: Likewise.
37453         Reported by Ian Beckwith <ianb@erislabs.net>.
37454
37455 2009-09-18  Bruno Haible  <bruno@clisp.org>
37456
37457         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
37458         Reported by <erobles@sensacd.com.mx>.
37459
37460 2009-09-17  Eric Blake  <ebb9@byu.net>
37461
37462         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
37463         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
37464         slashes when checking if last component is missing.
37465         * tests/test-canonicalize.c (main): Test this.
37466
37467         canonicalize, canonicalize-lgpl: honor // if distinct from /
37468         * modules/canonicalize (Files): Add double-slash-root.m4.
37469         * modules/canonicalize-lgpl (Files): Likewise.
37470         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37471         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
37472         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
37473         fallback definition.
37474         (canonicalize_filename_mode): Use it to protect //.
37475         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
37476         (__realpath): Likewise.
37477         * tests/test-canonicalize.c (main): Test this.
37478         * tests/test-canonicalize-lgpl.c (main): Likewise.
37479         * modules/canonicalize-tests (Depends-on): Add same-inode.
37480         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37481
37482         canonicalize-lgpl: fix glibc bug with trailing slash
37483         * m4/canonicalize-lgpl.m4: Move contents...
37484         * m4/canonicalize.m4: ...here.
37485         (gl_CANONICALIZE_LGPL): Factor realpath check...
37486         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
37487         glibc 2.3.5 bug, fixed 2005-04-27.
37488         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
37489         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
37490         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
37491         * modules/canonicalize-lgpl (Files): Manage file rename.
37492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37493         * modules/stdlib (Makefile.am): Substitute witness.
37494         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
37495         is needed.
37496         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
37497         replacement is required.
37498         * lib/canonicalize.c (canonicalize_file_name): Likewise.
37499         * doc/glibc-functions/canonicalize_file_name.texi
37500         (canonicalize_file_name): Document this.
37501         * doc/posix-functions/realpath.texi (realpath): Likewise.
37502
37503         canonicalize-lgpl: reject non-directory with trailing slash
37504         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
37505         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
37506         catches failures in glibc 2.3.5.
37507         * tests/test-canonicalize.c (main): Likewise.
37508
37509         canonicalize-lgpl: use native realpath if it works
37510         * lib/canonicalize-lgpl.c (realpath): Guard with
37511         FUNC_REALPATH_WORKS.
37512         * lib/stdlib.in.h (realpath): Make declaration optional based on
37513         HAVE_REALPATH.
37514         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
37515         native realpath works.
37516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37517         * modules/stdlib (Makefile.am): Substitute witness.
37518
37519         canonicalize, canonicalize-lgpl: use <stdlib.h>
37520         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
37521         (Include): Mention <stdlib.h>.
37522         (configure.ac): Mention functions we provide.
37523         * modules/canonicalize (configure.ac): Likewise.
37524         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
37525         realpath if canonicalize_file_name is missing.
37526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
37527         * modules/stdlib (Makefile.am): Substitute witnesses.
37528         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
37529         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
37530         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
37531         * NEWS: Document this.
37532         * doc/glibc-functions/canonicalize_file_name.texi
37533         (canonicalize_file_name): Likewise.
37534         * doc/posix-functions/realpath.texi (realpath): Likewise.
37535         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
37536
37537         test-canonicalize: consolidate into single C program
37538         * tests/test-canonicalize.sh: Delete; move setup into...
37539         * tests/test-canonicalize.c (main): ...the program, making it
37540         easier to run in debugger.  Add some tests.
37541         * modules/canonicalize-tests (Files): Remove unused file.
37542         (Depends-on): Add progname.
37543         (configure.ac, Makefile.am): Simplify.
37544
37545         test-canonicalize-lgpl: consolidate into single C program
37546         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
37547         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
37548         easier to run in debugger.  Add some tests.
37549         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
37550         (configure.ac, Makefile.am): Simplify.
37551
37552         canonicalize: avoid resolvepath
37553         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
37554         unnecessary checks.
37555         * lib/canonicalize.c (includes): Simplify.
37556         (canonicalize_file_name): Drop resolvepath implementation.
37557         * modules/canonicalize (Depends-on): Drop filenamecat.
37558
37559         canonicalize: don't lose errno
37560         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
37561         over calls to free.
37562
37563         canonicalize: simplify errno handling
37564         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
37565         assignment.
37566
37567         canonicalize, canonicalize-lgpl: update module dependencies
37568         * modules/canonicalize (Depends-on): Add extensions, lstat,
37569         pathmax, stdlib.
37570         (Files): Drop pathmax.h.
37571         (configure.ac): Adjust macro name.
37572         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
37573         lstat, stdlib, sys_stat.
37574         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
37575         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
37576         extensions.
37577         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
37578         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
37579         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
37580         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
37581         declaration, if available.
37582         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
37583         we can rely on the readlink module.
37584         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
37585         (includes): Use <unistd.h> unconditionally.
37586
37587 2009-09-17  Eric Blake  <ebb9@byu.net>
37588
37589         maint: make Include sections of modules consistent
37590         * modules/alloca: Use only header name; no need to list #include.
37591         * modules/alloca-opt: Likewise.
37592         * modules/arpa_inet: Likewise.
37593         * modules/canon-host: Likewise.
37594         * modules/configmake: Likewise.
37595         * modules/dirent: Likewise.
37596         * modules/eealloc: Likewise.
37597         * modules/environ: Likewise.
37598         * modules/fchdir: Likewise.
37599         * modules/fcntl: Likewise.
37600         * modules/fcntl-h: Likewise.
37601         * modules/gethrxtime: Likewise.
37602         * modules/gettime: Likewise.
37603         * modules/ignore-value: Likewise.
37604         * modules/inet_ntop: Likewise.
37605         * modules/inet_pton: Likewise.
37606         * modules/inttypes: Likewise.
37607         * modules/isnand-nolibm: Likewise.
37608         * modules/isnanf-nolibm: Likewise.
37609         * modules/mbchar: Likewise.
37610         * modules/mbfile: Likewise.
37611         * modules/mbiter: Likewise.
37612         * modules/mbuiter: Likewise.
37613         * modules/netdb: Likewise.
37614         * modules/netinet_in: Likewise.
37615         * modules/nproc: Likewise.
37616         * modules/pagealign_alloc: Likewise.
37617         * modules/poll: Likewise.
37618         * modules/printf-frexp: Likewise.
37619         * modules/pthread: Likewise.
37620         * modules/putenv: Likewise.
37621         * modules/random_r: Likewise.
37622         * modules/relocatable-prog: Likewise.
37623         * modules/search: Likewise.
37624         * modules/select: Likewise.
37625         * modules/selinux-h: Likewise.
37626         * modules/settime: Likewise.
37627         * modules/signal: Likewise.
37628         * modules/size_max: Likewise.
37629         * modules/socklen: Likewise.
37630         * modules/ssize_t: Likewise.
37631         * modules/stdarg: Likewise.
37632         * modules/stdbool: Likewise.
37633         * modules/stddef: Likewise.
37634         * modules/stdint: Likewise.
37635         * modules/stdio: Likewise.
37636         * modules/stdlib: Likewise.
37637         * modules/string: Likewise.
37638         * modules/strings: Likewise.
37639         * modules/sys_file: Likewise.
37640         * modules/sys_ioctl: Likewise.
37641         * modules/sys_select: Likewise.
37642         * modules/sys_socket: Likewise.
37643         * modules/sys_stat: Likewise.
37644         * modules/sys_time: Likewise.
37645         * modules/sys_times: Likewise.
37646         * modules/sys_utsname: Likewise.
37647         * modules/sys_wait: Likewise.
37648         * modules/sysexits: Likewise.
37649         * modules/time: Likewise.
37650         * modules/times: Likewise.
37651         * modules/tmpfile: Likewise.
37652         * modules/trim: Likewise.
37653         * modules/unistd: Likewise.
37654         * modules/wchar: Likewise.
37655         * modules/wctype: Likewise.
37656
37657 2009-09-17  Bruno Haible  <bruno@clisp.org>
37658
37659         Make getdate.y compile on QNX and NetBSD 5 / i386.
37660         * m4/getdate.m4 (gl_GETDATE): Conditionally define
37661         TIME_T_FITS_IN_LONG_INT.
37662         * lib/getdate.y (long_time_t): New type.
37663         (relative_time): Change type of 'seconds' field to long_time_t.
37664         (get_date): Update types of local variables. Check against overflow
37665         during conversion from long_time_t to time_t.
37666         Reported by Matt Kraai <kraai@ftbfs.org>
37667         and Hasso Tepper <hasso@netbsd.org>.
37668
37669 2009-09-17  Bruno Haible  <bruno@clisp.org>
37670
37671         * modules/COPYING: Update copyright years.
37672         * modules/README: Likeiwse.
37673         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
37674         Reported by Ian Beckwith <ianb@erislabs.net>.
37675
37676 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37677
37678         * users.txt: Update references for gnuit package.
37679
37680 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37681
37682         * m4/getdelim.m4: Fix typo in copyright line.
37683
37684 2009-09-17  Bruno Haible  <bruno@clisp.org>
37685
37686         * lib/atoll.c: Use the standard header with GPL copyright.
37687         * lib/argz.in.h: Likewise.
37688         * lib/glob.c: Likewise.
37689         * lib/glob-libc.h: Likewise.
37690         * lib/random_r.c: Likewise.
37691         * lib/siglist.h: Likewise.
37692         * lib/strsignal.c: Likewise.
37693         Reported by Ian Beckwith <ianb@erislabs.net>.
37694
37695 2009-09-17  Eric Blake  <ebb9@byu.net>
37696
37697         rmdir: ensure correct dependency order
37698         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
37699
37700 2009-09-17  Bruno Haible  <bruno@clisp.org>
37701
37702         Disable assertion that fails on NetBSD 5 / i386.
37703         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
37704         Reported by Sam Steingold <sds@gnu.org>
37705         and Hasso Tepper <hasso@netbsd.org>.
37706
37707 2009-09-16  Eric Blake  <ebb9@byu.net>
37708
37709         unlinkdir: port to mingw
37710         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
37711         on which no one can unlink a directory.
37712
37713         stdlib: sort witness names
37714         * modules/stdlib (Makefile.am): Sort replacements.
37715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37716         * lib/stdlib.in.h: Likewise.
37717
37718         parse-duration-tests: avoid link failure
37719         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
37720         LIBINTL.
37721         Reported by Tom G. Christensen.
37722
37723         openat-tests: ensure unlinkat behaves like rmdir
37724         * tests/test-rmdir.c (main): Factor guts...
37725         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
37726         * modules/rmdir-tests (Files): Ship new file.
37727         * modules/openat-tests: New test.
37728         * tests/test-unlinkat.c: Likewise.
37729
37730         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
37731         * modules/rmdir-errno (Status, Notice): Now obsolete.
37732
37733         rmdir: work around cygwin 1.5.x and mingw bugs
37734         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
37735         * lib/rmdir.c (rmdir): Work around it.
37736         * modules/rmdir (Status, Notice): No longer obsolete.
37737         (Files): Add dos.m4.
37738         (Depends-on): Add unistd.
37739         (configure.ac): Set witnesses.
37740         (License): Relax to LGPLv2+.
37741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
37742         * modules/unistd (Makefile.am): Substitute witnesses.
37743         * lib/unistd.in.h (rmdir): Declare replacement.
37744         * doc/posix-functions/rmdir.texi (rmdir): Document this.
37745         * modules/rmdir-tests: New tests.
37746         * tests/test-rmdir.c: Likewise.
37747
37748 2009-09-15  Eric Blake  <ebb9@byu.net>
37749
37750         fchdir: improve use of replacement functions
37751         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
37752         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
37753         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
37754         REPLACE_CLOSEDIR.
37755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
37756         * modules/sys_stat (Makefile.am): Substitute correct witness.
37757         * modules/dirent (Makefile.am): Likewise.
37758         * modules/unistd (Makefile.am): Likewise.
37759         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
37760         * lib/unistd.in.h (dup): Likewise.
37761         * lib/sys_stat.in.h (fstat): Likewise.
37762
37763         maint: ignore gnulib-tool temp files
37764         * .gitignore: Ignore files created during gnulib-tool --test.
37765
37766 2009-09-13  Jim Meyering  <meyering@redhat.com>
37767
37768         posixtm: don't reject a time that specify "60" as the number of seconds
37769         * lib/posixtm.c (posixtime): The code to reject invalid dates
37770         would also reject a time specified with the .60 suffix.
37771         But POSIX allows that, in order to accommodate leap seconds.
37772         So don't reject it.
37773         (main): Adjust tests accordingly.
37774         * modules/posixtm (Depends-on): Add stpcpy.
37775
37776 2009-09-11  Jim Meyering  <meyering@redhat.com>
37777
37778         announce-gen: include [$release_type] in emitted Subject:
37779         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
37780         e.g., [stable] in the emitted Subject: line.
37781
37782 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37783
37784         Remove obsolete macros from several modules.
37785         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
37786         obsolete Autoconf macros with their modern counterparts.
37787         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
37788         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
37789         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
37790         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
37791         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
37792         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37793         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37794         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37795         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
37796         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
37797         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
37798         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
37799         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
37800         * m4/sockets.m4 (gl_SOCKETS): Likewise.
37801         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
37802         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
37803         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37804         * m4/time_r.m4 (gl_TIME_R): Likewise.
37805         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
37806         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
37807         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37808
37809         Fix copyright header in build-aux scripts.
37810         * build-aux/git-version-gen: Fix copyright header to match GPLv3
37811         recommendation.
37812         * build-aux/ncftpput-ftp: Likewise.
37813         * build-aux/update-copyright: Likewise.
37814
37815 2009-09-09  Eric Blake  <ebb9@byu.net>
37816
37817         test-link: allow Linux choice of errno
37818         * tests/test-link.c (main): Relax test for alternate error.
37819
37820         strndup: fix improper m4 caching
37821         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
37822         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
37823         (gl_PREREQ_STRNDUP): Delete.
37824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
37825         * modules/string (Makefile.am): Substitute it.
37826         * lib/string.in.h (strndup): Modernize prototype.
37827
37828         getcwd: port to mingw
37829         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
37830         different from the POSIX assumptions made throughout the getcwd
37831         module; fortunately, the mingw getcwd does not need replacement.
37832         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
37833         * modules/getcwd-tests: New test.
37834         * tests/test-getcwd.c: Likewise.
37835
37836         link: fix platform bugs
37837         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
37838         * lib/link.c (link): Work around them.  Fix related mingw bug.
37839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
37840         * modules/unistd (Makefile.am): Substitute it.
37841         * lib/unistd.in.h (link): Declare replacement.
37842         * doc/posix-functions/link.texi (link): Document this.
37843         * modules/link (Depends-on): Add strdup-posix, sys_stat.
37844
37845         test-link: consolidate into single C program, test more cases
37846         * tests/test-link.sh: Delete.
37847         * tests/test-link.c: Test more error conditions.  Exposes bugs on
37848         at least Cygwin and Solaris.
37849         * modules/link-tests (Files): Remove unused file.
37850         (Depends-on): Add errno, sys_stat.
37851         (Makefile.am): Simplify.
37852
37853 2009-09-08  Bruno Haible  <bruno@clisp.org>
37854
37855         Work around towlower, towupper bug on mingw.
37856         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
37857         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
37858         * doc/posix-functions/towlower.texi: Mention the mingw bug.
37859         * doc/posix-functions/towupper.texi: Likewise.
37860         Reported by Eric Blake.
37861
37862 2009-09-08  Jim Meyering  <meyering@redhat.com>
37863
37864         build: don't try to run autoheader if we don't use it
37865         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
37866         is not used in configure.ac.
37867
37868 2009-09-08  Eric Blake  <ebb9@byu.net>
37869
37870         euidaccess: fix compilation error
37871         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
37872
37873         rawmemchr: relax license
37874         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
37875         okay.
37876         Reported by Jim Meyering.
37877
37878         mkfifoat: new module
37879         * modules/mkfifoat: New file.
37880         * lib/mkfifoat.c: Likewise.
37881         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
37882         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37883         * modules/sys_stat (Makefile.am): Use them.
37884         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
37885         * MODULES.html.sh (File system functions): Mention module.
37886         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37887         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37888         * modules/mkfifoat-tests: New test.
37889         * tests/test-mkfifoat.c: Likewise.
37890
37891         strchrnul: relax license
37892         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
37893         okay.
37894         Reported by Jim Meyering.
37895
37896 2009-09-08  Eric Blake  <ebb9@byu.net>
37897
37898         fstatat: fix compilation on Solaris
37899         * lib/fstatat.c (includes): Add fcntl.h.
37900         Reported by Pádraig Brady.
37901
37902 2009-09-07  Eric Blake  <ebb9@byu.net>
37903
37904         rename: modernize replacement
37905         * modules/rename (Depends-on): Add stdio.
37906         (configure.ac): Declare witness.
37907         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
37908         stdio take care of replacement.
37909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37910         * modules/stdio (Makefile.am): Substitute them.
37911         * lib/stdio.in.h (rename): Declare replacement.
37912         * lib/rename.c (includes): Allow cross-compilation to non-windows
37913         machines.
37914         * doc/posix-functions/rename.texi (rename): Improve
37915         documentation.
37916
37917         stdio: sort witness names
37918         * modules/stdio (Makefile.am): Sort replacements.
37919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37920         * lib/stdio.in.h: Likewise.
37921
37922         getcwd: minor cleanups
37923         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
37924         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
37925
37926         openat: provide more convenience names
37927         * modules/faccessat (configure.ac): Add C witness.
37928         * lib/unistd.in.h (readlinkat): Fix typo.
37929         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
37930         convenience wrappers.
37931         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
37932         wrappers in syntax checks.
37933
37934 2009-09-06  Eric Blake  <ebb9@byu.net>
37935
37936         doc: fix comments in recent patches
37937         * lib/faccessat.c: Mention correct function.
37938         * lib/fchmodat.c: Likewise.
37939         * lib/fchownat.c: Likewise.
37940         * lib/symlinkat.c: Likewise.
37941         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
37942         constants.
37943
37944         faccessat, symlinkat: continue cleanup of previous patch
37945         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
37946         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37947         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
37948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
37949         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
37950         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
37951         set.
37952
37953 2009-09-06  Bruno Haible  <bruno@clisp.org>
37954
37955         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
37956         (fstatat): Declare if GNULIB_FSTATAT is set.
37957         (mkdirat): Declare if GNULIB_MKDIRAT is set.
37958         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
37959         (unlinkat): Declare if GNULIB_UNLINKAT is set.
37960         * modules/fcntl-h (Files): Remove m4/openat.m4.
37961         * modules/sys_stat (Files): Remove m4/openat.m4.
37962         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
37963         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
37964         * modules/unistd (Files): Remove m4/openat.m4.
37965         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
37966         GNULIB_OPENAT.
37967         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
37968         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
37969         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
37970         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
37971         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
37972         gl_OPENAT_DEFAULTS.
37973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
37974         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
37975         Don't require gl_OPENAT_DEFAULTS.
37976         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
37977         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
37978         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
37979         (gl_OPENAT_DEFAULTS): Remove macro.
37980
37981 2009-09-06  Bruno Haible  <bruno@clisp.org>
37982
37983         * modules/openat (configure.ac): Remove unneeded witness.
37984
37985 2009-09-06  Bruno Haible  <bruno@clisp.org>
37986
37987         Set errno to ENOSYS when a function is entirely unsupported.
37988         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
37989         EOPNOTSUPP.
37990         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37991         * modules/chown (Depends-on): Remove errno.
37992
37993 2009-09-06  Bruno Haible  <bruno@clisp.org>
37994
37995         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
37996
37997 2009-09-06  Bruno Haible  <bruno@clisp.org>
37998
37999         * lib/sys_stat.in.h: Fix preprocessor command indentation.
38000
38001 2009-09-06  Ben Pfaff  <blp@gnu.org>
38002             Bruno Haible  <bruno@clisp.org>
38003
38004         Work around a glibc bug in strtok_r.
38005         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
38006         Undefine if UNDEFINE_STRTOK_R is set.
38007         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
38008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38009         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
38010         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
38011         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
38012         UNDEFINE_STRTOK_R.
38013         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
38014
38015 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
38016
38017         exclude: minor fix
38018         * lib/exclude.c: Include wctype.h
38019
38020 2009-09-06  Akim Demaille  <demaille@gostai.com>
38021
38022         bootstrap: improve error message
38023         * build-aux/bootstrap (find_tool): Upon failure, report the list
38024         of candidates.
38025         Honor the initial value of the envvar.
38026
38027 2009-09-05  Eric Blake  <ebb9@byu.net>
38028
38029         symlinkat: new module
38030         * modules/symlinkat: New file.
38031         * lib/symlinkat.c: Likewise.
38032         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
38033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38034         * modules/unistd (Makefile.am): Use them.
38035         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
38036         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
38037         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
38038         * MODULES.html.sh (File system functions): Mention module.
38039         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38040         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38041         * modules/symlinkat-tests: New test.
38042         * tests/test-symlinkat.c: Likewise.
38043
38044         test-openat-safer: add more checks
38045         * tests/test-openat-safer.c (main): Check more code paths.
38046
38047 2009-09-05  Jim Meyering  <meyering@redhat.com>
38048
38049         syntax-check: detect unnecessary inclusion of openat.h
38050         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
38051
38052 2009-09-05  Bruno Haible  <bruno@clisp.org>
38053
38054         Support towlower, towupper.
38055         * doc/posix-functions/towlower.texi: Mention module wctype.
38056         * doc/posix-functions/towupper.texi: Likewise.
38057         * lib/wctype.in.h (towlower, towupper): New functions.
38058         * tests/test-wctype.c: Include stdio.h, stdlib.h.
38059         (ASSERT): New macro.
38060         (e): New variable.
38061         (main): Test also towlower, towupper. Test WEOF argument.
38062         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38063
38064 2009-09-05  Bruno Haible  <bruno@clisp.org>
38065
38066         Fix conversion behaviour when the input is invalid.
38067         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
38068         mark occurring in first pass of indirect conversion.
38069         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
38070         input.
38071         Found by clang's static analyzer.
38072
38073 2009-09-05  Bruno Haible  <bruno@clisp.org>
38074
38075         * tests/test-striconveh.c (main): Test indirect conversion on platforms
38076         where direct conversion is possible.
38077
38078 2009-09-04  Eric Blake  <ebb9@byu.net>
38079
38080         openat: fail with ENOENT on empty name
38081         * lib/openat-proc.c (openat_proc_name): Special-case the empty
38082         buffer.
38083
38084         link-follow: fix logic bug in prior patch
38085         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
38086         reversed sense of yes and no in prior patch.  Avoid confusing
38087         compilation failure with desired semantics.
38088
38089         link-follow: accomodate mingw and cross-compilation
38090         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
38091         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
38092         cross-compilation results to -1, to make linkat easier to
38093         implement when cross-compiling.  Trivially support mingw.
38094         * modules/link-follow (configure.ac): Call new name.
38095         * NEWS: Mention this.
38096
38097 2009-09-03  Eric Blake  <ebb9@byu.net>
38098
38099         faccessat: compile replacement
38100         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
38101         needed.
38102
38103         fts: fix compilation error
38104         * lib/fts.c (includes): Re-add "openat.h", for
38105         openat_needs_fchdir.
38106
38107         faccessat: new module
38108         * modules/faccessat: New file.
38109         * lib/faccessat.c: Likewise.
38110         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38112         * modules/unistd (Makefile.am): Use it.
38113         * lib/unistd.in.h (faccessat): Declare it.
38114         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
38115         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
38116         * MODULES.html.sh (File system functions): Mention it.
38117         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
38118         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38119
38120         euidaccess: prefer POSIX over non-standard implementation
38121         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
38122         * lib/euidaccess.c (euidaccess): Use it if available.
38123
38124         openat: make template easier to use
38125         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
38126         AT_FUNC_F2 to be undefined.
38127         (VALIDATE_FLAG): New macro; use it to reject bad flags.
38128         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
38129         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
38130         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
38131         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
38132         Likewise.
38133         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
38134         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
38135         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
38136         Likewise.
38137
38138         openat: declare in POSIX headers
38139         * NEWS: Mention this.
38140         * modules/openat (configure.ac): Declare witnesses.
38141         (Depends-on): Add fcntl-h, sys_stat, unistd.
38142         (Include): Mention correct headers.
38143         * modules/fcntl-h (Depends-on): Add link-warning.
38144         (Files): Add openat.m4.
38145         (Makefile.am): Substitute witnesses.
38146         * modules/sys_stat (Files, Makefile.am): Likewise.
38147         * modules/unistd (Files, Makefile.am): Likewise.
38148         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
38149         (gl_OPENAT_DEFAULTS): New macro.
38150         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
38151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
38152         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
38153         (SYS_STAT_H): Remove unused variable.
38154         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
38155         * lib/fcntl--.h (includes): Remove unneeded header.
38156         * lib/openat-safer.c (includes): Likewise.
38157         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
38158         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
38159         appropriate headers.
38160         (__OPENAT_PREFIX): Delete.
38161         * lib/fcntl.in.h (openat): Provide declaration.
38162         (AT_FDCWD): Fix Solaris bug.
38163         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
38164         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
38165         * lib/fchmodat.c (includes):  Adjust to find declaration.
38166         * lib/fchownat.c (includes): Likewise.
38167         * lib/mkdirat.c (includes): Likewise.
38168         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
38169         still visible.
38170
38171 2009-09-02  Eric Blake  <ebb9@byu.net>
38172
38173         errno: use consistently
38174         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
38175         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
38176         * lib/canonicalize.c (ELOOP): Likewise.
38177         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
38178         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
38179         * lib/lchown.c (EOPNOTSUPP): Likewise.
38180         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
38181         * lib/savewd.c (ESTALE): Likewise.
38182         * lib/settime.c (ENOSYS): Likewise.
38183         * lib/utimens.c (ENOSYS): Likewise.
38184         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
38185         * lib/chdir-safer.c (ELOOP): Likewise.
38186         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
38187         * modules/c-stack (Depends-on): Add errno.
38188         * modules/canonicalize (Depends-on): Likewise.
38189         * modules/chdir-safer (Depends-on): Likewise.
38190         * modules/fdopendir (Depends-on): Likewise.
38191         * modules/inet_ntop (Depends-on): Likewise.
38192         * modules/inet_pton (Depends-on): Likewise.
38193         * modules/lchown (Depends-on): Likewise.
38194         * modules/openat (Depends-on): Likewise.
38195         * modules/savewd (Depends-on): Likewise.
38196         * modules/settime (Depends-on): Likewise.
38197         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
38198
38199         fts: avoid leaking fds
38200         * modules/fts (Depends-on): Add cloexec.
38201         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
38202         flag.
38203
38204         fts: make directory fds more robust
38205         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
38206         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
38207
38208         backupfile, chdir-long, fts, savedir: make safer
38209         * lib/backupfile.c (includes): Use "dirent--.h", since
38210         numbered_backup can write to stderr during readdir.
38211         * lib/savedir.c (includes): Likewise.
38212         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
38213         emulation can write to stderr on failure.
38214         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
38215         * lib/getcwd.c: Document why opendir_safer is unused.
38216         * lib/glob.c: Likewise.
38217         * lib/scandir.c: Likewise.
38218         * lib/openat-proc.c: Likewise, for open_safer.
38219         * modules/backupfile (Depends-on): Add dirent-safer.
38220         * modules/savedir (Depends-on): Likewise.
38221         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
38222         * modules/chdir-long (Depends-on): Add openat-safer.
38223
38224         openat-safer: new module
38225         * modules/openat-safer: New file.
38226         * lib/openat-safer.c: Likewise.
38227         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
38228         * lib/fcntl-safer.h (openat_safer): Declare.
38229         * lib/fcntl--.h (openat): Override.
38230         * MODULES.html.sh (File descriptor based I/O): Mention it.
38231         * lib/openat.h: Add double-inclusion guards.
38232         * lib/openat.c (includes): Only include "fcntl-safer.h", not
38233         "fcntl--.h", so we can implement openat.
38234         * modules/openat-safer-tests: New test.
38235         * tests/test-openat-safer.c: New file.
38236
38237         dirent-safer: new module
38238         * modules/dirent-safer: New file.
38239         * lib/dirent--.h: Likewise.
38240         * lib/dirent-safer.h: Likewise.
38241         * lib/opendir-safer.c: Likewise.
38242         * m4/dirent-safer.m4: Likewise.
38243         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
38244         * modules/dirent-safer-tests: New test.
38245         * tests/test-dirent-safer.c: New file.
38246         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
38247
38248         fdopendir: optimize on mingw
38249         * lib/unistd.in.h (_gl_directory_name): New prototype.
38250         * lib/fchdir.c (_gl_directory_name): Implement it.
38251         (fchdir): Use it to simplify implementation.
38252         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
38253         fchdir, when available, to avoid calling [f]chdir().
38254
38255         fdopendir: split into its own module
38256         * lib/openat.c (fdopendir): Move...
38257         * lib/fdopendir.c: ...into new file.
38258         * modules/fdopendir: New module.
38259         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
38260         * modules/openat (Depends-on): Add fdopendir.
38261         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
38262         fdopendir here.
38263         * modules/savedir (Depends-on): Only need fdopendir, not full
38264         openat.
38265         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
38266         * lib/openat.h (fdopendir): Drop prototype.
38267         * lib/dirent.in.h (fdopendir): Provide prototype.
38268         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
38269         * modules/dirent (Makefile.am): Substitute them.
38270         * MODULES.html.sh (File system functions): Mention it.
38271         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
38272         * modules/fdopendir-tests: New file.
38273         * tests/test-fdopendir.c: Likewise.
38274
38275         fchdir: use more consistent macro convention
38276         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
38277         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
38278         REPLACE_FCHDIR, rather than relying on config.h macros.
38279         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
38280         inside a single make-time REPLACE_FCHDIR block, rather than using
38281         the config.h FCHDIR_REPLACEMENT.
38282         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
38283         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
38284         Manage fstat replacement.
38285         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
38286         REPLACE_FCHDIR.
38287         * modules/sys_stat (Files): Add m4/unistd_h.m4.
38288         (Makefile.am): Substitute REPLACE_FCHDIR.
38289         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
38290         FCHDIR_REPLACEMENT.
38291         * lib/dup-safer.c (dup_safer): Likewise.
38292         * lib/dup2.c (rpl_dup2): Likewise.
38293         * lib/dup3.c (rpl_dup3): Likewise.
38294         * lib/open.c (rpl_open): Likewise.
38295
38296         fchdir: simplify error handling, and support dup3
38297         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
38298         stdbool, malloc-posix, realloc-posix.
38299         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
38300         (ensure_dirs_slot): Return false on allocation failure.
38301         (rpl_dup2): Delete.
38302         (_gl_register_dup): New function.
38303         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
38304         (_gl_register_fd): Close fd on allocation failure.
38305         * lib/fcntl.in.h (_gl_register_fd): Update signature.
38306         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
38307         prototype.
38308         (rpl_dup2_fchdir): Delete prototype.
38309         * lib/open.c (open): Update caller.
38310         * lib/dup2.c (dup2): Track fchdir metadata.
38311         * lib/dup3.c (dup3): Likewise.
38312         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
38313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
38314
38315 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38316
38317         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
38318         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
38319         don't pass arguments to AC_OUTPUT.
38320
38321 2009-09-02  Bruno Haible  <bruno@clisp.org>
38322
38323         * modules/mkdtemp (License): Relicense under LGPLv2+.
38324         Reported by Paolo Bonzini.
38325
38326 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38327
38328         Replace uses of obsolete autoconf macros in Jim's modules.
38329         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
38330         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
38331         can evoke a warning from autoconf when run with -Wobsolete
38332         enabled.  They were declared obsolete for good reasons (see
38333         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
38334         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
38335         should not continue using the deprecated macros.
38336         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
38337         obsolete Autoconf macros with modern counterparts.
38338         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38339         * m4/dos.m4 (gl_AC_DOS): Likewise.
38340         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
38341         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
38342         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
38343         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
38344         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
38345         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
38346         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
38347         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
38348         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38349         Likewise.
38350         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
38351         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
38352         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
38353         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
38354         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38355         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
38356
38357 2009-09-01  Eric Blake  <ebb9@byu.net>
38358
38359         fchdir: fix off-by-one bug in previous patch
38360         * lib/fchdir.c (rpl_fstat): Use correct bounds.
38361         (_gl_unregister_fd): Delete useless if.
38362
38363 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
38364
38365         maint.mk: sort the list of syntax-check rules
38366         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
38367         easier to get a sense of progress when the rules are run sequentially
38368         and take a long time.
38369
38370 2009-09-01  Simon Josefsson  <simon@josefsson.org>
38371
38372         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
38373         * modules/netinet_in: Likewise.
38374         * modules/sys_file: Likewise.
38375         * modules/sys_ioctl: Likewise.
38376         * modules/sys_select: Likewise.
38377         * modules/sys_socket: Likewise.
38378         * modules/sys_stat: Likewise.
38379         * modules/sys_time: Likewise.
38380         * modules/sys_times: Likewise.
38381         * modules/sys_utsname: Likewise.
38382         * modules/sys_wait: Likewise.
38383
38384 2009-09-01  Jim Meyering  <meyering@redhat.com>
38385
38386         fts: help ensure that return values are not ignored
38387         * lib/fts_.h (__GNUC_PREREQ): Define.
38388         (__attribute_warn_unused_result__): Define.
38389         (fts_children, fts_close, fts_open, fts_read): Declare with
38390         __attribute_warn_unused_result__.
38391
38392         fts: fts_close now fails also when closing a dir file descriptor fails
38393         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
38394         and propagate to caller, along with errno.
38395
38396         announce-gen: correct formatting in --help output
38397         * build-aux/announce-gen (usage): Move the one-line description in
38398         --help output "up", to where it belongs, just after Usage:.
38399
38400 2009-08-31  Eric Blake  <ebb9@byu.net>
38401
38402         fchdir: port to mingw
38403         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
38404         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
38405         opened, then use a substitute.
38406         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
38407         replacement.
38408         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
38409         (_gl_register_fd): No need to check stat if open already filters
38410         all directories.
38411         (fchdir): Fix error condition to match POSIX.
38412         * modules/fchdir (Depends-on): Add sys_stat.
38413         * doc/posix-functions/open.texi (open): Document the limitation.
38414         * modules/fchdir-tests: New file.
38415         * tests/test-fchdir.c: Likewise.
38416
38417         canonicalize: allow cross-testing from cygwin to mingw
38418         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
38419         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
38420         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
38421         Likewise.
38422         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
38423         target does not support symlinks.
38424         * tests/test-canonicalize-lgpl.sh: Likewise.
38425
38426         chown: avoid compilation warning on mingw
38427         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
38428         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
38429         mingw.
38430         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38431         * modules/chown (Depends-on): Add errno.
38432
38433 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38434
38435         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
38436         command.
38437
38438 2009-08-31  Jim Meyering  <meyering@redhat.com>
38439
38440         canonicalize: remove useless initialization
38441         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
38442         initialization of local, "end".
38443
38444 2009-08-30  Bruno Haible  <bruno@clisp.org>
38445
38446         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
38447         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
38448         ENOSYS.
38449
38450 2009-08-30  Bruno Haible  <bruno@clisp.org>
38451
38452         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
38453         /usr/xpg4/bin/tr when it exists.
38454         * tests/test-pipe-filter-gi1.sh: Likewise.
38455
38456 2009-08-30  Bruno Haible  <bruno@clisp.org>
38457
38458         Work around deficient /usr/bin/id program on Solaris.
38459         * tests/test-file-has-acl.sh (ID): New variable.
38460         * tests/test-set-mode-acl.sh (ID): Likewise.
38461         * tests/test-copy-acl.sh (ID): Likewise.
38462         * tests/test-copy-file.sh (ID): Likewise.
38463
38464 2009-08-30  Bruno Haible  <bruno@clisp.org>
38465
38466         New module 'xstriconveh'.
38467         * lib/xstriconveh.h: New file.
38468         * lib/xstriconveh.c: New file.
38469         * modules/xstriconveh: New file.
38470
38471 2009-08-30  Bruno Haible  <bruno@clisp.org>
38472
38473         Make it easier to use mem_cd_iconveh.
38474         * lib/striconveh.h (iconveh_t): New type.
38475         (iconveh_open, iconveh_close): New declarations.
38476         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38477         with a single 'const iconveh_t *' argument.
38478         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
38479         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38480         with a single 'const iconveh_t *' argument.
38481         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
38482         * tests/test-striconveh.c (main): Update.
38483         * NEWS: Mention the change.
38484
38485 2009-08-30  Bruno Haible  <bruno@clisp.org>
38486
38487         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
38488         problem.
38489
38490 2009-08-30  Bruno Haible  <bruno@clisp.org>
38491
38492         Work around iconv_open problem on Solaris.
38493         * lib/iconv_open-solaris.gperf: New file.
38494         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
38495         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
38496         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
38497         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
38498         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
38499         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
38500
38501 2009-08-29  Jim Meyering  <meyering@redhat.com>
38502
38503         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
38504         * top/maint.mk (cvs-check): Remove target; it was just an alias
38505         to the better-named vc-diff-check.
38506         (maintainer-distcheck): Remove rule.  It was used only from
38507         the (alpha/beta/major) target, and all of its commands but one
38508         were coreutils-specific.
38509         (vc-dist): Remove rule.
38510         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
38511         Run vc-diff-check, not vc-dist.
38512         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
38513
38514 2009-08-27  Bruno Haible  <bruno@clisp.org>
38515
38516         * tests/test-bitrotate.c (main): Remove test that uses a shift count
38517         of 0.
38518
38519 2009-08-27  Bruno Haible  <bruno@clisp.org>
38520
38521         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
38522         compilers.
38523         * doc/func.texi: Document the SunPRO C bug.
38524
38525 2009-08-27  Bruno Haible  <bruno@clisp.org>
38526
38527         Fix link error on Solaris.
38528         * tests/test-parse-duration.c (xstrdup): Remove function.
38529
38530 2009-08-26  Pádraig Brady  <P@draigbrady.com>
38531
38532         ignore-value: handle pointer types, too
38533         * lib/ignore-value.h (__attribute__): Remove definition.
38534         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
38535         of a more concise and more-often effective "(void) i" statement.
38536         (ignore_ptr): New function to suppress warnings from functions that
38537         return pointers, and to make it explicit that one function doesn't
38538         handle all cases.
38539
38540 2009-08-25  Bruno Haible  <bruno@clisp.org>
38541
38542         dup2: work around a Linux bug.
38543         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
38544         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
38545         * doc/posix-functions/dup2.texi: Mention the Linux bug.
38546         Reported by Simon Josefsson.
38547
38548 2009-08-25  Jim Meyering  <meyering@redhat.com>
38549
38550         libguestfs uses gnulib
38551         * users.txt: Add libguestfs.
38552
38553 2009-08-24  Eric Blake  <ebb9@byu.net>
38554
38555         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
38556         * lib/pipe2.c (includes): Add binary-io.h.
38557         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
38558
38559 2009-08-24  Bruno Haible  <bruno@clisp.org>
38560
38561         Tolerate declared but missing accept4 syscall.
38562         * lib/accept4.c (accept4): Invoke original accept4 function first, if
38563         available.
38564         * lib/sys_socket.in.h (accept4): If the function is already present,
38565         override it.
38566         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
38567         * modules/accept4 (Makefile.am): Compile accept4.c always.
38568         Reported by Paolo Bonzini and Eric Blake.
38569
38570 2009-08-23  Bruno Haible  <bruno@clisp.org>
38571
38572         New module 'accept4'.
38573         * lib/sys_socket.in.h (accept4): New declaration.
38574         * lib/accept4.c: New file.
38575         * m4/accept4.m4: New file.
38576         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38577         GNULIB_ACCEPT4, HAVE_ACCEPT4.
38578         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
38579         HAVE_ACCEPT4.
38580         * modules/accept4: New file.
38581         * doc/glibc-functions/accept4.texi: Mention the new module.
38582
38583 2009-08-24  Jim Meyering  <meyering@redhat.com>
38584
38585         progname: also set global program_invocation_name, when possible
38586         Before this change, a libtool-enabled program that calls glibc's
38587         error function would report the program name as
38588         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
38589         * modules/progname (configure.ac): Check for a declaration of
38590         program_invocation_name.
38591         * lib/progname.c:  Include <errno.h>.
38592         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
38593         Set program_invocation_name.
38594
38595 2009-08-23  Bruno Haible  <bruno@clisp.org>
38596
38597         * lib/dup3.c: Include <string.h>.
38598
38599 2009-08-23  Bruno Haible  <bruno@clisp.org>
38600
38601         * lib/dup3.c (dup3): Test only once whether the system actually exists.
38602         * lib/pipe2.c (pipe2): Likewise.
38603         Suggested by Eric Blake.
38604
38605 2009-08-23  Bruno Haible  <bruno@clisp.org>
38606
38607         Tolerate declared but missing dup3 syscall.
38608         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
38609         * lib/unistd.in.h (dup3): If the function is already present,
38610         override it.
38611         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
38612         * modules/dup3 (Makefile.am): Compile dup3.c always.
38613         Reported by Paolo Bonzini.
38614
38615 2009-08-23  Bruno Haible  <bruno@clisp.org>
38616
38617         Tolerate declared but missing pipe2 syscall.
38618         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
38619         available.
38620         * lib/unistd.in.h (pipe2): If the function is already present,
38621         override it.
38622         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
38623         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
38624         Reported by Paolo Bonzini.
38625
38626 2009-08-23  Bruno Haible  <bruno@clisp.org>
38627
38628         * lib/pipe2.c (pipe2): Move #ifs inside function.
38629
38630 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38631
38632         quotearg: document limitations of quote_these_too
38633         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
38634         those limitations are created.
38635         * lib/quotearg.h (set_char_quoting): Document that digits and
38636         letters that are special after backslash are not permitted.
38637         (quotearg_char): Cross-reference set_char_quoting documentation.
38638
38639 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
38640
38641         quotearg: implement custom_quoting_style
38642         * lib/quotearg.c: (struct quoting_options): Add left_quote and
38643         right_quote fields.
38644         (set_custom_quoting): New public function.
38645         (quotearg_buffer_restyled): Add left_quote and right_quote
38646         arguments, handle them very much like locale quoting, and update
38647         all uses.
38648         (quotearg_n_custom): New public function.
38649         (quotearg_n_custom_mem): New public function.
38650         (quotearg_custom): New public function.
38651         (quotearg_custom_mem): New public function.
38652         * lib/quotearg.h: Prototype and document new public functions.
38653         (enum quoting_style): For escape_quoting_style and
38654         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
38655         ignored even though they're otherwise like c_quoting_style.
38656         Add custom_quoting_style member and document with comparison to
38657         clocale_quoting_style.
38658         * tests/test-quotearg.c (custom_quotes): New array.
38659         (custom_results): New array.
38660         (main): Extend to test custom quoting.
38661
38662 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38663
38664         quotearg: fix right quote escaping when it's in quote_these_too
38665         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
38666         quote, be sure to prepend only one backslash.
38667         * tests/test-quotearg.c (use_quote_double_quotes): New function.
38668         (main): Test it.
38669
38670 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38671
38672         quotearg-tests: test escaping of embedded locale quotes
38673         * tests/test-quotearg.c (struct result_strings): Add member for
38674         new input.
38675         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
38676         (inputs): Add new input.
38677         (results_g): Add expected results.
38678         (flag_results): Likewise.
38679         (locale_results): Likewise.
38680         (compare_strings): Check those.
38681
38682 2009-08-23  Bruno Haible  <bruno@clisp.org>
38683
38684         Tests for module 'dup3'.
38685         * modules/dup3-tests: New file.
38686         * tests/test-dup3.c: New file.
38687
38688         New module 'dup3'.
38689         * lib/unistd.in.h (dup3): New declaration.
38690         * lib/dup3.c: New file.
38691         * m4/dup3.m4: New file.
38692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
38693         HAVE_DUP3.
38694         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
38695         * modules/dup3: New file.
38696         * doc/glibc-functions/dup3.texi: Mention the new module.
38697
38698 2009-08-23  Bruno Haible  <bruno@clisp.org>
38699
38700         Tweak the dup2 test.
38701         * tests/test-dup2.c (main): Create the test file empty. Verify that an
38702         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
38703         the test file is still empty. Fix argument order of lseek.
38704
38705 2009-08-23  Bruno Haible  <bruno@clisp.org>
38706
38707         Avoid test link errors when the modules getopt-gnu, gettext are used.
38708         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
38709         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38710
38711 2009-08-23  Bruno Haible  <bruno@clisp.org>
38712
38713         Fix getdtablesize() on mingw.
38714         * lib/getdtablesize.c (getdtablesize): Implement differently.
38715         * lib/unistd.in.h (getdtablesize): Improve comment.
38716
38717 2009-08-23  Bruno Haible  <bruno@clisp.org>
38718
38719         New module 'mkostemp'.
38720         Based on Ulrich Drepper's 2007-08-10 change in glibc.
38721         * lib/stdlib.in.h (mksotemp): New declaration.
38722         * lib/mkostemp.c: New file, from glibc with modifications.
38723         * lib/tempname.h (GT_FILE): Remove outdated comment.
38724         (gen_tempname): Add flags argument.
38725         * lib/tempname.c (__GT_BIGFILE): Remove macro.
38726         (__GT_FILE): Map to 1.
38727         (small_open, large_open): Remove macros.
38728         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
38729         * lib/mkstemp.c (mkstemp): Update.
38730         * lib/mkdtemp.c (mkdtemp): Likewise.
38731         * m4/mkostemp.m4: New file.
38732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
38733         HAVE_MKOSTEMP.
38734         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
38735         HAVE_MKOSTEMP.
38736         * modules/mkostemp: New file, based on modules/mkstemp.
38737         * doc/glibc-functions/mkostemp.texi: Mention the new module.
38738         * NEWS: Mention the change.
38739
38740 2009-08-23  Bruno Haible  <bruno@clisp.org>
38741
38742         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
38743         Reported by Eric Blake.
38744
38745 2009-08-23  Bruno Haible  <bruno@clisp.org>
38746
38747         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
38748         Reported by Eric Blake.
38749
38750 2009-08-23  Bruno Haible  <bruno@clisp.org>
38751
38752         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
38753         * modules/pipe2 (Depends-on): Likewise.
38754
38755 2009-08-23  Eric Blake  <ebb9@byu.net>
38756
38757         fcntl-h: add O_TTY_INIT support
38758         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
38759         * tests/test-fcntl-h.c (o): Test it.
38760         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38761
38762         fcntl-h: rename from fcntl, in preparation for fcntl(2)
38763         * modules/fcntl: Move <fcntl.h> header replacement...
38764         * modules/fcntl-h: ...to new name, so as not to collide with
38765         like-named function.
38766         * tests/test-fcntl.c: Rename...
38767         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
38768         * modules/fcntl-tests: Rename...
38769         * modules/fcntl-h-tests: ...to this.  Update test file name.
38770         * modules/chdir-long (Depends-on): Update clients.
38771         * modules/chdir-safer (Depends-on): Likewise.
38772         * modules/fcntl-safer (Depends-on): Likewise.
38773         * modules/fts (Depends-on): Likewise.
38774         * modules/mkancesdirs (Depends-on): Likewise.
38775         * modules/mkdir-p (Depends-on): Likewise.
38776         * modules/open (Depends-on): Likewise.
38777         * modules/savewd (Depends-on): Likewise.
38778         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
38779         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38780
38781 2009-08-22  Bruno Haible  <bruno@clisp.org>
38782
38783         * modules/binary-io (License): Relicense under LGPL.
38784         * modules/pipe2 (License): Likewise.
38785
38786 2009-08-22  Bruno Haible  <bruno@clisp.org>
38787
38788         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
38789         return value.
38790         * lib/pipe-filter-gi.c (filter_init): Likewise.
38791         Reported by Eric Blake.
38792
38793 2009-08-22  Bruno Haible  <bruno@clisp.org>
38794
38795         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
38796         * modules/pipe (Depends-on): Add pipe2.
38797
38798 2009-08-22  Bruno Haible  <bruno@clisp.org>
38799
38800         Tests for module 'pipe2'.
38801         * modules/pipe2-tests: New file.
38802         * tests/test-pipe2.c: New file.
38803
38804         New module 'pipe2'.
38805         * lib/unistd.in.h (pipe2): New declaration.
38806         * lib/pipe2.c: New file.
38807         * m4/pipe2.m4: New file.
38808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
38809         HAVE_PIPE2.
38810         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
38811         * modules/pipe2: New file.
38812         * doc/glibc-functions/pipe2.texi: Mention the new module.
38813
38814 2009-08-22  Bruno Haible  <bruno@clisp.org>
38815
38816         Reference some new glibc functions.
38817         * doc/glibc-functions/accept4.texi: New file.
38818         * doc/glibc-functions/dup3.texi: New file.
38819         * doc/glibc-functions/mkostemp.texi: New file.
38820         * doc/glibc-functions/pipe2.texi: New file.
38821         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
38822         (Glibc sys/socket.h): Refer to accept4.
38823         (Glibc unistd.h): Refer to dup3, pipe2.
38824         Reported by Eric Blake.
38825
38826 2009-08-22  Jim Meyering  <meyering@redhat.com>
38827             Bruno Haible  <bruno@clisp.org>
38828
38829         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
38830         This makes it so packages using automake-1.11's silent-rules option
38831         can print e.g., a single "GEN    configmake.h" line, rather than
38832         the 30+ statements that perform the job.  If you want to see the
38833         actual commands, you can still run "make V=1".
38834         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
38835         so that make output is abbreviated when those variables are defined
38836         appropriately.
38837         * modules/argz: Likewise.
38838         * modules/arpa_inet: Likewise.
38839         * modules/byteswap: Likewise.
38840         * modules/configmake: Likewise.
38841         * modules/dirent: Likewise.
38842         * modules/errno: Likewise.
38843         * modules/fcntl: Likewise.
38844         * modules/float: Likewise.
38845         * modules/fnmatch: Likewise.
38846         * modules/getopt-posix: Likewise.
38847         * modules/glob: Likewise.
38848         * modules/iconv_open: Likewise.
38849         * modules/inttypes: Likewise.
38850         * modules/localcharset: Likewise.
38851         * modules/locale: Likewise.
38852         * modules/math: Likewise.
38853         * modules/netdb: Likewise.
38854         * modules/netinet_in: Likewise.
38855         * modules/poll: Likewise.
38856         * modules/posix_spawnp-tests: Likewise.
38857         * modules/sched: Likewise.
38858         * modules/search: Likewise.
38859         * modules/selinux-h: Likewise.
38860         * modules/signal: Likewise.
38861         * modules/spawn: Likewise.
38862         * modules/stdarg: Likewise.
38863         * modules/stdbool: Likewise.
38864         * modules/stddef: Likewise.
38865         * modules/stdint: Likewise.
38866         * modules/stdio: Likewise.
38867         * modules/stdlib: Likewise.
38868         * modules/string: Likewise.
38869         * modules/strings: Likewise.
38870         * modules/sys_file: Likewise.
38871         * modules/sys_ioctl: Likewise.
38872         * modules/sys_select: Likewise.
38873         * modules/sys_socket: Likewise.
38874         * modules/sys_stat: Likewise.
38875         * modules/sys_time: Likewise.
38876         * modules/sys_times: Likewise.
38877         * modules/sys_utsname: Likewise.
38878         * modules/sys_wait: Likewise.
38879         * modules/sysexits: Likewise.
38880         * modules/time: Likewise.
38881         * modules/unistd: Likewise.
38882         * modules/wchar: Likewise.
38883         * modules/wctype: Likewise.
38884
38885 2009-08-22  Jim Meyering  <meyering@redhat.com>
38886
38887         announce-gen: detect write failure
38888         * build-aux/announce-gen: Add Coda at end.
38889         Remove equivalent-but-more-verbose block at top.
38890
38891 2009-08-19  Akim Demaille  <demaille@gostai.com>
38892
38893         bootstrap: --help to stdout.
38894         * bootstrap (usage): Don't send --help to stderr.
38895         Use a here doc instead of a long string.
38896
38897 2009-08-21  Eric Blake  <ebb9@byu.net>
38898
38899         test-popen-safer: split from test-popen
38900         * tests/test-popen.c (main): Move...
38901         * tests/test-popen.h: ...into new file.
38902         * tests/test-popen-safer2.c: New file.
38903         * modules/popen-tests (Files): Add test-popen.h.
38904         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
38905         Suggested by Bruno Haible.
38906
38907         test-fcntl-safer: split from test-open
38908         * tests/test-open.c (main): Move...
38909         * tests/test-open.h: ...into new file.
38910         * tests/test-fcntl-safer.c: New file.
38911         * modules/open-tests (Files): Add test-open.h.
38912         * modules/fcntl-safer-tests: New file.
38913         Suggested by Bruno Haible.
38914
38915         test-fopen-safer: split from test-fopen
38916         * tests/test-fopen.c (main): Move...
38917         * tests/test-fopen.h: ...into new file.
38918         * tests/test-fopen-safer.c: New file.
38919         * modules/fopen-tests (Files): Add test-fopen.h.
38920         * modules/fopen-safer-tests: New file.
38921         Suggested by Bruno Haible.
38922
38923 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38924
38925         popen-safer: test O_CLOEXEC at run-time.
38926         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
38927
38928 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38929
38930         fcntl: move more flags to the header
38931         * lib/cloexec.c: Do not define FD_CLOEXEC here.
38932         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
38933         * lib/fcntl.in.h: Do both things here.
38934
38935 2009-08-21  Jim Meyering  <meyering@redhat.com>
38936
38937         consistently remove $@-t before redirecting to it
38938         * modules/argz: Remove $@-t and $@ before redirecting to the former.
38939         * modules/alloca-opt: Likewise.
38940         * modules/byteswap: Likewise.
38941         * modules/fnmatch: Likewise.
38942         * modules/getopt-posix: Likewise.
38943         * modules/glob: Likewise.
38944         * modules/poll: Likewise.
38945         * modules/posix_spawnp-tests: Likewise.
38946         * modules/sys_socket: Likewise.
38947         * modules/sysexits: Likewise.
38948
38949 2009-08-21  Eric Blake  <ebb9@byu.net>
38950
38951         popen: simplify access to original popen
38952         * lib/popen.c (rpl_popen): No need to worry about popen being a
38953         macro.
38954         Reported by Bruno Haible.
38955
38956 2009-08-20  Eric Blake  <ebb9@byu.net>
38957
38958         build: avoid some compiler warnings
38959         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
38960         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
38961         type.
38962         (new_exclude_segment, excluded_file_pattern_p)
38963         (excluded_file_name_p): Reduce scope.
38964         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
38965         old-style declaration.
38966
38967 2009-08-20  Simon Josefsson  <simon@josefsson.org>
38968
38969         * tests/test-exclude1.sh: Handle Windows EOL.
38970         * tests/test-exclude2.sh: Likewise.
38971         * tests/test-exclude3.sh: Likewise.
38972         * tests/test-exclude4.sh: Likewise.
38973         * tests/test-exclude5.sh: Likewise.
38974         * tests/test-exclude6.sh: Likewise.
38975         * tests/test-exclude7.sh: Likewise.
38976
38977 2009-08-19  Akim Demaille  <demaille@gostai.com>
38978
38979         bootstrap: find sha1sum when named gsha1sum.
38980         * bootstrap (find_tool): New.
38981         ($SHA1SUM): New.
38982         Use it.
38983
38984 2009-08-20  Jim Meyering  <meyering@redhat.com>
38985
38986         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
38987         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
38988         expression that converts "." in a file name to "\." in the resulting
38989         regexp.  Start with a dummy statement, so that prior shell variable
38990         definitions are expanded portably.  Reported by Simon Josefsson.
38991
38992 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
38993
38994         Fix polling for writeability of a screen buffer.
38995         * lib/poll.c: Distinguish input and screen buffers for the
38996         Win32 implementation.
38997         * lib/select.c: Likewise.
38998
38999 2009-08-19  Eric Blake  <ebb9@byu.net>
39000
39001         popen-safer: prevent popen from clobbering std descriptors
39002         * modules/popen-safer: New file.
39003         * lib/popen-safer.c: Likewise.
39004         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
39005         * lib/stdio--.h (popen): Provide override.
39006         * lib/stdio-safer.h (popen_safer): Provide declaration.
39007         * tests/test-popen.c (includes): Partially test this.
39008         * modules/popen-safer-tests: New file, for more tests.
39009         * tests/test-popen-safer.c: Likewise.
39010         * MODULES.html.sh (file stream based Input/Output): Mention it.
39011
39012         tests: test some of the *-safer modules
39013         * modules/fopen-safer (Depends-on): Add fopen.
39014         * modules/fcntl-safer (Depends-on): Add fcntl.
39015         * modules/stdlib-safer (Depends-on): Add stdlib.
39016         (configure.ac): Set indicator.
39017         * modules/unistd-safer (configure.ac): Likewise.
39018         * modules/tmpfile-safer (configure.ac): Likewise.
39019         (Depends-on): Add tmpfile.
39020         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
39021         active.
39022         * tests/test-fopen.c (includes): Test safer versions when they are
39023         in use.
39024         * tests/test-open.c (includes): Likewise.
39025
39026         popen: fix cygwin 1.5 bug when stdin closed
39027         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
39028         * modules/popen: New file.
39029         * modules/popen-tests: Likewise.
39030         * tests/test-popen.c: Likewise.
39031         * m4/popen.m4: Likewise.
39032         * lib/popen.c: Likewise.
39033         * lib/stdio.in.h (popen): New declaration.
39034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
39035         * modules/stdio (Makefile.am): Likewise.
39036         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
39037
39038 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
39039
39040         maint.mk: give full control over update-copyright exclusions
39041         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
39042         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
39043         (update-copyright): Don't force inclusion of top-level
39044         ChangeLog.  Don't force exclusion of all COPYING files, but make
39045         them the default exclusion instead.
39046
39047 2009-08-16  Bruno Haible  <bruno@clisp.org>
39048
39049         Fix test failures on Solaris 10.
39050         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
39051         tests when Solaris iconv() is used.
39052         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39053         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39054         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39055         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39056         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39057
39058 2009-08-16  Bruno Haible  <bruno@clisp.org>
39059
39060         Fix test failures on Solaris 10.
39061         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
39062         'tr' program and pass it as first argument.
39063         * tests/test-pipe-filter-gi1.sh: Likewise.
39064         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
39065         program as first argument.
39066         * tests/test-pipe-filter-gi1.c (main): Likewise.
39067
39068 2009-08-16  Eric Blake  <ebb9@byu.net>
39069
39070         fpurge: fix previous commits
39071         * modules/fpurge (Makefile.am): Make replacement conditional,
39072         partially reverting 2007-04-29 change; missed in previous
39073         attempt.
39074         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
39075         is missing.
39076
39077 2009-08-16  Bruno Haible  <bruno@clisp.org>
39078
39079         Clarify fpurge's effect on the file position.
39080         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
39081         * tests/test-fpurge.c (main): Make a second pass for checking the file
39082         position.
39083
39084 2009-08-16  Bruno Haible  <bruno@clisp.org>
39085
39086         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
39087         declaration of fpurge is missing.
39088         * tests/test-fpurge.c (main): Check that the file has not more contents
39089         than expected. Close the file before removing it.
39090
39091 2009-08-15  Eric Blake  <ebb9@byu.net>
39092
39093         fpurge: don't wrap working cygwin implementation
39094         * lib/fpurge.c (fpurge): Fix comment typo.
39095         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
39096         1.7 to avoid replacement.
39097         * tests/test-fpurge.c (main): Enhance test.
39098
39099 2009-08-15  Eric Blake  <ebb9@byu.net>
39100         and Jim Meyering  <meyering@redhat.com>
39101
39102         test-update-copyright: skip if perl is insufficient
39103         * tests/test-update-copyright.sh: Failure to run maintainer tool
39104         should not cause testsuite failure on cygwin 1.5.
39105
39106 2009-08-14  Eric Blake  <ebb9@byu.net>
39107
39108         doc: mention more functions added in cygwin 1.7.0
39109         * doc/posix-headers/limits.texi (limits.h): Update for recent
39110         cygwin additions.
39111         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
39112         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
39113         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
39114         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
39115         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
39116
39117 2009-08-14  Eric Blake  <ebb9@byu.net>
39118
39119         maint.mk: simplify update-copyright rule
39120         * top/maint.mk (update-copyright-local): Delete, and document how
39121         to do it in cfg.mk instead.
39122         (update-copyright-exclude-regexp): Delete, and document how to do
39123         it in .x-update-copyright instead.
39124         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
39125         exclude ChangeLog.
39126
39127 2009-08-14  Bruno Haible  <bruno@clisp.org>
39128
39129         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
39130
39131 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39132
39133         maint.mk: support update-copyright-env
39134         * top/maint.mk (update-copyright-env): Define place-holder.
39135         (update-copyright): Expand $(update-copyright-env) before
39136         invoking update-copyright.
39137
39138 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39139
39140         update-copyright: implement forced reformatting
39141         * build-aux/update-copyright: Implement and document
39142         UPDATE_COPYRIGHT_FORCE.
39143         * tests/test-update-copyright.sh: Test it.
39144
39145 2009-08-14  Eric Blake  <ebb9@byu.net>
39146         and Bruno Haible  <bruno@clisp.org>
39147
39148         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
39149         * tests/test-locale.c: Revert previous patch related to NULL.
39150         * tests/test-stdio.c: Likewise.
39151         * tests/test-stdlib.c: Likewise.
39152         * tests/test-string.c: Likewise.
39153         * tests/test-unistd.c: Likewise.
39154         * modules/time-tests (Depends-on): Add verify.
39155         * modules/wchar-tests (Depends-on): Likewise.
39156         * tests/test-time.c: Test for NULL compliance.
39157         * tests/test-wchar.c: Likewise.
39158         * modules/locale (Depends-on): Add stddef.
39159         * modules/stdio (Depends-on): Likewise.
39160         * modules/stdlib (Depends-on): Likewise.
39161         * modules/string (Depends-on): Likewise.
39162         * modules/time (Depends-on): Likewise.
39163         * modules/unistd (Depends-on): Likewise.
39164         * modules/wchar (Depends-on): Likewise.
39165         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
39166         * lib/stdlib.in.h (includes): Likewise.
39167         * lib/string.in.h (includes): Likewise.
39168         * lib/time.in.h (includes): Likewise.
39169         * lib/unistd.in.h (includes): Likewise.
39170         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
39171         replaced.
39172         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39173         * m4/stddef_h.m4: New file.
39174         * modules/stddef: Likewise.
39175         * lib/stddef.in.h: Likewise.
39176         * modules/stddef-tests: Likewise.
39177         * tests/test-stddef.c: Likewise.
39178         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
39179         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
39180         * doc/posix-headers/locale.texi (locale.h): Likewise.
39181         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
39182         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39183         * doc/posix-headers/string.texi (string.h): Likewise.
39184         * doc/posix-headers/time.texi (time.h): Likewise.
39185         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
39186         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
39187
39188 2009-08-14  Eric Blake  <ebb9@byu.net>
39189
39190         doc: improve git diff of texinfo files
39191         * .gitattributes: Add rule for *.texi files, with hint on how to
39192         use it.
39193         Copied from m4, and based on a report by Bruno Haible.
39194
39195 2009-08-14  Bruno Haible  <bruno@clisp.org>
39196
39197         Disable multithread support by default on Cygwin 1.5.x for real.
39198         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
39199
39200 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39201
39202         update-copyright: much ado about intervals
39203         * build-aux/update-copyright: Implement and document
39204         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
39205         of copyright year intervals.
39206         Also, document UPDATE_COPYRIGHT_YEAR.
39207         * tests/test-update-copyright.sh: Test it.
39208
39209         update-copyright: convert 2-digit to 4-digit years
39210         * build-aux/update-copyright: Implement and document.
39211         * tests/test-update-copyright.sh: Update.
39212
39213 2009-08-14  Jim Meyering  <meyering@redhat.com>
39214
39215         test-exclude: avoid coreutils "make check" failure
39216         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
39217         just as in test-argmatch.c.
39218
39219 2009-08-13  Eric Blake  <ebb9@byu.net>
39220
39221         test-dup2: fix bad assumption
39222         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
39223         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
39224
39225         test-version-etc: fix CRLF portability issue
39226         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
39227         recognize \r.
39228         * tests/test-argp-version-etc-1.sh: Likewise.
39229
39230         getopt: update client modules
39231         * modules/argp (Depends-on): Use getopt-gnu.
39232         * modules/git-merge-changelog (Depends-on): Likewise.
39233         * modules/long-options (Depends-on): Likewise.
39234         * modules/xstrtol (Depends-on): Likewise.
39235
39236 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39237
39238         * tests/test-version-etc.sh: Don't fail on different
39239         project/version.  Don't fail on CRLF differences.  Rewrite to use
39240         multiple -e instead of multiple sed forks, suggested by Eric Blake
39241         <ebb9@byu.net>.
39242         * tests/test-argp-version-etc-1.sh: Likewise.
39243
39244 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39245
39246         * tests/test-version-etc.sh: Don't fail on different
39247         project/version.
39248
39249 2009-08-12  Bruno Haible  <bruno@clisp.org>
39250
39251         Tests for modules 'getopt-posix', 'getopt-gnu'.
39252         * modules/getopt-posix-tests: New file.
39253         * tests/test-getopt.c: New file.
39254         * tests/test-getopt.h: New file.
39255         * tests/test-getopt_long.h: New file.
39256
39257         New modules 'getopt-posix', 'getopt-gnu'.
39258         * modules/getopt-gnu: New file, renamed from modules/getopt.
39259         * modules/getopt-posix: New file.
39260         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
39261         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
39262         (gl_GETOPT): Remove macro.
39263         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
39264         Disable the test against BSD systems that declare optreset. Test
39265         against mingw bug. Test against lack of support of optional arguments
39266         on many platforms.
39267         * doc/glibc-headers/getopt.texi: Update module name and list of
39268         relevant platforms.
39269         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
39270         'getopt-gnu' and more portability problems.
39271         * NEWS: Mention the changes.
39272
39273 2009-08-12  Bruno Haible  <bruno@clisp.org>
39274
39275         Ensure that optarg etc. get declared by <unistd.h>.
39276         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
39277         AC_USE_SYSTEM_EXTENSIONS.
39278         * modules/getopt (Depends-on): Add 'extensions'.
39279
39280 2009-08-12  Bruno Haible  <bruno@clisp.org>
39281
39282         Avoid test link errors.
39283         * modules/pipe-filter-ii-tests (Makefile.am): Define
39284         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
39285         * modules/pipe-filter-gi-tests (Makefile.am): Define
39286         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
39287         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39288
39289 2009-08-12  Bruno Haible  <bruno@clisp.org>
39290
39291         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
39292         gl_GETOPT_SUBSTITUTE before.
39293         (gl_GETOPT): Use it.
39294         * m4/argp.m4 (gl_ARGP): Update.
39295         Reported by Sergey Poznyakoff.
39296
39297         * m4/getopt.m4: Reorder macros.
39298         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
39299         (gl_GETOPT_SUBSTITUTE): Remove macro.
39300
39301 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39302
39303         Minor improvement in gitlog-to-changelog
39304
39305         * build-aux/gitlog-to-changelog: New option `--format' makes
39306         output format string configurable.
39307
39308 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39309
39310         Optimize exclude: use hash tables for non-wildcard patterns.
39311
39312         * lib/exclude.c: Include hash.h and mbuiter.h
39313         (struct exclude_pattern, exclude_segment): New data types.
39314         (struct exclude): Rewrite.
39315         (fnmatch_pattern_has_wildcards): New function.
39316         (new_exclude_segment, free_exclude_segment): New functions.
39317         (excluded_file_pattern_p, excluded_file_name_p): New functions.
39318         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
39319         * lib/exclude.h (is_fnmatch_pattern): New prototype.
39320         * modules/exclude: Depend on hash and mbuiter.
39321
39322         * modules/exclude-tests: New file.
39323         * tests/test-exclude.c: New file.
39324         * tests/test-exclude1.sh: New file.
39325         * tests/test-exclude2.sh: New file.
39326         * tests/test-exclude3.sh: New file.
39327         * tests/test-exclude4.sh: New file.
39328         * tests/test-exclude5.sh: New file.
39329         * tests/test-exclude6.sh: New file.
39330         * tests/test-exclude7.sh: New file.
39331
39332 2009-08-12  Bruno Haible  <bruno@clisp.org>
39333
39334         Ensure that getopt() gets declared by <unistd.h>.
39335         * lib/unistd.in.h: Conditionally include getopt.h.
39336         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
39337         Set GNULIB_UNISTD_H_GETOPT.
39338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39339         GNULIB_UNISTD_H_GETOPT.
39340         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
39341
39342 2009-08-12  Bruno Haible  <bruno@clisp.org>
39343
39344         Clarify logic.
39345         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
39346         gl_replace_getopt instead of GETOPT_H.
39347
39348 2009-08-12  Bruno Haible  <bruno@clisp.org>
39349
39350         * m4/getopt.m4: Add comments.
39351
39352 2009-08-12  Bruno Haible  <bruno@clisp.org>
39353
39354         Disable multithread support by default on Cygwin 1.5.x.
39355         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
39356         set gl_use_threads=no if not specified otherwise.
39357
39358 2009-08-11  Bruno Haible  <bruno@clisp.org>
39359
39360         Avoid compilation error on NetBSD 5.0.
39361         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
39362         * tests/test-stdio.c: Likewise.
39363         * tests/test-stdlib.c: Likewise.
39364         * tests/test-string.c: Likewise.
39365         * tests/test-unistd.c: Likewise.
39366         Reported by Greg Troxel <gdt@ir.bbn.com>
39367         at <https://savannah.gnu.org/support/?106973>.
39368
39369 2009-08-11  Bruno Haible  <bruno@clisp.org>
39370
39371         * modules/dup2-tests (Depends-on): Remove close.
39372
39373         Undo 2009-07-19 commit.
39374         * modules/acl-tests (Depends-on): Remove close.
39375         * modules/binary-io-tests (Depends-on): Likewise.
39376         * modules/closein-tests (Depends-on): Likewise.
39377         * modules/flock-tests (Depends-on): Likewise.
39378         * modules/fsync-tests (Depends-on): Likewise.
39379         * modules/lseek-tests (Depends-on): Likewise.
39380         * modules/pipe-tests (Depends-on): Likewise.
39381         * modules/posix_spawn-tests (Depends-on): Likewise.
39382         * modules/posix_spawnp-tests (Depends-on): Likewise.
39383         * modules/stat-time-tests (Depends-on): Likewise.
39384         * modules/yesno-tests (Depends-on): Likewise.
39385
39386 2009-08-10  Bruno Haible  <bruno@clisp.org>
39387
39388         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
39389
39390 2009-08-10  Bruno Haible  <bruno@clisp.org>
39391
39392         Fix a gcc warning.
39393         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
39394
39395 2009-08-10  Bruno Haible  <bruno@clisp.org>
39396
39397         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
39398         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
39399         not only the first time.
39400         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
39401         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
39402         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
39403         is 1, not only the the first time.
39404
39405 2009-08-10  Bruno Haible  <bruno@clisp.org>
39406
39407         Make it possible to use module 'gethostname' without module 'close'.
39408         * lib/unistd.in.h (close): Evoke a link error only if
39409         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39411         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39412         * modules/unistd (Makefile.am): Substitute
39413         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39414         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
39415         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39416         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
39417         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39418         * modules/sys_ioctl (Makefile.am): Substitute
39419         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39420         * modules/socket (configure.ac): On native Windows, set
39421         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
39422         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39423         Reported by Sam Steingold <sds@gnu.org>.
39424
39425 2009-08-10  Bruno Haible  <bruno@clisp.org>
39426
39427         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
39428         * modules/ioctl (configure.ac): Likewise.
39429
39430 2009-08-10  Bruno Haible  <bruno@clisp.org>
39431
39432         Avoid collision between gnulib wrapper and libintl wrapper.
39433         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
39434         already defined in intl/printf.c.
39435         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
39436         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
39437
39438 2009-08-09  Bruno Haible  <bruno@clisp.org>
39439
39440         Make <sys/select.h> really self-contained, also on Solaris 10.
39441         * lib/sys_select.in.h: Include <string.h>.
39442         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
39443         Solaris 10 problem.
39444         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
39445         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
39446         Reported by Jim Meyering.
39447
39448 2009-08-09  Bruno Haible  <bruno@clisp.org>
39449
39450         Avoid warnings from 'aclocal' that are due to a use of macro name
39451         AM_XGETTEXT_OPTION that is not defined in automake.
39452         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
39453         automake.
39454         * modules/error (configure.ac): Likewise.
39455         * modules/propername (configure.ac): Likewise.
39456         * modules/vasprintf (configure.ac): Likewise.
39457         * modules/verror (configure.ac): Likewise.
39458         * modules/xprintf (configure.ac): Likewise.
39459         * modules/xvasprintf (configure.ac): Likewise.
39460
39461 2009-08-08  Bruno Haible  <bruno@clisp.org>
39462
39463         Avoid compilation error in C++ mode.
39464         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
39465         Reported by Sam Steingold <sds@gnu.org>.
39466
39467 2009-08-08  Bruno Haible  <bruno@clisp.org>
39468
39469         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
39470         for the various Unix platforms.
39471         * doc/posix-headers/limits.texi: Update platforms list regarding
39472         HOST_NAME_MAX.
39473         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39474
39475 2009-08-07  Jim Meyering  <meyering@redhat.com>
39476
39477         selinux-at: fix typo in a comment
39478         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
39479         Spotted by Paolo Bonzini.
39480
39481         selinux-at: remove redundant m4 code, add documentation
39482         * modules/selinux-at (configure.ac): Remove redundant code.
39483         LIB_SELINUX is already set via the dependent module, selinux-h.
39484         (Include): Add quotes around selinux-at.h.
39485         * lib/selinux-at.h: Add documentation.
39486         Reported by Bruno Haible in
39487         http://marc.info/?l=gnulib-bug&m=124958988300749
39488
39489 2009-08-07  Bruno Haible  <bruno@clisp.org>
39490
39491         Avoid link error on MacOS X 10.3 and 10.4.
39492         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
39493         on non-ELF systems.
39494         * lib/argp-pv.c (argp_program_version): Likewise.
39495         Reported by Simon Josefsson.
39496
39497 2009-08-07  Simon Josefsson  <simon@josefsson.org>
39498
39499         * tests/test-version-etc.sh: Use $EXEEXT.
39500
39501 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
39502
39503         update-copyright: update documentation to point to maint.mk
39504         * build-aux/update-copyright: Here.
39505
39506 2009-08-06  Jim Meyering  <meyering@redhat.com>
39507
39508         maint.mk: support update-copyright-local
39509         * top/maint.mk (update-copyright-local): Define place-holder.
39510         (update-copyright): Depend on $(update-copyright-local).
39511
39512 2009-08-06  Jim Meyering  <meyering@redhat.com>
39513
39514         selinux-at: new module
39515         Initially written for coreutils, this module will soon be
39516         used by findutils, too.
39517         * MODULES.html.sh [Misc]: Add selinux-at.
39518         * lib/selinux-at.h: New file, from coreutils.
39519         * lib/selinux-at.c: Likewise.
39520         * modules/selinux-at: Likewise.
39521         (License): Change from LGPL to GPL, since it depends
39522         on the GPL'd openat module.
39523
39524         doc: update README
39525         * README: Remove references to cogito.
39526         Remove cvs-repo-updating instructions from 2007.
39527         Don't imply that CVS is better if you have limited disk space.
39528
39529 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39530
39531         update-copyright: support C-style comments
39532         * build-aux/update-copyright: Implement and document.
39533         * tests/test-update-copyright.sh: Test.
39534
39535 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39536
39537         update-copyright: support omitted "(C)"
39538         * build-aux/update-copyright: Implement and document.  Also,
39539         allow variable whitespace before "(C)".
39540         * tests/test-update-copyright.sh: Test.
39541
39542 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39543
39544         update-copyright: don't trip on non-FSF copyright statements
39545         * build-aux/update-copyright: Fix so that the first correctly
39546         formatted FSF copyright statement is recognized no matter what
39547         appears before it.  Update documentation.
39548         * tests/test-update-copyright.sh: Test that.
39549
39550 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39551
39552         update-copyright: clean up code a little
39553         * build-aux/update-copyright: Append "_re" to the name of any
39554         variable holding a regular expression.
39555         Replace "old" and "new" with "stmt" in variable names.
39556         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
39557         handled correctly.
39558         Format code more consistently.
39559
39560 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39561
39562         update-copyright-tests: improve portability
39563         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
39564         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
39565
39566 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39567
39568         update-copyright: support @copyright{} and &copy;
39569         * build-aux/update-copyright: Implement and document.
39570         * tests/test-update-copyright.sh: Test.
39571
39572 2009-08-04  Jim Meyering  <meyering@redhat.com>
39573
39574         update-copyright-tests: correctly test EOL=\r\n handling
39575         * tests/test-update-copyright.sh: Put \r at the end of some lines
39576         for the dos-eol tests.  Based on a patch by Joel E. Denny.
39577
39578         maint.mk: make update-copyright exclusion list more configurable
39579         * top/maint.mk (update-copyright): Default to excluding COPYING,
39580         but allow an override, in case someone does want to update that file.
39581
39582         maint.mk: don't update copyright date in COPYING
39583         * top/maint.mk (update-copyright): Exclude COPYING.
39584
39585         maint.mk: add a copyright-updating rule
39586         * top/maint.mk (update-copyright): New rule.
39587         Derived from coreutils/Makefile.am.
39588
39589         update-copyright: rename some variables
39590         * build-aux/update-copyright: Rename a few variables for clarity.
39591         Tweak syntax.  List Joel E. Denny as coauthor.
39592
39593 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39594
39595         update-copyright: fix bug for 2-digit last year and add tests
39596         * build-aux/update-copyright: Fix bug.
39597         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
39598         specified.
39599         * modules/update-copyright-tests: New
39600         * tests/test-update-copyright.sh: New.
39601
39602 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39603
39604         update-copyright: handle leading tabs in line prefix
39605         * build-aux/update-copyright: Count leading tabs as 8 spaces
39606         when computing margin.  This helps with the formatting of
39607         ChangeLogs, for example.
39608         Fix documentation a little.
39609
39610 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39611
39612         update-copyright: support EOL=\r\n
39613         * build-aux/update-copyright: Implement that.
39614
39615 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39616
39617         update-copyright: automatically format copyright statements
39618         * build-aux/update-copyright: Implement that.
39619         Also, be a little more predictable and safer by always failing
39620         when the full copyright format is not perfectly recognized as an
39621         unbroken whole.  Discussed at
39622         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
39623         Rewrite documentation.
39624
39625 2009-08-03  Bruno Haible  <bruno@clisp.org>
39626
39627         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
39628
39629 2009-08-02  Bruno Haible  <bruno@clisp.org>
39630
39631         Tests for module 'uname'.
39632         * modules/uname-tests: New file.
39633         * tests/test-uname.c: New file.
39634
39635         New module 'uname'.
39636         * lib/uname.c: New file.
39637         * m4/uname.m4: New file.
39638         * modules/uname: New file.
39639         * doc/posix-functions/uname.texi: Mention the new module.
39640
39641 2009-08-02  Bruno Haible  <bruno@clisp.org>
39642
39643         Tests for module 'sys_utsname'.
39644         * modules/sys_utsname-tests: New file.
39645         * tests/test-sys_utsname.c: New file.
39646
39647         New module 'sys_utsname'.
39648         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
39649         * m4/sys_utsname_h.m4: New file.
39650         * modules/sys_utsname: New file.
39651         * doc/posix-headers/sys_utsname.texi: Mention the new module.
39652
39653 2009-08-02  Bruno Haible  <bruno@clisp.org>
39654
39655         Implicitly initialize the sockets library.
39656         * lib/gethostname.c: Include sockets.h.
39657         (rpl_gethostname): Invoke gl_sockets_startup.
39658         * lib/socket.c: Include sockets.h.
39659         (rpl_socket): Invoke gl_sockets_startup.
39660         * modules/gethostname (Depends-on): Add sockets.
39661         * modules/socket (Depends-on): Likewise.
39662         * tests/test-poll.c: Don't include sockets.h.
39663         (main): Don't invoke gl_sockets_startup.
39664         * tests/test-select.c: Don't include sockets.h.
39665         (main): Don't invoke gl_sockets_startup.
39666
39667 2009-08-02  Bruno Haible  <bruno@clisp.org>
39668
39669         Allow multiple calls to gl_sockets_startup.
39670         * lib/sockets.c (initialized_sockets_version): New variable.
39671         (gl_sockets_startup): Do nothing if already called for this or a higher
39672         version.
39673         (gl_sockets_cleanup): Reset initialized_sockets_version.
39674
39675 2009-08-03  Simon Josefsson  <simon@josefsson.org>
39676
39677         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
39678         different project/version.
39679
39680 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
39681             Bruno Haible  <bruno@clisp.org>
39682
39683         Tests for module 'pipe-filter-gi'.
39684         * modules/pipe-filter-gi-tests: New file.
39685         * tests/test-pipe-filter-gi1.sh: New file.
39686         * tests/test-pipe-filter-gi1.c: New file.
39687         * tests/test-pipe-filter-gi2.sh: New file.
39688         * tests/test-pipe-filter-gi2-main.c: New file.
39689         * tests/test-pipe-filter-gi2-child.c: New file.
39690
39691         New module 'pipe-filter-gi'.
39692         * lib/pipe-filter-gi.c: New file.
39693         * modules/pipe-filter-gi: New file.
39694
39695 2009-08-02  Bruno Haible  <bruno@clisp.org>
39696             Paolo Bonzini  <bonzini@gnu.org>
39697
39698         Tests for module 'pipe-filter-ii'.
39699         * modules/pipe-filter-ii-tests: New file.
39700         * tests/test-pipe-filter-ii1.sh: New file.
39701         * tests/test-pipe-filter-ii1.c: New file.
39702         * tests/test-pipe-filter-ii2.sh: New file.
39703         * tests/test-pipe-filter-ii2-main.c: New file.
39704         * tests/test-pipe-filter-ii2-child.c: New file.
39705
39706         New module 'pipe-filter-ii'.
39707         * lib/pipe-filter.h: New file.
39708         * lib/pipe-filter-ii.c: New file.
39709         * lib/pipe-filter-aux.h: New file.
39710         * modules/pipe-filter-ii: New file.
39711
39712 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39713
39714         * lib/gc-libgcrypt.c: Change copyright to FSF.
39715         * lib/gc-gnulib.c: Likewise.
39716
39717 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
39718
39719         * lib/gethostname.c: Include limits.h.
39720
39721 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39722             Bruno Haible  <bruno@clisp.org>
39723
39724         Ensure HOST_NAME_MAX as part of the gethostname module.
39725         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
39726         define also HOST_NAME_MAX.
39727         * tests/test-gethostname.c: Include <limits.h>.
39728         (main): Check also HOST_NAME_MAX.
39729         * doc/posix-headers/limits.texi: Document the mingw problem.
39730
39731 2009-08-02  Bruno Haible  <bruno@clisp.org>
39732
39733         * lib/gethostname.c (gethostname): Fix handling of large len argument.
39734         Add comments.
39735
39736 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39737
39738         * lib/gethostname.c: Add Windows wrapper.
39739         * m4/gethostname.m4: Look for gethostname in -lws2_32.
39740         * modules/gethostname: Depend on sys_socket & errno, for also
39741         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
39742         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
39743
39744 2009-07-31  Jim Meyering  <meyering@redhat.com>
39745
39746         getloadavg: fix symbol name in comment
39747         * lib/getloadavg.c: Correct a typo I introduced when adding
39748         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
39749         Matt Kraai spotted the problem.
39750
39751 2009-07-29  Matt Kraai  <mkraai@beckman.com>
39752
39753         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
39754         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
39755         code also if ! defined N_NAME_POINTER.
39756         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
39757         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
39758         but the n_name member is a 12-byte array.
39759
39760 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
39761
39762         update-copyright: generalize comment handling
39763         * build-aux/update-copyright: Handle copyright statements
39764         within more comment styles.
39765         Document usage.
39766         Report any file with an external copyright holder or parse failure.
39767
39768 2009-07-29  Jim Meyering  <meyering@redhat.com>
39769
39770         mktime: correct setting of REPLACE_MKTIME
39771         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
39772
39773         update-copyright: new module
39774         * modules/update-copyright: New file.
39775         * build-aux/update-copyright: New file.
39776         * MODULES.html.sh (maint+release support): Add update-copyright.
39777
39778 2009-07-27  Bruno Haible  <bruno@clisp.org>
39779
39780         Fix compilation error when <ctime> is used and mktime is replaced.
39781         * lib/time.in.h (mktime): New declaration.
39782         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
39783         REPLACE_MKTIME instead of defining mktime in config.h.
39784         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
39785         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
39786         Reported by Ross McFarland <rwmcfa1@neces.com>.
39787
39788 2009-07-27  Bruno Haible  <bruno@clisp.org>
39789
39790         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
39791         Reported by Matt Kraai <mkraai@beckman.com>.
39792
39793 2009-07-25  Jim Meyering  <meyering@redhat.com>
39794
39795         maint.mk: avoid warnings about missing files
39796         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
39797         diagnostic when .prev-version does not exist.
39798         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
39799         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
39800         nonexistent cfg.mk.
39801         Suggestions from Simon Josefsson.
39802
39803 2009-07-25  Bruno Haible  <bruno@clisp.org>
39804
39805         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
39806         defined as macros. Needed on QNX 6.4.1.
39807         Reported by Matt Kraai <mkraai@beckman.com>.
39808
39809 2009-07-23  Jim Meyering  <meyering@redhat.com>
39810
39811         maint.mk: invoke "make dist" with a working value of XZ_OPT
39812         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
39813
39814 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
39815
39816         Make fseeko.c compile on QNX.
39817         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
39818
39819 2009-07-22  Peter Simons  <simons@cryp.to>
39820
39821         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
39822         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
39823         * lib/md4.h: Likewise.
39824         * lib/md5.h: Likewise.
39825         * lib/sha1.h: Likewise.
39826         * lib/sha256.h: Likewise.
39827         * lib/sha512.h: Likewise.
39828
39829         tests-sha1: don't assign literal string to 'char *' variable
39830         * tests/test-sha1.c (main): Declare locals with "const" to match
39831         attributes of the right hand side.
39832
39833 2009-07-21  Eric Blake  <ebb9@byu.net>
39834
39835         dup2: fix more mingw problems
39836         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
39837         fd to itself.
39838         * doc/posix-functions/dup2.texi (dup2): Document the bug.
39839         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
39840         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
39841         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
39842         care of mingw bugs.
39843
39844 2009-07-21  Jim Meyering  <meyering@redhat.com>
39845
39846         vc-list-files: avoid failure when /bin/sh is dash
39847         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
39848         On some Debian based systems, /bin/sh is a symlink to dash, and running
39849         this command would omit the "/" following each 'tests' prefix:
39850           dash -x build-aux/vc-list-files -C . tests
39851         That is because bash and dash work differently:
39852           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
39853           bash ok
39854           dash odd
39855
39856 2009-07-21  Eric Blake  <ebb9@byu.net>
39857
39858         dup2-tests: test previous patch
39859         * modules/dup2-tests: New file.
39860         * tests/test-dup2.c: Likewise.
39861         * tests/test-open.c (main): Avoid unspecified behavior.
39862         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
39863         test.
39864
39865         dup2: work around mingw and cygwin 1.5 bug
39866         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
39867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39868         * modules/unistd (Makefile.am): Substitute it.
39869         * lib/unistd.in.h (dup2): Declare the replacement.
39870         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
39871         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
39872         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
39873         * modules/execute (Depends-on): Add dup2.
39874         * modules/fseterr (Depends-on): Likewise.
39875         * modules/pipe (Depends-on): Likewise.
39876         * modules/posix_spawn-internal (Depends-on): Likewise.
39877
39878 2009-07-21  Bruno Haible  <bruno@clisp.org>
39879
39880         * modules/.gitattributes: New file.
39881
39882 2009-07-20  Bruno Haible  <bruno@clisp.org>
39883
39884         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
39885         (main): Use it.
39886
39887 2009-07-20  Eric Blake  <ebb9@byu.net>
39888
39889         test-pipe: make a bit more robust.
39890         * tests/test-pipe.c (myerr): Allow error messages regardless of
39891         what we do to stderr.
39892         (test_pipe): Rearrange to avoid deadlock.
39893         (child_main): Try a larger read, to ensure we avoided deadlock.
39894         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
39895         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
39896         if misused.
39897
39898 2009-07-19  Jim Meyering  <meyering@redhat.com>
39899
39900         fts: avoid false-positive cycle-detection
39901         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
39902         for each new command line argument.
39903
39904 2009-07-19  Bruno Haible  <bruno@clisp.org>
39905
39906         Fix build error on mingw with the modules sys_select and unistd.
39907         * modules/acl-tests (Depends-on): Add close.
39908         * modules/binary-io-tests (Depends-on): Likewise.
39909         * modules/closein-tests (Depends-on): Likewise.
39910         * modules/flock-tests (Depends-on): Likewise.
39911         * modules/fsync-tests (Depends-on): Likewise.
39912         * modules/lseek-tests (Depends-on): Likewise.
39913         * modules/pipe-tests (Depends-on): Likewise.
39914         * modules/posix_spawn-tests (Depends-on): Likewise.
39915         * modules/posix_spawnp-tests (Depends-on): Likewise.
39916         * modules/stat-time-tests (Depends-on): Likewise.
39917         * modules/yesno-tests (Depends-on): Likewise.
39918
39919 2009-07-19  Bruno Haible  <bruno@clisp.org>
39920
39921         Unify conditionals.
39922         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
39923         macros, not at the compiler macros.
39924         * lib/pipe.c: Likewise.
39925         * lib/execute.c: Likewise.
39926         * lib/spawni.c: Likewise.
39927
39928 2009-07-19  Bruno Haible  <bruno@clisp.org>
39929
39930         Fix handling of closed stdin/stdout/stderr on mingw.
39931         * lib/w32spawn.h: Include unistd.h.
39932         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
39933         file descriptor with O_NOINHERIT flag.
39934         (fd_safer_noinherit): New function, based on fd-safer.c.
39935         (dup_safer_noinherit): New function, based on dup-safer.c.
39936         (undup_safer_noinherit): New function.
39937         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
39938         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
39939         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
39940         instead of fd_safer.
39941         * tests/test-pipe.c: Include <windows.h>.
39942         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
39943         result.
39944
39945         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
39946         from main.
39947         (test_pipe): Pass an extra argument for disambiguation.
39948         (main): Invoke parent_main or child_main.
39949
39950         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
39951         consistently.
39952
39953 2009-07-18  Eric Blake  <ebb9@byu.net>
39954
39955         test-pipe: fix mingw build
39956         * tests/test-pipe.c (main): Avoid fcntl on mingw.
39957
39958 2009-07-18  Bruno Haible  <bruno@clisp.org>
39959
39960         * modules/pipe-tests (Makefile.am): Fix typo.
39961
39962 2009-07-18  Eric Blake  <ebb9@byu.net>
39963
39964         error: fix mingw build
39965         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
39966         Reported by Bruno Haible.
39967
39968         error: avoid undefined use of stdout
39969         * lib/error.c (error, error_at_line): Check that fd 1 is open
39970         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
39971         is handling faults and the close_stdout module wants to report the
39972         detection of closed stdout as an error.
39973
39974 2009-07-17  Eric Blake  <ebb9@byu.net>
39975
39976         pipe: be robust in face of closed fds
39977         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
39978         should cause child to misbehave.
39979         * modules/pipe-tests: New module.
39980         * tests/test-pipe.c: New file.
39981         * tests/test-pipe.sh: New file.
39982         Reported by Akim Demaille.
39983
39984 2009-07-14  Bruno Haible  <bruno@clisp.org>
39985
39986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
39987         Reported by anonymous kc.
39988
39989 2009-07-07  Jim Meyering  <meyering@redhat.com>
39990
39991         maint.mk: don't look for translatable strings in *.m4 or *.mk
39992         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
39993         when searching for translatable strings.
39994
39995 2009-07-05  Jim Meyering  <meyering@redhat.com>
39996
39997         remove superfluous parentheses in STREQ definition
39998         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
39999         * lib/getugroups.c (STREQ): Likewise.
40000         * lib/fnmatch.c (STREQ): Likewise.
40001         Spotted by Bruno Haible.
40002
40003 2009-07-04  Jim Meyering  <meyering@redhat.com>
40004
40005         argv-iter: new module
40006         * MODULES.html.sh: Add argv-iter.
40007         * lib/argv-iter.c, lib/argv-iter.h: New files.
40008         * modules/argv-iter: New file.
40009         * modules/argv-iter-tests: New file.
40010         * tests/test-argv-iter.c: Test it.
40011
40012 2009-07-04  Bruno Haible  <bruno@clisp.org>
40013
40014         Fix assertion.
40015         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
40016         contains more exact copies of a given entry than file2, leave the extra
40017         copies unpaired rather than aborting.
40018         Reported by Eric Blake.
40019
40020 2009-07-02  Bruno Haible  <bruno@clisp.org>
40021
40022         Speedup git-merge-changelog for git cherry-pick.
40023         * lib/git-merge-changelog.c (struct entries_mapping): New type.
40024         (entries_mapping_get): New function, extracted from compute_mapping.
40025         (entries_mapping_reverse_get): New function.
40026         (compute_mapping): Add a 'full' argument. Return the result in a
40027         'struct entries_mapping'.
40028         (main): Update. Access the mappings through entries_mapping_get.
40029         Reported by Eric Blake.
40030
40031 2009-07-02  Bruno Haible  <bruno@clisp.org>
40032
40033         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
40034         best_i.
40035
40036 2009-07-02  Bruno Haible  <bruno@clisp.org>
40037
40038         Speed up approximate search for matching ChangeLog entries.
40039         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
40040         argument. Call fstrcmp_bounded instead of fstrcmp.
40041         (compute_mapping, try_split_merged_entry, main): Update callers.
40042
40043 2009-07-02  Bruno Haible  <bruno@clisp.org>
40044
40045         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
40046
40047 2009-06-30  Bruno Haible  <bruno@clisp.org>
40048
40049         Reduce the number of uc_is_cased calls.
40050         * lib/unicase.h (casing_suffix_context_t): Add
40051         'first_char_except_ignorable' field.
40052         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
40053         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
40054         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
40055         Update initializer.
40056         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
40057         case-ignorable characters.
40058         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
40059         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
40060         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
40061         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
40062         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
40063
40064 2009-06-30  Bruno Haible  <bruno@clisp.org>
40065
40066         Tests for module 'unicase/ignorable'.
40067         * modules/unicase/ignorable-tests: New file.
40068         * tests/unicase/test-ignorable.c: New file, generated by
40069         gen-uni-tables.
40070
40071         Tests for module 'unicase/cased'.
40072         * modules/unicase/cased-tests: New file.
40073         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
40074         * tests/unicase/test-predicate-part1.h: New file, derived from
40075         tests/unictype/test-predicate-part1.h.
40076         * tests/unicase/test-predicate-part2.h: New file, same as
40077         tests/unictype/test-predicate-part2.h.
40078
40079         Fix evaluation of "Before C" condition of FINAL_SIGMA.
40080         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
40081         (output_casing_properties): New function.
40082         (main): Call it.
40083         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
40084         * lib/unicase/cased.c: Include unictype/bitmap.h.
40085         (uc_is_cased): Define through a bitmap lookup.
40086         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
40087         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
40088         (uc_is_case_ignorable): Define through a bitmap lookup.
40089         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
40090         lib/unictype/bitmap.h.
40091         (Depends-on): Add inline. Clean up.
40092         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
40093         lib/unictype/bitmap.h.
40094         (Depends-on): Add inline. Clean up.
40095         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
40096         recognition.
40097         * tests/unicase/test-u16-tolower.c (main): Likewise.
40098         * tests/unicase/test-u32-tolower.c (main): Likewise.
40099
40100 2009-06-30  Bruno Haible  <bruno@clisp.org>
40101
40102         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
40103         * lib/unicase/u16-casemap.c: Likewise.
40104         * lib/unicase/u32-casemap.c: Likewise.
40105
40106 2009-06-29  Bruno Haible  <bruno@clisp.org>
40107
40108         Define u32_casefold as a wrapper around u32_ct_casefold.
40109         * lib/unicase/u32-casefold.c: Update.
40110         * modules/unicase/u32-casefold (Depends-on): Add
40111         unicase/u32-ct-casefold, unicase/empty-prefix-context,
40112         unicase/empty-suffix-context. Clean up.
40113
40114         Define u16_casefold as a wrapper around u16_ct_casefold.
40115         * lib/unicase/u16-casefold.c: Update.
40116         * modules/unicase/u16-casefold (Depends-on): Add
40117         unicase/u16-ct-casefold, unicase/empty-prefix-context,
40118         unicase/empty-suffix-context. Clean up.
40119
40120         Define u8_casefold as a wrapper around u8_ct_casefold.
40121         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
40122         * lib/unicase/u8-casefold.c: Update.
40123         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
40124         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40125
40126         Define u32_totitle as a wrapper around u32_ct_totitle.
40127         * lib/unicase/u32-totitle.c: Update.
40128         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
40129         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40130
40131         Define u16_totitle as a wrapper around u16_ct_totitle.
40132         * lib/unicase/u16-totitle.c: Update.
40133         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
40134         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40135
40136         Define u8_totitle as a wrapper around u8_ct_totitle.
40137         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
40138         functions.
40139         (FUNC): Delegate to U_CT_TOTITLE.
40140         * lib/unicase/u8-totitle.c: Update.
40141         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
40142         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40143
40144         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
40145         invocation.
40146         * modules/unicase/u32-tolower (Depends-on): Add
40147         unicase/empty-prefix-context, unicase/empty-suffix-context.
40148
40149         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
40150         invocation.
40151         * modules/unicase/u16-tolower (Depends-on): Add
40152         unicase/empty-prefix-context, unicase/empty-suffix-context.
40153
40154         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
40155         * modules/unicase/u8-tolower (Depends-on): Add
40156         unicase/empty-prefix-context, unicase/empty-suffix-context.
40157
40158         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
40159         invocation.
40160         * modules/unicase/u32-toupper (Depends-on): Add
40161         unicase/empty-prefix-context, unicase/empty-suffix-context.
40162
40163         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
40164         invocation.
40165         * modules/unicase/u16-toupper (Depends-on): Add
40166         unicase/empty-prefix-context, unicase/empty-suffix-context.
40167
40168         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
40169         * modules/unicase/u8-toupper (Depends-on): Add
40170         unicase/empty-prefix-context, unicase/empty-suffix-context.
40171
40172         New module 'unicase/u32-ct-casefold'.
40173         * lib/unicase/u32-ct-casefold.c: New file.
40174         * modules/unicase/u32-ct-casefold: New file.
40175
40176         New module 'unicase/u16-ct-casefold'.
40177         * lib/unicase/u16-ct-casefold.c: New file.
40178         * modules/unicase/u16-ct-casefold: New file.
40179
40180         New module 'unicase/u8-ct-casefold'.
40181         * lib/unicase/u8-ct-casefold.c: New file.
40182         * lib/unicase/u-ct-casefold.h: New file, derived from
40183         lib/unicase/u-casefold.h.
40184         * modules/unicase/u8-ct-casefold: New file.
40185
40186         New module 'unicase/u32-ct-totitle'.
40187         * lib/unicase/u32-ct-totitle.c: New file.
40188         * modules/unicase/u32-ct-totitle: New file.
40189
40190         New module 'unicase/u16-ct-totitle'.
40191         * lib/unicase/u16-ct-totitle.c: New file.
40192         * modules/unicase/u16-ct-totitle: New file.
40193
40194         New module 'unicase/u8-ct-totitle'.
40195         * lib/unicase/u8-ct-totitle.c: New file.
40196         * lib/unicase/u-ct-totitle.h: New file, derived from
40197         lib/unicase/u-totitle.h.
40198         * modules/unicase/u8-ct-totitle: New file.
40199
40200         New module 'unicase/u32-ct-tolower'.
40201         * lib/unicase/u32-ct-tolower.c: New file.
40202         * modules/unicase/u32-ct-tolower: New file.
40203
40204         New module 'unicase/u16-ct-tolower'.
40205         * lib/unicase/u16-ct-tolower.c: New file.
40206         * modules/unicase/u16-ct-tolower: New file.
40207
40208         New module 'unicase/u8-ct-tolower'.
40209         * lib/unicase/u8-ct-tolower.c: New file.
40210         * modules/unicase/u8-ct-tolower: New file.
40211
40212         New module 'unicase/u32-ct-toupper'.
40213         * lib/unicase/u32-ct-toupper.c: New file.
40214         * modules/unicase/u32-ct-toupper: New file.
40215
40216         New module 'unicase/u16-ct-toupper'.
40217         * lib/unicase/u16-ct-toupper.c: New file.
40218         * modules/unicase/u16-ct-toupper: New file.
40219
40220         New module 'unicase/u8-ct-toupper'.
40221         * lib/unicase/u8-ct-toupper.c: New file.
40222         * modules/unicase/u8-ct-toupper: New file.
40223
40224         Add context arguments to u*_casemap functions.
40225         * lib/unicase/unicasemap.h: Include unicase.h.
40226         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
40227         suffix_context arguments.
40228         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
40229         functions.
40230         (FUNC): Add prefix_context and suffix_context arguments. Use
40231         uc_is_cased and uc_is_case_ignorable.
40232         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
40233         * lib/unicase/u16-casemap.c: Likewise.
40234         * lib/unicase/u32-casemap.c: Likewise.
40235         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
40236         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40237         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
40238         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40239         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
40240         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40241
40242         New module 'unicase/u32-suffix-context'.
40243         * lib/unicase/u32-suffix-context.c: New file.
40244         * modules/unicase/u32-suffix-context: New file.
40245
40246         New module 'unicase/u16-suffix-context'.
40247         * lib/unicase/u16-suffix-context.c: New file.
40248         * modules/unicase/u16-suffix-context: New file.
40249
40250         New module 'unicase/u8-suffix-context'.
40251         * lib/unicase/u8-suffix-context.c: New file.
40252         * lib/unicase/u-suffix-context.h: New file.
40253         * modules/unicase/u8-suffix-context: New file.
40254
40255         New module 'unicase/empty-suffix-context'.
40256         * lib/unicase/empty-suffix-context.c: New file.
40257         * modules/unicase/empty-suffix-context: New file.
40258
40259         New module 'unicase/u32-prefix-context'.
40260         * lib/unicase/u32-prefix-context.c: New file.
40261         * modules/unicase/u32-prefix-context: New file.
40262
40263         New module 'unicase/u16-prefix-context'.
40264         * lib/unicase/u16-prefix-context.c: New file.
40265         * modules/unicase/u16-prefix-context: New file.
40266
40267         New module 'unicase/u8-prefix-context'.
40268         * lib/unicase/u8-prefix-context.c: New file.
40269         * lib/unicase/u-prefix-context.h: New file.
40270         * lib/unicase/context.h: New file.
40271         * modules/unicase/u8-prefix-context: New file.
40272
40273         New module 'unicase/empty-prefix-context'.
40274         * lib/unicase/empty-prefix-context.c: New file.
40275         * modules/unicase/empty-prefix-context: New file.
40276
40277         New module 'unicase/ignorable'.
40278         * lib/unicase/ignorable.c: New file.
40279         * modules/unicase/ignorable: New file.
40280
40281         New module 'unicase/cased'.
40282         * lib/unicase/caseprop.h: New file.
40283         * lib/unicase/cased.c: New file.
40284         * modules/unicase/cased: New file.
40285
40286         New functions for case mapping of substrings.
40287         * lib/unicase.h (casing_prefix_context_t): New type.
40288         (unicase_empty_prefix_context): New variable.
40289         (u8_casing_prefix_context, u16_casing_prefix_context,
40290         u32_casing_prefix_context, u8_casing_prefixes_context,
40291         u16_casing_prefixes_context, u32_casing_prefixes_context): New
40292         declarations.
40293         (casing_suffix_context_t): New type.
40294         (unicase_empty_suffix_context): New variable.
40295         (u8_casing_suffix_context, u16_casing_suffix_context,
40296         u32_casing_suffix_context, u8_casing_suffixes_context,
40297         u16_casing_suffixes_context, u32_casing_suffixes_context,
40298         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
40299         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
40300         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
40301         declarations.
40302
40303 2009-06-28  Jim Meyering  <meyering@redhat.com>
40304
40305         boostrap: indent only with spaces
40306         * build-aux/bootstrap: Indent only with spaces, never TABs.
40307
40308         bootstrap: split long lines
40309         * build-aux/bootstrap: Keep line length < 80.
40310
40311         bootstrap: sync from coreutils
40312         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
40313         just as autoreconf does.  Verify a list of prerequisite
40314         package-name,version-number pairs if defined in bootstrap.conf.
40315         Refer to README-prereq, if prerequisites are not satisfied.
40316
40317 2009-06-27  Eric Blake  <ebb9@byu.net>
40318
40319         tests: add test for bogus NULL definition
40320         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
40321         * tests/test-stdlib.c: Likewise.
40322         * tests/test-string.c: Likewise.
40323         * tests/test-locale.c: Likewise.
40324         * tests/test-unistd.c: Likewise.
40325         * modules/stdio-tests (Depends-on): Add verify.
40326         * modules/stdlib-tests (Depends-on): Likewise.
40327         * modules/string-tests (Depends-on): Likewise.
40328         * modules/locale-tests (Depends-on): Likewise.
40329         * modules/unistd-tests (Depends-on): Likewise.
40330
40331 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
40332
40333         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
40334         self-explaining comment.
40335         * m4/selinux-selinux-h: Update serial.
40336         (gl_LIBSELINUX): New macro, adding a warning for missing development
40337         packages to code extracted from...
40338         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
40339         Add warning for missing development packages here, too.
40340
40341 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
40342
40343         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
40344
40345 2009-06-25  Eric Blake  <ebb9@byu.net>
40346
40347         version-etc: fix regression
40348         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
40349         gcc.
40350         (version_etc): Use it, to catch bugs with trailing NULL.
40351         * lib/version-etc.c (version_etc_arn): Delete unused argument.
40352         (version_etc_va): Fix logic bug.
40353         * modules/version-etc-tests: Add test.
40354         * tests/test-version-etc.c: New file.
40355         * tests/test-version-etc.sh: Likewise.
40356
40357 2009-06-25  Sam Steingold  <sds@gnu.org>
40358
40359         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
40360         mbtowc declaration.
40361
40362 2009-06-25  Eric Blake  <ebb9@byu.net>
40363
40364         fpurge: migrate into <stdio.h>
40365         * lib/fpurge.h: Delete...
40366         * lib/stdio.in.h (fpurge): ...and declare here, instead.
40367         * lib/fpurge.c (fpurge): Change declaring header.
40368         * modules/fpurge (Files): Drop deleted file.
40369         (Depends-on): Add stdio.
40370         (configure.ac): Set witness.
40371         * modules/stdio (Makefile.am): Support fpurge macros.
40372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40373         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
40374         * lib/fflush.c: Update client.
40375         * tests/test-fpurge.c: Likewise.
40376         * NEWS: Mention the change.
40377
40378 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40379
40380         * lib/argp-version-etc.c (program_authors): Add const
40381         qualifier.
40382         * lib/version-etc.c: Fix typos in the comments.
40383         * modules/argp-version-etc: Depends on version-etc.
40384
40385 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40386
40387         argp-version-etc: new module.
40388
40389         * lib/argp-version-etc.c: New file.
40390         * lib/argp-version-etc.h: New file.
40391         * modules/argp-version-etc: New file.
40392         * modules/argp-version-etc-tests: New file.
40393         * tests/test-argp-version-etc.c: New test.
40394         * tests/test-argp-version-etc-1.sh: New test.
40395
40396 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40397
40398         Provide additional interfaces and documentation for version-etc
40399         module.
40400
40401         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
40402         interfaces.
40403         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
40404         prototypes.
40405
40406 2009-06-24  Bruno Haible  <bruno@clisp.org>
40407
40408         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
40409         HAVE_LIB${NAME} macro.
40410         Reported by Sam Steingold <sds@gnu.org>.
40411
40412 2009-06-23  Simon Josefsson  <simon@josefsson.org>
40413
40414         * modules/hash-tests (test_hash_LDADD): Link to libintl when
40415         needed.
40416
40417 2009-06-21  Bruno Haible  <bruno@clisp.org>
40418
40419         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
40420         work.
40421         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
40422         together with LIB${NAME}, LTLIB${NAME}.
40423         Reported by Sam Steingold <sds@gnu.org>.
40424
40425 2009-06-20  Jim Meyering  <meyering@redhat.com>
40426
40427         tests: make sc_require_test_exit_idiom more generic
40428         * top/maint.mk (Exit_witness_file): New overridable variable.
40429         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
40430         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
40431
40432 2009-06-19  Jim Meyering  <meyering@redhat.com>
40433
40434         hash: reverse order of src/dst parameters in an internal interface
40435         * lib/hash.c (transfer_entries): Reverse order of parameters to
40436         put DST before SRC.  Adjust callers.
40437
40438         tests: test-hash: avoid wholesale duplication
40439         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
40440         Instead, use a loop and add a single conditional.
40441
40442         tests: test-hash: allow seed selection via a command line argument
40443         * tests/test-hash.c (get_seed): New function.
40444         (main): Use it.
40445
40446 2009-06-19  Eric Blake  <ebb9@byu.net>
40447
40448         hash: avoid memory leak on allocation failure
40449         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
40450         failure.  Factor repeated algorithm...
40451         (transfer_entries): ...into new helper routine.
40452         (hash_delete): React to hash_rehash return value.
40453
40454         hash: reduce memory pressure in hash_rehash no-op case
40455         * lib/hash.c (next_prime): Avoid overflow.
40456         (hash_initialize): Factor bucket size computation...
40457         (compute_bucket_size): ...into new helper function.
40458         (hash_rehash): Use new function and open coding to reduce memory
40459         pressure, and avoid a memory leak in USE_OBSTACK code.
40460         Reported by Jim Meyering.
40461
40462 2009-06-18  Eric Blake  <ebb9@byu.net>
40463
40464         hash: make rotation more obvious
40465         * modules/hash (Depends-on): Add bitrotate and stdint.
40466         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
40467         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
40468         (SIZE_MAX): Rely on headers for definition.
40469         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
40470         (raw_hasher): Use rotr_sz.
40471         Suggested by Jim Meyering.
40472
40473         hash: fix memory leak in last patch
40474         * lib/hash.c (hash_rehash): Avoid memory leak.
40475
40476         hash: avoid no-op rehashing
40477         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
40478
40479         hash: provide default callback functions
40480         * lib/hash.c (raw_hasher, raw_comparator): New functions.
40481         (hash_initialize): Use them as defaults.
40482         * tests/test-hash.c (main): Test this.
40483
40484         hash: minor optimization
40485         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
40486         when possible.
40487         (hash_initialize): Document this promise.
40488         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
40489         * tests/test-hash.c (hash_compare_strings): Test this.
40490
40491 2009-06-18  Bruno Haible  <bruno@clisp.org>
40492
40493         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
40494         going to be replaced anyway.
40495
40496 2009-06-18  Bruno Haible  <bruno@clisp.org>
40497
40498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
40499         in one place.
40500         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
40501         be replaced anyway.
40502
40503 2009-06-18  Eric Blake  <ebb9@byu.net>
40504
40505         hash: check for resize before insertion
40506         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
40507         threshold before insertion, so that a pathological hash_rehash
40508         that fills every bucket can still trigger another rehash.
40509
40510 2009-06-18  Jim Meyering  <meyering@redhat.com>
40511
40512         hash-tests: add a loop around the small tests
40513         * tests/test-hash.c (main): Repeat small tests with selected
40514         small initial table sizes.
40515
40516 2009-06-17  Eric Blake  <ebb9@byu.net>
40517
40518         hash: minor cleanups
40519         * lib/hash.h (hash_entry): Make opaque, by moving...
40520         * lib/hash.c (hash_entry): ...here.
40521         (hash_insert): Clarify restrictions on what can be inserted.
40522         (hash_get_next): Clarify when it is safe to remove an element
40523         during traversal.
40524         (check_tuning): Skip verification when tuning is known safe.
40525         (hash_initialize): Clarify restrictions on tuning.
40526
40527 2009-06-17  Jim Meyering  <jim@meyering.net>
40528         and Eric Blake  <ebb9@byu.net>
40529
40530         hash-tests: new module
40531         * modules/hash-tests: New file.
40532         * tests/test-hash.c: New file.
40533
40534 2009-06-17  Eric Blake  <ebb9@byu.net>
40535
40536         strstr-simple: document new module
40537         * MODULES.html.sh: Document new module.
40538
40539         strstr, strcasestr: replace on platforms with broken memchr
40540         * modules/strstr: Split into...
40541         * modules/strstr-simple: ...new module that does not care about
40542         performance, but does care about glibc bug.
40543         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
40544         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
40545         if platform memchr is broken, per Debian bug 521737.
40546         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
40547         memchr.
40548         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
40549         * doc/posix-functions/strstr.texi (strstr): Document the fix.
40550         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40551         * modules/mountlist (Depends-on): Add strstr-simple.
40552         * modules/gen-uni-tables (Depends-on): Likewise.
40553         * modules/argz (Depends-on): Add strstr.
40554
40555 2009-06-17  Bruno Haible  <bruno@clisp.org>
40556
40557         * modules/posix_spawn-internal (Depends-on): Add errno.
40558
40559 2009-06-17  Bruno Haible  <bruno@clisp.org>
40560
40561         Define missing ESTALE on Interix 3.5.
40562         * lib/errno.in.h (ESTALE): Assign a value if missing.
40563         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
40564         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
40565         missing.
40566         * doc/posix-headers/errno.texi: Mention the Interix bug.
40567         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
40568
40569 2009-06-15  Eric Blake  <ebb9@byu.net>
40570
40571         memchr, memchr2: add valgrind exception
40572         * lib/memchr.valgrind: New file.
40573         * lib/memchr2.valgrind: New file.
40574         * modules/memchr (Files): Distribute valgrind file.
40575         * modules/memchr2 (Files): Likewise.
40576
40577         docs: memchr is no longer obsolete
40578         * MODULES.html.sh: Move memchr from obsolete to string.h section.
40579         * lib/string.in.h (memchr): Simplify logic.
40580
40581 2009-06-14  Jim Meyering  <meyering@redhat.com>
40582
40583         link-follow: fix the "checking..." message to not mention trailing slash
40584         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
40585         never considered trailing slashes.
40586
40587 2009-06-14  Bruno Haible  <bruno@clisp.org>
40588
40589         * m4/memchr.m4: Mention also the bug on IA-64.
40590         * doc/posix-functions/memchr.texi: Likewise.
40591
40592 2009-06-12  Eric Blake  <ebb9@byu.net>
40593
40594         memchr: detect broken x86_64 and alpha implementations
40595         * modules/memchr-tests (Depends-on): Move mmap detection...
40596         * modules/memchr (Depends-on): ...here.
40597         (configure.ac): Set indicator.
40598         * lib/string.in.h (memchr): Declare replacement.
40599         * modules/string (Makefile.am): Trigger replacement.
40600         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40601         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
40602         bugs.
40603         * doc/posix-functions/memchr.texi (memchr): Document the bug.
40604         * modules/getpagesize (License): Relax license.
40605
40606 2009-06-11  Bruno Haible  <bruno@clisp.org>
40607
40608         * lib/idpriv.h: Add more references.
40609
40610 2009-06-08  Bruno Haible  <bruno@clisp.org>
40611
40612         Tests for module 'idpriv-droptemp'.
40613         * modules/idpriv-droptemp-tests: New file.
40614         * tests/test-idpriv-droptemp.sh: New file.
40615         * tests/test-idpriv-droptemp.su.sh: New file.
40616         * tests/test-idpriv-droptemp.c: New file.
40617
40618         New module 'idpriv-droptemp'.
40619         * lib/idpriv-droptemp.c: New file.
40620         * modules/idpriv-droptemp: New file.
40621
40622 2009-06-08  Bruno Haible  <bruno@clisp.org>
40623
40624         Tests for module 'idpriv-drop'.
40625         * modules/idpriv-drop-tests: New file.
40626         * tests/test-idpriv-drop.sh: New file.
40627         * tests/test-idpriv-drop.su.sh: New file.
40628         * tests/test-idpriv-drop.c: New file.
40629
40630         New module 'idpriv-drop'.
40631         * lib/idpriv.h: New file.
40632         * lib-idpriv-drop.c: New file.
40633         * m4/idpriv.m4: New file.
40634         * modules/idpriv-drop: New file.
40635
40636 2009-06-08  Bruno Haible  <bruno@clisp.org>
40637
40638         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
40639         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40640         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40641         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40642         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40643         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40644         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40645
40646 2009-06-08  Eric Blake  <ebb9@byu.net>
40647
40648         test-strstr: use memory fence, when possible
40649         * tests/test-strstr.c (main): Use memory fence, in order to be
40650         more likely to trigger Debian bug 521737.
40651         * modules/strstr-tests (Files): Pull in additional files.
40652
40653         memchr: no longer obsolete, for wider field testing
40654         * modules/memchr (Status, Notice): Delete, this module is no
40655         longer obsolete.
40656         * modules/vasnprintf (Depends-on): Add memchr.
40657
40658 2009-06-07  Jim Meyering  <meyering@redhat.com>
40659
40660         hash: declare some functions with the warn_unused_result attribute
40661         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
40662
40663 2009-06-07  Bruno Haible  <bruno@clisp.org>
40664
40665         * tests/test-alignof.c: Don't test int64_t if it does not exist.
40666         Reported by Eric Blake.
40667
40668 2009-06-06  Eric Blake  <ebb9@byu.net>
40669
40670         test-alignof: fix typo with long double
40671         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
40672         compiler error.
40673
40674 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
40675
40676         Escape non-texinfo { and }s.
40677         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
40678         markup error.
40679
40680 2009-06-04  Jim Meyering  <meyering@redhat.com>
40681
40682         gitlog-to-changelog: don't infloop on an empty commit log
40683         * build-aux/gitlog-to-changelog: Warn about an empty log message.
40684         Reported by Boris Petersen <transacid@centerim.org>.
40685
40686 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
40687
40688         version-etc: extend for packagers
40689         Add three new configure options, intended for packagers:
40690           --with-packager="packager name"
40691           --with-packager-version="packager-specific version"
40692           --with-packager-bug-reports="packager bug reporting"
40693         An example with coreutils:
40694           $ ./configure \
40695             --with-packager=Gentoo \
40696             --with-packager-bug-report=http://bugs.gentoo.org/ \
40697             --with-packager-version="patchset 1.6"
40698           $ ./src/ls --version | head -n2
40699           ls (GNU coreutils) 7.1-dirty
40700           Packaged by Gentoo (patchset 1.6)
40701         Note that the bug reporting info via --help doesn't show up because
40702         coreutils uses its own custom emit_bug_reporting_address() implementation
40703         in src/system.h.  If it didn't, it'd look like:
40704           $ ./src/ls --help | tail -n4
40705           Report bugs to <bug-coreutils@gnu.org>.
40706           Report Gentoo bugs to <http://bugs.gentoo.org/>.
40707           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
40708           General help using GNU software: <http://www.gnu.org/gethelp/>.
40709         * lib/version-etc.c: Print new information, if provided.
40710         * m4/version-etc.m4: New file.
40711         * modules/version-etc (Files): Add m4/version-etc.m4.
40712         (configure.ac): Add gl_VERSION_ETC.
40713
40714 2009-05-31  Bruno Haible  <bruno@clisp.org>
40715
40716         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
40717         and 'int64_t'.
40718         * modules/alignof-tests (Dependencies): Add stdint.
40719         Reported by Eric Blake.
40720
40721 2009-05-31  Bruno Haible  <bruno@clisp.org>
40722
40723         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
40724         restriction due to compiler bugs.
40725         Reported by Eric Blake.
40726
40727 2009-05-31  Simon Josefsson  <simon@josefsson.org>
40728             Bruno Haible  <bruno@clisp.org>
40729
40730         Fix test-alignof failure.
40731         * lib/alignof.h (alignof_slot): New macro.
40732         (alignof_type): New macro, with the same semantics as the previous
40733         'alignof'.
40734         (alignof): Alias to alignof_slot.
40735         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
40736         check that the results are usable as constant expressions.
40737
40738 2009-05-31  Bruno Haible  <bruno@clisp.org>
40739
40740         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
40741         * tests/test-memchr.c (main): Check that memchr does not read past the
40742         first occurrence of the byte.
40743         * tests/test-strstr.c (main): Update comment.
40744         Suggested by Eric Blake.
40745
40746 2009-05-30  Bruno Haible  <bruno@clisp.org>
40747
40748         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
40749         detail how to use dumpbin.
40750         Reported by David Byron <dbyron@dbyron.com>.
40751
40752 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40753
40754         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
40755
40756 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40757
40758         * m4/manywarnings.m4: Add GCC 4.4 warnings.
40759
40760 2009-05-28  Bruno Haible  <bruno@clisp.org>
40761
40762         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
40763         build-aux/ files.
40764
40765 2009-05-28  Simon Josefsson  <simon@josefsson.org>
40766
40767         * gnulib-tool (func_import): Transform license on build-aux/ files too.
40768
40769 2009-05-27  Simon Josefsson  <simon@josefsson.org>
40770
40771         * gnulib-tool (sed_transform_main_lib_file)
40772         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
40773         regexps.
40774
40775 2009-05-26  Simon Josefsson  <simon@josefsson.org>
40776
40777         * tests/test-strstr.c: Add another self-test.
40778         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
40779         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
40780
40781 2009-05-23  Bruno Haible  <bruno@clisp.org>
40782
40783         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
40784         change.
40785
40786 2009-05-21  Bruno Haible  <bruno@clisp.org>
40787
40788         Simplify use of mode_t varargs.
40789         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
40790         uses 'mode_t' or 'int'.
40791         * lib/openat.c (openat): Likewise.
40792         * lib/open-safer.c (open_safer): Likewise.
40793         * m4/mode_t.m4: New file.
40794         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
40795         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
40796         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
40797         * modules/open (Files): Add m4/mode_t.m4.
40798         * modules/openat (Files): Likewise.
40799         * modules/fcntl-safer (Files): Likewise.
40800         Suggested by Eric Blake.
40801
40802 2009-05-21  Pádraig Brady  <P@draigbrady.com>
40803
40804         * doc/glibc-functions/fallocate.texi: New file.
40805         * doc/gnulib.texi: Include it.
40806
40807 2009-05-21  Eric Blake  <ebb9@byu.net>
40808             Bruno Haible  <bruno@clisp.org>
40809
40810         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
40811         invocations.
40812         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40813
40814 2009-05-21  Eric Blake  <ebb9@byu.net>
40815             Bruno Haible  <bruno@clisp.org>
40816
40817         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
40818         include_next. Fix of 2008-11-20 commit.
40819         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
40820         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
40821         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
40822         NEXT_MATH_H.
40823         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
40824         instead of NEXT_MATH_H.
40825
40826 2009-05-21  Bruno Haible  <bruno@clisp.org>
40827
40828         Avoid redefinition warnings for SIZE_MAX.
40829         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
40830         Reported by Simon Josefsson.
40831
40832 2009-05-21  Bruno Haible  <bruno@clisp.org>
40833
40834         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
40835         AC_CACHE_VAL.
40836
40837 2009-05-20  Bruno Haible  <bruno@clisp.org>
40838
40839         Make zeroptr.h work on mingw.
40840         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
40841         mprotect.
40842         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
40843         * modules/memchr2-tests (configure.ac): Likewise.
40844         * modules/memcmp-tests (configure.ac): Likewise.
40845         * modules/memmem-tests (configure.ac): Likewise.
40846         * modules/memrchr-tests (configure.ac): Likewise.
40847         Reported by Simon Josefsson.
40848
40849 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40850
40851         * tests/test-glob.c: Include string.h for strcmp prototype.
40852
40853 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40854
40855         * modules/getdelim (Depends-on): Add explicit stdint, although it
40856         was implicitly already pulled in via realloc-posix.
40857         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
40858
40859 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40860
40861         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
40862         G. Christensen" <tgc@jupiterrise.com>.
40863         * m4/sys_socket_h.m4: Check for sa_family_t.
40864         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
40865         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
40866         * tests/test-sys_socket.c: Check that sa_family_t works.
40867
40868 2009-05-18  Eric Blake  <ebb9@byu.net>
40869
40870         maint.mk: allow gnulib_dir in VPATH build
40871         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
40872
40873 2009-05-15  Jim Meyering  <meyering@redhat.com>
40874
40875         maint.mk: Give gnulib_dir a default definition.
40876         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
40877         Thus, most packages no longer need to specify this variable in cfg.mk
40878
40879 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
40880
40881         rename.m4: fix typos that would make non-mingw cross-configure fail
40882         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
40883
40884 2009-05-13  Eric Blake  <ebb9@byu.net>
40885
40886         mmap-anon: avoid out-of-order autoconf expansion
40887         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
40888         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
40889         * modules/memchr-tests (Depends-on): Add extensions.
40890         * modules/memchr2-tests (Depends-on): Add extensions.
40891         * modules/memcmp-tests (Depends-on): Add extensions.
40892         * modules/memmem-tests (Depends-on): Add extensions.
40893         * modules/memrchr-tests (Depends-on): Add extensions.
40894
40895 2009-05-13  Bruno Haible  <bruno@clisp.org>
40896
40897         Make some tests ISO C 99 compliant.
40898         * tests/zerosize-ptr.h: New file.
40899         * tests/test-memchr.c: Include zerosize-ptr.h.
40900         (main): Use a zero-size object pointer instead of NULL.
40901         * tests/test-memchr2.c: Include zerosize-ptr.h.
40902         (main): Use a zero-size object pointer instead of NULL.
40903         * tests/test-memcmp.c: Include zerosize-ptr.h.
40904         (main): Use a zero-size object pointer instead of NULL.
40905         * tests/test-memmem.c: Include zerosize-ptr.h.
40906         (main): Use a zero-size object pointer instead of NULL.
40907         * tests/test-memrchr.c: Include zerosize-ptr.h.
40908         (main): Use a zero-size object pointer instead of NULL.
40909         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
40910         m4/mmap-anon.m4.
40911         (Depends-on): Add getpagesize.
40912         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40913         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
40914         m4/mmap-anon.m4.
40915         (Depends-on): Add getpagesize.
40916         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40917         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
40918         m4/mmap-anon.m4.
40919         (Depends-on): Add getpagesize.
40920         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40921         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
40922         m4/mmap-anon.m4.
40923         (Depends-on): Add getpagesize.
40924         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40925         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
40926         m4/mmap-anon.m4.
40927         (Depends-on): Add getpagesize.
40928         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40929
40930 2009-05-12  Bruno Haible  <bruno@clisp.org>
40931
40932         Tests for module 'alignof'.
40933         * modules/alignof-tests: New file.
40934         * tests/test-alignof.c: New file.
40935
40936 2009-05-12  Bruno Haible  <bruno@clisp.org>
40937
40938         Fix alignof macro.
40939         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
40940         vendor compilers that are always correct.
40941
40942 2009-05-12  Bruno Haible  <bruno@clisp.org>
40943
40944         Make the MAP_ANONYMOUS detection work on HP-UX 11.
40945         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
40946         not whether its fully works.
40947
40948 2009-05-12  Bruno Haible  <bruno@clisp.org>
40949
40950         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
40951
40952 2009-05-12  Jim Meyering  <meyering@redhat.com>
40953
40954         * top/maint.mk: Adjust backslash alignment.
40955
40956 2009-05-11  Simon Josefsson  <simon@josefsson.org>
40957
40958         * top/maint.mk: Make $(srcdir)/build-aux configurable.
40959
40960 2009-05-11  Eric Blake  <ebb9@byu.net>
40961
40962         argp: avoid undefined behavior
40963         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
40964         macros.
40965
40966 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40967
40968         * tests/test-vc-list-files-git.sh: Do git config of user.email and
40969         user.name to prevent git commit from complaining.
40970
40971 2009-05-10  Bruno Haible  <bruno@clisp.org>
40972
40973         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
40974         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
40975         it rewrites every file name only once.
40976         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
40977
40978 2009-05-08  Bruno Haible  <bruno@clisp.org>
40979
40980         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
40981         instead of 'max'.
40982
40983 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40984
40985         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
40986         sockaddr_storage test.
40987
40988 2009-05-07  Simon Josefsson  <simon@josefsson.org>
40989
40990         * modules/sys_socket (Makefile.am): Substitute
40991         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
40992         * m4/sys_socket_h.m4: Check for sockaddr_storage.
40993         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
40994         * tests/test-sys_socket.c: Check sockaddr_storage.
40995
40996 2009-05-08  Bruno Haible  <bruno@clisp.org>
40997
40998         New module 'alignof'.
40999         * lib/alignof.h: New file.
41000         * modules/alignof: New file.
41001
41002 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41003             Bruno Haible  <bruno@clisp.org>
41004
41005         Fix test-file-has-acl on FreeBSD.
41006         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
41007         mask is implicitly added.
41008         * tests/test-file-has-acl.c: Include <signal.h>.
41009         (main): Terminate the test after 5 seconds.
41010         * modules/acl-tests (configure.ac): Check for alarm function.
41011
41012 2009-05-04  Bruno Haible  <bruno@clisp.org>
41013
41014         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
41015         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
41016         * modules/errno (configure.ac): Drop AC_REQUIRE.
41017         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
41018         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
41019
41020 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41021
41022         * modules/glob-tests: New module.
41023         * tests/test-glob.c: Add.
41024
41025 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41026
41027         * modules/fnmatch-tests: New module.
41028         * tests/test-fnmatch.c: Add.
41029
41030 2009-05-04  Eric Blake  <ebb9@byu.net>
41031
41032         maint: make the new no-submodule-changes rule VPATH-safe
41033         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
41034
41035 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41036             Bruno Haible  <bruno@clisp.org>
41037
41038         acl: Fix infinite loop on FreeBSD.
41039         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
41040         of return value from acl_get_entry.
41041         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
41042         Likewise.
41043
41044 2009-05-03  Bruno Haible  <bruno@clisp.org>
41045
41046         * lib/acl-internal.h (acl_entries): Clarify return value.
41047         * lib/acl_entries.c (acl_entries): Likewise.
41048
41049 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41050
41051         Bug fix in acl module.
41052         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
41053
41054 2009-05-03  Bruno Haible  <bruno@clisp.org>
41055
41056         Create gperf-generated file in the source dir, not in the build dir.
41057         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
41058         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
41059         * modules/unicase/locale-language (unicase/locale-languages.h):
41060         Likewise.
41061         * modules/unicase/special-casing (unicase/special-casing-table.h):
41062         Likewise.
41063         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
41064         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
41065         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
41066         Reported by Ralf Wildenhues.
41067
41068 2009-05-03  Bruno Haible  <bruno@clisp.org>
41069
41070         * modules/fnmatch (Description, configure.ac): Taken from
41071         fnmatch-posix.
41072         * modules/fnmatch-posix: Turn into a symbolic reference to the
41073         'fnmatch' module, and deprecate.
41074         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
41075
41076 2009-05-03  Bruno Haible  <bruno@clisp.org>
41077
41078         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
41079         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
41080         Reported by Ralf Wildenhues.
41081
41082 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41083
41084         * m4/fnmatch.m4: Fix fnmatch re-define.
41085
41086 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41087
41088         priv-set: new module and tests; adapt write-any-file
41089         * lib/priv-set.c: New file.
41090         * lib/priv-set.h: New file.
41091         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
41092         * lib/write-any-file.c: Simplify by using priv-set module.
41093         * m4/priv-set.m4: New file.
41094         * modules/priv-set: New file.
41095         * modules/unlinkdir: Add dependency on priv-set module.
41096         * modules/write-any-file: Likewise.
41097
41098         Tests for module 'priv-set'.
41099         * modules/priv-set-tests: New file.
41100         * tests/test-priv-set.c: New file.
41101
41102 2009-05-03  Jim Meyering  <meyering@redhat.com>
41103             Bruno Haible  <bruno@clisp.org>
41104
41105         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
41106         use the converted UTF-8 variant of the name instead.
41107
41108 2009-05-03  Jim Meyering  <meyering@redhat.com>
41109
41110         tests: tighten some getdate tests
41111         * tests/test-getdate.c (main): Tighten tests: require equality,
41112         not just greater than.  Set TZ envvar to UTC0.
41113
41114 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
41115
41116         getdate: correctly interpret "next monday" when run on a Monday
41117         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
41118         that e.g., "next tues" (when run on a tuesday) results in a date
41119         that is one week in the future, and not today's date.
41120         I.e., add a week when the wday is the same as the current one.
41121         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
41122         and earlier by Martin Bernreuther and Jan Minář.
41123         * tests/test-getdate.c (main): Check that "next DAY" is always in
41124         the future and that "last DAY" is always in the past.
41125
41126 2009-05-02  Jim Meyering  <meyering@redhat.com>
41127
41128         build: ensure that a release build fails when a submodule is unclean
41129         * top/maint.mk (no-submodule-changes): New rule.
41130         (alpha beta major): Depend on it.
41131
41132 2009-05-02  Bruno Haible  <bruno@clisp.org>
41133
41134         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
41135         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
41136         shell variable gl_fnmatch_required to detect which variant is
41137         requested.
41138         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
41139         gl_FUNC_FNMATCH_POSIX.
41140         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
41141         exclude fnmatch-posix.
41142
41143 2009-05-02  Bruno Haible  <bruno@clisp.org>
41144
41145         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
41146         * modules/mbsrtowcs (License): Change to LGPLv2+.
41147         * modules/strnlen1 (License): Likewise.
41148         Reported by Simon Josefsson.
41149
41150 2009-05-02  Bruno Haible  <bruno@clisp.org>
41151
41152         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
41153         "cross".
41154         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
41155         gnulib-tool was called with option --source-base=lib.
41156
41157 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41158
41159         Use automake *-local hooks without commands, for extensibility.
41160         * modules/localcharset (Makefile.am): Rename install-exec-local
41161         rule to install-exec-localcharset, and make it a prerequisite of
41162         install-exec-local.  Likewise, rename the uninstall-local rule to
41163         uninstall-localcharset, and make it a prerequisite of the former.
41164
41165 2009-05-01  Bruno Haible  <bruno@clisp.org>
41166
41167         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
41168         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41169         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
41170         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
41171         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
41172         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41173         m4/locale-zh.m4, m4/codeset.m4.
41174
41175         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41176         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
41177         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41178         m4/locale-zh.m4.
41179
41180         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
41181         REPLACE_WCRTOMB if mbstate_t must be replaced.
41182         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
41183         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
41184
41185 2009-05-01  Bruno Haible  <bruno@clisp.org>
41186
41187         Avoid compiler warnings when redefining macros defined by <libintl.h>.
41188         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
41189         dngettext, dcngettext, textdomain, bindtextdomain,
41190         bind_textdomain_codeset): Undefine before redefining.
41191
41192 2009-04-30  Bruno Haible  <bruno@clisp.org>
41193
41194         Fix bug introduced on 2009-04-25.
41195         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
41196         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
41197         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
41198         is defined.
41199         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
41200         is defined.
41201         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
41202         is defined.
41203         Reported by Elbert_Pol <elbert.pol@gmail.com>.
41204
41205 2009-04-28  Bruno Haible  <bruno@clisp.org>
41206
41207         Comment tweaks.
41208         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
41209         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
41210         * lib/unicase.h (u*_casexfrm): Likewise.
41211         Reported by Paolo Bonzini.
41212
41213 2009-04-28  Bruno Haible  <bruno@clisp.org>
41214
41215         Fix a compilation error.
41216         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
41217         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41218         Reported by Jim Meyering.
41219
41220 2009-04-27  Bruno Haible  <bruno@clisp.org>
41221
41222         New module 'libunistring'.
41223         * modules/libunistring: New file.
41224         * m4/libunistring.m4: New file.
41225         * MODULES.html.sh (Unicode string functions): Add it.
41226
41227 2009-04-27  Eric Blake  <ebb9@byu.net>
41228
41229         maint.mk: allow package-specific header to provide <config.h>
41230         * top/maint.mk (sc_require_config_h): New variable.
41231         (sc_require_config_h, sc_require_config_h_first): Use it.
41232
41233 2009-04-27  Simon Josefsson  <simon@josefsson.org>
41234
41235         * top/maint.mk (sc_avoid_if_before_free): Except
41236         useless-if-before-free script.
41237
41238 2009-04-27  Eric Blake  <ebb9@byu.net>
41239
41240         maintainer-makefile: depend on all required helper scripts
41241         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
41242         useless-if-before-free.
41243         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
41244         version, rather than assuming gnulib checkout is available.
41245         Reported by Simen Josefsson.
41246
41247 2009-04-26  Bruno Haible  <bruno@clisp.org>
41248
41249         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
41250         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
41251         "../" or "..".
41252
41253 2009-04-26  Bruno Haible  <bruno@clisp.org>
41254
41255         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
41256         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
41257         AC_LIB_HAVE_LINKFLAGS.
41258
41259 2009-04-26  Bruno Haible  <bruno@clisp.org>
41260
41261         Simplify calling convention of u*_conv_from_encoding.
41262         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
41263         u32_conv_from_encoding): Expect a resultbuf argument and return the
41264         result directly as a pointer.
41265         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
41266         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
41267         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
41268         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
41269         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
41270         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41271         Update.
41272         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
41273         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
41274         * lib/vasnprintf.c (VASNPRINTF): Update.
41275         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
41276         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
41277         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
41278         * NEWS: Mention the change.
41279
41280 2009-04-26  Bruno Haible  <bruno@clisp.org>
41281
41282         Simplify calling convention of u*_conv_to_encoding.
41283         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41284         u32_conv_to_encoding): Expect a resultbuf argument and return the
41285         result directly as a pointer.
41286         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41287         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
41288         freeing scaled_offsets if mem_iconveha failed.
41289         * lib/unicase/u-casexfrm.h (FUNC): Update.
41290         * lib/uninorm/u-normxfrm.h (FUNC): Update.
41291         * lib/vasnprintf.c (VASNPRINTF): Update.
41292         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
41293         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
41294         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
41295         * NEWS: Mention the change.
41296
41297 2009-04-26  Bruno Haible  <bruno@clisp.org>
41298
41299         Avoid test failures on AIX and OSF/1.
41300         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
41301         malloc(0).
41302         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41303         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41304         Likewise.
41305         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
41306         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
41307         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
41308         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
41309         * doc/posix-functions/malloc.texi: Document the portability problem
41310         related to malloc(0).
41311
41312 2009-04-26  Bruno Haible  <bruno@clisp.org>
41313
41314         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
41315         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
41316         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
41317
41318 2009-04-25  Bruno Haible  <bruno@clisp.org>
41319
41320         Avoid link error when creating a namespace clean library.
41321         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
41322         as macro with arguments if already defined as an alias.
41323         * lib/signbitf.c (gl_signbitf): Don't undefine.
41324         * lib/signbitd.c (gl_signbitd): Don't undefine.
41325         * lib/signbitl.c (gl_signbitl): Don't undefine.
41326
41327 2009-04-25  Jim Meyering  <meyering@redhat.com>
41328
41329         vc-list-files: fix another quoting bug
41330         * build-aux/vc-list-files: Avoid sed backslash expansion
41331         of pathological directory names.
41332
41333 2009-04-25  Eric Blake  <ebb9@byu.net>
41334
41335         vc-list-files: fix shell quoting error
41336         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
41337         timestamp.
41338
41339 2009-04-25  Jim Meyering  <meyering@redhat.com>
41340
41341         vc-list-files: restore lost functionality with subdir argument
41342         * build-aux/vc-list-files: When given a non-"." sub-directory
41343         argument, substitute the $dir/ prefix back onto each resulting name.
41344         Otherwise, coreutils' root_tests check would fail.
41345
41346 2009-04-24  Eric Blake  <ebb9@byu.net>
41347
41348         vc-list-files: ignore git symlinks
41349         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
41350         than ls-files, to ignore git symlinks.
41351
41352         maint.mk: import improvements from m4
41353         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
41354         (move_if_change): Delete unused macro.
41355         (news-date-check, vc-diff-check): Support VPATH builds.
41356         (announcement): Likewise.  Split --bootstrap-tools list...
41357         (boostrap-tools): ...into separate list, which can be overridden
41358         in cfg.mk.
41359         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
41360         requiring dependency on useless-if-before-free module.
41361         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
41362         Support VPATH builds.
41363
41364 2009-04-24  Jim Meyering  <meyering@redhat.com>
41365
41366         maint.mk: remove coreutils-specific rules and variables
41367         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
41368         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
41369         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
41370
41371         maint.mk: remove obsolete rule
41372         * top/maint.mk (rel-check): Remove rule.
41373         (WGET, WGETFLAGS): Remove now-unused variables.
41374
41375 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41376
41377         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
41378         consistency.
41379
41380         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
41381         '$(PATH_SEPARATOR)' instead of ':'.
41382
41383 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41384
41385         * lib/getopt1.c (main): Use 'const' for static array.
41386
41387 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41388
41389         * top/maint.mk: Sync with coreutils.
41390         * NEWS: Explain incompatibilities.
41391
41392 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41393             Bruno Haible  <bruno@clisp.org>
41394
41395         Fix cross-compilation results.
41396         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
41397         statement, as third argument of AC_TRY_RUN.
41398         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41399         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
41400         Likewise.
41401         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41402         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41403         Likewise.
41404         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41405         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
41406         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
41407
41408 2009-04-20  Bruno Haible  <bruno@clisp.org>
41409
41410         Avoid test failure on mingw.
41411         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
41412
41413 2009-04-20  Bruno Haible  <bruno@clisp.org>
41414
41415         Avoid compilation error on mingw.
41416         * modules/localename-tests (Depends-on): Add locale.
41417
41418 2009-04-19  Bruno Haible  <bruno@clisp.org>
41419
41420         Support for building a shared library on Windows platforms.
41421         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
41422         (main): Test the presence of UNINORM_NFC here.
41423         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
41424         (main): Test the presence of UNINORM_NFD here.
41425         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
41426         (main): Test the presence of UNINORM_NFKC here.
41427         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
41428         (main): Test the presence of UNINORM_NFKD here.
41429
41430 2009-04-19  Bruno Haible  <bruno@clisp.org>
41431
41432         Avoid a compiler warning.
41433         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
41434         Change type of variable 'sequence'.
41435
41436 2009-04-19  Bruno Haible  <bruno@clisp.org>
41437
41438         * modules/configmake (Makefile.am): When the contents of configmake.h
41439         does not change, arrange to preserve its modification time.
41440
41441 2009-04-17  Simon Josefsson  <simon@josefsson.org>
41442
41443         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
41444         gettext domain.
41445
41446 2009-04-16  Jim Meyering  <meyering@redhat.com>
41447
41448         useless-if-before-free: improve conversion code
41449         * build-aux/useless-if-before-free: Adjust code-in-comment to match
41450         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
41451
41452 2009-04-14  Bruno Haible  <bruno@clisp.org>
41453
41454         * modules/fcntl (Depends-on): Add extensions.
41455         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
41456
41457 2009-04-12  Ben Pfaff  <blp@gnu.org>
41458
41459         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
41460         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
41461
41462 2009-03-20  Ben Pfaff  <blp@gnu.org>
41463
41464         Make rename replace existing destinations on Windows.
41465         * m4/rename.m4: Add test for Mingw.
41466         * lib/rename.c: Add rename replacement that uses MoveFileEx with
41467         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
41468         * doc/posix-functions/rename.texi: Document.
41469
41470 2009-04-10  Bruno Haible  <bruno@clisp.org>
41471
41472         New include file "iconveh.h".
41473         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
41474         * lib/striconveh.h: Include it.
41475         (enum iconv_ilseq_handler): Remove definition.
41476         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
41477         striconveh.h.
41478         * lib/striconveha.c: Include striconveh.h.
41479         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
41480         * modules/striconveh (Files): Add lib/iconveh.h.
41481         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
41482         lib/striconveh.h.
41483
41484 2009-04-10  Bruno Haible  <bruno@clisp.org>
41485
41486         * lib/uniconv.h: Update comment.
41487
41488 2009-04-10  Bruno Haible  <bruno@clisp.org>
41489
41490         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
41491         always.
41492         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41493         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41494         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41495         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
41496         "unistring-notinline.h", so that the function gets defined always.
41497         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41498         * lib/unistr/u8-uctomb.c: Likewise.
41499         * lib/unistr/u16-mbtouc.c: Likewise.
41500         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41501         * lib/unistr/u16-uctomb.c: Likewise.
41502         * lib/unistr/u32-mbtouc.c: Likewise.
41503         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41504         * lib/unistr/u32-uctomb.c: Likewise.
41505
41506 2009-04-10  Bruno Haible  <bruno@clisp.org>
41507
41508         Mark 'utime' obsolete.
41509         * modules/utime (Status, Notice): New sections.
41510         Suggested by Jim Meyering.
41511
41512         Fix cross-compile guess for utime test.
41513         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
41514         autoconf.
41515         * doc/posix-functions/utime.texi: Give more precisions.
41516         Reported by Jan <ipif@ymail.com>.
41517
41518 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
41519
41520         filevercmp: correct today's change
41521         * lib/filevercmp.c: Also handle coreutils' test inputs.
41522         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
41523
41524         Fix regression in 'filevercmp' module. Thanks Sven Joachim
41525         for reporting it.
41526         * lib/filevercmp.c: Special handle for "", "." and "..".
41527         * tests/test-filevercmp.c: Enlarge the set suite.
41528
41529 2009-04-07  Jim Meyering  <meyering@redhat.com>
41530
41531         useless-if-before-free: show how to remove braced useless free, too
41532         * build-aux/useless-if-before-free: still only in a comment, though.
41533
41534 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
41535
41536         maint.mk: import changes to syntax-check macros from coreutils
41537         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
41538         Use them in the relevant macros.
41539
41540 2009-04-06  Bruno Haible  <bruno@clisp.org>
41541
41542         Fix unportable use of bit-fields.
41543         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
41544         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
41545         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
41546
41547 2009-04-06  Bruno Haible  <bruno@clisp.org>
41548
41549         Avoid test failures on AIX and OSF/1.
41550         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
41551         that malloc(0) = NULL.
41552         * tests/unicase/test-u8-tolower.c (check): Likewise.
41553         * tests/unicase/test-u8-totitle.c (check): Likewise.
41554         * tests/unicase/test-u8-toupper.c (check): Likewise.
41555         * tests/unicase/test-u16-casefold.c (check): Likewise.
41556         * tests/unicase/test-u16-tolower.c (check): Likewise.
41557         * tests/unicase/test-u16-totitle.c (check): Likewise.
41558         * tests/unicase/test-u16-toupper.c (check): Likewise.
41559         * tests/unicase/test-u32-casefold.c (check): Likewise.
41560         * tests/unicase/test-u32-tolower.c (check): Likewise.
41561         * tests/unicase/test-u32-totitle.c (check): Likewise.
41562         * tests/unicase/test-u32-toupper.c (check): Likewise.
41563         * tests/uninorm/test-u8-nfc.c (check): Likewise.
41564         * tests/uninorm/test-u8-nfd.c (check): Likewise.
41565         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
41566         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
41567         * tests/uninorm/test-u16-nfc.c (check): Likewise.
41568         * tests/uninorm/test-u16-nfd.c (check): Likewise.
41569         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
41570         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
41571         * tests/uninorm/test-u32-nfc.c (check): Likewise.
41572         * tests/uninorm/test-u32-nfd.c (check): Likewise.
41573         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
41574         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
41575
41576 2009-04-05  Bruno Haible  <bruno@clisp.org>
41577
41578         Work around an autoconf limitation.
41579         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
41580         comment line if it would be longer than 3 KB.
41581
41582 2009-04-05  Bruno Haible  <bruno@clisp.org>
41583
41584         Avoid test failure with libiconv-1.13.
41585         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
41586         of the expected test results.
41587
41588 2009-04-05  Bruno Haible  <bruno@clisp.org>
41589
41590         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
41591         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
41592         that it should be installed.
41593
41594 2009-04-05  Bruno Haible  <bruno@clisp.org>
41595
41596         * gnulib-tool: New option --copy-file.
41597         (func_usage): Document it.
41598         (func_dest_tmpfilename): Moved out of func_import.
41599         (func_add_file, func_update_file): New functions, extracted from
41600         func_import.
41601         (func_import): Update.
41602
41603 2009-04-05  Karl Berry  <karl@gnu.org>
41604
41605         * README: prominently mention gnulib-tool.
41606         Rearrange sections so getting the code is near the top.
41607
41608 2009-04-05  Bruno Haible  <bruno@clisp.org>
41609
41610         * lib/unicase.h: Mention u*_cmp2.
41611         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41612         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
41613         * lib/unicase/ulc-casecmp.c: Likewise.
41614         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
41615         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
41616         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
41617         unistr/u8-cmp.
41618         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
41619         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
41620         unistr/u16-cmp.
41621         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
41622         unistr/u32-cmp.
41623
41624         * lib/uninorm.h: Mention u*_cmp2.
41625         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41626         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
41627         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
41628         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
41629         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
41630         unistr/u8-cmp.
41631         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
41632         unistr/u16-cmp.
41633         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
41634         unistr/u32-cmp.
41635
41636         New module 'unistr/u32-cmp2'.
41637         * lib/unistr/u32-cmp2.c: New file.
41638         * modules/unistr/u32-cmp2: New file.
41639
41640         New module 'unistr/u16-cmp2'.
41641         * lib/unistr/u16-cmp2.c: New file.
41642         * modules/unistr/u16-cmp2: New file.
41643
41644         New module 'unistr/u8-cmp2'.
41645         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
41646         * lib/unistr/u8-cmp2.c: New file.
41647         * lib/unistr/u-cmp2.h: New file.
41648         * modules/unistr/u8-cmp2: New file.
41649
41650 2009-04-05  Bruno Haible  <bruno@clisp.org>
41651
41652         * lib/unictype.h (uc_property_is_valid): New macro.
41653         * tests/unictype/test-pr_byname.c (main): Use it.
41654
41655         * lib/unistr.h: Doc fixes.
41656         * lib/uniconv.h: Doc fixes.
41657         * lib/unictype.h: Doc fixes.
41658
41659 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
41660
41661         Port coreutils 7.2 to Solaris 8.
41662
41663         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
41664         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
41665         for Solaris 8.  This is a bit of a hack, as it means it's the
41666         caller's responsibility to add -lnsl if needed, but most likely it
41667         won't be needed since only getaddrinfo uses this and getaddrinfo
41668         isn't needed on Solaris 8.
41669
41670         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
41671         problem to Solaris 8 encountered with coreutils 7.2, which
41672         resulted in a message "fnmatch.c:292: warning: passing argument 4
41673         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
41674         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
41675
41676 2009-04-03  Simon Josefsson  <simon@josefsson.org>
41677
41678         * m4/ld-version-script.m4: Add FIXME comment.
41679
41680 2009-04-02  Simon Josefsson  <simon@josefsson.org>
41681
41682         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
41683         SOVERSION variable.
41684
41685 2009-04-02  Bruno Haible  <bruno@clisp.org>
41686
41687         * Makefile (info, html, dvi, pdf): Combine the rules.
41688         Suggested by Jim Meyering.
41689
41690 2009-04-01  Bruno Haible  <bruno@clisp.org>
41691
41692         * Makefile (info, html, dvi, pdf): New targets.
41693         Reported by Reuben Thomas <rrt@sc3d.org>.
41694
41695 2009-04-01  Bruno Haible  <bruno@clisp.org>
41696
41697         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
41698         can be put into PATH.
41699         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
41700
41701 2009-04-01  Bruno Haible  <bruno@clisp.org>
41702
41703         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
41704
41705 2009-04-01  Bruno Haible  <bruno@clisp.org>
41706
41707         Rename module 'visibility'.
41708         * modules/lib-symbol-visibility: Renamed from modules/visibility.
41709         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
41710         * doc/gnulib.texi: Update.
41711         * MODULES.html.sh (Misc): Update.
41712         * NEWS: Mention the change.
41713
41714 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41715
41716         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
41717         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
41718         Eric Blake <ebb9@byu.net> for review.
41719         * MODULES.html.sh: Add lib-msvc-compat.
41720         * doc/gnulib.texi: Link to new section.
41721         * m4/ld-output-def.m4: New file.
41722         * doc/ld-output-def.texi: New file.
41723
41724 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41725
41726         Rename ld-version-script to lib-symbol-versions.  Suggested by
41727         Bruno Haible <bruno@clisp.org>.
41728         * modules/ld-version-script: Renamed to lib-symbol-versions.
41729         * doc/ld-version-script.texi: Fix module name.
41730         * MODULES.html.sh: Add lib-symbol-versions.
41731
41732 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41733
41734         * modules/u64-tests: New file.
41735         * tests/test-u64.c: New file.
41736
41737 2009-03-04  Simon Josefsson  <simon@josefsson.org>
41738
41739         * MODULES.html.sh: Mention u64.
41740         * modules/u64: New module.
41741         * modules/crypto/sha512: Depend on u64 module instead of providing
41742         u64.h.
41743
41744 2009-03-27  Eric Blake  <ebb9@byu.net>
41745
41746         test-strerror: make debugging EAI_SYSTEM easier
41747         * modules/getaddrinfo-tests (Depends-on): Add strerror.
41748         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
41749         failure was EAI_SYSTEM.
41750
41751 2009-03-25  Bruno Haible  <bruno@clisp.org>
41752
41753         Fix a problem with --enable-relocatable on Solaris 7.
41754         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
41755         since 2008-02-24.
41756
41757 2009-03-25  Eric Blake  <ebb9@byu.net>
41758
41759         test-sockets: avoid gcc warning
41760         * tests/test-sockets.c (main): Silence compiler warning.
41761
41762 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
41763
41764         New modules nproc, pthread, contributed by Glen Lenker.
41765
41766         * MODULES.html.sh: Add pthread, nproc.
41767         * lib/nproc.c: New file.
41768         * lib/nproc.h: New file.
41769         * lib/pthread.in.h: New file.
41770         * m4/pthread.m4: New file.
41771         * modules/nproc: New file.
41772         * modules/pthread: New file.
41773
41774 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41775
41776         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
41777         New variable.
41778
41779 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
41780
41781         filevercmp: handle simple~ and numbered.~3~ backup suffixes
41782         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
41783         * tests/test-filevercmp.c: Add tests for backup suffixes.
41784
41785 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41786
41787         * modules/stdlib (Depends-on): Add stdint, needed when defining
41788         struct random_data on, for example, HP-UX 10.20.  Reported by
41789         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41790
41791 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41792
41793         * lib/readline.c (readline): Call fflush on stdout after printing
41794         prompt.
41795
41796 2009-03-20  Bruno Haible  <bruno@clisp.org>
41797
41798         Remove dependency from 'close' module to -lws2_32 on native Windows.
41799         * lib/close-hook.h: New file.
41800         * lib/close-hook.c: New file.
41801         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
41802         w32sock.h.
41803         (_gl_close_fd_maybe_socket): Remove function.
41804         (rpl_close): Invoke execute_all_close_hooks instead of
41805         _gl_close_fd_maybe_socket.
41806         * lib/sockets.c: Include close-hook.h, w32sock.h.
41807         (close_fd_maybe_socket): New function, essentially from lib/close.c.
41808         (close_sockets_hook): New variable.
41809         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
41810         (gl_sockets_cleanup): Unregister it.
41811         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
41812         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
41813         * modules/close-hook: New file.
41814         * modules/close (Files): Remove lib/w32sock.h.
41815         (Depends-on): Add close-hook.
41816         (Link): Remove section.
41817         * modules/sockets (Files): Add lib/w32sock.h.
41818         (Depends-on): Add close-hook.
41819         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
41820         invocation.
41821         * NEWS: Mention that LIB_CLOSE is gone.
41822
41823 2009-03-23  Eric Blake  <ebb9@byu.net>
41824
41825         signal-tests: test previous patch
41826         * tests/test-signal.c: New file.
41827         * modules/signal-tests: Likewise.
41828
41829         signal.h: always support 'volatile sig_atomic_t'
41830         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
41831         (gl_SIGNAL_H_DEFAULTS): Add a default.
41832         * modules/signal (Makefile.am): Substitute if needed.
41833         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
41834         users can blindly add volatile.
41835         * doc/posix-headers/signal.texi (signal.h): Document it.
41836         Reported by Matthew Woehlke.
41837
41838 2009-03-23  Jim Meyering  <meyering@redhat.com>
41839
41840         pathmax: PATH_MAX: use pathconf only when available
41841         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
41842         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
41843         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
41844         This avoids a link failure in a PSP cross-compilation environment
41845         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
41846
41847         * lib/vasnprintf.c (divide): Fix typo in comment.
41848
41849 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41850
41851         * gnulib-tool (func_filter_filelist): Fix comment.
41852
41853 2009-03-20  Bruno Haible  <bruno@clisp.org>
41854
41855         Make sockets.h self-contained.
41856         * lib/sockets.c: Include sockets.h first.
41857         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
41858
41859 2009-03-19  Eric Blake  <ebb9@byu.net>
41860
41861         doc: mention more functions added in cygwin 1.7.0
41862         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
41863         addition.
41864         * doc/posix-functions/log2f.texi: Likewise.
41865
41866 2009-03-19  Jim Meyering  <meyering@redhat.com>
41867
41868         fsusage: avoid syntax error due to statement-before-declaration
41869         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
41870         after all declarations.  Reported by Matthew Woehlke in
41871         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
41872
41873 2009-03-18  Eric Blake  <ebb9@byu.net>
41874
41875         build-aux/compile: sync from automake
41876         * build-aux/compile: New file, from automake.
41877         * config/srclist.txt: Mention build-aux/compile.
41878
41879 2009-03-17  Bruno Haible  <bruno@clisp.org>
41880
41881         * lib/git-merge-changelog.c: Fix typo in comment.
41882         Reported by Reuben Thomas <rrt@sc3d.org>.
41883
41884 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
41885
41886         * m4/regex.m4: update and improve help for
41887         --without-included-regex.
41888
41889 2009-03-17  Simon Josefsson  <simon@josefsson.org>
41890
41891         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
41892         failure on missing include files.
41893
41894 2009-03-17  Eric Blake  <ebb9@byu.net>
41895
41896         doc: mention more functions added in cygwin 1.7.0
41897         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
41898         addition.
41899         * doc/posix-functions/fwscanf.texi: Likewise.
41900         * doc/posix-functions/swprintf.texi: Likewise.
41901         * doc/posix-functions/swscanf.texi: Likewise.
41902         * doc/posix-functions/vfwprintf.texi: Likewise.
41903         * doc/posix-functions/vfwscanf.texi: Likewise.
41904         * doc/posix-functions/vswprintf.texi: Likewise.
41905         * doc/posix-functions/vswscanf.texi: Likewise.
41906         * doc/posix-functions/vwprintf.texi: Likewise.
41907         * doc/posix-functions/vwscanf.texi: Likewise.
41908         * doc/posix-functions/wcscasecmp.texi: Likewise.
41909         * doc/posix-functions/wcsdup.texi: Likewise.
41910         * doc/posix-functions/wcsftime.texi: Likewise.
41911         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41912         * doc/posix-functions/wprintf.texi: Likewise.
41913         * doc/posix-functions/wscanf.texi: Likewise.
41914         * doc/glibc-functions/gethostbyname2.texi: Likewise.
41915
41916 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41917
41918         maint.mk: really add $(AM_MAKEFLAGS)
41919         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
41920         was inadvertently omitted in the last commit.
41921         Spotted by Bruno Haible.
41922
41923         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
41924         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
41925         $(AM_MAKEFLAGS)' rather than plain `make'.
41926
41927         gnulib-tool: execute $MAKE not make
41928         * gnulib-tool: Default $MAKE to 'make'.
41929         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
41930         than make.  Initialize $MAKE in the do-autobuild script.
41931
41932         gnulib-tool: use $MAKE not make in generated files
41933         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
41934         make, in generated files.  Initialize $MAKE in the do-autobuild
41935         script.
41936
41937         * top/GNUmakefile (_have-git-version-gen): Fix typo.
41938
41939         GNUmakefile: disable parallelism only for multiple, recursive targets
41940         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
41941         additions in the Makefile.
41942         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
41943         by Automake.
41944         (.NOTPARALLEL): Only disable parallel builds if multiple targets
41945         are listed on the command line and at least one of them is
41946         listed in $(ALL_RECURSIVE_TARGETS).
41947
41948 2009-03-14  Bruno Haible  <bruno@clisp.org>
41949
41950         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
41951         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
41952         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
41953         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
41954         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
41955         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
41956         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
41957         unistr/u8-uctomb.
41958         * modules/unistr/u8-strchr (Depends-on): Likewise.
41959         * modules/unistr/u8-strrchr (Depends-on): Likewise.
41960         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
41961         unistr/u16-uctomb.
41962         * modules/unistr/u16-strchr (Depends-on): Likewise.
41963         * modules/unistr/u16-strrchr (Depends-on): Likewise.
41964
41965 2009-03-12  Bruno Haible  <bruno@clisp.org>
41966
41967         Work around select() bug on Interix 3.5.
41968         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
41969         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
41970         * m4/select.m4: New file.
41971         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
41972         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
41973         * modules/select (Files): Add m4/select.m4.
41974         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
41975         * modules/nanosleep (Depends-on): Add select.
41976         * modules/poll (Depends-on): Likewise.
41977         * doc/posix-functions/select.texi: Mention the Interix bug.
41978         Reported by Markus Duft <mduft@gentoo.org>.
41979
41980         * lib/select.c: Renamed from lib/winsock-select.c.
41981         * modules/select (Files): Add lib/select.c, remove
41982         lib/winsock-select.c.
41983         (configure.ac): Update.
41984
41985 2009-03-12  Jim Meyering  <meyering@redhat.com>
41986
41987         avoid gcc warnings about unused macro definitions
41988         * lib/readtokens.c (STREQ): Remove unused definition.
41989         * lib/xmalloc.c (SIZE_MAX): Likewise.
41990         * lib/openat-die.c (N_): Likewise.
41991         * lib/mountlist.c (SIZE_MAX): Remove definition.
41992         Instead, include <stdint.h>.
41993         * lib/readutmp.c: Likewise.
41994         * modules/readutmp (Depends-on): Add stdint.
41995         * modules/mountlist (Depends-on): Add stdint.
41996         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
41997
41998 2009-03-10  Bruno Haible  <bruno@clisp.org>
41999
42000         Tests for module 'mbmemcasecoll'.
42001         * modules/mbmemcasecoll-tests: New file.
42002         * tests/test-mbmemcasecoll1.sh: New file.
42003         * tests/test-mbmemcasecoll2.sh: New file.
42004         * tests/test-mbmemcasecoll3.sh: New file.
42005         * tests/test-mbmemcasecoll.c: New file.
42006
42007         New module 'mbmemcasecoll'.
42008         * lib/mbmemcasecoll.h: New file.
42009         * lib/mbmemcasecoll.c: New file.
42010         * modules/mbmemcasecoll: New file.
42011
42012         * tests/test-mbmemcasecmp.h: New file, extracted from
42013         tests/test-mbmemcasecmp.c.
42014         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
42015         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
42016         (main): Update.
42017         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
42018
42019 2009-03-09  Bruno Haible  <bruno@clisp.org>
42020
42021         Tests for module 'mbmemcasecmp'.
42022         * modules/mbmemcasecmp-tests: New file.
42023         * tests/test-mbmemcasecmp1.sh: New file.
42024         * tests/test-mbmemcasecmp2.sh: New file.
42025         * tests/test-mbmemcasecmp3.sh: New file.
42026         * tests/test-mbmemcasecmp.c: New file.
42027
42028         New module 'mbmemcasecmp'.
42029         * lib/mbmemcasecmp.h: New file.
42030         * lib/mbmemcasecmp.c: New file.
42031         * modules/mbmemcasecmp: New file.
42032
42033 2009-03-09  Bruno Haible  <bruno@clisp.org>
42034
42035         Tests for module 'unicase/ulc-casecoll'.
42036         * modules/unicase/ulc-casecoll-tests: New file.
42037         * tests/unicase/test-ulc-casecoll1.sh: New file.
42038         * tests/unicase/test-ulc-casecoll2.sh: New file.
42039         * tests/unicase/test-ulc-casecoll.c: New file.
42040
42041         New module 'unicase/ulc-casecoll'.
42042         * lib/unicase.h (ulc_casecoll): New declaration.
42043         * lib/unicase/ulc-casecoll.c: New file.
42044         * modules/unicase/ulc-casecoll: New file.
42045
42046         New module 'unicase/ulc-casexfrm'.
42047         * lib/unicase.h (ulc_casexfrm): New declaration.
42048         * lib/unicase/ulc-casexfrm.c: New file.
42049         * modules/unicase/ulc-casexfrm: New file.
42050
42051 2009-03-09  Bruno Haible  <bruno@clisp.org>
42052
42053         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
42054         invocations.
42055
42056         * m4/mbscasecmp.m4: Remove file.
42057         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
42058         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
42059
42060         * m4/mbscasestr.m4: Remove file.
42061         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
42062         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
42063
42064         * m4/mbschr.m4: Remove file.
42065         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
42066         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
42067
42068         * m4/mbscspn.m4: Remove file.
42069         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
42070         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
42071
42072         * m4/mbslen.m4: Remove file.
42073         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
42074         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
42075
42076         * m4/mbsncasecmp.m4: Remove file.
42077         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
42078         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
42079
42080         * m4/mbsnlen.m4: Remove file.
42081         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
42082         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
42083
42084         * m4/mbspbrk.m4: Remove file.
42085         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
42086         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
42087
42088         * m4/mbspcasecmp.m4: Remove file.
42089         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
42090         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
42091
42092         * m4/mbsrchr.m4: Remove file.
42093         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
42094         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
42095
42096         * m4/mbssep.m4: Remove file.
42097         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
42098         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
42099
42100         * m4/mbsspn.m4: Remove file.
42101         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
42102         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
42103
42104         * m4/mbsstr.m4: Remove file.
42105         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
42106         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
42107
42108         * m4/mbstok_r.m4: Remove file.
42109         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
42110         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
42111
42112         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
42113
42114         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
42115         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
42116
42117         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
42118
42119 2009-03-08  Bruno Haible  <bruno@clisp.org>
42120
42121         Tests for module 'unicase/ulc-casecmp'.
42122         * modules/unicase/ulc-casecmp-tests: New file.
42123         * tests/unicase/test-ulc-casecmp1.sh: New file.
42124         * tests/unicase/test-ulc-casecmp2.sh: New file.
42125         * tests/unicase/test-ulc-casecmp.c: New file.
42126
42127         New module 'unicase/ulc-casecmp'.
42128         * lib/unicase.h (ulc_casecmp): New declaration.
42129         * lib/unicase/ulc-casecmp.c: New file.
42130         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
42131         'const SRC_UNIT *'.
42132         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
42133         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
42134         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
42135         * modules/unicase/ulc-casecmp: New file.
42136
42137         Tests for module 'unicase/u32-is-cased'.
42138         * modules/unicase/u32-is-cased-tests: New file.
42139         * tests/unicase/test-u32-is-cased.c: New file.
42140
42141         Tests for module 'unicase/u16-is-cased'.
42142         * modules/unicase/u16-is-cased-tests: New file.
42143         * tests/unicase/test-u16-is-cased.c: New file.
42144
42145         Tests for module 'unicase/u8-is-cased'.
42146         * modules/unicase/u8-is-cased-tests: New file.
42147         * tests/unicase/test-u8-is-cased.c: New file.
42148         * tests/unicase/test-is-cased.h: New file.
42149
42150         New module 'unicase/u32-is-cased'.
42151         * lib/unicase/u32-is-cased.c: New file.
42152         * modules/unicase/u32-is-cased: New file.
42153
42154         New module 'unicase/u16-is-cased'.
42155         * lib/unicase/u16-is-cased.c: New file.
42156         * modules/unicase/u16-is-cased: New file.
42157
42158         New module 'unicase/u8-is-cased'.
42159         * lib/unicase/u8-is-cased.c: New file.
42160         * lib/unicase/u-is-cased.h: New file.
42161         * modules/unicase/u8-is-cased: New file.
42162
42163         Tests for module 'unicase/u32-is-casefolded'.
42164         * modules/unicase/u32-is-casefolded-tests: New file.
42165         * tests/unicase/test-u32-is-casefolded.c: New file.
42166
42167         Tests for module 'unicase/u16-is-casefolded'.
42168         * modules/unicase/u16-is-casefolded-tests: New file.
42169         * tests/unicase/test-u16-is-casefolded.c: New file.
42170
42171         Tests for module 'unicase/u8-is-casefolded'.
42172         * modules/unicase/u8-is-casefolded-tests: New file.
42173         * tests/unicase/test-u8-is-casefolded.c: New file.
42174         * tests/unicase/test-is-casefolded.h: New file.
42175
42176         New module 'unicase/u32-is-casefolded'.
42177         * lib/unicase/u32-is-casefolded.c: New file.
42178         * modules/unicase/u32-is-casefolded: New file.
42179
42180         New module 'unicase/u16-is-casefolded'.
42181         * lib/unicase/u16-is-casefolded.c: New file.
42182         * modules/unicase/u16-is-casefolded: New file.
42183
42184         New module 'unicase/u8-is-casefolded'.
42185         * lib/unicase/u8-is-casefolded.c: New file.
42186         * modules/unicase/u8-is-casefolded: New file.
42187
42188         Tests for module 'unicase/u32-is-titlecase'.
42189         * modules/unicase/u32-is-titlecase-tests: New file.
42190         * tests/unicase/test-u32-is-titlecase.c: New file.
42191
42192         Tests for module 'unicase/u16-is-titlecase'.
42193         * modules/unicase/u16-is-titlecase-tests: New file.
42194         * tests/unicase/test-u16-is-titlecase.c: New file.
42195
42196         Tests for module 'unicase/u8-is-titlecase'.
42197         * modules/unicase/u8-is-titlecase-tests: New file.
42198         * tests/unicase/test-u8-is-titlecase.c: New file.
42199         * tests/unicase/test-is-titlecase.h: New file.
42200
42201         New module 'unicase/u32-is-titlecase'.
42202         * lib/unicase/u32-is-titlecase.c: New file.
42203         * modules/unicase/u32-is-titlecase: New file.
42204
42205         New module 'unicase/u16-is-titlecase'.
42206         * lib/unicase/u16-is-titlecase.c: New file.
42207         * modules/unicase/u16-is-titlecase: New file.
42208
42209         New module 'unicase/u8-is-titlecase'.
42210         * lib/unicase/u8-is-titlecase.c: New file.
42211         * modules/unicase/u8-is-titlecase: New file.
42212
42213         Tests for module 'unicase/u32-is-lowercase'.
42214         * modules/unicase/u32-is-lowercase-tests: New file.
42215         * tests/unicase/test-u32-is-lowercase.c: New file.
42216
42217         Tests for module 'unicase/u16-is-lowercase'.
42218         * modules/unicase/u16-is-lowercase-tests: New file.
42219         * tests/unicase/test-u16-is-lowercase.c: New file.
42220
42221         Tests for module 'unicase/u8-is-lowercase'.
42222         * modules/unicase/u8-is-lowercase-tests: New file.
42223         * tests/unicase/test-u8-is-lowercase.c: New file.
42224         * tests/unicase/test-is-lowercase.h: New file.
42225
42226         New module 'unicase/u32-is-lowercase'.
42227         * lib/unicase/u32-is-lowercase.c: New file.
42228         * modules/unicase/u32-is-lowercase: New file.
42229
42230         New module 'unicase/u16-is-lowercase'.
42231         * lib/unicase/u16-is-lowercase.c: New file.
42232         * modules/unicase/u16-is-lowercase: New file.
42233
42234         New module 'unicase/u8-is-lowercase'.
42235         * lib/unicase/u8-is-lowercase.c: New file.
42236         * modules/unicase/u8-is-lowercase: New file.
42237
42238         Tests for module 'unicase/u32-is-uppercase'.
42239         * modules/unicase/u32-is-uppercase-tests: New file.
42240         * tests/unicase/test-u32-is-uppercase.c: New file.
42241
42242         Tests for module 'unicase/u16-is-uppercase'.
42243         * modules/unicase/u16-is-uppercase-tests: New file.
42244         * tests/unicase/test-u16-is-uppercase.c: New file.
42245
42246         Tests for module 'unicase/u8-is-uppercase'.
42247         * modules/unicase/u8-is-uppercase-tests: New file.
42248         * tests/unicase/test-u8-is-uppercase.c: New file.
42249         * tests/unicase/test-is-uppercase.h: New file.
42250
42251         New module 'unicase/u32-is-uppercase'.
42252         * lib/unicase/u32-is-uppercase.c: New file.
42253         * modules/unicase/u32-is-uppercase: New file.
42254
42255         New module 'unicase/u16-is-uppercase'.
42256         * lib/unicase/u16-is-uppercase.c: New file.
42257         * modules/unicase/u16-is-uppercase: New file.
42258
42259         New module 'unicase/u8-is-uppercase'.
42260         * lib/unicase/u8-is-uppercase.c: New file.
42261         * modules/unicase/u8-is-uppercase: New file.
42262
42263         New module 'unicase/u32-is-invariant'.
42264         * lib/unicase/u32-is-invariant.c: New file.
42265         * modules/unicase/u32-is-invariant: New file.
42266
42267         New module 'unicase/u16-is-invariant'.
42268         * lib/unicase/u16-is-invariant.c: New file.
42269         * modules/unicase/u16-is-invariant: New file.
42270
42271         New module 'unicase/u8-is-invariant'.
42272         * lib/unicase/u8-is-invariant.c: New file.
42273         * lib/unicase/invariant.h: New file.
42274         * lib/unicase/u-is-invariant.h: New file.
42275         * modules/unicase/u8-is-invariant: New file.
42276
42277         Tests for module 'unicase/u32-casecoll'.
42278         * modules/unicase/u32-casecoll-tests: New file.
42279         * tests/unicase/test-u32-casecoll.c: New file.
42280
42281         Tests for module 'unicase/u16-casecoll'.
42282         * modules/unicase/u16-casecoll-tests: New file.
42283         * tests/unicase/test-u16-casecoll.c: New file.
42284
42285         Tests for module 'unicase/u8-casecoll'.
42286         * modules/unicase/u8-casecoll-tests: New file.
42287         * tests/unicase/test-u8-casecoll.c: New file.
42288
42289         New module 'unicase/u32-casecoll'.
42290         * lib/unicase/u32-casecoll.c: New file.
42291         * modules/unicase/u32-casecoll: New file.
42292
42293         New module 'unicase/u16-casecoll'.
42294         * lib/unicase/u16-casecoll.c: New file.
42295         * modules/unicase/u16-casecoll: New file.
42296
42297         New module 'unicase/u8-casecoll'.
42298         * lib/unicase/u8-casecoll.c: New file.
42299         * lib/unicase/u-casecoll.h: New file.
42300         * modules/unicase/u8-casecoll: New file.
42301
42302         New module 'unicase/u32-casexfrm'.
42303         * lib/unicase/u32-casexfrm.c: New file.
42304         * modules/unicase/u32-casexfrm: New file.
42305
42306         New module 'unicase/u16-casexfrm'.
42307         * lib/unicase/u16-casexfrm.c: New file.
42308         * modules/unicase/u16-casexfrm: New file.
42309
42310         New module 'unicase/u8-casexfrm'.
42311         * lib/unicase/u8-casexfrm.c: New file.
42312         * lib/unicase/u-casexfrm.h: New file.
42313         * modules/unicase/u8-casexfrm: New file.
42314
42315         Tests for module 'unicase/u32-casecmp'.
42316         * modules/unicase/u32-casecmp-tests: New file.
42317         * tests/unicase/test-u32-casecmp.c: New file.
42318
42319         Tests for module 'unicase/u16-casecmp'.
42320         * modules/unicase/u16-casecmp-tests: New file.
42321         * tests/unicase/test-u16-casecmp.c: New file.
42322
42323         Tests for module 'unicase/u8-casecmp'.
42324         * modules/unicase/u8-casecmp-tests: New file.
42325         * tests/unicase/test-u8-casecmp.c: New file.
42326         * tests/unicase/test-casecmp.h: New file.
42327
42328         New module 'unicase/u32-casecmp'.
42329         * lib/unicase/u32-casecmp.c: New file.
42330         * modules/unicase/u32-casecmp: New file.
42331
42332         New module 'unicase/u16-casecmp'.
42333         * lib/unicase/u16-casecmp.c: New file.
42334         * modules/unicase/u16-casecmp: New file.
42335
42336         New module 'unicase/u8-casecmp'.
42337         * lib/unicase/u8-casecmp.c: New file.
42338         * lib/unicase/u-casecmp.h: New file.
42339         * modules/unicase/u8-casecmp: New file.
42340
42341         Tests for module 'unicase/u32-casefold'.
42342         * modules/unicase/u32-casefold-tests: New file.
42343         * tests/unicase/test-u32-casefold.c: New file.
42344
42345         Tests for module 'unicase/u16-casefold'.
42346         * modules/unicase/u16-casefold-tests: New file.
42347         * tests/unicase/test-u16-casefold.c: New file.
42348
42349         Tests for module 'unicase/u8-casefold'.
42350         * modules/unicase/u8-casefold-tests: New file.
42351         * tests/unicase/test-u8-casefold.c: New file.
42352
42353         New module 'unicase/u32-casefold'.
42354         * lib/unicase/u32-casefold.c: New file.
42355         * modules/unicase/u32-casefold: New file.
42356
42357         New module 'unicase/u16-casefold'.
42358         * lib/unicase/u16-casefold.c: New file.
42359         * modules/unicase/u16-casefold: New file.
42360
42361         New module 'unicase/u8-casefold'.
42362         * lib/unicase/u8-casefold.c: New file.
42363         * lib/unicase/u-casefold.h: New file.
42364         * modules/unicase/u8-casefold: New file.
42365
42366         New module 'unicase/tocasefold'.
42367         * lib/unicase/casefold.h: New file.
42368         * lib/unicase/tocasefold.c: New file.
42369         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
42370         * modules/unicase/tocasefold: New file.
42371
42372         Tests for module 'unicase/u32-totitle'.
42373         * modules/unicase/u32-totitle-tests: New file.
42374         * tests/unicase/test-u32-totitle.c: New file.
42375
42376         Tests for module 'unicase/u16-totitle'.
42377         * modules/unicase/u16-totitle-tests: New file.
42378         * tests/unicase/test-u16-totitle.c: New file.
42379
42380         Tests for module 'unicase/u8-totitle'.
42381         * modules/unicase/u8-totitle-tests: New file.
42382         * tests/unicase/test-u8-totitle.c: New file.
42383
42384         New module 'unicase/u32-totitle'.
42385         * lib/unicase/u32-totitle.c: New file.
42386         * modules/unicase/u32-totitle: New file.
42387
42388         New module 'unicase/u16-totitle'.
42389         * lib/unicase/u16-totitle.c: New file.
42390         * modules/unicase/u16-totitle: New file.
42391
42392         New module 'unicase/u8-totitle'.
42393         * lib/unicase/u8-totitle.c: New file.
42394         * lib/unicase/u-totitle.h: New file.
42395         * modules/unicase/u8-totitle: New file.
42396
42397         Tests for module 'unicase/u32-tolower'.
42398         * modules/unicase/u32-tolower-tests: New file.
42399         * tests/unicase/test-u32-tolower.c: New file.
42400
42401         Tests for module 'unicase/u16-tolower'.
42402         * modules/unicase/u16-tolower-tests: New file.
42403         * tests/unicase/test-u16-tolower.c: New file.
42404
42405         Tests for module 'unicase/u8-tolower'.
42406         * modules/unicase/u8-tolower-tests: New file.
42407         * tests/unicase/test-u8-tolower.c: New file.
42408
42409         New module 'unicase/u32-tolower'.
42410         * lib/unicase/u32-tolower.c: New file.
42411         * modules/unicase/u32-tolower: New file.
42412
42413         New module 'unicase/u16-tolower'.
42414         * lib/unicase/u16-tolower.c: New file.
42415         * modules/unicase/u16-tolower: New file.
42416
42417         New module 'unicase/u8-tolower'.
42418         * lib/unicase/u8-tolower.c: New file.
42419         * modules/unicase/u8-tolower: New file.
42420
42421         Tests for module 'unicase/u32-toupper'.
42422         * modules/unicase/u32-toupper-tests: New file.
42423         * tests/unicase/test-u32-toupper.c: New file.
42424
42425         Tests for module 'unicase/u16-toupper'.
42426         * modules/unicase/u16-toupper-tests: New file.
42427         * tests/unicase/test-u16-toupper.c: New file.
42428
42429         Tests for module 'unicase/u8-toupper'.
42430         * modules/unicase/u8-toupper-tests: New file.
42431         * tests/unicase/test-u8-toupper.c: New file.
42432
42433         New module 'unicase/u32-toupper'.
42434         * lib/unicase/u32-toupper.c: New file.
42435         * modules/unicase/u32-toupper: New file.
42436
42437         New module 'unicase/u16-toupper'.
42438         * lib/unicase/u16-toupper.c: New file.
42439         * modules/unicase/u16-toupper: New file.
42440
42441         New module 'unicase/u8-toupper'.
42442         * lib/unicase/u8-toupper.c: New file.
42443         * modules/unicase/u8-toupper: New file.
42444
42445         New module 'unicase/u32-casemap'.
42446         * lib/unicase/u32-casemap.c: New file.
42447         * modules/unicase/u32-casemap: New file.
42448
42449         New module 'unicase/u16-casemap'.
42450         * lib/unicase/u16-casemap.c: New file.
42451         * modules/unicase/u16-casemap: New file.
42452
42453         New module 'unicase/u8-casemap'.
42454         * lib/unicase/unicasemap.h: New file.
42455         * lib/unicase/u8-casemap.c: New file.
42456         * lib/unicase/u-casemap.h: New file.
42457         * modules/unicase/u8-casemap: New file.
42458
42459         New module 'unicase/special-casing'.
42460         * lib/unicase/special-casing.h: New file.
42461         * lib/unicase/special-casing.c: New file.
42462         * lib/unicase/special-casing-table.gperf: New file, generated by
42463         gen-uni-tables.c.
42464         * modules/unicase/special-casing: New file.
42465
42466         Tests for module 'unicase/locale-language'.
42467         * modules/unicase/locale-language-tests: New file.
42468         * tests/unicase/test-locale-language.sh: New file.
42469         * tests/unicase/test-locale-language.c: New file.
42470
42471         New module 'unicase/locale-language'.
42472         * lib/unicase/locale-language.c: New file.
42473         * lib/unicase/locale-languages.gperf: New file.
42474         * modules/unicase/locale-language: New file.
42475
42476         Generate more tables for case conversion and case folding.
42477         * lib/gen-uni-tables.c (SCC_*): New enum items.
42478         (struct special_casing_rule): New type.
42479         (casing_rules, num_casing_rules, allocated_casing_rules): New
42480         variables.
42481         (add_casing_rule, fill_casing_rules): New functions.
42482         (struct casefold_rule): New type.
42483         (casefolding_rules, num_casefolding_rules,
42484         allocated_casefolding_rules): New variables.
42485         (fill_casefolding_rules): New function.
42486         (unicode_casefold): New variable.
42487         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
42488         sort_casing_rules, output_casing_rules): New functions.
42489         (main): Accept to more arguments: SpecialCasing.txt and
42490         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
42491         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
42492         Output mapping for casefolding.
42493
42494         * lib/unicase.h: Include stdbool.h, uninorm.h.
42495         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
42496         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
42497         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
42498         arguments.
42499         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
42500         resultp arguments.
42501         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
42502         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
42503         resultp arguments.
42504         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
42505         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
42506         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
42507         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
42508         declarations.
42509         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
42510
42511 2009-03-08  Bruno Haible  <bruno@clisp.org>
42512
42513         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42514         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
42515         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
42516         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42517
42518 2009-03-07  Bruno Haible  <bruno@clisp.org>
42519
42520         Adjust u*_normcmp, u*_normcoll API.
42521         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42522         u16_normcoll, u32_normcoll): Change failure conventions.
42523         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
42524         errno and return -1.
42525         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42526
42527 2009-03-07  Bruno Haible  <bruno@clisp.org>
42528
42529         Tests for module 'uninorm/u32-normcoll'.
42530         * modules/uninorm/u32-normcoll-tests: New file.
42531         * tests/uninorm/test-u32-normcoll.c: New file.
42532
42533         Tests for module 'uninorm/u16-normcoll'.
42534         * modules/uninorm/u16-normcoll-tests: New file.
42535         * tests/uninorm/test-u16-normcoll.c: New file.
42536
42537         Tests for module 'uninorm/u8-normcoll'.
42538         * modules/uninorm/u8-normcoll-tests: New file.
42539         * tests/uninorm/test-u8-normcoll.c: New file.
42540
42541 2009-03-07  Bruno Haible  <bruno@clisp.org>
42542
42543         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
42544         tests/uninorm/test-u32-normcmp.c.
42545         * tests/uninorm/test-u32-normcmp.c: Include it.
42546         (test_nonascii): New function, extracted from main. Add some more
42547         tests.
42548         (main): Invoke test_ascii and test_nonascii.
42549         * modules/uninorm/u32-normcmp-tests (Files): Add
42550         tests/uninorm/test-u32-normcmp.h.
42551         (Depends-on): Remove uninorm/u32-normcmp.
42552
42553         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
42554         tests/uninorm/test-u16-normcmp.c.
42555         * tests/uninorm/test-u16-normcmp.c: Include it.
42556         (test_nonascii): New function, extracted from main. Add some more
42557         tests.
42558         (main): Invoke test_ascii and test_nonascii.
42559         * modules/uninorm/u16-normcmp-tests (Files): Add
42560         tests/uninorm/test-u16-normcmp.h.
42561         (Depends-on): Remove uninorm/u16-normcmp.
42562
42563         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
42564         tests/uninorm/test-u8-normcmp.c.
42565         * tests/uninorm/test-u8-normcmp.c: Include it.
42566         (test_nonascii): New function, extracted from main. Add some more
42567         tests.
42568         (main): Invoke test_ascii and test_nonascii.
42569         * modules/uninorm/u8-normcmp-tests (Files): Add
42570         tests/uninorm/test-u8-normcmp.h.
42571         (Depends-on): Remove uninorm/u8-normcmp.
42572
42573 2009-03-07  Bruno Haible  <bruno@clisp.org>
42574
42575         New module 'uninorm/u32-normcoll'.
42576         * lib/uninorm/u32-normcoll.c: New file.
42577         * modules/uninorm/u32-normcoll: New file.
42578
42579         New module 'uninorm/u16-normcoll'.
42580         * lib/uninorm/u16-normcoll.c: New file.
42581         * modules/uninorm/u16-normcoll: New file.
42582
42583         New module 'uninorm/u8-normcoll'.
42584         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
42585         declarations.
42586         * lib/uninorm/u8-normcoll.c: New file.
42587         * lib/uninorm/u-normcoll.h: New file.
42588         * modules/uninorm/u8-normcoll: New file.
42589
42590         New module 'uninorm/u32-normxfrm'.
42591         * lib/uninorm/u32-normxfrm.c: New file.
42592         * modules/uninorm/u32-normxfrm: New file.
42593
42594         New module 'uninorm/u16-normxfrm'.
42595         * lib/uninorm/u16-normxfrm.c: New file.
42596         * modules/uninorm/u16-normxfrm: New file.
42597
42598         New module 'uninorm/u8-normxfrm'.
42599         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
42600         declarations.
42601         * lib/uninorm/u8-normxfrm.c: New file.
42602         * lib/uninorm/u-normxfrm.h: New file.
42603         * modules/uninorm/u8-normxfrm: New file.
42604
42605 2009-03-07  Bruno Haible  <bruno@clisp.org>
42606
42607         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
42608         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
42609         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
42610
42611 2009-03-07  Bruno Haible  <bruno@clisp.org>
42612
42613         New module 'memxfrm'.
42614         * lib/memxfrm.h: New file.
42615         * lib/memxfrm.c: New file.
42616         * modules/memxfrm: New file.
42617
42618 2009-03-07  Bruno Haible  <bruno@clisp.org>
42619
42620         New module 'memcmp2'.
42621         * lib/memcmp2.h: New file.
42622         * lib/memcmp2.c: New file.
42623         * modules/memcmp2: New file.
42624
42625 2009-03-07  Bruno Haible  <bruno@clisp.org>
42626
42627         Tests for module 'uninorm/decomposing-form'.
42628         * modules/uninorm/decomposing-form-tests: New file.
42629         * tests/uninorm/test-decomposing-form.c: New file.
42630
42631         New module 'uninorm/decomposing-form'.
42632         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
42633         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
42634         Add 'decomposing_variant' field.
42635         * lib/uninorm/decomposing-form.c: New file.
42636         * lib/uninorm/nfc.c (uninorm_nfc): Update.
42637         * lib/uninorm/nfd.c (uninorm_nfd): Update.
42638         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
42639         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
42640         * modules/uninorm/decomposing-form: New file.
42641         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
42642         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
42643
42644 2009-03-07  Bruno Haible  <bruno@clisp.org>
42645
42646         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
42647         strings.
42648
42649 2009-03-06  Bruno Haible  <bruno@clisp.org>
42650
42651         Tests for module 'uninorm/u32-normcmp'.
42652         * tests/uninorm/test-u32-normcmp.c: New file.
42653         * modules/uninorm/u32-normcmp-tests: New file.
42654
42655         Tests for module 'uninorm/u16-normcmp'.
42656         * tests/uninorm/test-u16-normcmp.c: New file.
42657         * modules/uninorm/u16-normcmp-tests: New file.
42658
42659         Tests for module 'uninorm/u8-normcmp'.
42660         * tests/uninorm/test-u8-normcmp.c: New file.
42661         * modules/uninorm/u8-normcmp-tests: New file.
42662
42663         New module 'uninorm/u32-normcmp'.
42664         * lib/uninorm/u32-normcmp.c: New file.
42665         * modules/uninorm/u32-normcmp: New file.
42666
42667         New module 'uninorm/u16-normcmp'.
42668         * lib/uninorm/u16-normcmp.c: New file.
42669         * modules/uninorm/u16-normcmp: New file.
42670
42671         New module 'uninorm/u8-normcmp'.
42672         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
42673         declarations.
42674         * lib/uninorm/u8-normcmp.c: New file.
42675         * lib/uninorm/u-normcmp.h: New file.
42676         * modules/uninorm/u8-normcmp: New file.
42677
42678 2009-03-06  Bruno Haible  <bruno@clisp.org>
42679
42680         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
42681         Reported by Eric Blake.
42682
42683 2009-03-06  Eric Blake  <ebb9@byu.net>
42684             Bruno Haible  <bruno@clisp.org>
42685
42686         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
42687         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
42688         condition.
42689         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42690         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
42691         condition.
42692         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42693
42694 2009-03-06  Eric Blake  <ebb9@byu.net>
42695
42696         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
42697         to avoid compiler warnings.
42698         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
42699
42700 2009-03-05  Bruno Haible  <bruno@clisp.org>
42701
42702         * tests/test-ftell.c (main): Disable test beyond end of file on
42703         FreeMiNT.
42704         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42705
42706 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
42707
42708         * lib/filevercmp.c: Move hidden files up in ordering.
42709         * tests/test-filevercmp.c: Add tests for hidden files.
42710
42711 2009-03-04  Bruno Haible  <bruno@clisp.org>
42712
42713         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
42714         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
42715         AM_CFLAGS.
42716         Reported by Simon Josefsson.
42717
42718 2009-03-03  Bruno Haible  <bruno@clisp.org>
42719
42720         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
42721         Reported by Simon Josefsson.
42722
42723         * doc/ld-version-script.texi: Update node reference.
42724
42725 2009-03-03  Bruno Haible  <bruno@clisp.org>
42726
42727         * modules/visibility (License): Change to 'unlimited'.
42728         Suggested by Simon Josefsson.
42729
42730 2009-03-03  Jim Meyering  <meyering@redhat.com>
42731
42732         unlinkdir: cannot_unlink_dir may modify process state
42733         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
42734         it's neither thread-safe nor appropriate for use in a library.
42735
42736 2009-03-03  Eric Blake  <ebb9@byu.net>
42737
42738         test-closein: silence test under Darwin
42739         * tests/test-closein.sh: Ignore stderr from cat, since we don't
42740         care if it dies from EPIPE or EBADF.
42741
42742 2009-03-03  Bruno Haible  <bruno@clisp.org>
42743
42744         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
42745         earlier.
42746         * doc/visibility.texi: Fix @node and @section.
42747
42748 2009-03-03  Simon Josefsson  <simon@josefsson.org>
42749
42750         * doc/gnulib.texi: Link to sections for ld version script and
42751         visibility.
42752         * doc/visibility.texi: Add @node and @section.
42753         * modules/ld-version-script: New module.
42754         * m4/ld-version-script.m4: New file.
42755         * doc/ld-version-script.texi: New file.
42756
42757 2009-03-02  David Lutterkort  <lutter@redhat.com>
42758
42759         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
42760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42761
42762 2009-03-02  Bruno Haible  <bruno@clisp.org>
42763
42764         * doc/visibility.texi: Mention libtool's -export-symbols option.
42765
42766 2009-03-02  Jim Meyering  <meyering@redhat.com>
42767
42768         announce-gen: new option: --no-print-checksums
42769         * build-aux/announce-gen (usage): Describe it.
42770         (print_checksums): Print a newline here, not in the [*] footnote.
42771         (main): Honor it.
42772
42773 2009-03-01  Bruno Haible  <bruno@clisp.org>
42774
42775         Use socklen_t in the native Windows replacements prototypes.
42776         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
42777         instead of 'int'.
42778         * lib/getsockopt.c (rpl_getsockopt): Likewise.
42779         * lib/setsockopt.c (rpl_setsockopt): Likewise.
42780         * modules/getsockopt (Depends-on): Add socklen.
42781         * modules/setsockopt (Depends-on): Add socklen.
42782
42783 2009-03-01  Bruno Haible  <bruno@clisp.org>
42784
42785         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
42786         least 4.2.
42787
42788 2009-03-01  Eric Blake  <ebb9@byu.net>
42789             Bruno Haible  <bruno@clisp.org>
42790
42791         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
42792         error messages.
42793         * lib/wait-process.c (wait_subprocess): Omit error message about
42794         deadly signal sent to the child of termsigp != NULL.
42795
42796 2009-03-01  Eric Blake  <ebb9@byu.net>
42797
42798         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
42799
42800 2009-03-01  Bruno Haible  <bruno@clisp.org>
42801
42802         Avoid a gcc warning.
42803         * tests/test-sched.c (b): Make global.
42804         Reported by Eric Blake.
42805
42806 2009-01-19  Martin Lambers  <marlam@marlam.de>
42807
42808         Provide POSIX semantics for socket timeout options on W32.
42809         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
42810         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
42811         * modules/setsockopt: Depend on sys_time module for struct timeval.
42812         * modules/getsockopt: Depend on sys_time module for struct timeval.
42813
42814 2009-03-01  Simon Josefsson  <simon@josefsson.org>
42815
42816         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
42817         __USE_GNU, for consistency with netdb.in.h.
42818         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42819
42820 2009-03-01  Bruno Haible  <bruno@clisp.org>
42821
42822         More support for FreeMiNT.
42823         * lib/fseeko.c (rpl_fseeko): Complete last commit.
42824         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42825
42826 2009-03-01  Bruno Haible  <bruno@clisp.org>
42827
42828         More support for FreeMiNT.
42829         * lib/fpurge.c (fpurge): Correct last commit.
42830         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42831
42832 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42833
42834         Fix unportable awk script in vc-list-files.
42835         * build-aux/vc-list-files: In the replacement awk script, use
42836         substr with a second argument of 1, not zero.
42837         Report by Simon Josefsson.
42838
42839 2009-02-28  Bruno Haible  <bruno@clisp.org>
42840
42841         More support for FreeMiNT.
42842         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
42843         to FreeMiNT today.
42844         * lib/fwriting.c (fwriting): Likewise.
42845         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
42846
42847 2009-02-28  Bruno Haible  <bruno@clisp.org>
42848
42849         * tests/test-freadseek.c (main): Disable test beyond end of file on
42850         FreeMiNT.
42851         * tests/test-ftello.c (main): Likewise.
42852         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42853
42854 2009-02-28  Bruno Haible  <bruno@clisp.org>
42855
42856         Add tentative support for FreeMiNT.
42857         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
42858         * lib/fpurge.c (fpurge): Likewise.
42859         * lib/freadable.c (freadable): Likewise.
42860         * lib/freading.c (freading): Likewise.
42861         * lib/freadptr.c (freadptr): Likewise.
42862         * lib/freadseek.c (freadptrinc): Likewise.
42863         * lib/fseeko.c (rpl_fseeko): Likewise.
42864         * lib/fseterr.c (fseterr): Likewise.
42865         * lib/fwritable.c (fwritable): Likewise.
42866         * lib/fwriting.c (fwriting): Likewise.
42867         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
42868         Hourihane.
42869         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42870
42871 2009-02-28  Bruno Haible  <bruno@clisp.org>
42872
42873         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
42874         SIGCHLD.
42875         Reported by Jim Meyering.
42876
42877 2009-02-28  Bruno Haible  <bruno@clisp.org>
42878
42879         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
42880         Mention the results of these tests on various platforms.
42881         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
42882         order.
42883         * doc/posix-functions/printf.texi: Likewise.
42884         * doc/posix-functions/snprintf.texi: Likewise.
42885         * doc/posix-functions/sprintf.texi: Likewise.
42886         * doc/posix-functions/vfprintf.texi: Likewise.
42887         * doc/posix-functions/vprintf.texi: Likewise.
42888         * doc/posix-functions/vsnprintf.texi: Likewise.
42889         * doc/posix-functions/vsprintf.texi: Likewise.
42890         * doc/glibc-functions/obstack_printf.texi: Likewise.
42891         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
42892
42893 2009-02-28  Bruno Haible  <bruno@clisp.org>
42894
42895         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
42896         Reported by Loïc Minier <lool@dooz.org>.
42897
42898 2009-02-27  Bruno Haible  <bruno@clisp.org>
42899
42900         * gnulib-tool (func_import): Make the sed expression used to create the
42901         sed script for updating the .gitignore file POSIX compliant.
42902         Reported by Eric Blake.
42903
42904 2009-02-27  Bruno Haible  <bruno@clisp.org>
42905
42906         * gnulib-tool (sed): Don't alias as "sed --posix".
42907         Reported by Eric Blake.
42908
42909 2009-02-27  Bruno Haible  <bruno@clisp.org>
42910
42911         Avoid test link errors.
42912         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
42913         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
42914         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
42915         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
42916         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42917
42918 2009-02-27  Bruno Haible  <bruno@clisp.org>
42919
42920         Avoid spurious "(cached)" in configure output.
42921         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
42922         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
42923         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42924         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42925         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42926         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
42927         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42928         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
42929         Reported by Eric Blake.
42930
42931 2009-02-27  Eric Blake  <ebb9@byu.net>
42932
42933         printf: fix regression in previous patch
42934         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
42935
42936 2009-02-27  Bruno Haible  <bruno@clisp.org>
42937
42938         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
42939         value.
42940         * lib/stdint.in.h: Likewise.
42941         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
42942
42943 2009-02-27  Eric Blake  <ebb9@byu.net>
42944
42945         doc: mention more functions added in cygwin 1.7.0
42946         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
42947         addition.
42948         * doc/posix-functions/open_wmemstream.texi: Likewise.
42949         * doc/posix-functions/wcsnlen.texi: Likewise.
42950         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42951         * doc/posix-functions/wcstod.texi: Likewise.
42952         * doc/posix-functions/wcstof.texi: Likewise.
42953         * doc/posix-functions/wcstoimax.texi: Likewise.
42954         * doc/posix-functions/wcstok.texi: Likewise.
42955         * doc/posix-functions/wcstoumax.texi: Likewise.
42956
42957         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
42958         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
42959         * doc/posix-functions/fprintf.texi: Update.
42960         * doc/posix-functions/printf.texi: Update.
42961         * doc/posix-functions/snprintf.texi: Update.
42962         * doc/posix-functions/sprintf.texi: Update.
42963         * doc/posix-functions/vfprintf.texi: Update.
42964         * doc/posix-functions/vprintf.texi: Update.
42965         * doc/posix-functions/vsnprintf.texi: Update.
42966         * doc/posix-functions/vsprintf.texi: Update.
42967         * doc/glibc-functions/obstack_printf.texi: Update.
42968         * doc/glibc-functions/obstack_vprintf.texi: Update.
42969
42970 2009-02-26  Eric Blake  <ebb9@byu.net>
42971
42972         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
42973         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
42974         compilation bug by using runtime conversion.
42975         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
42976         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
42977         * modules/ceill-tests (Files): Use nan.h.
42978         * modules/floorl-tests (Files): Likewise.
42979         * modules/frexpl-tests (Files): Likewise.
42980         * modules/isnanl-tests (Files): Likewise.
42981         * modules/ldexpl-tests (Files): Likewise.
42982         * modules/roundl-tests (Files): Likewise.
42983         * modules/truncl-tests (Files): Likewise.
42984         * tests/test-ceill.c (main): Use a working NaN.
42985         * tests/test-floorl.c (main): Likewise.
42986         * tests/test-frexpl.c (main): Likewise.
42987         * tests/test-isnan.c (test_long_double): Likewise.
42988         * tests/test-isnanl.h (main): Likewise.
42989         * tests/test-ldexpl.h (main): Likewise.
42990         * tests/test-roundl.h (main): Likewise.
42991         * tests/test-truncl.h (main): Likewise.
42992         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
42993
42994 2009-02-26  Eric Blake  <ebb9@byu.net>
42995             Bruno Haible  <bruno@clisp.org>
42996
42997         Work around a *printf bug with %ls on Solaris.
42998         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
42999         precision is specified, sprintf stops converting the wide string
43000         argument when the number of bytes that have been produced by this
43001         conversion equals or exceeds the precision.
43002         * doc/posix-functions/fprintf.texi: Update.
43003         * doc/posix-functions/printf.texi: Update.
43004         * doc/posix-functions/snprintf.texi: Update.
43005         * doc/posix-functions/sprintf.texi: Update.
43006         * doc/posix-functions/vfprintf.texi: Update.
43007         * doc/posix-functions/vprintf.texi: Update.
43008         * doc/posix-functions/vsnprintf.texi: Update.
43009         * doc/posix-functions/vsprintf.texi: Update.
43010         * doc/glibc-functions/obstack_printf.texi: Update.
43011         * doc/glibc-functions/obstack_vprintf.texi: Update.
43012
43013 2009-02-26  Eric Blake  <ebb9@byu.net>
43014
43015         stdlib: favor compiler check of random.h
43016         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
43017         to avoid an ObjC random.h installed by Swarm.
43018
43019 2009-02-26  Bruno Haible  <bruno@clisp.org>
43020
43021         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
43022         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
43023         Reported by Gary V. Vaughan <gary@gnu.org>.
43024
43025 2009-02-26  Bruno Haible  <bruno@clisp.org>
43026
43027         Fix *printf behaviour regarding the %ls directive.
43028         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
43029         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
43030         NEED_PRINTF_DIRECTIVE_LS.
43031         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
43032         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43033         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43034         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
43035         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
43036         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
43037         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43038         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43039         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43040         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43041         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43042         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
43043         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43044         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43045         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43046         * doc/posix-functions/fprintf.texi: Update.
43047         * doc/posix-functions/printf.texi: Update.
43048         * doc/posix-functions/snprintf.texi: Update.
43049         * doc/posix-functions/sprintf.texi: Update.
43050         * doc/posix-functions/vfprintf.texi: Update.
43051         * doc/posix-functions/vprintf.texi: Update.
43052         * doc/posix-functions/vsnprintf.texi: Update.
43053         * doc/posix-functions/vsprintf.texi: Update.
43054         * doc/glibc-functions/obstack_printf.texi: Update.
43055         * doc/glibc-functions/obstack_vprintf.texi: Update.
43056         Reported by Eric Blake.
43057
43058 2009-02-25  Bruno Haible  <bruno@clisp.org>
43059
43060         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
43061         with known value.
43062         Reported by Gary V. Vaughan <gary@gnu.org>.
43063
43064 2009-02-25  Bruno Haible  <bruno@clisp.org>
43065
43066         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
43067         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
43068         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
43069         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
43070         Reported by Gary V. Vaughan <gary@gnu.org>.
43071
43072 2009-02-25  Bruno Haible  <bruno@clisp.org>
43073
43074         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
43075         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
43076         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
43077         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
43078         Reported by Gary V. Vaughan <gary@gnu.org>.
43079
43080 2009-02-25  Eric Blake  <ebb9@byu.net>
43081
43082         tests: skip fseek/ftell tests if ungetc is broken
43083         * m4/ungetc.m4: New file.
43084         * modules/fseek-tests: Split test, so ungetc dependency is
43085         separate from rest of test.
43086         * modules/fseeko-tests: Likewise.
43087         * modules/ftell-tests: Likewise.
43088         * modules/ftello-tests: Likewise.
43089         * tests/test-fseek.c (main): Isolate ungetc dependency.
43090         * tests/test-fseeko.c (main): Likewise.
43091         * tests/test-ftell.c (main): Likewise.
43092         * tests/test-ftello.c (main): Likewise.
43093         * tests/test-fseek2.sh: New file.
43094         * tests/test-fseeko2.sh: Likewise.
43095         * tests/test-ftell2.sh: Likewise.
43096         * tests/test-ftello2.sh: Likewise.
43097
43098 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
43099
43100         test-getaddrinfo: fix usage of skip return code 77
43101         * tests/test-gettaddrinfo.c: Return skip code 77 only
43102         for first occurance of skip (4x77 is not 77)
43103
43104 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
43105
43106         strtod: avoid C99 decl-after-statement
43107         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
43108
43109 2009-02-24  Eric Blake  <ebb9@byu.net>
43110
43111         strtod: detect HP-UX 11.31 bug
43112         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
43113         Reported by Gary V. Vaughan.
43114
43115 2009-02-23  Bruno Haible  <bruno@clisp.org>
43116
43117         Fix invalid read past end of memory block.
43118         * lib/vasnprintf.c (DCHAR_SET): Define.
43119         (local_wcslen): Define only when needed.
43120         (local_strnlen, local_wcsnlen): New functions.
43121         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
43122         directives that involve a conversion ourselves.
43123         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
43124         wcsnlen, mbrtowc, wcrtomb.
43125         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
43126         * tests/test-vasprintf-posix.c (test_function): Likewise.
43127         * tests/test-snprintf-posix.h (test_function): Likewise.
43128         * tests/test-sprintf-posix.h (test_function): Likewise.
43129         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43130
43131 2009-02-22  Bruno Haible  <bruno@clisp.org>
43132
43133         Implement new clarified decomposition of Hangul syllables.
43134         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
43135         of type LTV, return only a pairwise decomposition.
43136         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
43137         Likewise.
43138         * tests/uninorm/test-decomposition.c (main): Updated expected result.
43139         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
43140         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
43141
43142 2009-02-22  Bruno Haible  <bruno@clisp.org>
43143
43144         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
43145         zero-length results and shrink excess allocated memory.
43146         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
43147         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
43148         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
43149         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
43150         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
43151         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
43152         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
43153         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
43154         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
43155         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
43156         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
43157         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
43158
43159 2009-02-21  Bruno Haible  <bruno@clisp.org>
43160
43161         * doc/gnulib.texi: Include safe-alloc.texi earlier.
43162         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
43163         spaces after a period. Put a space between a macro name and its
43164         argument list. Trivial rewordings.
43165         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
43166         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
43167         (main): Return 0 explicitly.
43168
43169 2009-02-21  Bruno Haible  <bruno@clisp.org>
43170
43171         Tests for module 'uninorm/filter'.
43172         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
43173         * modules/uninorm/filter-tests: New file.
43174
43175         New module 'uninorm/filter'.
43176         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
43177         uninorm_filter_flush, uninorm_filter_free): New declarations.
43178         * lib/uninorm/uninorm-filter.c: New file.
43179         * modules/uninorm/filter: New file.
43180
43181 2009-02-21  Bruno Haible  <bruno@clisp.org>
43182
43183         Tests for module 'uninorm/nfkc'.
43184         * tests/uninorm/test-nfkc.c: New file.
43185         * tests/uninorm/test-u8-nfkc.c: New file.
43186         * tests/uninorm/test-u16-nfkc.c: New file.
43187         * tests/uninorm/test-u32-nfkc.c: New file.
43188         * tests/uninorm/test-u32-nfkc-big.sh: New file.
43189         * tests/uninorm/test-u32-nfkc-big.c: New file.
43190         * modules/uninorm/nfkc-tests: New file.
43191
43192         New module 'uninorm/nfkc'.
43193         * lib/uninorm/nfkc.c: New file.
43194         * modules/uninorm/nfkc: New file.
43195
43196         Tests for module 'uninorm/nfkd'.
43197         * tests/uninorm/test-nfkd.c: New file.
43198         * tests/uninorm/test-u8-nfkd.c: New file.
43199         * tests/uninorm/test-u16-nfkd.c: New file.
43200         * tests/uninorm/test-u32-nfkd.c: New file.
43201         * tests/uninorm/test-u32-nfkd-big.sh: New file.
43202         * tests/uninorm/test-u32-nfkd-big.c: New file.
43203         * modules/uninorm/nfkd-tests: New file.
43204
43205         New module 'uninorm/nfkd'.
43206         * lib/uninorm/nfkd.c: New file.
43207         * modules/uninorm/nfkd: New file.
43208
43209         Tests for module 'uninorm/nfc'.
43210         * tests/uninorm/test-nfc.c: New file.
43211         * tests/uninorm/test-u8-nfc.c: New file.
43212         * tests/uninorm/test-u16-nfc.c: New file.
43213         * tests/uninorm/test-u32-nfc.c: New file.
43214         * tests/uninorm/test-u32-nfc-big.sh: New file.
43215         * tests/uninorm/test-u32-nfc-big.c: New file.
43216         * modules/uninorm/nfc-tests: New file.
43217
43218         New module 'uninorm/nfc'.
43219         * lib/uninorm/nfc.c: New file.
43220         * modules/uninorm/nfc: New file.
43221
43222         Tests for module 'uninorm/nfd'.
43223         * tests/uninorm/test-nfd.c: New file.
43224         * tests/uninorm/test-u8-nfd.c: New file.
43225         * tests/uninorm/test-u16-nfd.c: New file.
43226         * tests/uninorm/test-u32-nfd.c: New file.
43227         * tests/uninorm/test-u32-nfd-big.sh: New file.
43228         * tests/uninorm/test-u32-nfd-big.c: New file.
43229         * tests/uninorm/test-u32-normalize-big.h: New file.
43230         * tests/uninorm/test-u32-normalize-big.c: New file.
43231         * tests/uninorm/NormalizationTest.txt: New file, created from
43232         Unicode 5.1.0 NormalizationTest.txt.
43233         * modules/uninorm/nfd-tests: New file.
43234
43235         New module 'uninorm/nfd'.
43236         * lib/uninorm/nfd.c: New file.
43237         * modules/uninorm/nfd: New file.
43238
43239         New module 'uninorm/u32-normalize'.
43240         * lib/uninorm/u32-normalize.c: New file.
43241         * modules/uninorm/u32-normalize: New file.
43242
43243         New module 'uninorm/u16-normalize'.
43244         * lib/uninorm/u16-normalize.c: New file.
43245         * modules/uninorm/u16-normalize: New file.
43246
43247         New module 'uninorm/u8-normalize'.
43248         * lib/uninorm/u8-normalize.c: New file.
43249         * lib/uninorm/normalize-internal.h: New file.
43250         * lib/uninorm/u-normalize-internal.h: New file.
43251         * modules/uninorm/u8-normalize: New file.
43252
43253         New module 'uninorm/decompose-internal'.
43254         * lib/uninorm/decompose-internal.c: New file.
43255         * modules/uninorm/decompose-internal: New file.
43256
43257         Tests for module 'uninorm/composition'.
43258         * tests/uninorm/test-composition.c: New file.
43259         * modules/uninorm/composition-tests: New file.
43260
43261         New module 'uninorm/composition'.
43262         * lib/uninorm/composition.c: New file.
43263         * lib/uninorm/composition-table.gperf: New file, generated by
43264         gen-uni-tables.
43265         * modules/uninorm/composition: New file.
43266
43267         Tests for module 'uninorm/compat-decomposition'.
43268         * tests/uninorm/test-compat-decomposition.c: New file.
43269         * modules/uninorm/compat-decomposition-tests: New file.
43270
43271         New module 'uninorm/compat-decomposition'.
43272         * lib/uninorm/decompose-internal.h: New file.
43273         * lib/uninorm/compat-decomposition.c: New file.
43274         * modules/uninorm/compat-decomposition: New file.
43275
43276         Tests for module 'uninorm/canonical-decomposition'.
43277         * tests/uninorm/test-canonical-decomposition.c: New file.
43278         * modules/uninorm/canonical-decomposition-tests: New file.
43279
43280         New module 'uninorm/canonical-decomposition'.
43281         * lib/uninorm/canonical-decomposition.c: New file.
43282         * modules/uninorm/canonical-decomposition: New file.
43283
43284         Tests for module 'uninorm/decomposition'.
43285         * tests/uninorm/test-decomposition.c: New file.
43286         * modules/uninorm/decomposition-tests: New file.
43287
43288         New module 'uninorm/decomposition'.
43289         * lib/uninorm/decomposition.c: New file.
43290         * modules/uninorm/decomposition: New file.
43291
43292         New module 'uninorm/decomposition-table'.
43293         * lib/uninorm/decomposition-table.h: New file.
43294         * lib/uninorm/decomposition-table.c: New file.
43295         * lib/uninorm/decomposition-table1.h: New file, generated by
43296         gen-uni-tables.
43297         * lib/uninorm/decomposition-table2.h: New file, generated by
43298         gen-uni-tables.
43299         * modules/uninorm/decomposition-table: New file.
43300
43301         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
43302         (UC_DECOMP_*): New enumeration items.
43303         (get_decomposition): New function.
43304         (struct decomp_table): New type.
43305         (output_decomposition, output_decomposition_tables): New functions.
43306         (unicode_composition_exclusions): New variable.
43307         (fill_composition_exclusions, debug_output_composition_tables): New
43308         functions.
43309         (main): Accept one more argument. Invoke fill_composition_exclusions.
43310         Output decomposition and composition tables.
43311
43312         New module 'uninorm/base'.
43313         * lib/uninorm.h: New file.
43314         * lib/unictype.h: Update comment.
43315         * modules/uninorm/base: New file.
43316
43317 2009-02-21  David Lutterkort  <lutter@redhat.com>
43318
43319         Tests for module 'safe-alloc'.
43320         * tests/test-safe-alloc.c: New file.
43321         * modules/safe-alloc-tests: New file.
43322
43323         New module 'safe-alloc'.
43324         * lib/safe-alloc.h: New file.
43325         * lib/safe-alloc.c: New file.
43326         * m4/safe-alloc.m4: New file.
43327         * modules/safe-alloc: New file.
43328         * doc/safe-alloc.texi: New file.
43329         * doc/gnulib.texi: Include it.
43330         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
43331         safe-alloc.
43332
43333 2009-02-18  Bruno Haible  <bruno@clisp.org>
43334
43335         Fix link error on non-glibc systems.
43336         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
43337         variable.
43338         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43339
43340 2009-02-18  Jim Meyering  <meyering@redhat.com>
43341
43342         fts: avoid used-uninitialized error due to recent change
43343         * lib/fts.c (fts_read): Guard uses of the new member,
43344         parent->fts_n_dirs_remaining, since it's not relevant for
43345         the parent of a directory specified on the command-line.
43346
43347 2009-02-17  James Youngman  <jay@gnu.org>
43348             Bruno Haible  <bruno@clisp.org>
43349
43350         * m4/include_next.m4: Reformulate comment.
43351
43352 2009-02-16  Jim Meyering  <meyering@redhat.com>
43353
43354         fts: add #if guards so that the fts_lgpl module still builds
43355         * lib/fts.c: Guard just-added hash-table-using parts with
43356         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
43357         Reported by Simon Josefsson.
43358
43359 2009-02-15  Bruno Haible  <bruno@clisp.org>
43360
43361         * modules/array-mergesort-tests: New file.
43362         * tests/test-array-mergesort.c: New file.
43363
43364         New module 'array-mergesort'.
43365         * modules/array-mergesort: New file.
43366         * lib/array-mergesort.h: New file.
43367
43368 2009-02-15  Bruno Haible  <bruno@clisp.org>
43369
43370         Fix 2009-02-07 commit.
43371         * lib/gen-uni-tables.c (output_predicate, output_category,
43372         output_combclass, output_bidi_category, output_decimal_digit,
43373         output_digit, output_numeric, output_mirror, output_scripts,
43374         output_ident_category, output_simple_mapping): Fix format directives.
43375         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
43376
43377 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
43378
43379         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
43380         fixes are available from IBM.
43381
43382 2009-02-13  Jim Meyering  <meyering@redhat.com>
43383
43384         fts: arrange not to stat non-directories in more cases
43385         This makes GNU find (when it doesn't need to stat each file)
43386         *much* more efficient at traversing reiserfs file systems.
43387         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
43388         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
43389         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
43390         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
43391         (leaf_optimization_applies): New function.
43392         (LCO_hash, LCO_compare): New helper functions.
43393         (link_count_optimize_ok): New function.
43394         (fts_stat): Initialize new member (if dir).
43395         (fts_read): Decrement parent's fts_n_dirs_remaining count if
43396         we've just stat'ed a directory.  Skip the stat call when possible.
43397         ---
43398         Note this AFS-related exchange:
43399         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
43400         and note find's pioctl call in find/fstype.c.
43401         But that is necessary only if you want to enable the
43402         optimization for AFS, and for now, I don't.
43403
43404         fts: move a function definition "up" (no semantic change)
43405         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
43406         "up" to precede upcoming use of a related function.
43407
43408 2009-02-11  Jim Meyering  <meyering@redhat.com>
43409
43410         fts: correct internal computation of nlinks (optimization-related)
43411         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
43412         whether the current entry is a directory, so don't test it.
43413
43414 2009-02-10  Bruno Haible  <bruno@clisp.org>
43415
43416         Tests for module 'uniwbrk/ulc-wordbreaks'.
43417         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
43418         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
43419         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
43420
43421         Tests for module 'uniwbrk/u32-wordbreaks'.
43422         * modules/uniwbrk/u32-wordbreaks-tests: New file.
43423         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
43424
43425         Tests for module 'uniwbrk/u16-wordbreaks'.
43426         * modules/uniwbrk/u16-wordbreaks-tests: New file.
43427         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
43428
43429         Tests for module 'uniwbrk/u8-wordbreaks'.
43430         * modules/uniwbrk/u8-wordbreaks-tests: New file.
43431         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
43432
43433 2009-02-10  Bruno Haible  <bruno@clisp.org>
43434
43435         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
43436         property.
43437         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
43438         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
43439         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
43440
43441 2009-02-10  Simon Josefsson  <simon@josefsson.org>
43442
43443         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
43444         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
43445
43446 2009-02-10  Bruno Haible  <bruno@clisp.org>
43447
43448         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
43449         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
43450         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
43451         * lib/unilbrk/u8-possible-linebreaks.c: Update.
43452         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
43453         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
43454
43455 2009-02-09  Simon Josefsson  <simon@josefsson.org>
43456
43457         * lib/sockets.h (gl_fd_to_handle): New function.
43458
43459         * tests/test-sockets.c: Call gl_fd_to_handle.
43460
43461 2009-02-09  Bruno Haible  <bruno@clisp.org>
43462
43463         * doc/havelib.texi: Document the conventions on bi-arch systems.
43464
43465 2009-02-08  Bruno Haible  <bruno@clisp.org>
43466
43467         Document the AC_LIB_LINKFLAGS macro.
43468         * doc/havelib.texi: New file, mostly written on 2005-05-24.
43469         * doc/gnulib.texi: Include it.
43470
43471 2009-02-08  Bruno Haible  <bruno@clisp.org>
43472
43473         Fix wrong order of sections, compared to TOC.
43474         * doc/gnulib.texi: Include relocatable-maint.texi after the
43475         "Regular expressions" node, not before.
43476
43477 2009-02-08  Bruno Haible  <bruno@clisp.org>
43478
43479         Tests for module 'unicase/totitle'.
43480         * modules/unicase/totitle-tests: New file.
43481
43482         Tests for module 'unicase/tolower'.
43483         * modules/unicase/tolower-tests: New file.
43484
43485         Tests for module 'unicase/toupper'.
43486         * modules/unicase/toupper-tests: New file.
43487         * tests/unicase/test-mapping-part1.h: New file.
43488         * tests/unicase/test-mapping-part2.h: New file.
43489
43490         New module 'unicase/totitle'.
43491         * modules/unicase/totitle: New file.
43492         * lib/unicase/totitle.c: New file.
43493
43494         New module 'unicase/tolower'.
43495         * modules/unicase/tolower: New file.
43496         * lib/unicase/tolower.c: New file.
43497
43498         New module 'unicase/toupper'.
43499         * modules/unicase/toupper: New file.
43500         * lib/unicase/toupper.c: New file.
43501         * lib/unicase/simple-mapping.h: New file.
43502
43503         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
43504         (mapping_table): New structure.
43505         (output_simple_mapping): New function.
43506         (main): Invoke output_simple_mapping_test and output_simple_mapping.
43507         * modules/gen-uni-tables (Description): Update.
43508         * lib/unicase/toupper.h: New file, automatically generated by
43509         gen-uni-tables.
43510         * lib/unicase/tolower.h: New file, automatically generated by
43511         gen-uni-tables.
43512         * lib/unicase/totitle.h: New file, automatically generated by
43513         gen-uni-tables.
43514         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
43515         gen-uni-tables.
43516         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
43517         gen-uni-tables.
43518         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
43519         gen-uni-tables.
43520
43521         New module 'unicase/base'.
43522         * modules/unicase/base: New file.
43523         * lib/unicase.h: New file.
43524
43525 2009-02-08  Bruno Haible  <bruno@clisp.org>
43526
43527         New module 'uniwbrk/ulc-wordbreaks'.
43528         * modules/uniwbrk/ulc-wordbreaks: New file.
43529         * lib/uniwbrk/ulc-wordbreaks.c: New file.
43530
43531         New module 'uniwbrk/u32-wordbreaks'.
43532         * modules/uniwbrk/u32-wordbreaks: New file.
43533         * lib/uniwbrk/u32-wordbreaks.c: New file.
43534
43535         New module 'uniwbrk/u16-wordbreaks'.
43536         * modules/uniwbrk/u16-wordbreaks: New file.
43537         * lib/uniwbrk/u16-wordbreaks.c: New file.
43538
43539         New module 'uniwbrk/u8-wordbreaks'.
43540         * modules/uniwbrk/u8-wordbreaks: New file.
43541         * lib/uniwbrk/u8-wordbreaks.c: New file.
43542         * lib/uniwbrk/u-wordbreaks.h: New file.
43543
43544         New module 'uniwbrk/table'.
43545         * modules/uniwbrk/table: New file.
43546         * lib/uniwbrk/wbrktable.h: New file.
43547         * lib/uniwbrk/wbrktable.c: New file.
43548
43549         New module 'uniwbrk/wordbreak-property'.
43550         * modules/uniwbrk/wordbreak-property: New file.
43551         * lib/uniwbrk/wordbreak-property.c: New file.
43552
43553         * lib/gen-uni-tables.c (WBP_*): New enum items.
43554         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
43555         (unicode_org_wbp): New variable.
43556         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
43557         New functions.
43558         (wbp_table): New structure.
43559         (output_wbp, output_wbrk_tables): New functions.
43560         (main): Accept additional argument. Invoke fill_org_wbp,
43561         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
43562         output_wbrk_tables.
43563         * modules/gen-uni-tables (Description): Update.
43564         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
43565         gen-uni-tables.
43566
43567         New module 'uniwbrk/base'.
43568         * modules/uniwbrk/base: New file.
43569         * lib/uniwbrk.h: New file.
43570
43571 2009-02-08  Bruno Haible  <bruno@clisp.org>
43572
43573         Update to Unicode 5.1.0.
43574         * lib/gen-uni-tables.c (is_property_alphabetic): Include
43575         U+2185..U+2188.
43576         (is_property_default_ignorable_code_point): Don't include characters
43577         of category Cc or Cs and not-a-characters.
43578         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
43579         U+0D79, U+109E, U+109F, U+A60C.
43580         * lib/unictype/bidi_of.h: Regenerated.
43581         * lib/unictype/blocks.h: Regenerated.
43582         * lib/unictype/categ_C.h: Regenerated.
43583         * lib/unictype/categ_Cf.h: Regenerated.
43584         * lib/unictype/categ_Cn.h: Regenerated.
43585         * lib/unictype/categ_L.h: Regenerated.
43586         * lib/unictype/categ_Ll.h: Regenerated.
43587         * lib/unictype/categ_Lm.h: Regenerated.
43588         * lib/unictype/categ_Lo.h: Regenerated.
43589         * lib/unictype/categ_Lu.h: Regenerated.
43590         * lib/unictype/categ_M.h: Regenerated.
43591         * lib/unictype/categ_Mc.h: Regenerated.
43592         * lib/unictype/categ_Me.h: Regenerated.
43593         * lib/unictype/categ_Mn.h: Regenerated.
43594         * lib/unictype/categ_N.h: Regenerated.
43595         * lib/unictype/categ_Nd.h: Regenerated.
43596         * lib/unictype/categ_Nl.h: Regenerated.
43597         * lib/unictype/categ_No.h: Regenerated.
43598         * lib/unictype/categ_P.h: Regenerated.
43599         * lib/unictype/categ_Pd.h: Regenerated.
43600         * lib/unictype/categ_Pe.h: Regenerated.
43601         * lib/unictype/categ_Pf.h: Regenerated.
43602         * lib/unictype/categ_Pi.h: Regenerated.
43603         * lib/unictype/categ_Po.h: Regenerated.
43604         * lib/unictype/categ_Ps.h: Regenerated.
43605         * lib/unictype/categ_S.h: Regenerated.
43606         * lib/unictype/categ_Sk.h: Regenerated.
43607         * lib/unictype/categ_Sm.h: Regenerated.
43608         * lib/unictype/categ_So.h: Regenerated.
43609         * lib/unictype/categ_of.h: Regenerated.
43610         * lib/unictype/combining.h: Regenerated.
43611         * lib/unictype/ctype_alnum.h: Regenerated.
43612         * lib/unictype/ctype_alpha.h: Regenerated.
43613         * lib/unictype/ctype_graph.h: Regenerated.
43614         * lib/unictype/ctype_lower.h: Regenerated.
43615         * lib/unictype/ctype_print.h: Regenerated.
43616         * lib/unictype/ctype_punct.h: Regenerated.
43617         * lib/unictype/ctype_upper.h: Regenerated.
43618         * lib/unictype/decdigit.h: Regenerated.
43619         * lib/unictype/digit.h: Regenerated.
43620         * lib/unictype/mirror.h: Regenerated.
43621         * lib/unictype/numeric.h: Regenerated.
43622         * lib/unictype/pr_alphabetic.h: Regenerated.
43623         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
43624         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
43625         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
43626         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
43627         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
43628         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
43629         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
43630         * lib/unictype/pr_combining.h: Regenerated.
43631         * lib/unictype/pr_dash.h: Regenerated.
43632         * lib/unictype/pr_decimal_digit.h: Regenerated.
43633         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
43634         * lib/unictype/pr_deprecated.h: Regenerated.
43635         * lib/unictype/pr_diacritic.h: Regenerated.
43636         * lib/unictype/pr_extender.h: Regenerated.
43637         * lib/unictype/pr_format_control.h: Regenerated.
43638         * lib/unictype/pr_grapheme_base.h: Regenerated.
43639         * lib/unictype/pr_grapheme_extend.h: Regenerated.
43640         * lib/unictype/pr_grapheme_link.h: Regenerated.
43641         * lib/unictype/pr_id_continue.h: Regenerated.
43642         * lib/unictype/pr_id_start.h: Regenerated.
43643         * lib/unictype/pr_ideographic.h: Regenerated.
43644         * lib/unictype/pr_ignorable_control.h: Regenerated.
43645         * lib/unictype/pr_lowercase.h: Regenerated.
43646         * lib/unictype/pr_math.h: Regenerated.
43647         * lib/unictype/pr_numeric.h: Regenerated.
43648         * lib/unictype/pr_other_alphabetic.h: Regenerated.
43649         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
43650         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
43651         * lib/unictype/pr_other_id_continue.h: Regenerated.
43652         * lib/unictype/pr_other_lowercase.h: Regenerated.
43653         * lib/unictype/pr_other_math.h: Regenerated.
43654         * lib/unictype/pr_punctuation.h: Regenerated.
43655         * lib/unictype/pr_sentence_terminal.h: Regenerated.
43656         * lib/unictype/pr_soft_dotted.h: Regenerated.
43657         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
43658         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
43659         * lib/unictype/pr_unified_ideograph.h: Regenerated.
43660         * lib/unictype/pr_uppercase.h: Regenerated.
43661         * lib/unictype/pr_xid_continue.h: Regenerated.
43662         * lib/unictype/pr_xid_start.h: Regenerated.
43663         * lib/unictype/pr_zero_width.h: Regenerated.
43664         * lib/unictype/scripts.h: Regenerated.
43665         * lib/unictype/scripts_byname.gperf: Regenerated.
43666         * lib/unictype/sy_java_ident.h: Regenerated.
43667         * lib/unilbrk/lbrkprop1.h: Regenerated.
43668         * lib/unilbrk/lbrkprop2.h: Regenerated.
43669         * tests/unictype/test-categ_C.c: Regenerated.
43670         * tests/unictype/test-categ_Cf.c: Regenerated.
43671         * tests/unictype/test-categ_Cn.c: Regenerated.
43672         * tests/unictype/test-categ_L.c: Regenerated.
43673         * tests/unictype/test-categ_Ll.c: Regenerated.
43674         * tests/unictype/test-categ_Lm.c: Regenerated.
43675         * tests/unictype/test-categ_Lo.c: Regenerated.
43676         * tests/unictype/test-categ_Lu.c: Regenerated.
43677         * tests/unictype/test-categ_M.c: Regenerated.
43678         * tests/unictype/test-categ_Mc.c: Regenerated.
43679         * tests/unictype/test-categ_Me.c: Regenerated.
43680         * tests/unictype/test-categ_Mn.c: Regenerated.
43681         * tests/unictype/test-categ_N.c: Regenerated.
43682         * tests/unictype/test-categ_Nd.c: Regenerated.
43683         * tests/unictype/test-categ_Nl.c: Regenerated.
43684         * tests/unictype/test-categ_No.c: Regenerated.
43685         * tests/unictype/test-categ_P.c: Regenerated.
43686         * tests/unictype/test-categ_Pd.c: Regenerated.
43687         * tests/unictype/test-categ_Pe.c: Regenerated.
43688         * tests/unictype/test-categ_Pf.c: Regenerated.
43689         * tests/unictype/test-categ_Pi.c: Regenerated.
43690         * tests/unictype/test-categ_Po.c: Regenerated.
43691         * tests/unictype/test-categ_Ps.c: Regenerated.
43692         * tests/unictype/test-categ_S.c: Regenerated.
43693         * tests/unictype/test-categ_Sk.c: Regenerated.
43694         * tests/unictype/test-categ_Sm.c: Regenerated.
43695         * tests/unictype/test-categ_So.c: Regenerated.
43696         * tests/unictype/test-ctype_alnum.c: Regenerated.
43697         * tests/unictype/test-ctype_alpha.c: Regenerated.
43698         * tests/unictype/test-ctype_graph.c: Regenerated.
43699         * tests/unictype/test-ctype_lower.c: Regenerated.
43700         * tests/unictype/test-ctype_print.c: Regenerated.
43701         * tests/unictype/test-ctype_punct.c: Regenerated.
43702         * tests/unictype/test-ctype_upper.c: Regenerated.
43703         * tests/unictype/test-decdigit.h: Regenerated.
43704         * tests/unictype/test-digit.h: Regenerated.
43705         * tests/unictype/test-numeric.h: Regenerated.
43706         * tests/unictype/test-pr_alphabetic.c: Regenerated.
43707         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
43708         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
43709         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
43710         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
43711         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
43712         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
43713         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
43714         * tests/unictype/test-pr_combining.c: Regenerated.
43715         * tests/unictype/test-pr_dash.c: Regenerated.
43716         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
43717         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
43718         * tests/unictype/test-pr_deprecated.c: Regenerated.
43719         * tests/unictype/test-pr_diacritic.c: Regenerated.
43720         * tests/unictype/test-pr_extender.c: Regenerated.
43721         * tests/unictype/test-pr_format_control.c: Regenerated.
43722         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
43723         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
43724         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
43725         * tests/unictype/test-pr_id_continue.c: Regenerated.
43726         * tests/unictype/test-pr_id_start.c: Regenerated.
43727         * tests/unictype/test-pr_ideographic.c: Regenerated.
43728         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
43729         * tests/unictype/test-pr_lowercase.c: Regenerated.
43730         * tests/unictype/test-pr_math.c: Regenerated.
43731         * tests/unictype/test-pr_numeric.c: Regenerated.
43732         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
43733         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
43734         Regenerated.
43735         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
43736         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
43737         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
43738         * tests/unictype/test-pr_other_math.c: Regenerated.
43739         * tests/unictype/test-pr_punctuation.c: Regenerated.
43740         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
43741         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
43742         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
43743         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
43744         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
43745         * tests/unictype/test-pr_uppercase.c: Regenerated.
43746         * tests/unictype/test-pr_xid_continue.c: Regenerated.
43747         * tests/unictype/test-pr_xid_start.c: Regenerated.
43748         * tests/unictype/test-pr_zero_width.c: Regenerated.
43749
43750         Update to Unicode 5.1.0.
43751         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
43752         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
43753         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
43754         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
43755         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
43756         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
43757         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
43758         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
43759         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
43760         (nonspacing_table_ind): Update.
43761         * tests/uniwidth/test-uc_width2.sh: Update expected result.
43762
43763         Update to Unicode 5.1.0.
43764         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
43765         code transform.
43766         * lib/uniname/uniname.c (unicode_character_name,
43767         unicode_name_character): Add the range 0x1Fxxx to the code transform.
43768         * lib/uniname/uninames.h: Regenerated.
43769         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
43770
43771 2009-02-07  Bruno Haible  <bruno@clisp.org>
43772
43773         Merge gen-ctype and gen-lbrk into a single program.
43774         * lib/gen-uni-tables.c: New file, incorporating
43775         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
43776         Add directory prefixes to the names of the generated files.
43777         * lib/unictype/gen-ctype.c: Remove file.
43778         * lib/unilbrk/gen-lbrk.c: Remove file.
43779         * modules/gen-uni-tables: New file.
43780         * modules/unictype/gen-ctype: Remove file.
43781         * modules/unilbrk/gen-lbrk: Remove file.
43782
43783 2009-02-07  Bruno Haible  <bruno@clisp.org>
43784
43785         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
43786
43787         New module 'unistr/u32-strcoll'.
43788         * modules/unistr/u32-strcoll: New file.
43789         * lib/unistr/u32-strcoll.c: New file.
43790
43791         New module 'unistr/u16-strcoll'.
43792         * modules/unistr/u16-strcoll: New file.
43793         * lib/unistr/u16-strcoll.c: New file.
43794
43795         New module 'unistr/u8-strcoll'.
43796         * modules/unistr/u8-strcoll: New file.
43797         * lib/unistr/u8-strcoll.c: New file.
43798         * lib/unistr/u-strcoll.h: New file.
43799
43800 2009-02-07  Bruno Haible  <bruno@clisp.org>
43801
43802         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
43803         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43804         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43805         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
43806         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
43807         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
43808
43809 2009-02-07  Bruno Haible  <bruno@clisp.org>
43810
43811         Make 64-bit clean.
43812         * lib/unictype/gen-ctype.c (output_predicate, output_category,
43813         output_combclass, output_bidi_category, output_decimal_digit,
43814         output_digit, output_numeric, output_mirror, output_scripts,
43815         output_ident_category): Use proper width specifier in format strings.
43816
43817 2009-02-07  Bruno Haible  <bruno@clisp.org>
43818
43819         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
43820         failure behaviour.
43821
43822 2009-02-07  Jim Meyering  <meyering@redhat.com>
43823
43824         regex: avoid compilation failure with upcoming gcc-4.4
43825         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
43826         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
43827         "... error: integer overflow in preprocessor expression".
43828
43829 2009-02-05  Ben Pfaff  <blp@gnu.org>
43830
43831         Fix link errors on Windows when close module is used.
43832         * modules/close: Add $(LIB_CLOSE) to Link section.
43833         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
43834         $(LIB_CLOSE) on Windows.
43835
43836 2009-02-05  Jim Meyering  <meyering@redhat.com>
43837
43838         still avoid unused-parameter warnings, but do it cleanly
43839         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
43840         (get_fs_usage): Cast to void instead.
43841         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
43842         (dev_from_mount_options, read_file_system_list): Cast to void.
43843         Prompted by Bruno Haible.
43844
43845 2009-02-04  Jim Meyering  <meyering@redhat.com>
43846
43847         fsusage.c: correct copyright year
43848         * lib/fsusage.c: Reflect year in which the change is pushed into
43849
43850         avoid misc. warnings
43851         * lib/fsusage.c (UNUSED_PARAM): Define.
43852         (get_fs_usage): Mark parameter "disk" as unused.
43853         * lib/getugroups.c (getgrent): Use "void" in prototype.
43854         * lib/mountlist.c: Mark unused parameters.
43855         (read_file_system_list): Declare a local with "const".
43856         * lib/nanosleep.c (getnow): Declare static.
43857         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
43858
43859         dirfd: set errno upon failure
43860         * lib/dirfd.c: Include <errno.h>.
43861         Set errno to ENOTSUP when returning -1.
43862         * modules/dirfd (Depends-on): Add errno.
43863         Suggested by John Kodis <kodis@comcast.net>.
43864
43865 2009-02-01  Bruno Haible  <bruno@clisp.org>
43866
43867         Don't assume sizeof (long) >= sizeof (void *).
43868         * lib/memcmp.c: Include stdint.h.
43869         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
43870         srcp2 to 'const byte *'.
43871         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
43872         types to uintptr_t.
43873         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
43874         * modules/memcmp (Depends-on): Add stdint.
43875         Reported by Ozkan Sezer <sezeroz@gmail.com>.
43876
43877 2009-01-30  Eric Blake  <ebb9@byu.net>
43878
43879         fix more require-before-expand issues
43880         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
43881         expand, AC_PROG_AWK.
43882         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
43883
43884 2009-01-28  Eric Blake  <ebb9@byu.net>
43885
43886         version-etc: use consistent URL formatting
43887         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
43888         Improve formatting.  Use fputs for string without %.
43889
43890 2009-01-28  Jim Meyering  <meyering@redhat.com>
43891
43892         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
43893         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
43894         "underquoted definition of NAME" from autoconf-2.59.
43895
43896 2009-01-28  Bruno Haible  <bruno@clisp.org>
43897
43898         * doc/gnulib.texi: Add "Obsolete modules" to index.
43899
43900 2009-01-28  Jim Meyering  <meyering@redhat.com>
43901
43902         useless-if-before-free: recognize more variants
43903         * build-aux/useless-if-before-free: Also recognize e.g.,
43904         if (NULL != p) free (p);
43905
43906 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
43907
43908         test-getaddrinfo: skip (don't fail) this test when there's no network
43909         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
43910         on the presumption that it means you lack network access.
43911
43912 2009-01-26  Jim Meyering  <meyering@redhat.com>
43913
43914         fflush: avoid warnings on modern systems
43915         * lib/fflush.c (rpl_fflush): Move declarations of locals,
43916         pos and result, into scopes where they're used.
43917
43918 2009-01-26  Eric Blake  <ebb9@byu.net>
43919
43920         Silence warning reintroduced by recent extensions patch.
43921         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
43922         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
43923         autoconf.
43924
43925         Backport improved autoconf semantics of AC_DEFUN_ONCE.
43926         * m4/00gnulib.m4: New file.
43927         * gnulib-tool (func_get_filelist): Always use it.
43928         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
43929         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
43930
43931 2009-01-25  Bruno Haible  <bruno@clisp.org>
43932
43933         Make test-quotearg work on MacOS X and AIX.
43934         * tests/test-quotearg.sh: New file.
43935         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
43936         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
43937         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
43938         include <libintl.h>.
43939         (fake_locale): Remove variable.
43940         (gettext, dgettext, dcgettext): Remove functions.
43941         (main): Instead of setting a fake locale, set a real locale. Call
43942         textdomain and bindtextdomain.
43943         * modules/quotearg-tests (Files): Add the new files.
43944         (Depends-on): Add gettext, setenv, unsetenv.
43945         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43946         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
43947         Augment TESTS_ENVIRONMENT.
43948
43949 2009-01-25  Bruno Haible  <bruno@clisp.org>
43950
43951         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
43952         fr_FR.ISO8859-1 locale on MacOS X.
43953         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
43954         ja_JP.eucJP locale on MacOS X.
43955         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
43956         zh_CN.GB18030 locale on MacOS X.
43957
43958 2009-01-25  Bruno Haible  <bruno@clisp.org>
43959
43960         Avoid link errors on MacOS X 10.3.
43961         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
43962         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43963
43964 2009-01-25  Bruno Haible  <bruno@clisp.org>
43965
43966         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43967         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
43968         * modules/pipe (Files): Remove m4/posix_spawn.m4.
43969         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43970         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
43971         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43972         posix_spawnattr_init, posix_spawnattr_setsigmask,
43973         posix_spawnattr_setflags, posix_spawnattr_destroy.
43974
43975         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43976         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
43977         * modules/execute (Files): Remove m4/posix_spawn.m4.
43978         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43979         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43980         posix_spawnattr_init, posix_spawnattr_setsigmask,
43981         posix_spawnattr_setflags, posix_spawnattr_destroy.
43982
43983 2009-01-25  Bruno Haible  <bruno@clisp.org>
43984
43985         * lib/glthread/threadlib.c: Include <stdlib.h>.
43986
43987 2009-01-25  Bruno Haible  <bruno@clisp.org>
43988
43989         * lib/glthread/threadlib.c (dummy): New declaration.
43990
43991 2009-01-25  Bruno Haible  <bruno@clisp.org>
43992
43993         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
43994         multibyte characters also for the GB18030 encoding. Don't crash when
43995         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
43996
43997 2009-01-25  Bruno Haible  <bruno@clisp.org>
43998
43999         Avoid redefining 'struct random_data' on OSF/1 5.1.
44000         * lib/stdlib.in.h: Include <random.h> if it exists.
44001         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
44002         HAVE_RANDOM_H. Include <random.h> when testing whether
44003         'struct random_data' exists.
44004         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
44005
44006 2009-01-25  Bruno Haible  <bruno@clisp.org>
44007
44008         Don't install charset.alias on MacOS X >= 10.3.
44009         * lib/localcharset.c (DARWIN7): New macro.
44010         (get_charset_aliases): Hardcode the result for Darwin7.
44011         * modules/localcharset (install-exec-local): Don't install
44012         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
44013
44014 2009-01-25  Bruno Haible  <bruno@clisp.org>
44015
44016         Don't install charset.alias on mingw and Cygwin.
44017         * modules/localcharset (install-exec-local): Don't install
44018         charset.alias on mingw and Cygwin, if the file does not yet exist.
44019         The result for these platforms is hardcoded in localcharset.c.
44020
44021 2009-01-25  Bruno Haible  <bruno@clisp.org>
44022
44023         Make it possible again to use AC_GNU_SOURCE together with gnulib.
44024         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
44025         before requiring AC_USE_SYSTEM_EXTENSIONS.
44026
44027 2009-01-25  Jim Meyering  <meyering@redhat.com>
44028
44029         c-strtod: avoid warnings
44030         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
44031         "assignment discards qualifiers from pointer target type" warnings.
44032
44033 2009-01-24  Bruno Haible  <bruno@clisp.org>
44034
44035         Add support for non-UTF-8 locales on MacOS X.
44036         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
44037         canonical encodings. For Darwin 7 and newer, don't map traditional
44038         encodings to UTF-8.
44039         Reported by Vincent Lefevre <vincent@vinc17.org>
44040         at <http://savannah.gnu.org/bugs/?25235>.
44041
44042 2009-01-24  Bruno Haible  <bruno@clisp.org>
44043
44044         * doc/gnulib.texi (Obsolete modules): New section.
44045         Reported by Mike Frysinger <vapier@gentoo.org>.
44046
44047 2009-01-24  Bruno Haible  <bruno@clisp.org>
44048
44049         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
44050         (%.dvi): New rule.
44051
44052 2009-01-24  Bruno Haible  <bruno@clisp.org>
44053
44054         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
44055         Reported by Eric Blake.
44056
44057 2009-01-24  Bruno Haible  <bruno@clisp.org>
44058
44059         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
44060         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
44061         Reported by Gary V. Vaughan <gary@gnu.org>.
44062
44063 2009-01-24  Bruno Haible  <bruno@clisp.org>
44064
44065         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
44066
44067 2009-01-23  Bruno Haible  <bruno@clisp.org>
44068
44069         Make c-strtod, c-strtold usable in libraries.
44070         * lib/c-strtod.c: Include string.h instead of xalloc.h.
44071         (C_STRTOD): Call strdup instead of xstrdup.
44072         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
44073         * modules/c-strtold (Depends-on): Likewise.
44074         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
44075         * NEWS: Mention the change.
44076         Reported by Michael Gold <mgold@ncf.ca>.
44077
44078 2009-01-23  Jim Meyering  <meyering@redhat.com>
44079
44080         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
44081         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
44082         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
44083
44084 2009-01-23  Simon Josefsson  <simon@josefsson.org>
44085
44086         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
44087         GNU CoreUtils.
44088         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
44089         * modules/version-etc (Description): Update.
44090
44091 2009-01-22  Bruno Haible  <bruno@clisp.org>
44092
44093         Cache the C locale object.
44094         * lib/c-strtod.c (c_locale_cache): New variable.
44095         (c_locale): New function.
44096         (C_STRTOD): Use it, and don't call freelocale.
44097         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
44098         Suggested by Paolo Bonzini.
44099
44100 2009-01-21  Bruno Haible  <bruno@clisp.org>
44101
44102         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
44103         conditions other than overflow.
44104
44105 2009-01-21  Bruno Haible  <bruno@clisp.org>
44106
44107         * lib/c-strtod.c: Include errno.h.
44108         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
44109         value from STRTOD_L and STRTOD.
44110
44111 2009-01-21  Bruno Haible  <bruno@clisp.org>
44112         and Jim Meyering  <meyering@redhat.com>
44113
44114         nanosleep: skip configure test (fail it) for apple universal builds
44115         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
44116         universal builds, assume that nanosleep does not work.
44117         * modules/nanosleep (Depends-on): Add multiarch.
44118
44119         mktime: skip configure test (fail it) for apple universal builds
44120         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
44121         universal builds, assume that mktime does not work.
44122         * modules/mktime (Depends-on): Add multiarch.
44123
44124 2009-01-21  Eric Blake  <ebb9@byu.net>
44125
44126         multiarch: avoid expand-before-require warning
44127         * modules/multiarch (configure.ac): Require, rather than expand,
44128         gl_MULTIARCH.
44129         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
44130         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
44131         enforce that all clients require it.  Partial reversion of
44132         2008-12-29 patch.
44133
44134         error: avoid expand-before-require warning
44135         * modules/errno (configure.ac): Require, rather than expand,
44136         gl_HEADER_ERRNO_H.
44137         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
44138         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
44139         enforce that all clients require it.
44140
44141         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
44142         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
44143         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
44144         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
44145
44146 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
44147
44148         Revert:
44149         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44150
44151         regex: do not depend on obsolete modules.
44152         * modules/regex: Remove memcmp and memmove.
44153
44154 2009-01-20  Bruno Haible  <bruno@clisp.org>
44155
44156         Make the 'link' module link on Windows NT 4.
44157         * lib/link.c (_WIN32_WINNT): Don't define.
44158         (CreateHardLinkFuncType): New type.
44159         (CreateHardLinkFunc, initialized): New variables.
44160         (initialize): New function.
44161         (link): Invoke CreateHardLink indirectly through the function pointer.
44162
44163 2009-01-20  Bruno Haible  <bruno@clisp.org>
44164
44165         Fix compilation failure on mingw.
44166         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
44167
44168 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
44169
44170         * doc/c-strtod.texi: Mention a couple of restrictions.
44171
44172 2009-01-20  Jim Meyering  <meyering@redhat.com>
44173
44174         gettimeofday: move more declarations out of functions
44175         * lib/gettimeofday.c: Move extern declarations of tzset and
44176         gmtime out of containing functions.  Prompted by Bruno Haible.
44177
44178 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44179
44180         regex: do not depend on obsolete modules.
44181         * modules/regex: Remove memcmp and memmove.
44182
44183 2009-01-19  Bruno Haible  <bruno@clisp.org>
44184
44185         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44186         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
44187         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44188         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
44189         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
44190
44191 2009-01-19  Bruno Haible  <bruno@clisp.org>
44192
44193         * tests/test-link.c: Include <errno.h>.
44194         (main): Exit with code 77 when a hard link cannot be created due to
44195         the file system.
44196         * tests/test-link.sh: Skip test when a hard link cannot be created due
44197         to the file system.
44198         Suggested by Eric Blake.
44199
44200 2009-01-19  Martin Lambers  <marlam@marlam.de>
44201
44202         * modules/link-tests: New file.
44203         * tests/test-link.sh: New file.
44204         * tests/test-link.c: New file.
44205
44206 2009-01-19  Eric Blake  <ebb9@byu.net>
44207
44208         doc: mention another function added in cygwin 1.7.0
44209         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
44210         Another new function in cygwin 1.7.
44211
44212 2009-01-19  Bruno Haible  <bruno@clisp.org>
44213
44214         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44215         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
44216         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
44217         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44218         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44219         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
44220         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44221         * m4/md4.m4 (gl_MD4): Likewise.
44222         * m4/md5.m4 (gl_MD5): Likewise.
44223         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
44224         * m4/sha1.m4 (gl_SHA1): Likewise.
44225         * m4/sha256.m4 (gl_SHA256): Likewise.
44226         * m4/sha512.m4 (gl_SHA512): Likewise.
44227
44228 2009-01-19  Bruno Haible  <bruno@clisp.org>
44229
44230         * modules/uniname/uniname-tests (Depends-on): Add progname.
44231         * tests/uniname/test-uninames.c: Include progname.h.
44232         (main): Call set_program_name.
44233
44234         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
44235         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
44236         (main): Call set_program_name.
44237
44238         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
44239         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
44240         (main): Call set_program_name.
44241
44242         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
44243         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
44244         (main): Call set_program_name.
44245
44246         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
44247         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
44248         (main): Call set_program_name.
44249
44250         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
44251         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
44252         (main): Call set_program_name.
44253
44254         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
44255         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
44256         (main): Call set_program_name.
44257
44258         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
44259         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
44260         (main): Call set_program_name.
44261
44262         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
44263         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
44264         (main): Call set_program_name.
44265
44266 2009-01-19  Eric Blake  <ebb9@byu.net>
44267
44268         test-unistd: test previous patch
44269         * tests/test-unistd.c: Test *_FILENO macros.
44270
44271         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
44272         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44273         Guarantee a definition.
44274         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
44275         * modules/unistd-safer (Depends-on): Add dependency on unistd.
44276         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
44277         * lib/dup-safer.c (STDERR_FILENO): Likewise.
44278         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44279         Likewise.
44280         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
44281         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
44282         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44283         Likewise.
44284         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
44285         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
44286         (STDERR_FILENO): Likewise.
44287         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
44288         (STDERR_FILENO): Likewise.
44289         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
44290         (STDERR_FILENO): Likewise.
44291         Reported by Elbert Pol.
44292
44293 2009-01-19  Eric Blake  <ebb9@byu.net>
44294
44295         doc: mention more functions added in cygwin 1.7.0
44296         * doc/posix-functions/abort.texi (abort): Update wording related
44297         to cygwin.
44298         * doc/posix-functions/daylight.texi (daylight): Likewise.
44299         * doc/posix-functions/optarg.texi (optarg): Likewise.
44300         * doc/posix-functions/optarg.texi (opterr): Likewise.
44301         * doc/posix-functions/optarg.texi (optind): Likewise.
44302         * doc/posix-functions/optarg.texi (optopt): Likewise.
44303         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
44304         worked in 1.5.x, and was withdrawn in 1.7.
44305         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
44306         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
44307         cygwin versions.
44308         * doc/posix-functions/perror.texi (perror): Likewise.
44309         * doc/posix-functions/printf.texi (printf): Likewise.
44310         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
44311         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
44312         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44313         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44314         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
44315         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
44316         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44317         Likewise.
44318         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44319         Likewise.
44320         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
44321         this function.
44322         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
44323         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
44324         Likewise.
44325         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
44326         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
44327         * doc/posix-functions/confstr.texi (confstr): Likewise.
44328         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
44329         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
44330         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
44331         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
44332         * doc/posix-functions/fputws.texi (fputws): Likewise.
44333         * doc/posix-functions/fwide.texi (fwide): Likewise.
44334         * doc/posix-functions/getwc.texi (getwc): Likewise.
44335         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
44336         * doc/posix-functions/putwc.texi (putwc): Likewise.
44337         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
44338         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
44339         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
44340         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
44341         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
44342         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
44343         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
44344         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
44345         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
44346         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
44347         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
44348
44349 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44350
44351         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
44352         * lib/ioctl.c: Include <sys/ioctl.h>.
44353
44354 2009-01-19  Simon Josefsson  <simon@josefsson.org>
44355
44356         * modules/getdate-tests (Depends-on): Add progname.
44357         * tests/test-getdate.c: Use progname module, to avoid link errors
44358         on non-glibc systems.
44359
44360 2009-01-18  Simon Josefsson  <simon@josefsson.org>
44361
44362         * modules/filenamecat-tests (Depends-on): Add progname.
44363         * modules/fstrcmp-tests (Depends-on): Likewise.
44364
44365         * tests/test-filenamecat.c: Use progname module, to avoid link
44366         errors on non-glibc systems.
44367         * tests/test-fstrcmp.c: Likewise.
44368
44369 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44370
44371         gettimeofday: avoid warning: nested extern declaration of 'localtime'
44372         * lib/gettimeofday.c: Move extern declaration out of function.
44373
44374 2009-01-18  Bruno Haible  <bruno@clisp.org>
44375
44376         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
44377         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
44378         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
44379
44380 2009-01-18  Bruno Haible  <bruno@clisp.org>
44381
44382         * lib/strftime.c (MEMPCPY): Remove unused macro.
44383         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
44384
44385 2009-01-18  Martin Lambers  <marlam@marlam.de>
44386
44387         New module 'link'.
44388         * lib/unistd.in.h (link): New declaration.
44389         * lib/link.c: New file.
44390         * m4/link.m4: New file.
44391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
44392         HAVE_LINK.
44393         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
44394         * modules/link: New file.
44395         * doc/posix-functions/link.texi: Mention the new module.
44396
44397 2009-01-18  Bruno Haible  <bruno@clisp.org>
44398
44399         * tests/test-avltree_list.c (main): Call set_program_name.
44400         * tests/test-avltree_oset.c (main): Likewise.
44401         * tests/test-obstack-printf.c: Include progname.h.
44402         (main): Call set_program_name.
44403         * tests/test-quotearg.c: Include progname.h.
44404         (main): Call set_program_name.
44405         * tests/test-xmemdup0.c: Include progname.h.
44406         (main): Call set_program_name.
44407
44408 2009-01-18  Bruno Haible  <bruno@clisp.org>
44409
44410         New module 'alphasort'.
44411         * lib/dirent.in.h (alphasort): New declaration.
44412         * lib/alphasort.c: New file, from glibc with modifications.
44413         * m4/alphasort.m4: New file.
44414         * modules/alphasort: New file.
44415         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
44416         HAVE_ALPHASORT.
44417         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
44418         HAVE_ALPHASORT.
44419         * doc/posix-functions/alphasort.texi: Mention the new module and the
44420         portability problems.
44421
44422 2009-01-18  Bruno Haible  <bruno@clisp.org>
44423
44424         New module 'scandir'.
44425         * lib/dirent.in.h (scandir): New declaration.
44426         * lib/scandir.c: New file, from glibc with modifications.
44427         * m4/scandir.m4: New file.
44428         * modules/scandir: New file.
44429         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
44430         HAVE_SCANDIR.
44431         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
44432         HAVE_SCANDIR.
44433         * doc/posix-functions/scandir.texi: Mention the new module and the
44434         portability problems.
44435
44436 2009-01-17  Bruno Haible  <bruno@clisp.org>
44437
44438         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
44439         Update documentation.
44440         (func_remove_suffix): Escape all dots in the suffix. Update
44441         documentation.
44442         (func_filter_filelist): Update documentation.
44443         Reported by Ralf Wildenhues.
44444
44445 2009-01-17  Bruno Haible  <bruno@clisp.org>
44446
44447         * modules/dprintf-posix-tests: New file.
44448         * tests/test-dprintf-posix.sh: New file.
44449         * tests/test-dprintf-posix.c: New file.
44450
44451         New modules 'dprintf', 'dprintf-posix'.
44452         * lib/stdio.in.h (dprintf): New declaration.
44453         * lib/dprintf.c: New file.
44454         * m4/dprintf.m4: New file.
44455         * m4/dprintf-posix.m4: New file.
44456         * modules/dprintf: New file.
44457         * modules/dprintf-posix: New file.
44458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
44459         HAVE_DPRINTF, REPLACE_DPRINTF.
44460         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
44461         HAVE_DPRINTF, REPLACE_DPRINTF.
44462         * doc/posix-functions/dprintf.texi: Mention the new modules.
44463
44464 2009-01-17  Bruno Haible  <bruno@clisp.org>
44465
44466         * modules/vdprintf-posix-tests: New file.
44467         * tests/test-vdprintf-posix.sh: New file.
44468         * tests/test-vdprintf-posix.c: New file.
44469
44470         New modules 'vdprintf', 'vdprintf-posix'.
44471         * lib/stdio.in.h (vdprintf): New declaration.
44472         * lib/vdprintf.c: New file.
44473         * m4/vdprintf.m4: New file.
44474         * m4/vdprintf-posix.m4: New file.
44475         * modules/vdprintf: New file.
44476         * modules/vdprintf-posix: New file.
44477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
44478         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44479         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
44480         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44481         * doc/posix-functions/vdprintf.texi: Mention the new modules.
44482
44483 2009-01-17  Bruno Haible  <bruno@clisp.org>
44484
44485         Fix replacement of fopen on mingw.
44486         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
44487         mingw.
44488
44489 2009-01-17  Bruno Haible  <bruno@clisp.org>
44490
44491         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
44492         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
44493
44494 2009-01-17  Bruno Haible  <bruno@clisp.org>
44495
44496         Avoid test-fflush2.sh failure on mingw.
44497         * tests/test-fflush2.c: Include binary-io.h.
44498         (main): Put standard input into binary mode.
44499         * modules/fflush-tests (Depends-on): Add binary-io.
44500
44501 2009-01-17  Bruno Haible  <bruno@clisp.org>
44502
44503         * lib/wchar.in.h: In another particular situation, include only the
44504         system's <wchar.h> file.
44505         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
44506         Reported by Albert Chin-A-Young <china@thewrittenword.com>
44507         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
44508
44509 2009-01-17  Bruno Haible  <bruno@clisp.org>
44510
44511         Support for stripping executables in --enable-relocatable.
44512         * build-aux/install-reloc: Expect one more argument, or an environment
44513         variable RELOC_STRIP_PROG. If set, strip the destination program and
44514         its wrapper.
44515         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
44516         RELOC_STRIP_PROG.
44517         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
44518         to set RELOCATABLE_STRIP.
44519         * NEWS: Mention the new Makefile requirement.
44520
44521 2009-01-17  Bruno Haible  <bruno@clisp.org>
44522
44523         * build-aux/install-reloc: Remove debugging information left over by
44524         C compiler on MacOS X.
44525
44526 2009-01-17  Bruno Haible  <bruno@clisp.org>
44527
44528         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
44529         * lib/progreloc.c (find_executable): Fix type of pointer passed to
44530         _NSGetExecutablePath.
44531
44532 2009-01-16  Jim Meyering  <meyering@redhat.com>
44533
44534         strerror: avoid warnings about discarding "const"
44535         * lib/strerror.c (rpl_strerror): Instead of returning a const
44536         string from each and every "case", use a variable, and add a single
44537         cast after the switch.
44538
44539 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
44540
44541         * lib/arpa_inet.in.h: Add extern "C" block for C++.
44542
44543 2009-01-16  Bruno Haible  <bruno@clisp.org>
44544
44545         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
44546         array initializer syntax that also works in C++ mode.
44547         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44548
44549 2009-01-16  Jim Meyering  <meyering@redhat.com>
44550
44551         poll: suppress a warning
44552         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
44553         to ignore "...unsigned expression < 0 is always false" warnings.
44554
44555 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
44556
44557         poll: remove declarations of unused variables
44558         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
44559         sockbuf and optlen.
44560
44561 2009-01-15  Bruno Haible  <bruno@clisp.org>
44562
44563         Make fflush-after-ungetc POSIX compliant on BSD systems.
44564         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
44565         (clear_ungetc_buffer): Implement also for other systems.
44566         (rpl_fflush): On glibc systems, invoke
44567         clear_ungetc_buffer_preserving_position. Otherwise, invoke
44568         clear_ungetc_buffer after fetching the stream's position, not before.
44569
44570 2009-01-15  Bruno Haible  <bruno@clisp.org>
44571
44572         Make fflush-after-ungetc POSIX compliant on glibc systems.
44573         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
44574         after ungetc.
44575         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
44576         (rpl_fflush): On glibc systems, simply call the system's fflush
44577         function after clearing the ungetc buffer.
44578         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
44579         Instead, lseek only to the end of file, then use the system's fseeko
44580         for the rest. On glibc systems, reset the EOF indicator bit.
44581
44582 2009-01-15  Jim Meyering  <meyering@redhat.com>
44583
44584         openmp.m4: revert quote-adding change, for portability to older autoconf
44585         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
44586         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
44587         Simon Josefsson noticed the problem when using autoconf-2.61.
44588
44589 2009-01-15  Bruno Haible  <bruno@clisp.org>
44590
44591         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
44592         * tests/test-fflush2.c (ASSERT): Always fail.
44593         (main): Add two tests for fflush() after ungetc(), taking into account
44594         the Austin Group's clarification.
44595         Suggested by Eric Blake.
44596
44597 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
44598
44599         mktime.m4: remove K&R-style function prototypes
44600         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
44601         for the Sun C++ compiler.
44602
44603 2009-01-14  Bruno Haible  <bruno@clisp.org>
44604
44605         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
44606         while including <wchar.h>.
44607         * lib/wchar.in.h: In two particular situations on HP-UX, include only
44608         the system's <wchar.h> file.
44609         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44610
44611 2009-01-14  Bruno Haible  <bruno@clisp.org>
44612
44613         * m4/csharp.m4: Don't mention gettext on the serial number line.
44614         * m4/csharpexec.m4: Likewise.
44615         * m4/eaccess.m4: Likewise.
44616         * m4/javaexec.m4: Likewise.
44617         * m4/sig_atomic_t.m4: Likewise.
44618         * m4/tmpdir.m4: Likewise.
44619         * m4/intldir.m4: Bump gettext version.
44620         * m4/lib-ld.m4: Likewise.
44621
44622 2009-01-14  Bruno Haible  <bruno@clisp.org>
44623
44624         * lib/progname.c (set_program_name): Add more comments.
44625         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44626
44627 2009-01-14  Simon Josefsson  <simon@josefsson.org>
44628
44629         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
44630         were sys/stat.h does not define it.
44631
44632 2009-01-14  Jim Meyering  <meyering@redhat.com>
44633
44634         many *.m4 files: improve m4 quoting
44635         99% of this change was performed by running the following commands:
44636         git ls-files | grep '\.m4$' | xargs perl -pi \
44637           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
44638           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44639           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44640           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
44641         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
44642         The remainder were to add Copyright dates, increment serial numbers,
44643         undo some changes in comments, exclude m4/intl.m4, and add quotes
44644         around the "1" in ",1" where the unusual spacing prohibited the
44645         above regexps from doing the job.  For more details, see
44646         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
44647         * m4/acl.m4: Modified.
44648         * m4/afs.m4: Likewise.
44649         * m4/alloca.m4: Likewise.
44650         * m4/argp.m4: Likewise.
44651         * m4/argz.m4: Likewise.
44652         * m4/atexit.m4: Likewise.
44653         * m4/bison-i18n.m4: Likewise.
44654         * m4/bison.m4: Likewise.
44655         * m4/byteswap.m4: Likewise.
44656         * m4/c-stack.m4: Likewise.
44657         * m4/c-strtod.m4: Likewise.
44658         * m4/calloc.m4: Likewise.
44659         * m4/canonicalize-lgpl.m4: Likewise.
44660         * m4/chown.m4: Likewise.
44661         * m4/clock_time.m4: Likewise.
44662         * m4/codeset.m4: Likewise.
44663         * m4/copy-file.m4: Likewise.
44664         * m4/csharp.m4: Likewise.
44665         * m4/csharpcomp.m4: Likewise.
44666         * m4/csharpexec.m4: Likewise.
44667         * m4/d-ino.m4: Likewise.
44668         * m4/d-type.m4: Likewise.
44669         * m4/dirfd.m4: Likewise.
44670         * m4/double-slash-root.m4: Likewise.
44671         * m4/eaccess.m4: Likewise.
44672         * m4/eealloc.m4: Likewise.
44673         * m4/environ.m4: Likewise.
44674         * m4/errno_h.m4: Likewise.
44675         * m4/euidaccess.m4: Likewise.
44676         * m4/execute.m4: Likewise.
44677         * m4/fatal-signal.m4: Likewise.
44678         * m4/fchdir.m4: Likewise.
44679         * m4/fcntl_h.m4: Likewise.
44680         * m4/fileblocks.m4: Likewise.
44681         * m4/filenamecat.m4: Likewise.
44682         * m4/findprog.m4: Likewise.
44683         * m4/flexmember.m4: Likewise.
44684         * m4/fnmatch.m4: Likewise.
44685         * m4/fopen.m4: Likewise.
44686         * m4/fpending.m4: Likewise.
44687         * m4/fprintf-posix.m4: Likewise.
44688         * m4/free.m4: Likewise.
44689         * m4/frexp.m4: Likewise.
44690         * m4/frexpl.m4: Likewise.
44691         * m4/fsusage.m4: Likewise.
44692         * m4/ftruncate.m4: Likewise.
44693         * m4/gc-camellia.m4: Likewise.
44694         * m4/gc-random.m4: Likewise.
44695         * m4/gc.m4: Likewise.
44696         * m4/getaddrinfo.m4: Likewise.
44697         * m4/getcwd-abort-bug.m4: Likewise.
44698         * m4/getcwd-path-max.m4: Likewise.
44699         * m4/getdate.m4: Likewise.
44700         * m4/getdomainname.m4: Likewise.
44701         * m4/getgroups.m4: Likewise.
44702         * m4/gethostname.m4: Likewise.
44703         * m4/gethrxtime.m4: Likewise.
44704         * m4/getline.m4: Likewise.
44705         * m4/getloadavg.m4: Likewise.
44706         * m4/getndelim2.m4: Likewise.
44707         * m4/getpass.m4: Likewise.
44708         * m4/gettext.m4: Likewise.
44709         * m4/gettime.m4: Likewise.
44710         * m4/gettimeofday.m4: Likewise.
44711         * m4/gnulib-common.m4: Likewise.
44712         * m4/group-member.m4: Likewise.
44713         * m4/host-os.m4: Likewise.
44714         * m4/iconv.m4: Likewise.
44715         * m4/iconv_open.m4: Likewise.
44716         * m4/inet_ntop.m4: Likewise.
44717         * m4/inet_pton.m4: Likewise.
44718         * m4/inline.m4: Likewise.
44719         * m4/intldir.m4: Likewise.
44720         * m4/intlmacosx.m4: Likewise.
44721         * m4/intmax.m4: Likewise.
44722         * m4/intmax_t.m4: Likewise.
44723         * m4/inttypes.m4: Likewise.
44724         * m4/inttypes_h.m4: Likewise.
44725         * m4/inttypes-pri.m4: Likewise.
44726         * m4/isapipe.m4: Likewise.
44727         * m4/isnand.m4: Likewise.
44728         * m4/isnanf.m4: Likewise.
44729         * m4/isnanl.m4: Likewise.
44730         * m4/javacomp.m4: Likewise.
44731         * m4/javaexec.m4: Likewise.
44732         * m4/jm-winsz1.m4: Likewise.
44733         * m4/jm-winsz2.m4: Likewise.
44734         * m4/lchown.m4: Likewise.
44735         * m4/lcmessage.m4: Likewise.
44736         * m4/ldexpl.m4: Likewise.
44737         * m4/lib-ld.m4: Likewise.
44738         * m4/lib-link.m4: Likewise.
44739         * m4/libsigsegv.m4: Likewise.
44740         * m4/link-follow.m4: Likewise.
44741         * m4/localcharset.m4: Likewise.
44742         * m4/locale-fr.m4: Likewise.
44743         * m4/locale-ja.m4: Likewise.
44744         * m4/locale-tr.m4: Likewise.
44745         * m4/locale-zh.m4: Likewise.
44746         * m4/lock.m4: Likewise.
44747         * m4/longlong.m4: Likewise.
44748         * m4/ls-mntd-fs.m4: Likewise.
44749         * m4/lstat.m4: Likewise.
44750         * m4/malloc.m4: Likewise.
44751         * m4/mathl.m4: Likewise.
44752         * m4/mbrtowc.m4: Likewise.
44753         * m4/mbstate_t.m4: Likewise.
44754         * m4/mbswidth.m4: Likewise.
44755         * m4/memchr.m4: Likewise.
44756         * m4/memcmp.m4: Likewise.
44757         * m4/memcpy.m4: Likewise.
44758         * m4/memmem.m4: Likewise.
44759         * m4/memmove.m4: Likewise.
44760         * m4/mempcpy.m4: Likewise.
44761         * m4/memrchr.m4: Likewise.
44762         * m4/memset.m4: Likewise.
44763         * m4/minmax.m4: Likewise.
44764         * m4/mkdir-slash.m4: Likewise.
44765         * m4/mkdtemp.m4: Likewise.
44766         * m4/mktime.m4: Likewise.
44767         * m4/mmap-anon.m4: Likewise.
44768         * m4/mountlist.m4: Likewise.
44769         * m4/nanosleep.m4: Likewise.
44770         * m4/nls.m4: Likewise.
44771         * m4/nocrash.m4: Likewise.
44772         * m4/open.m4: Likewise.
44773         * m4/openat.m4: Likewise.
44774         * m4/openmp.m4: Likewise.
44775         * m4/pathmax.m4: Likewise.
44776         * m4/perl.m4: Likewise.
44777         * m4/physmem.m4: Likewise.
44778         * m4/pipe.m4: Likewise.
44779         * m4/po.m4: Likewise.
44780         * m4/poll.m4: Likewise.
44781         * m4/posixtm.m4: Likewise.
44782         * m4/posixver.m4: Likewise.
44783         * m4/printf-frexp.m4: Likewise.
44784         * m4/printf-frexpl.m4: Likewise.
44785         * m4/printf-posix.m4: Likewise.
44786         * m4/printf-posix-rpl.m4: Likewise.
44787         * m4/printf.m4: Likewise.
44788         * m4/progtest.m4: Likewise.
44789         * m4/putenv.m4: Likewise.
44790         * m4/readline.m4: Likewise.
44791         * m4/readlink.m4: Likewise.
44792         * m4/readutmp.m4: Likewise.
44793         * m4/realloc.m4: Likewise.
44794         * m4/regex.m4: Likewise.
44795         * m4/relocatable.m4: Likewise.
44796         * m4/relocatable-lib.m4: Likewise.
44797         * m4/rename-dest-slash.m4: Likewise.
44798         * m4/rename.m4: Likewise.
44799         * m4/rmdir-errno.m4: Likewise.
44800         * m4/rmdir.m4: Likewise.
44801         * m4/roundf.m4: Likewise.
44802         * m4/roundl.m4: Likewise.
44803         * m4/rpmatch.m4: Likewise.
44804         * m4/save-cwd.m4: Likewise.
44805         * m4/selinux-selinux-h.m4: Likewise.
44806         * m4/setenv.m4: Likewise.
44807         * m4/settime.m4: Likewise.
44808         * m4/sig2str.m4: Likewise.
44809         * m4/sig_atomic_t.m4: Likewise.
44810         * m4/signalblocking.m4: Likewise.
44811         * m4/signbit.m4: Likewise.
44812         * m4/sigpipe.m4: Likewise.
44813         * m4/sockets.m4: Likewise.
44814         * m4/sockpfaf.m4: Likewise.
44815         * m4/st_dm_mode.m4: Likewise.
44816         * m4/stat-time.m4: Likewise.
44817         * m4/stdbool.m4: Likewise.
44818         * m4/stdint.m4: Likewise.
44819         * m4/stdint_h.m4: Likewise.
44820         * m4/stpcpy.m4: Likewise.
44821         * m4/stpncpy.m4: Likewise.
44822         * m4/strcase.m4: Likewise.
44823         * m4/strchrnul.m4: Likewise.
44824         * m4/strcspn.m4: Likewise.
44825         * m4/strdup.m4: Likewise.
44826         * m4/strftime.m4: Likewise.
44827         * m4/strndup.m4: Likewise.
44828         * m4/strnlen.m4: Likewise.
44829         * m4/strpbrk.m4: Likewise.
44830         * m4/strptime.m4: Likewise.
44831         * m4/strsep.m4: Likewise.
44832         * m4/strtod.m4: Likewise.
44833         * m4/strtoimax.m4: Likewise.
44834         * m4/strtok_r.m4: Likewise.
44835         * m4/strtol.m4: Likewise.
44836         * m4/strtoll.m4: Likewise.
44837         * m4/strtoul.m4: Likewise.
44838         * m4/strtoull.m4: Likewise.
44839         * m4/strtoumax.m4: Likewise.
44840         * m4/strverscmp.m4: Likewise.
44841         * m4/threadlib.m4: Likewise.
44842         * m4/timegm.m4: Likewise.
44843         * m4/tm_gmtoff.m4: Likewise.
44844         * m4/tmpdir.m4: Likewise.
44845         * m4/tmpfile.m4: Likewise.
44846         * m4/tzset.m4: Likewise.
44847         * m4/uintmax_t.m4: Likewise.
44848         * m4/unlinkdir.m4: Likewise.
44849         * m4/unlocked-io.m4: Likewise.
44850         * m4/uptime.m4: Likewise.
44851         * m4/userspec.m4: Likewise.
44852         * m4/utimbuf.m4: Likewise.
44853         * m4/utime.m4: Likewise.
44854         * m4/utimes-null.m4: Likewise.
44855         * m4/utimes.m4: Likewise.
44856         * m4/vararrays.m4: Likewise.
44857         * m4/vasnprintf.m4: Likewise.
44858         * m4/vfprintf-posix.m4: Likewise.
44859         * m4/vprintf-posix.m4: Likewise.
44860         * m4/wait-process.m4: Likewise.
44861         * m4/wchar_t.m4: Likewise.
44862         * m4/wint_t.m4: Likewise.
44863         * m4/write-any-file.m4: Likewise.
44864         * m4/yield.m4: Likewise.
44865
44866 2009-01-13  Bruno Haible  <bruno@clisp.org>
44867
44868         Avoid test-copy-file.sh failures when ACL support insufficient.
44869         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
44870         TESTS_ENVIRONMENT.
44871         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
44872         Reported by Jim Meyering.
44873
44874 2009-01-13  Bruno Haible  <bruno@clisp.org>
44875
44876         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
44877         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
44878         * modules/unistdio/u8-printf-parse (Files): Likewise.
44879         * modules/unistdio/u32-printf-parse (Files): Likewise.
44880         * modules/unistdio/ulc-printf-parse (Files): Likewise.
44881
44882 2009-01-13  Simon Josefsson  <simon@josefsson.org>
44883
44884         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
44885         and m4/inttypes_h.m4 too.
44886
44887 2009-01-12  Eric Blake  <ebb9@byu.net>
44888
44889         tests: IRIX 6.2 cc can't compile -0.0 into .data
44890         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
44891         rather than at compile-time.
44892         * tests/test-floorl.c (minus_zero): Likewise.
44893         * tests/test-frexpl.c (minus_zero): Likewise.
44894         * tests/test-isnan.c (minus_zerol): Likewise.
44895         * tests/test-isnanl.h (minus_zero): Likewise.
44896         * tests/test-ldexpl.c (minus_zero): Likewise.
44897         * tests/test-roundl.c (minus_zero): Likewise.
44898         * tests/test-signbit.c (minus_zerol): Likewise.
44899         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44900         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44901         * tests/test-truncl.c (minus_zero): Likewise.
44902         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44903         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44904         Reported by Tom G. Christensen and Nelson H. F. Beebe.
44905
44906 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44907
44908         regex: fix glibc bug 9697
44909         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
44910         handling.
44911
44912 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44913
44914         regex: fix glibc bug 697
44915         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
44916         being NULL also if there are no backreferences.
44917
44918 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44919
44920         regex: merge glibc changes
44921         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
44922         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
44923         re_string_skip_chars, re_string_reconstruct): Likewise.
44924         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
44925
44926 2009-01-07  Jim Meyering  <meyering@redhat.com>
44927
44928         poll: filter through cppi
44929         * lib/poll.c: Indent cpp directives to reflect nesting.
44930
44931 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
44932
44933         poll: don't return uninitialized
44934         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
44935
44936 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
44937
44938         avoid compile failure on AIX 6.1
44939         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
44940         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
44941
44942 2009-01-04  Jim Meyering  <meyering@redhat.com>
44943
44944         remove duplicate inclusion of <stdio.h>
44945         * tests/test-fprintf-posix.c: Likewise.
44946         * tests/test-printf-posix.c: Likewise.
44947         * tests/test-snprintf-posix.c: Likewise.
44948         * tests/test-sprintf-posix.c: Likewise.
44949         * tests/test-vasprintf-posix.c: Likewise.
44950         * tests/test-vfprintf-posix.c: Likewise.
44951         * tests/test-vprintf-posix.c: Likewise.
44952         * tests/test-vsnprintf-posix.c: Likewise.
44953         * tests/test-vsprintf-posix.c: Likewise.
44954
44955 2009-01-03  Jim Meyering  <meyering@redhat.com>
44956
44957         gnulib-tool: fix sed-based filtering
44958         * gnulib-tool (func_filter_filelist): Remove extra backslash
44959         in sed_fff_filter definition.
44960
44961 2009-01-02  Jim Meyering  <meyering@redhat.com>
44962
44963         strftime: avoid compilation failure on Solaris 2.6
44964         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
44965         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
44966         Don't #define mbrlen or mbsinit, since now they're guaranteed to
44967         be available.  Reported by Tom G. Christensen.  Details in
44968         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
44969
44970 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44971             Bruno Haible  <bruno@clisp.org>
44972
44973         Speed up gnulib-tool by doing more string processing through shell
44974         built-ins.
44975         * gnulib-tool (fast_func_append): New variable.
44976         (func_remove_prefix, func_remove_suffix): New functions.
44977         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
44978         (func_filter_filelist): New function.
44979         (func_get_dependencies): Use func_remove_suffix instead of sed.
44980         (func_get_automake_snippet): Use func_filter_filelist instead of a
44981         subshell and sed invocation.
44982
44983 2009-01-01  Bruno Haible  <bruno@clisp.org>
44984
44985         Fix a security bug.
44986         * gnulib-tool (func_import, import, update): Don't allow the characters
44987         '"', '$', '`', '\' in macro arguments that become part of commands that
44988         are evaluated.
44989
44990 2009-01-01  Bruno Haible  <bruno@clisp.org>
44991
44992         * gnulib-tool (func_reset_sigpipe): Add more comments.
44993
44994 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44995
44996         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
44997         func_emit_tests_Makefile_am, func_import): Abort loops early if we
44998         already know the answer.
44999
45000 2009-01-01  Jim Meyering  <meyering@redhat.com>
45001
45002         * lib/version-etc.c (version_etc_va): Update copyright year.
45003
45004 2008-12-30  Bruno Haible  <bruno@clisp.org>
45005
45006         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
45007         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
45008         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
45009
45010 2008-12-29  Eric Blake  <ebb9@byu.net>
45011
45012         multiarch: avoid autoconf AC_REQUIRE bug
45013         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
45014         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
45015         2.63 and older.
45016         Reported by Bruno Haible, and analyzed in
45017         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
45018
45019 2008-12-29  Bruno Haible  <bruno@clisp.org>
45020
45021         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
45022         files in subdirectories correctly.
45023         Reported by Ralf Wildenhues.
45024
45025 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45026
45027         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
45028         rather than 'join FILE -', for Solaris join.
45029
45030 2008-12-29  Bruno Haible  <bruno@clisp.org>
45031
45032         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
45033         quoting.
45034         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45035         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
45036         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
45037         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
45038         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45039         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
45040         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
45041         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
45042         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45043         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
45044         * m4/nls.m4 (AM_NLS): Likewise.
45045         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
45046         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
45047         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
45048         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
45049         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
45050         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45051         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
45052         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
45053         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
45054         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45055         * m4/xsize.m4 (gl_XSIZE): Likewise.
45056         Suggested by Jim Meyering.
45057
45058 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45059
45060         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
45061         * lib/parse-duration.c: use a switch instead of cascading if's.
45062
45063 2008-12-29  Eric Blake  <ebb9@byu.net>
45064
45065         wchar.h: supply WEOF on Irix 5.3
45066         * lib/wchar.in.h (wint_t): Also supply WEOF.
45067         * lib/wctype.in.h (wint_t): Likewise.
45068         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
45069         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
45070         Reported by Tom G. Christensen.
45071
45072 2008-12-26  Bruno Haible  <bruno@clisp.org>
45073
45074         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
45075         i486, i586, i686.
45076
45077 2008-12-26  Bruno Haible  <bruno@clisp.org>
45078
45079         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
45080
45081 2008-12-26  Bruno Haible  <bruno@clisp.org>
45082
45083         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
45084         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
45085         not __STDC_CONSTANT_MACROS.
45086         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45087
45088 2008-12-25  Bruno Haible  <bruno@clisp.org>
45089
45090         Add support for universal builds to vasnprintf.
45091         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
45092         universal builds, guess no.
45093         * modules/vasnprintf-posix (Depends-on): Add multiarch.
45094         * modules/vasprintf-posix (Depends-on): Likewise.
45095         * modules/fprintf-posix (Depends-on): Likewise.
45096         * modules/vfprintf-posix (Depends-on): Likewise.
45097         * modules/snprintf-posix (Depends-on): Likewise.
45098         * modules/vsnprintf-posix (Depends-on): Likewise.
45099         * modules/sprintf-posix (Depends-on): Likewise.
45100         * modules/vsprintf-posix (Depends-on): Likewise.
45101         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45102         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45103         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45104         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45105         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45106         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45107         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45108
45109         Add support for universal builds to <inttypes.h>.
45110         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
45111         _SCNu64_PREFIX): In Apple
45112         universal builds, define directly, using _LP64.
45113         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
45114         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
45115         * modules/inttypes (Depends-on): Add multiarch.
45116         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45117
45118         Add support for universal builds to <stdint.h>.
45119         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
45120         universal builds, define directly, using _LP64.
45121         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
45122         Apple universal builds, don't test for the size and suffix of ptrdiff_t
45123         and size_t.
45124         * modules/stdint (Depends-on): Add multiarch.
45125         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45126
45127         New module 'multiarch'.
45128         * modules/multiarch: New file.
45129         * m4/multiarch.m4: New file.
45130
45131 2008-12-25  Bruno Haible  <bruno@clisp.org>
45132
45133         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
45134
45135 2008-12-25  Bruno Haible  <bruno@clisp.org>
45136
45137         * modules/btowc (License): Relicense under LGPLv2+.
45138         * modules/mbsinit (License): Likewise.
45139         * modules/mbrtowc (License): Likewise.
45140         * modules/wcrtomb (License): Likewise.
45141         * modules/streq (License): Likewise.
45142         Reported by David Lutterkort <lutter@redhat.com>.
45143
45144 2008-12-23  Bruno Haible  <bruno@clisp.org>
45145
45146         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
45147
45148 2008-12-23  Bruno Haible  <bruno@clisp.org>
45149
45150         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
45151         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
45152         GETADDRINFO_LIB, not in LIBS.
45153         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
45154         * modules/canon-host (Link): Likewise.
45155         * NEWS: Mention the change.
45156         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
45157         GETADDRINFO_LIB.
45158
45159 2008-12-22  Bruno Haible  <bruno@clisp.org>
45160
45161         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
45162         * doc/posix-functions/iswalpha_l.texi: Likewise.
45163         * doc/posix-functions/iswblank_l.texi: Likewise.
45164         * doc/posix-functions/iswcntrl_l.texi: Likewise.
45165         * doc/posix-functions/iswctype_l.texi: Likewise.
45166         * doc/posix-functions/iswdigit_l.texi: Likewise.
45167         * doc/posix-functions/iswgraph_l.texi: Likewise.
45168         * doc/posix-functions/iswlower_l.texi: Likewise.
45169         * doc/posix-functions/iswprint_l.texi: Likewise.
45170         * doc/posix-functions/iswpunct_l.texi: Likewise.
45171         * doc/posix-functions/iswspace_l.texi: Likewise.
45172         * doc/posix-functions/iswupper_l.texi: Likewise.
45173         * doc/posix-functions/iswxdigit_l.texi: Likewise.
45174         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
45175         * doc/posix-functions/open_wmemstream.texi: Likewise.
45176         * doc/posix-functions/swscanf.texi: Likewise.
45177         * doc/posix-functions/towctrans_l.texi: Likewise.
45178         * doc/posix-functions/towlower.texi: Likewise.
45179         * doc/posix-functions/towlower_l.texi: Likewise.
45180         * doc/posix-functions/towupper.texi: Likewise.
45181         * doc/posix-functions/towupper_l.texi: Likewise.
45182         * doc/posix-functions/vfwprintf.texi: Likewise.
45183         * doc/posix-functions/vfwscanf.texi: Likewise.
45184         * doc/posix-functions/vswscanf.texi: Likewise.
45185         * doc/posix-functions/vwprintf.texi: Likewise.
45186         * doc/posix-functions/vwscanf.texi: Likewise.
45187         * doc/posix-functions/wcpcpy.texi: Likewise.
45188         * doc/posix-functions/wcpncpy.texi: Likewise.
45189         * doc/posix-functions/wcscasecmp.texi: Likewise.
45190         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
45191         * doc/posix-functions/wcscoll_l.texi: Likewise.
45192         * doc/posix-functions/wcsdup.texi: Likewise.
45193         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45194         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
45195         * doc/posix-functions/wcsnlen.texi: Likewise.
45196         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45197         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
45198         * doc/posix-functions/wctrans_l.texi: Likewise.
45199         * doc/posix-functions/wctype_l.texi: Likewise.
45200         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
45201         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
45202         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
45203         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
45204         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
45205         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
45206         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
45207         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
45208         * doc/glibc-functions/wcschrnul.texi: Likewise.
45209         * doc/glibc-functions/wcsftime_l.texi: Likewise.
45210         * doc/glibc-functions/wcstod_l.texi: Likewise.
45211         * doc/glibc-functions/wcstof_l.texi: Likewise.
45212         * doc/glibc-functions/wcstol_l.texi: Likewise.
45213         * doc/glibc-functions/wcstold_l.texi: Likewise.
45214         * doc/glibc-functions/wcstoll_l.texi: Likewise.
45215         * doc/glibc-functions/wcstoq.texi: Likewise.
45216         * doc/glibc-functions/wcstoul_l.texi: Likewise.
45217         * doc/glibc-functions/wcstoull_l.texi: Likewise.
45218         * doc/glibc-functions/wcstouq.texi: Likewise.
45219         * doc/glibc-functions/wmempcpy.texi: Likewise.
45220
45221 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
45222             Eric Blake  <ebb9@byu.net>
45223             Paolo Bonzini  <bonzini@gnu.org>
45224             Bruno Haible  <bruno@clisp.org>
45225
45226         Make c-stack work on Haiku.
45227         * lib/c-stack.c (SA_ONSTACK): Define fallback.
45228         (c_stack_action): Use SA_ONSTACK flag.
45229
45230 2008-12-22  Bruno Haible  <bruno@clisp.org>
45231
45232         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
45233
45234 2008-12-22  Bruno Haible  <bruno@clisp.org>
45235
45236         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
45237         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
45238         being overridden.
45239         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
45240         New macros.
45241         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
45242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
45243         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
45244         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
45245
45246 2008-12-22  Bruno Haible  <bruno@clisp.org>
45247
45248         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
45249         from test code.
45250
45251 2008-12-22  Eric Blake  <ebb9@byu.net>
45252
45253         Avoid gcc warnings on cygwin.
45254         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
45255         Avoid unused variable.
45256         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
45257         Likewise.
45258
45259 2008-12-22  Bruno Haible  <bruno@clisp.org>
45260
45261         Remove HAVE_MBRTOWC conditionals.
45262         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
45263         (mbscasecmp): Assume mbrtowc function.
45264         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
45265         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
45266         * lib/mbschr.c: Include mbuiter.h unconditionally.
45267         (mbschr): Assume mbrtowc function.
45268         * lib/mbscspn.c: Include mbuiter.h unconditionally.
45269         (mbscspn): Assume mbrtowc function.
45270         * lib/mbslen.c: Include mbuiter.h unconditionally.
45271         (mbslen): Assume mbrtowc function.
45272         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
45273         (mbsncasecmp): Assume mbrtowc function.
45274         * lib/mbsnlen.c: Include mbiter.h unconditionally.
45275         (mbsnlen): Assume mbrtowc function.
45276         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
45277         (mbspbrk): Assume mbrtowc function.
45278         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
45279         (mbspcasecmp): Assume mbrtowc function.
45280         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
45281         (mbsrchr): Assume mbrtowc function.
45282         * lib/mbssep.c: Include mbuiter.h unconditionally.
45283         (mbssep): Assume mbrtowc function.
45284         * lib/mbsspn.c: Include mbuiter.h unconditionally.
45285         (mbsspn): Assume mbrtowc function.
45286         * lib/mbsstr.c: Include mbuiter.h unconditionally.
45287         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
45288         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
45289         (mbstok_r): Assume mbrtowc function.
45290         * lib/propername.c: Include mbuiter.h unconditionally.
45291         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
45292         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
45293         (trim2): Assume mbrtowc function.
45294         * lib/mbswidth.c (mbsinit): Remove fallback definition.
45295         (mbsnwidth): Assume mbrtowc function.
45296         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
45297         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
45298         fallback definitions.
45299         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
45300
45301 2008-12-22  Bruno Haible  <bruno@clisp.org>
45302
45303         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
45304
45305 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
45306
45307         * modules/regex: Request emulations for the mb*/wc* functions we need.
45308         * m4/regex.m4: Don't look for those functions here.
45309         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
45310
45311 2008-12-22  Bruno Haible  <bruno@clisp.org>
45312
45313         * modules/fnmatch (Depends-on): Remove duplicated dependency.
45314
45315 2008-12-21  Bruno Haible  <bruno@clisp.org>
45316
45317         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
45318         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
45319         (Include): Remove conditionalization.
45320         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
45321         (Include): Remove conditionalization.
45322         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
45323         (Include): Remove conditionalization.
45324         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
45325         * m4/mbfile.m4 (gl_MBFILE): Likewise.
45326         * NEWS: Mention the change.
45327         Reported by Alan Hourihane <alanh@fairlite.co.uk>
45328         via Sergey Poznyakoff <gray@gnu.org.ua>.
45329
45330 2008-12-21  Bruno Haible  <bruno@clisp.org>
45331
45332         * MODULES.html.sh (Extended multibyte and wide character utilities
45333         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
45334         wcrtomb, wcsrtombs.
45335         (Support for systems lacking POSIX:2008): Add accept, bind, close,
45336         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
45337         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
45338         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
45339
45340 2008-12-21  Bruno Haible  <bruno@clisp.org>
45341
45342         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
45343
45344 2008-12-21  Bruno Haible  <bruno@clisp.org>
45345
45346         * modules/wcsnrtombs-tests: New file.
45347         * tests/test-wcsnrtombs1.sh: New file.
45348         * tests/test-wcsnrtombs2.sh: New file.
45349         * tests/test-wcsnrtombs3.sh: New file.
45350         * tests/test-wcsnrtombs4.sh: New file.
45351         * tests/test-wcsnrtombs.c: New file.
45352
45353         New module 'wcsnrtombs'.
45354         * lib/wchar.in.h (wcsnrtombs): New declaration.
45355         * lib/wcsnrtombs.c: New file.
45356         * lib/wcsrtombs-state.c: New file.
45357         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
45358         (internal_state): Remove variable.
45359         * m4/wcsnrtombs.m4: New file.
45360         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
45361         compilation units.
45362         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
45363         HAVE_WCSNRTOMBS.
45364         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
45365         HAVE_WCSNRTOMBS.
45366         * modules/wcsnrtombs: New file.
45367         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
45368         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
45369
45370 2008-12-21  Bruno Haible  <bruno@clisp.org>
45371
45372         * modules/wcsrtombs-tests: New file.
45373         * tests/test-wcsrtombs1.sh: New file.
45374         * tests/test-wcsrtombs2.sh: New file.
45375         * tests/test-wcsrtombs3.sh: New file.
45376         * tests/test-wcsrtombs4.sh: New file.
45377         * tests/test-wcsrtombs.c: New file.
45378
45379         New module 'wcsrtombs'.
45380         * lib/wchar.in.h (wcsrtombs): New declaration.
45381         * lib/wcsrtombs.c: New file.
45382         * m4/wcsrtombs.m4: New file.
45383         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
45384         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45385         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
45386         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45387         * modules/wcsrtombs: New file.
45388         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
45389         bugs.
45390
45391 2008-12-21  Bruno Haible  <bruno@clisp.org>
45392
45393         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
45394         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
45395         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
45396         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
45397         if not correct.
45398         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
45399         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
45400         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45401         m4/locale-zh.m4, m4/codeset.m4.
45402         * doc/posix-functions/wcrtomb.texi: Document the bug.
45403
45404 2008-12-21  Bruno Haible  <bruno@clisp.org>
45405
45406         Work around a btowc() bug on IRIX 6.5.
45407         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
45408         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
45409         REPLACE_WTOBC if not.
45410         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
45411         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
45412         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
45413
45414 2008-12-21  Bruno Haible  <bruno@clisp.org>
45415
45416         * modules/wcrtomb-tests: New file.
45417         * tests/test-wcrtomb.sh: New file.
45418         * tests/test-wcrtomb.c: New file.
45419
45420         New module 'wcrtomb'.
45421         * lib/wchar.in.h (wcrtomb): New declaration.
45422         * lib/wcrtomb.c: New file.
45423         * m4/wcrtomb.m4: New file.
45424         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
45425         HAVE_WCRTOMB.
45426         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
45427         HAVE_WCRTOMB.
45428         * modules/wcrtomb: New file.
45429         * doc/posix-functions/wcrtomb.texi: Mention the new module.
45430
45431 2008-12-21  Bruno Haible  <bruno@clisp.org>
45432
45433         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
45434         * modules/mbsrtowcs (Files): Likewise.
45435         * modules/wctob (Files): Likewise.
45436         * modules/c-strcase-tests (Files): Likewise.
45437         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
45438         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
45439         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
45440         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
45441         * modules/vasnprintf-posix-tests (Files): Likewise.
45442
45443 2008-12-21  William Pursell  <bill.pursell@gmail.com>
45444
45445         gitlog-to-changelog: pass all command-line arguments to git-log
45446         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
45447         it is sometimes convenient to filter the commits in various ways.
45448         gitlog-to-changelog only allows --since to specify a start date,
45449         but git-log itself supports many other filtering mechanisms.
45450         At the moment, I want to filter by branch name.  Rather than
45451         adding a --branch option to gitlog-to-changelog, it seems more
45452         flexible to simply pass all options directly to git-log and let
45453         git do the work.  Notice that this effectively makes --since a
45454         redundant option for gitlog-to-changelog, but removing it would
45455         require current usage to change since calls would then require
45456         an additional '--'.
45457
45458 2008-12-21  Bruno Haible  <bruno@clisp.org>
45459
45460         * modules/mbsnrtowcs-tests: New file.
45461         * tests/test-mbsnrtowcs1.sh: New file.
45462         * tests/test-mbsnrtowcs2.sh: New file.
45463         * tests/test-mbsnrtowcs3.sh: New file.
45464         * tests/test-mbsnrtowcs4.sh: New file.
45465         * tests/test-mbsnrtowcs.c: New file.
45466
45467         New module 'mbsnrtowcs'.
45468         * lib/wchar.in.h (mbsnrtowcs): New declaration.
45469         * lib/mbsnrtowcs.c: New file.
45470         * lib/mbsrtowcs-state.c: New file.
45471         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
45472         (internal_state): Remove variable.
45473         * m4/mbsnrtowcs.m4: New file.
45474         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
45475         compilation units.
45476         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
45477         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45478         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
45479         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45480         * modules/mbsnrtowcs: New file.
45481         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
45482         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
45483         portability problem.
45484
45485 2008-12-21  Bruno Haible  <bruno@clisp.org>
45486
45487         Work around mbsrtowcs bug.
45488         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
45489         (gl_FUNC_MBSRTOWCS): Invoke it.
45490         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45491         m4/locale-zh.m4.
45492         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
45493
45494 2008-12-21  Bruno Haible  <bruno@clisp.org>
45495
45496         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
45497
45498 2008-12-21  Bruno Haible  <bruno@clisp.org>
45499
45500         Update doc for AIX.
45501         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
45502         16-bit wchar_t type.
45503         * doc/posix-functions/btowc.texi: Likewise.
45504         * doc/posix-functions/fgetwc.texi: Likewise.
45505         * doc/posix-functions/fgetws.texi: Likewise.
45506         * doc/posix-functions/fputwc.texi: Likewise.
45507         * doc/posix-functions/fputws.texi: Likewise.
45508         * doc/posix-functions/fwide.texi: Likewise.
45509         * doc/posix-functions/fwprintf.texi: Likewise.
45510         * doc/posix-functions/fwscanf.texi: Likewise.
45511         * doc/posix-functions/getwchar.texi: Likewise.
45512         * doc/posix-functions/getwc.texi: Likewise.
45513         * doc/posix-functions/iswalnum.texi: Likewise.
45514         * doc/posix-functions/iswalpha.texi: Likewise.
45515         * doc/posix-functions/iswblank.texi: Likewise.
45516         * doc/posix-functions/iswcntrl.texi: Likewise.
45517         * doc/posix-functions/iswctype.texi: Likewise.
45518         * doc/posix-functions/iswdigit.texi: Likewise.
45519         * doc/posix-functions/iswgraph.texi: Likewise.
45520         * doc/posix-functions/iswlower.texi: Likewise.
45521         * doc/posix-functions/iswprint.texi: Likewise.
45522         * doc/posix-functions/iswpunct.texi: Likewise.
45523         * doc/posix-functions/iswspace.texi: Likewise.
45524         * doc/posix-functions/iswupper.texi: Likewise.
45525         * doc/posix-functions/iswxdigit.texi: Likewise.
45526         * doc/posix-functions/mbrtowc.texi: Likewise.
45527         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45528         * doc/posix-functions/mbstowcs.texi: Likewise.
45529         * doc/posix-functions/mbtowc.texi: Likewise.
45530         * doc/posix-functions/putwchar.texi: Likewise.
45531         * doc/posix-functions/putwc.texi: Likewise.
45532         * doc/posix-functions/swprintf.texi: Likewise.
45533         * doc/posix-functions/tolower.texi: Likewise.
45534         * doc/posix-functions/toupper.texi: Likewise.
45535         * doc/posix-functions/towctrans.texi: Likewise.
45536         * doc/posix-functions/ungetwc.texi: Likewise.
45537         * doc/posix-functions/vswprintf.texi: Likewise.
45538         * doc/posix-functions/wcrtomb.texi: Likewise.
45539         * doc/posix-functions/wcscat.texi: Likewise.
45540         * doc/posix-functions/wcschr.texi: Likewise.
45541         * doc/posix-functions/wcscmp.texi: Likewise.
45542         * doc/posix-functions/wcscoll.texi: Likewise.
45543         * doc/posix-functions/wcscpy.texi: Likewise.
45544         * doc/posix-functions/wcscspn.texi: Likewise.
45545         * doc/posix-functions/wcsftime.texi: Likewise.
45546         * doc/posix-functions/wcslen.texi: Likewise.
45547         * doc/posix-functions/wcsncat.texi: Likewise.
45548         * doc/posix-functions/wcsncmp.texi: Likewise.
45549         * doc/posix-functions/wcsncpy.texi: Likewise.
45550         * doc/posix-functions/wcspbrk.texi: Likewise.
45551         * doc/posix-functions/wcsrchr.texi: Likewise.
45552         * doc/posix-functions/wcsrtombs.texi: Likewise.
45553         * doc/posix-functions/wcsspn.texi: Likewise.
45554         * doc/posix-functions/wcsstr.texi: Likewise.
45555         * doc/posix-functions/wcstod.texi: Likewise.
45556         * doc/posix-functions/wcstof.texi: Likewise.
45557         * doc/posix-functions/wcstoimax.texi: Likewise.
45558         * doc/posix-functions/wcstok.texi: Likewise.
45559         * doc/posix-functions/wcstold.texi: Likewise.
45560         * doc/posix-functions/wcstoll.texi: Likewise.
45561         * doc/posix-functions/wcstol.texi: Likewise.
45562         * doc/posix-functions/wcstombs.texi: Likewise.
45563         * doc/posix-functions/wcstoull.texi: Likewise.
45564         * doc/posix-functions/wcstoul.texi: Likewise.
45565         * doc/posix-functions/wcstoumax.texi: Likewise.
45566         * doc/posix-functions/wcswidth.texi: Likewise.
45567         * doc/posix-functions/wcsxfrm.texi: Likewise.
45568         * doc/posix-functions/wctob.texi: Likewise.
45569         * doc/posix-functions/wctomb.texi: Likewise.
45570         * doc/posix-functions/wctrans.texi: Likewise.
45571         * doc/posix-functions/wctype.texi: Likewise.
45572         * doc/posix-functions/wcwidth.texi: Likewise.
45573         * doc/posix-functions/wmemchr.texi: Likewise.
45574         * doc/posix-functions/wmemcmp.texi: Likewise.
45575         * doc/posix-functions/wmemcpy.texi: Likewise.
45576         * doc/posix-functions/wmemmove.texi: Likewise.
45577         * doc/posix-functions/wmemset.texi: Likewise.
45578         * doc/posix-functions/wprintf.texi: Likewise.
45579         * doc/posix-functions/wscanf.texi: Likewise.
45580
45581 2008-12-21  Bruno Haible  <bruno@clisp.org>
45582
45583         Update doc for HP-UX 11.11.
45584         * doc/posix-functions/btowc.texi: Clarify that the function is missing
45585         in HP-UX version 11.00, not in all versions of HP-UX 11.
45586         * doc/posix-functions/fwide.texi: Likewise.
45587         * doc/posix-functions/fwprintf.texi: Likewise.
45588         * doc/posix-functions/fwscanf.texi: Likewise.
45589         * doc/posix-functions/inet_ntop.texi: Likewise.
45590         * doc/posix-functions/inet_pton.texi: Likewise.
45591         * doc/posix-functions/mbrlen.texi: Likewise.
45592         * doc/posix-functions/mbrtowc.texi: Likewise.
45593         * doc/posix-functions/mbsinit.texi: Likewise.
45594         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45595         * doc/posix-functions/swprintf.texi: Likewise.
45596         * doc/posix-functions/swscanf.texi: Likewise.
45597         * doc/posix-functions/towctrans.texi: Likewise.
45598         * doc/posix-functions/vfwprintf.texi: Likewise.
45599         * doc/posix-functions/vswprintf.texi: Likewise.
45600         * doc/posix-functions/vwprintf.texi: Likewise.
45601         * doc/posix-functions/wcrtomb.texi: Likewise.
45602         * doc/posix-functions/wcsrtombs.texi: Likewise.
45603         * doc/posix-functions/wcsstr.texi: Likewise.
45604         * doc/posix-functions/wctob.texi: Likewise.
45605         * doc/posix-functions/wctrans.texi: Likewise.
45606         * doc/posix-functions/wmemchr.texi: Likewise.
45607         * doc/posix-functions/wmemcmp.texi: Likewise.
45608         * doc/posix-functions/wmemcpy.texi: Likewise.
45609         * doc/posix-functions/wmemmove.texi: Likewise.
45610         * doc/posix-functions/wmemset.texi: Likewise.
45611         * doc/posix-functions/wprintf.texi: Likewise.
45612         * doc/posix-functions/wscanf.texi: Likewise.
45613
45614 2008-12-21  Bruno Haible  <bruno@clisp.org>
45615
45616         Work around a portability problem.
45617         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
45618         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
45619
45620 2008-12-20  Bruno Haible  <bruno@clisp.org>
45621
45622         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
45623         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
45624         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
45625         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
45626         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
45627
45628         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
45629         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
45630         set.
45631         (GNULIB_defined_mbstate_t): New macro.
45632         (mbsinit): Redefine if REPLACE_MBSINIT is set.
45633         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
45634         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
45635         reuses the system's mbrtowc function but works around the bugs.
45636         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
45637         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
45638         macros.
45639         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
45640         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
45641         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
45642         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
45643         REPLACE_MBSINIT if mbsinit needs to be overridden.
45644         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
45645         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45646         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
45647         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45648         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45649         m4/locale-zh.m4.
45650         (Depends): Add mbsinit.
45651         * modules/mbsinit (Depends): Add mbrtowc.
45652         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
45653
45654 2008-12-20  Bruno Haible  <bruno@clisp.org>
45655
45656         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
45657         so that there are no conversion errors on AIX.
45658         * tests/test-mbsrtowcs.c (main): LIkewise.
45659
45660 2008-12-20  Bruno Haible  <bruno@clisp.org>
45661
45662         Work around wctob bug on Solaris <= 9.
45663         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
45664         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
45665         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
45666         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
45667         * modules/wctob (Files): Add m4/locale-fr.m4.
45668         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
45669
45670 2008-12-20  Bruno Haible  <bruno@clisp.org>
45671
45672         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
45673         /dev/null.
45674         * tests/test-select-in.sh: Likewise.
45675         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45676
45677 2008-12-20  Bruno Haible  <bruno@clisp.org>
45678
45679         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
45680         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
45681         Cygwin 1.5.x.
45682
45683 2008-12-20  Bruno Haible  <bruno@clisp.org>
45684
45685         Ensure mbstate_t is defined on HP-UX 11.11.
45686         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
45687         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
45688         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
45689         AC_USE_SYSTEM_EXTENSIONS.
45690         * modules/fnmatch (Depends-on): Add extensions.
45691         * modules/mbrlen (Depends-on): Likewise.
45692         * modules/mbrtowc (Depends-on): Likewise.
45693         * modules/mbsinit (Depends-on): Likewise.
45694         * modules/mbsrtowcs (Depends-on): Likewise.
45695         * modules/mbswidth (Depends-on): Likewise.
45696         * modules/quotearg (Depends-on): Likewise.
45697         * modules/strftime (Depends-on): Likewise.
45698
45699 2008-12-20  Bruno Haible  <bruno@clisp.org>
45700
45701         Ensure wctob is declared on IRIX 6.5.
45702         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
45703         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
45704         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
45705         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
45706         of HAVE_WCTOB.
45707         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
45708         HAVE_WCTOB.
45709         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
45710
45711 2008-12-19  Bruno Haible  <bruno@clisp.org>
45712
45713         * modules/mbsrtowcs-tests: New file.
45714         * tests/test-mbsrtowcs1.sh: New file.
45715         * tests/test-mbsrtowcs2.sh: New file.
45716         * tests/test-mbsrtowcs3.sh: New file.
45717         * tests/test-mbsrtowcs4.sh: New file.
45718         * tests/test-mbsrtowcs.c: New file.
45719
45720         New module 'mbsrtowcs'.
45721         * lib/wchar.in.h (mbsrtowcs): New declaration.
45722         * lib/mbsrtowcs.c: New file.
45723         * m4/mbsrtowcs.m4: New file.
45724         * modules/mbsrtowcs: New file.
45725         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
45726         HAVE_MBSRTOWCS.
45727         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
45728         HAVE_MBSRTOWCS.
45729         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
45730
45731 2008-12-19  Bruno Haible  <bruno@clisp.org>
45732
45733         New module 'mbrlen'.
45734         * lib/wchar.in.h (mbrlen): New declaration.
45735         * lib/mbrlen.c: New file.
45736         * m4/mbrlen.m4: New file.
45737         * modules/mbrlen: New file.
45738         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
45739         HAVE_MBRLEN.
45740         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
45741         HAVE_MBRLEN.
45742         * doc/posix-functions/mbrlen.texi: Document the new module.
45743
45744 2008-12-19  Bruno Haible  <bruno@clisp.org>
45745
45746         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
45747         * modules/mbrtowc (Depends-on): Add verify.
45748         Suggested by Paul Eggert.
45749
45750 2008-12-18  Bruno Haible  <bruno@clisp.org>
45751
45752         * modules/mbsinit-tests: New file.
45753         * tests/test-mbsinit.sh: New file.
45754         * tests/test-mbsinit.c: New file.
45755
45756 2008-12-18  Bruno Haible  <bruno@clisp.org>
45757
45758         * modules/mbrtowc-tests: New file.
45759         * tests/test-mbrtowc1.sh: New file.
45760         * tests/test-mbrtowc2.sh: New file.
45761         * tests/test-mbrtowc3.sh: New file.
45762         * tests/test-mbrtowc4.sh: New file.
45763         * tests/test-mbrtowc.c: New file.
45764
45765         New module 'mbrtowc'.
45766         * lib/wchar.in.h (mbstate_t): Override when the system does not have
45767         mbsinit and mbrtowc.
45768         (mbrtowc): New declaration.
45769         * lib/mbrtowc.c: New file.
45770         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
45771         * modules/mbrtowc: New file.
45772         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
45773         HAVE_MBRTOWC.
45774         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
45775         HAVE_MBRTOWC.
45776         * doc/posix-functions/mbrtowc.texi: Document the new module.
45777
45778 2008-12-18  Bruno Haible  <bruno@clisp.org>
45779
45780         New module 'wctob'.
45781         * lib/wchar.in.h (wctob): New declaration.
45782         * lib/wctob.c: New file.
45783         * m4/wctob.m4: New file.
45784         * modules/wctob: New file.
45785         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
45786         HAVE_WCTOB.
45787         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
45788         * doc/posix-functions/wctob.texi: Document the new module.
45789
45790 2008-12-18  Bruno Haible  <bruno@clisp.org>
45791
45792         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
45793         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
45794
45795 2008-12-18  Simon Josefsson  <simon@josefsson.org>
45796
45797         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
45798         G. Christensen" <tgc@jupiterrise.com>.
45799
45800         * lib/flock.c: Need to include errno.h.  Reported by "Tom
45801         G. Christensen" <tgc@jupiterrise.com>.
45802
45803         * lib/flock.c: Need to include string.h.  Reported by "Tom
45804         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
45805         <ebb9@byu.net>.
45806
45807 2008-12-18  Bruno Haible  <bruno@clisp.org>
45808
45809         * m4/locale-ja.m4: New file, from GNU gettext.
45810
45811 2008-12-17  Bruno Haible  <bruno@clisp.org>
45812
45813         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
45814         Suggested by Eric Blake.
45815
45816 2008-12-17  Bruno Haible  <bruno@clisp.org>
45817
45818         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
45819
45820 2008-12-17  Bruno Haible  <bruno@clisp.org>
45821
45822         * lib/mbsinit.c: Include verify.h. Verify an assumption.
45823         * modules/mbsinit (Depends-on): Add verify.
45824         Suggested by Paul Eggert.
45825
45826 2008-12-17  Bruno Haible  <bruno@clisp.org>
45827
45828         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
45829         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
45830         gl_FUNC_MBRTOWC.
45831         * m4/mbiter.m4 (gl_MBITER): LIkewise.
45832         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
45833         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
45834         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
45835         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
45836         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
45837         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
45838         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
45839         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
45840         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
45841         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
45842         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
45843         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
45844         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
45845         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
45846         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45847         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
45848         * modules/trim (configure.ac): Likewise.
45849
45850 2008-12-17  Bruno Haible  <bruno@clisp.org>
45851
45852         * modules/btowc-tests: New file.
45853         * tests/test-btowc1.sh: New file.
45854         * tests/test-btowc2.sh: New file.
45855         * tests/test-btowc.c: New file.
45856
45857         New module 'btowc'.
45858         * lib/wchar.in.h (btowc): New declaration.
45859         * lib/btowc.c: New file.
45860         * m4/btowc.m4: New file.
45861         * modules/btowc: New file.
45862         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
45863         HAVE_BTOWC.
45864         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
45865         * doc/posix-functions/btowc.texi: Document the new module.
45866
45867 2008-12-17  Bruno Haible  <bruno@clisp.org>
45868
45869         New module 'mbsinit'.
45870         * lib/wchar.in.h (mbsinit): New declaration.
45871         * lib/mbsinit.c: New file.
45872         * m4/mbsinit.m4: New file.
45873         * modules/mbsinit: New file.
45874         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
45875         HAVE_MBSINIT.
45876         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
45877         HAVE_MBSINIT.
45878         * doc/posix-functions/mbsinit.texi: Document the new module.
45879
45880 2008-12-16  Bruno Haible  <bruno@clisp.org>
45881
45882         * lib/unistd.in.h: Add comment.
45883         * tests/test-environ.c: Don't include <stdlib.h>.
45884
45885 2008-12-16  Bruno Haible  <bruno@clisp.org>
45886
45887         * lib/parse-duration.h (parse_duration): Document return value
45888         convention.
45889         * lib/parse-duration.c: Include specification header first. Add
45890         comments.
45891         (_): Remove macro.
45892         (parse_year_month_day, parse_hour_minute_second): Move side effects
45893         outside of strchr call.
45894         (parse_non_iso8601): Move side effects outside of isspace call.
45895         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
45896         call.
45897
45898 2008-12-16  Bruno Haible  <bruno@clisp.org>
45899
45900         * tests/test-parse-duration.sh: Produce no output when the test
45901         succeeds.
45902
45903 2008-12-16  Bruno Haible  <bruno@clisp.org>
45904
45905         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
45906         expressions.
45907
45908 2008-12-15  Bruno Haible  <bruno@clisp.org>
45909
45910         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
45911         * doc/glibc-functions/flistxattr.texi: Likewise.
45912         * doc/glibc-functions/fopencookie.texi: Likewise.
45913         * doc/glibc-functions/fremovexattr.texi: Likewise.
45914         * doc/glibc-functions/fsetxattr.texi: Likewise.
45915         * doc/glibc-functions/getxattr.texi: Likewise.
45916         * doc/glibc-functions/lgetxattr.texi: Likewise.
45917         * doc/glibc-functions/listxattr.texi: Likewise.
45918         * doc/glibc-functions/llistxattr.texi: Likewise.
45919         * doc/glibc-functions/lremovexattr.texi: Likewise.
45920         * doc/glibc-functions/lsetxattr.texi: Likewise.
45921         * doc/glibc-functions/removexattr.texi: Likewise.
45922         * doc/glibc-functions/setxattr.texi: Likewise.
45923         * doc/posix-functions/open_memstream.texi: Likewise.
45924
45925 2008-12-15  Eric Blake  <ebb9@byu.net>
45926
45927         Update doc for cygwin 1.7.
45928         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
45929         functions.
45930         * doc/posix-functions/fchmodat.texi: Likewise.
45931         * doc/posix-functions/fchownat.texi: Likewise.
45932         * doc/posix-functions/fdopendir.texi: Likewise.
45933         * doc/posix-functions/fmemopen.texi: Likewise.
45934         * doc/posix-functions/freeaddrinfo.texi: Likewise.
45935         * doc/posix-functions/fstatat.texi: Likewise.
45936         * doc/posix-functions/futimens.texi: Likewise.
45937         * doc/posix-functions/gai_strerror.texi: Likewise.
45938         * doc/posix-functions/getaddrinfo.texi: Likewise.
45939         * doc/posix-functions/getnameinfo.texi: Likewise.
45940         * doc/posix-functions/if_freenameindex.texi: Likewise.
45941         * doc/posix-functions/if_indextoname.texi: Likewise.
45942         * doc/posix-functions/if_nameindex.texi: Likewise.
45943         * doc/posix-functions/if_nametoindex.texi: Likewise.
45944         * doc/posix-functions/insque.texi: Likewise.
45945         * doc/posix-functions/linkat.texi: Likewise.
45946         * doc/posix-functions/llrint.texi: Likewise.
45947         * doc/posix-functions/llrintf.texi: Likewise.
45948         * doc/posix-functions/llrintl.texi: Likewise.
45949         * doc/posix-functions/lockf.texi: Likewise.
45950         * doc/posix-functions/lrintl.texi: Likewise.
45951         * doc/posix-functions/mkdirat.texi: Likewise.
45952         * doc/posix-functions/mkfifoat.texi: Likewise.
45953         * doc/posix-functions/mknodat.texi: Likewise.
45954         * doc/posix-functions/mq_close.texi: Likewise.
45955         * doc/posix-functions/mq_getattr.texi: Likewise.
45956         * doc/posix-functions/mq_notify.texi: Likewise.
45957         * doc/posix-functions/mq_open.texi: Likewise.
45958         * doc/posix-functions/mq_receive.texi: Likewise.
45959         * doc/posix-functions/mq_send.texi: Likewise.
45960         * doc/posix-functions/mq_setattr.texi: Likewise.
45961         * doc/posix-functions/mq_timedreceive.texi: Likewise.
45962         * doc/posix-functions/mq_timedsend.texi: Likewise.
45963         * doc/posix-functions/mq_unlink.texi: Likewise.
45964         * doc/posix-functions/open_memstream.texi: Likewise.
45965         * doc/posix-functions/openat.texi: Likewise.
45966         * doc/posix-functions/posix_fadvise.texi: Likewise.
45967         * doc/posix-functions/posix_fallocate.texi: Likewise.
45968         * doc/posix-functions/posix_madvise.texi: Likewise.
45969         * doc/posix-functions/posix_memalign.texi: Likewise.
45970         * doc/posix-functions/posix_openpt.texi: Likewise.
45971         * doc/posix-functions/readlinkat.texi: Likewise.
45972         * doc/posix-functions/remque.texi: Likewise.
45973         * doc/posix-functions/renameat.texi: Likewise.
45974         * doc/posix-functions/rintl.texi: Likewise.
45975         * doc/posix-functions/sem_unlink.texi: Likewise.
45976         * doc/posix-functions/shm_open.texi: Likewise.
45977         * doc/posix-functions/shm_unlink.texi: Likewise.
45978         * doc/posix-functions/signgam.texi: Likewise.
45979         * doc/posix-functions/sigset.texi: Likewise.
45980         * doc/posix-functions/stpcpy.texi: Likewise.
45981         * doc/posix-functions/stpncpy.texi: Likewise.
45982         * doc/posix-functions/strerror.texi: Likewise.
45983         * doc/posix-functions/strtod.texi: Likewise.
45984         * doc/posix-functions/symlinkat.texi: Likewise.
45985         * doc/posix-functions/unlinkat.texi: Likewise.
45986         * doc/posix-functions/utimensat.texi: Likewise.
45987         * doc/glibc-functions/bindresvport.texi: Likewise.
45988         * doc/glibc-functions/dn_expand.texi: Likewise.
45989         * doc/glibc-functions/exp10.texi: Likewise.
45990         * doc/glibc-functions/exp10f.texi: Likewise.
45991         * doc/glibc-functions/fgetxattr.texi: Likewise.
45992         * doc/glibc-functions/flistxattr.texi: Likewise.
45993         * doc/glibc-functions/fopencookie.texi: Likewise.
45994         * doc/glibc-functions/freeifaddrs.texi: Likewise.
45995         * doc/glibc-functions/fremovexattr.texi: Likewise.
45996         * doc/glibc-functions/fsetxattr.texi: Likewise.
45997         * doc/glibc-functions/getifaddrs.texi: Likewise.
45998         * doc/glibc-functions/getxattr.texi: Likewise.
45999         * doc/glibc-functions/lgetxattr.texi: Likewise.
46000         * doc/glibc-functions/listxattr.texi: Likewise.
46001         * doc/glibc-functions/llistxattr.texi: Likewise.
46002         * doc/glibc-functions/lremovexattr.texi: Likewise.
46003         * doc/glibc-functions/lsetxattr.texi: Likewise.
46004         * doc/glibc-functions/pow10.texi: Likewise.
46005         * doc/glibc-functions/pow10f.texi: Likewise.
46006         * doc/glibc-functions/rcmd_af.texi: Likewise.
46007         * doc/glibc-functions/removexattr.texi: Likewise.
46008         * doc/glibc-functions/res_init.texi: Likewise.
46009         * doc/glibc-functions/res_mkquery.texi: Likewise.
46010         * doc/glibc-functions/res_query.texi: Likewise.
46011         * doc/glibc-functions/res_querydomain.texi: Likewise.
46012         * doc/glibc-functions/res_send.texi: Likewise.
46013         * doc/glibc-functions/rresvport_af.texi: Likewise.
46014         * doc/glibc-functions/setxattr.texi: Likewise.
46015         * doc/glibc-functions/strcasestr.texi: Likewise.
46016
46017 2008-12-15  Bruno Haible  <bruno@clisp.org>
46018
46019         Fix compilation error on OSF/1 4.0.
46020         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
46021         <sys/time.h>, simply delegate to the system header.
46022         Reported by Daniel Richard G. <oss@teragram.com>.
46023
46024 2008-12-15  Bruno Haible  <bruno@clisp.org>
46025
46026         * doc/posix-functions/openat.texi: Mention the 'openat' module.
46027         * doc/posix-functions/fchmodat.texi: Likewise.
46028         * doc/posix-functions/fchownat.texi: Likewise.
46029         * doc/posix-functions/fdopendir.texi: Likewise.
46030         * doc/posix-functions/fstatat.texi: Likewise.
46031         * doc/posix-functions/mkdirat.texi: Likewise.
46032         * doc/posix-functions/unlinkat.texi: Likewise.
46033
46034 2008-12-14  Bruno Haible  <bruno@clisp.org>
46035
46036         Update doc for POSIX:2008.
46037         * doc/posix-functions/faccessat.texi: New file.
46038         * doc/posix-functions/fchmodat.texi: New file.
46039         * doc/posix-functions/fchownat.texi: New file.
46040         * doc/posix-functions/fdopendir.texi: New file.
46041         * doc/posix-functions/fstatat.texi: New file.
46042         * doc/posix-functions/futimens.texi: New file.
46043         * doc/posix-functions/linkat.texi: New file.
46044         * doc/posix-functions/mkdirat.texi: New file.
46045         * doc/posix-functions/mkfifoat.texi: New file.
46046         * doc/posix-functions/mknodat.texi: New file.
46047         * doc/posix-functions/open_wmemstream.texi: New file.
46048         * doc/posix-functions/openat.texi: New file.
46049         * doc/posix-functions/psiginfo.texi: New file.
46050         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
46051         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
46052         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
46053         * doc/posix-functions/readlinkat.texi: New file.
46054         * doc/posix-functions/renameat.texi: New file.
46055         * doc/posix-functions/strerror_l.texi: New file.
46056         * doc/posix-functions/symlinkat.texi: New file.
46057         * doc/posix-functions/unlinkat.texi: New file.
46058         * doc/posix-functions/utimensat.texi: New file.
46059         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46060
46061 2008-12-14  Bruno Haible  <bruno@clisp.org>
46062
46063         Update doc for POSIX:2008.
46064         * doc/posix-functions/alphasort.texi: Renamed from
46065         doc/glibc-functions/alphasort.texi.
46066         * doc/posix-functions/dirfd.texi: Renamed from
46067         doc/glibc-functions/dirfd.texi.
46068         * doc/posix-functions/dprintf.texi: Renamed from
46069         doc/glibc-functions/dprintf.texi.
46070         * doc/posix-functions/duplocale.texi: Renamed from
46071         doc/glibc-functions/duplocale.texi.
46072         * doc/posix-functions/fexecve.texi: Renamed from
46073         doc/glibc-functions/fexecve.texi.
46074         * doc/posix-functions/fmemopen.texi: Renamed from
46075         doc/glibc-functions/fmemopen.texi.
46076         * doc/posix-functions/freelocale.texi: Renamed from
46077         doc/glibc-functions/freelocale.texi.
46078         * doc/posix-functions/getdate_err.texi: Renamed from
46079         doc/glibc-functions/getdate_err.texi.
46080         * doc/posix-functions/isalnum_l.texi: Renamed from
46081         doc/glibc-functions/isalnum_l.texi.
46082         * doc/posix-functions/isalpha_l.texi: Renamed from
46083         doc/glibc-functions/isalpha_l.texi.
46084         * doc/posix-functions/isblank_l.texi: Renamed from
46085         doc/glibc-functions/isblank_l.texi.
46086         * doc/posix-functions/iscntrl_l.texi: Renamed from
46087         doc/glibc-functions/iscntrl_l.texi.
46088         * doc/posix-functions/isdigit_l.texi: Renamed from
46089         doc/glibc-functions/isdigit_l.texi.
46090         * doc/posix-functions/isgraph_l.texi: Renamed from
46091         doc/glibc-functions/isgraph_l.texi.
46092         * doc/posix-functions/islower_l.texi: Renamed from
46093         doc/glibc-functions/islower_l.texi.
46094         * doc/posix-functions/isprint_l.texi: Renamed from
46095         doc/glibc-functions/isprint_l.texi.
46096         * doc/posix-functions/ispunct_l.texi: Renamed from
46097         doc/glibc-functions/ispunct_l.texi.
46098         * doc/posix-functions/isspace_l.texi: Renamed from
46099         doc/glibc-functions/isspace_l.texi.
46100         * doc/posix-functions/isupper_l.texi: Renamed from
46101         doc/glibc-functions/isupper_l.texi.
46102         * doc/posix-functions/iswalnum_l.texi: Renamed from
46103         doc/glibc-functions/iswalnum_l.texi.
46104         * doc/posix-functions/iswalpha_l.texi: Renamed from
46105         doc/glibc-functions/iswalpha_l.texi.
46106         * doc/posix-functions/iswblank_l.texi: Renamed from
46107         doc/glibc-functions/iswblank_l.texi.
46108         * doc/posix-functions/iswcntrl_l.texi: Renamed from
46109         doc/glibc-functions/iswcntrl_l.texi.
46110         * doc/posix-functions/iswctype_l.texi: Renamed from
46111         doc/glibc-functions/iswctype_l.texi.
46112         * doc/posix-functions/iswdigit_l.texi: Renamed from
46113         doc/glibc-functions/iswdigit_l.texi.
46114         * doc/posix-functions/iswgraph_l.texi: Renamed from
46115         doc/glibc-functions/iswgraph_l.texi.
46116         * doc/posix-functions/iswlower_l.texi: Renamed from
46117         doc/glibc-functions/iswlower_l.texi.
46118         * doc/posix-functions/iswprint_l.texi: Renamed from
46119         doc/glibc-functions/iswprint_l.texi.
46120         * doc/posix-functions/iswpunct_l.texi: Renamed from
46121         doc/glibc-functions/iswpunct_l.texi.
46122         * doc/posix-functions/iswspace_l.texi: Renamed from
46123         doc/glibc-functions/iswspace_l.texi.
46124         * doc/posix-functions/iswupper_l.texi: Renamed from
46125         doc/glibc-functions/iswupper_l.texi.
46126         * doc/posix-functions/iswxdigit_l.texi: Renamed from
46127         doc/glibc-functions/iswxdigit_l.texi.
46128         * doc/posix-functions/isxdigit_l.texi: Renamed from
46129         doc/glibc-functions/isxdigit_l.texi.
46130         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
46131         doc/glibc-functions/mbsnrtowcs.texi.
46132         * doc/posix-functions/mkdtemp.texi: Renamed from
46133         doc/glibc-functions/mkdtemp.texi.
46134         * doc/posix-functions/newlocale.texi: Renamed from
46135         doc/glibc-functions/newlocale.texi.
46136         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
46137         doc/glibc-functions/nl_langinfo_l.texi.
46138         * doc/posix-functions/open_memstream.texi: Renamed from
46139         doc/glibc-functions/open_memstream.texi.
46140         * doc/posix-functions/opterr.texi: Renamed from
46141         doc/glibc-functions/opterr.texi.
46142         * doc/posix-functions/optind.texi: Renamed from
46143         doc/glibc-functions/optind.texi.
46144         * doc/posix-functions/optopt.texi: Renamed from
46145         doc/glibc-functions/optopt.texi.
46146         * doc/posix-functions/psignal.texi: Renamed from
46147         doc/glibc-functions/psignal.texi.
46148         * doc/posix-functions/scandir.texi: Renamed from
46149         doc/glibc-functions/scandir.texi.
46150         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
46151         doc/glibc-functions/sched_get_priority_min.texi.
46152         * doc/posix-functions/signgam.texi: Renamed from
46153         doc/glibc-functions/signgam.texi.
46154         * doc/posix-functions/stpcpy.texi: Renamed from
46155         doc/glibc-functions/stpcpy.texi.
46156         * doc/posix-functions/stpncpy.texi: Renamed from
46157         doc/glibc-functions/stpncpy.texi.
46158         * doc/posix-functions/strcasecmp_l.texi: Renamed from
46159         doc/glibc-functions/strcasecmp_l.texi.
46160         * doc/posix-functions/strcoll_l.texi: Renamed from
46161         doc/glibc-functions/strcoll_l.texi.
46162         * doc/posix-functions/strfmon_l.texi: Renamed from
46163         doc/glibc-functions/strfmon_l.texi.
46164         * doc/posix-functions/strftime_l.texi: Renamed from
46165         doc/glibc-functions/strftime_l.texi.
46166         * doc/posix-functions/strncasecmp_l.texi: Renamed from
46167         doc/glibc-functions/strncasecmp_l.texi.
46168         * doc/posix-functions/strndup.texi: Renamed from
46169         doc/glibc-functions/strndup.texi.
46170         * doc/posix-functions/strnlen.texi: Renamed from
46171         doc/glibc-functions/strnlen.texi.
46172         * doc/posix-functions/strsignal.texi: Renamed from
46173         doc/glibc-functions/strsignal.texi.
46174         * doc/posix-functions/strxfrm_l.texi: Renamed from
46175         doc/glibc-functions/strxfrm_l.texi.
46176         * doc/posix-functions/timer_gettime.texi: Renamed from
46177         doc/glibc-functions/timer_gettime.texi.
46178         * doc/posix-functions/tolower_l.texi: Renamed from
46179         doc/glibc-functions/tolower_l.texi.
46180         * doc/posix-functions/toupper_l.texi: Renamed from
46181         doc/glibc-functions/toupper_l.texi.
46182         * doc/posix-functions/towctrans_l.texi: Renamed from
46183         doc/glibc-functions/towctrans_l.texi.
46184         * doc/posix-functions/towlower_l.texi: Renamed from
46185         doc/glibc-functions/towlower_l.texi.
46186         * doc/posix-functions/towupper_l.texi: Renamed from
46187         doc/glibc-functions/towupper_l.texi.
46188         * doc/posix-functions/uselocale.texi: Renamed from
46189         doc/glibc-functions/uselocale.texi.
46190         * doc/posix-functions/vdprintf.texi: Renamed from
46191         doc/glibc-functions/vdprintf.texi.
46192         * doc/posix-functions/wcpcpy.texi:
46193         Renamed from doc/glibc-functions/wcpcpy.texi.
46194         * doc/posix-functions/wcpncpy.texi: Renamed from
46195         doc/glibc-functions/wcpncpy.texi.
46196         * doc/posix-functions/wcscasecmp.texi: Renamed from
46197         doc/glibc-functions/wcscasecmp.texi.
46198         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
46199         doc/glibc-functions/wcscasecmp_l.texi.
46200         * doc/posix-functions/wcscoll_l.texi: Renamed from
46201         doc/glibc-functions/wcscoll_l.texi.
46202         * doc/posix-functions/wcsdup.texi: Renamed from
46203         doc/glibc-functions/wcsdup.texi.
46204         * doc/posix-functions/wcsncasecmp.texi: Renamed from
46205         doc/glibc-functions/wcsncasecmp.texi.
46206         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
46207         doc/glibc-functions/wcsncasecmp_l.texi.
46208         * doc/posix-functions/wcsnlen.texi: Renamed from
46209         doc/glibc-functions/wcsnlen.texi.
46210         * doc/posix-functions/wcsnrtombs.texi: Renamed from
46211         doc/glibc-functions/wcsnrtombs.texi.
46212         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
46213         doc/glibc-functions/wcsxfrm_l.texi.
46214         * doc/posix-functions/wctrans_l.texi: Renamed from
46215         doc/glibc-functions/wctrans_l.texi.
46216         * doc/posix-functions/wctype_l.texi: Renamed from
46217         doc/glibc-functions/wctype_l.texi.
46218         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46219         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
46220         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
46221         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
46222         these subsections.
46223         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
46224         Remove sections.
46225
46226 2008-12-14  Bruno Haible  <bruno@clisp.org>
46227
46228         Update doc for POSIX:2008.
46229         * doc/posix-functions/*.texi: Update URL of POSIX specification.
46230
46231 2008-12-14  Bruno Haible  <bruno@clisp.org>
46232
46233         Update doc for POSIX:2008.
46234         * doc/pastposix-functions/bcmp.texi: Renamed from
46235         doc/posix-functions/bcmp.texi.
46236         * doc/pastposix-functions/bcopy.texi: Renamed from
46237         doc/posix-functions/bcopy.texi.
46238         * doc/pastposix-functions/bsd_signal.texi: Renamed from
46239         doc/posix-functions/bsd_signal.texi.
46240         * doc/pastposix-functions/bzero.texi: Renamed from
46241         doc/posix-functions/bzero.texi.
46242         * doc/pastposix-functions/ecvt.texi: Renamed from
46243         doc/posix-functions/ecvt.texi.
46244         * doc/pastposix-functions/fcvt.texi: Renamed from
46245         doc/posix-functions/fcvt.texi.
46246         * doc/pastposix-functions/ftime.texi: Renamed from
46247         doc/posix-functions/ftime.texi.
46248         * doc/pastposix-functions/gcvt.texi: Renamed from
46249         doc/posix-functions/gcvt.texi.
46250         * doc/pastposix-functions/getcontext.texi: Renamed from
46251         doc/posix-functions/getcontext.texi.
46252         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
46253         doc/posix-functions/gethostbyaddr.texi.
46254         * doc/pastposix-functions/gethostbyname.texi: Renamed from
46255         doc/posix-functions/gethostbyname.texi.
46256         * doc/pastposix-functions/getwd.texi: Renamed from
46257         doc/posix-functions/getwd.texi.
46258         * doc/pastposix-functions/h_errno.texi: Renamed from
46259         doc/posix-functions/h_errno.texi.
46260         * doc/pastposix-functions/index.texi: Renamed from
46261         doc/posix-functions/index.texi.
46262         * doc/pastposix-functions/makecontext.texi: Renamed from
46263         doc/posix-functions/makecontext.texi.
46264         * doc/pastposix-functions/mktemp.texi: Renamed from
46265         doc/posix-functions/mktemp.texi.
46266         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
46267         doc/posix-functions/pthread_attr_getstackaddr.texi.
46268         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
46269         doc/posix-functions/pthread_attr_setstackaddr.texi.
46270         * doc/pastposix-functions/rindex.texi: Renamed from
46271         doc/posix-functions/rindex.texi.
46272         * doc/pastposix-functions/scalb.texi: Renamed from
46273         doc/posix-functions/scalb.texi.
46274         * doc/pastposix-functions/setcontext.texi: Renamed from
46275         doc/posix-functions/setcontext.texi.
46276         * doc/pastposix-functions/swapcontext.texi: Renamed from
46277         doc/posix-functions/swapcontext.texi.
46278         * doc/pastposix-functions/ualarm.texi: Renamed from
46279         doc/posix-functions/ualarm.texi.
46280         * doc/pastposix-functions/usleep.texi: Renamed from
46281         doc/posix-functions/usleep.texi.
46282         * doc/pastposix-functions/vfork.texi: Renamed from
46283         doc/posix-functions/vfork.texi.
46284         * doc/pastposix-functions/wcswcs.texi: Renamed from
46285         doc/posix-functions/wcswcs.texi.
46286         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
46287         (Function Substitutes): Update.
46288
46289 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46290
46291         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
46292         m4/strerror.m4.
46293
46294 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46295             Bruno Haible  <bruno@clisp.org>
46296
46297         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
46298
46299 2008-12-13  Bruno Haible  <bruno@clisp.org>
46300
46301         * modules/strtoull (Depends-on): Remove unistd.
46302
46303 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46304
46305         * modules/strtoull (Depends-on): Add stdlib.
46306
46307 2008-12-11  Simon Josefsson  <simon@josefsson.org>
46308
46309         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
46310
46311 2008-12-10  Jim Meyering  <meyering@redhat.com>
46312
46313         gl_ASSERT: don't say assertions are disabled when they're not
46314         * m4/assert.m4 (gl_ASSERT): Do not make configure report
46315         "checking whether to enable assertions... no", when they are in
46316         fact enabled.  This is solely a bug in the output of configure.
46317         In spite of saying "no", NDEBUG was not defined in that case.
46318         Also, as noted by Eric Blake, leave assertions enabled upon
46319         --enable-assert=INVALID.
46320
46321 2008-12-10  Bruno Haible  <bruno@clisp.org>
46322
46323         Change MODULES.html to refer to POSIX:2008 where possible.
46324         * MODULES.html.sh (POSIX2008_URL): New variable.
46325         (posix_headers): Remove sys/timeb, ucontext.
46326         (posix2001_headers): New variable.
46327         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
46328         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
46329         index, makecontext, mktemp, pthread_attr_getstackaddr,
46330         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
46331         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
46332         (posix2001_functions): New variable.
46333         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
46334         otherwise.
46335
46336 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46337
46338         add missing include to parse-duration.c
46339         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
46340         * modules/parse-duration (Depends-on): Add xalloc.
46341
46342         fix sed script reading maint.mk
46343         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
46344         (syntax-check-rules): Use it.
46345
46346 2008-12-09  Bruno Haible  <bruno@clisp.org>
46347
46348         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
46349         MacOS X 10.4/PowerPC.
46350         Reported by Simon Josefsson.
46351
46352 2008-12-08  Jim Meyering  <meyering@redhat.com>
46353
46354         work around mingw's lack of some S_IF definitions
46355         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
46356         Reported by Simon Josefsson.
46357
46358 2008-12-08  Bruno Haible  <bruno@clisp.org>
46359
46360         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
46361         applied to variables. Needed on MacOS X 10.4/PowerPC.
46362         Reported by Simon Josefsson.
46363
46364 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
46365         and Eric Blake  <ebb9@byu.net>
46366
46367         assert: honor --enable-assert
46368         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
46369         order to honor --enable-assert, rather than treating it as a
46370         synonym for --disable-assert.
46371
46372 2008-12-08  Jim Meyering  <meyering@redhat.com>
46373
46374         * lib/posixtm.c: Remove now-useless declaration of mktime.
46375
46376         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
46377
46378 2008-12-07  Bruno Haible  <bruno@clisp.org>
46379
46380         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
46381         test_once): Mark functions as static.
46382         * tests/test-tls.c (test_tls): Likewise.
46383
46384 2008-12-07  Bruno Haible  <bruno@clisp.org>
46385
46386         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
46387         iconv_register_autodetect.
46388
46389 2008-12-07  Jim Meyering  <meyering@redhat.com>
46390
46391         posixtm.c: avoid a warning
46392         * lib/posixtm.c (posixtime): Don't initialize tm0.
46393         It's no longer needed to placate gcc4's -Wuninitialized,
46394         and the attempt to placate would elicit a new warning.
46395
46396         unicodeio.c: mark unused parameters
46397         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46398         (fallback_failure_callback): Likewise.
46399
46400 2008-12-07  Bruno Haible  <bruno@clisp.org>
46401
46402         * gnulib-tool (func_create_testdir): When building the tests
46403         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
46404         Reported by Simon Josefsson.
46405
46406 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46407
46408         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
46409
46410 2008-12-06  Bruno Haible  <bruno@clisp.org>
46411
46412         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
46413         Suggested by Eric Blake.
46414
46415 2008-12-06  Bruno Haible  <bruno@clisp.org>
46416
46417         Fix a c-stack test failure on MacOS X.
46418         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
46419         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
46420         handler for SIGBUS as well.
46421         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
46422         install a signal handler for SIGBUS as well.
46423         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
46424
46425 2008-12-06  Bruno Haible  <bruno@clisp.org>
46426
46427         Advocacy documentation.
46428         * doc/gnulib-intro.texi (Benefits): New section.
46429         * doc/gnulib.texi: Update.
46430
46431 2008-12-06  Bruno Haible  <bruno@clisp.org>
46432
46433         Document the 'manywarnings' module.
46434         * doc/manywarnings.texi: New file.
46435         * doc/gnulib.texi: Include it.
46436
46437 2008-12-05  Eric Blake  <ebb9@byu.net>
46438
46439         tests: silence some gcc warnings
46440         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
46441         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
46442         type mismatches.
46443
46444 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46445             Bruno Haible  <bruno@clisp.org>
46446
46447         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
46448
46449 2008-11-29  Jim Meyering  <meyering@redhat.com>
46450
46451         unicodeio.c: mark unused parameters
46452         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46453         (fallback_failure_callback): Likewise.
46454
46455         fts: fix a thinko
46456         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
46457         (set_stat_type): Return S_IF*-valued "type" directly.
46458         Prompted by James Youngman's spotting a related bug.
46459         Confirmed by further testing through find.
46460
46461         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
46462         * lib/fts.c (D_TYPE): Define.
46463         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
46464         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
46465         (s_ifmt_shift_bits): New function.
46466         (set_stat_type): New function.
46467         (fts_build): When not calling fts_stat, call set_stat_type
46468         to propagate dirent.d_type info to fts_read caller.
46469         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
46470         fts_statp->st_mode type information may be valid.
46471
46472 2008-11-28  Simon Josefsson  <simon@josefsson.org>
46473
46474         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
46475         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
46476         <sds@gnu.org>.
46477
46478 2008-11-20  Bruno Haible  <bruno@clisp.org>
46479
46480         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
46481         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
46482         INCLUDE_NEXT.
46483         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
46484         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
46485         * modules/math (Makefile.am): Substitute
46486         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
46487         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46488
46489 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
46490             Bruno Haible  <bruno@clisp.org>
46491
46492         * lib/stdint.in.h: Define all type macros so that their expansion is
46493         a single typedef'ed token. Fixes a compilation failure in Boost which
46494         does "using ::int8_t;".
46495
46496 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46497
46498         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
46499         gl_MANYWARN_ALL_GCC.
46500         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
46501         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
46502         * modules/manywarnings: New file.
46503         * MODULES.html.sh: Mention manywarnings module.
46504
46505 2008-11-18  Bruno Haible  <bruno@clisp.org>
46506
46507         * doc/gnulib-tool.texi (Unit tests): New section.
46508
46509 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46510
46511         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
46512         paths like 'lib/po/foo.po'.
46513
46514 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46515
46516         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
46517         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
46518
46519 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46520
46521         * m4/warnings.m4: Use CPPFLAGS to really check whether the
46522         parameter works.
46523
46524 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46525
46526         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
46527
46528 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46529
46530         * modules/parse-duration-tests: New file.
46531         * tests/test-parse-duration.sh: New file.
46532         * tests/test-parse-duration.c: New file.
46533
46534         New module 'parse-duration'.
46535         * lib/parse-duration.h: New file.
46536         * lib/parse-duration.c: New file.
46537         * modules/parse-duration: New file.
46538
46539 2008-11-17  Bruno Haible  <bruno@clisp.org>
46540
46541         * tests/test-select-out.sh: Comment out the first pipe test.
46542         Reported by Simon Josefsson.
46543
46544 2008-11-17  Bruno Haible  <bruno@clisp.org>
46545
46546         * modules/getaddrinfo (Depends-on): Add servent, hostent.
46547         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
46548         gl_HOSTENT.
46549
46550 2008-11-17  Bruno Haible  <bruno@clisp.org>
46551
46552         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
46553         -lnetwork and -lnet. Needed for Haiku and BeOS.
46554
46555 2008-11-16  Bruno Haible  <bruno@clisp.org>
46556
46557         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
46558
46559 2008-11-16  Bruno Haible  <bruno@clisp.org>
46560
46561         Avoid test failure on Haiku.
46562         * tests/test-fsync.c: Include <errno.h>.
46563         (main): Don't require that fsync (0) fails.
46564
46565 2008-11-15  Bruno Haible  <bruno@clisp.org>
46566
46567         New module 'hostent'.
46568         * modules/hostent: New file.
46569         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
46570
46571 2008-11-15  Bruno Haible  <bruno@clisp.org>
46572
46573         New module 'servent'.
46574         * modules/servent: New file.
46575         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
46576
46577 2008-11-15  Bruno Haible  <bruno@clisp.org>
46578
46579         Avoid generating same test program with two different rules.
46580         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
46581         test-frexp to test-frexp-nolibm.
46582         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
46583         test-frexpl to test-frexpl-nolibm.
46584
46585 2008-11-15  Bruno Haible  <bruno@clisp.org>
46586
46587         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
46588         $(FREXPL_LIBM).
46589
46590 2008-11-15  Bruno Haible  <bruno@clisp.org>
46591
46592         * lib/netdb.in.h: Activate the definitions also when the system's
46593         <netdb.h> has 'struct addrinfo'.
46594         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
46595         EAI_OVERFLOW or AI_NUMERICSERV.
46596         * doc/posix-headers/netdb.texi: Document the problem.
46597
46598 2008-11-15  Bruno Haible  <bruno@clisp.org>
46599
46600         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
46601
46602         Make the 'sched' module work on platforms where <sched.h> exists but
46603         is incomplete (such as Haiku).
46604         * lib/sched.in.h; Include the system's <sched.h> if it exists.
46605         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
46606         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
46607         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
46608         HAVE_STRUCT_SCHED_PARAM.
46609         * modules/sched (Depends-on): Add include_next.
46610         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
46611         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
46612         * doc/posix-headers/sched.texi: Document the issue.
46613
46614 2008-11-13  Jim Meyering  <meyering@redhat.com>
46615
46616         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
46617         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
46618         test would fail due to the difference in the Report bugs to ...
46619         line.  The expected address is empty, "<>", while the actual
46620         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
46621
46622 2008-11-12  Bruno Haible  <bruno@clisp.org>
46623
46624         lstat: don't compile lstat.c on systems lacking lstat
46625         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
46626         which don't have lstat; this is handled by lib/sys_stat.in.h already.
46627         Reported by Daniel P. Berrange via Jim Meyering.
46628
46629 2008-11-12  Jim Meyering  <meyering@redhat.com>
46630
46631         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
46632
46633 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46634
46635         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
46636         instead.
46637
46638 2008-11-12  Bruno Haible  <bruno@clisp.org>
46639
46640         * lib/unicodeio.c: Include unistr.h.
46641         (utf8_wctomb): Remove function.
46642         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
46643
46644 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46645
46646         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
46647         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
46648         <bruno@clisp.org>.
46649         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
46650
46651 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46652
46653         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
46654         * doc/gnulib.texi: Add section for warnings.
46655
46656 2008-11-11  Bruno Haible  <bruno@clisp.org>
46657
46658         * lib/sockets.h: Add a comment.
46659
46660 2008-11-11  Karl Berry  <karl@gnu.org>
46661
46662         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
46663
46664 2008-11-11  Eric Blake  <ebb9@byu.net>
46665
46666         fdl.texi: avoid git symlinks
46667         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
46668
46669 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46670
46671         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
46672
46673 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46674
46675         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
46676         (gl_WARN_ADD): Substitute $2 if literal.
46677
46678 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46679
46680         * m4/warning.m4: Remove.
46681
46682 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46683
46684         * m4/warnings.m4: Almost complete rewrite. :-)
46685
46686 2008-11-10  Simon Josefsson  <simon@josefsson.org>
46687
46688         * modules/warnings: New module.
46689         * m4/warnings.m4: New file.
46690         * MODULES.html.sh: Mention warnings module.
46691         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
46692         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46693
46694 2008-11-10  Eric Blake  <ebb9@byu.net>
46695
46696         fdl.texi: make a symlink to the latest version
46697         * doc/standards.texi: Revert today's earlier change.
46698         * doc/fdl-1.2.texi: Rename from old fdl.texi...
46699         * doc/fdl.texi: ...and replace this with a symlink to the newer
46700         fdl-1.3.texi.
46701
46702 2008-11-10  Bruno Haible  <bruno@clisp.org>
46703
46704         * tests/test-select-fd.c (main): Accept the result file name as fourth
46705         argument.
46706         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
46707         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
46708
46709 2008-11-10  Bruno Haible  <bruno@clisp.org>
46710
46711         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
46712         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
46713         as autoconf-substituted macros.
46714         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
46715         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
46716         gl_NETDB_H_DEFAULTS. Set these variables.
46717         * modules/netdb (Makefile.am): Substitute these variables.
46718
46719 2008-11-10  Eric Blake  <ebb9@byu.net>
46720
46721         standards.texi: include correct file for FDL 1.3
46722         * doc/standards.texi (GNU Free Documentation License): Change
46723         include file to pull in FDL 1.3, not 1.2.
46724
46725         fdl.texi: revert accidental change to license
46726         * doc/fdl.texi: This is FDL 1.2, not 1.3.
46727
46728 2008-11-10  Bruno Haible  <bruno@clisp.org>
46729
46730         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
46731         cross-compiling guesses also when the native compile gives no result.
46732
46733 2008-11-10  Bruno Haible  <bruno@clisp.org>
46734
46735         * lib/spawni.c (__spawni): Force variable into the stack.
46736
46737 2008-11-10  Bruno Haible  <bruno@clisp.org>
46738
46739         Add support for Haiku.
46740         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
46741         glibc and BeOS, but also on Haiku.
46742         * lib/fpurge.c (fpurge): Likewise.
46743         * lib/freadable.c (freadable): Likewise.
46744         * lib/freadahead.c (freadahead): Likewise.
46745         * lib/freading.c (freading): Likewise.
46746         * lib/freadptr.c (freadptr): Likewise.
46747         * lib/freadseek.c (freadptrinc): Likewise.
46748         * lib/fseeko.c (rpl_fseeko): Likewise.
46749         * lib/fseterr.c (fseterr): Likewise.
46750         * lib/fwritable.c (fwritable): Likewise.
46751         * lib/fwriting.c (fwriting): Likewise.
46752         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
46753
46754 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46755
46756         * lib/config.charset: Treat Haiku like BeOS.
46757
46758 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46759
46760         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
46761         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
46762
46763 2008-11-08  Bruno Haible  <bruno@clisp.org>
46764
46765         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
46766         AC_CACHE_CHECK.
46767
46768 2008-11-08  Bruno Haible  <bruno@clisp.org>
46769
46770         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
46771
46772 2008-11-08  Bruno Haible  <bruno@clisp.org>
46773
46774         * tests/test-select-fd.c: New file.
46775         * tests/test-select-in.sh: New file.
46776         * tests/test-select-out.sh: New file.
46777         * tests/test-select-stdin.c: New file.
46778         * modules/select-tests (Files): Add the new files.
46779         (Depends-on): Add gettimeofday.
46780         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
46781         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
46782         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
46783
46784 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
46785             Bruno Haible  <bruno@clisp.org>
46786
46787         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
46788
46789 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
46790
46791         * build-aux/pmccabe2html: Added support for C++ source files.
46792
46793 2008-11-05  Ben Pfaff  <blp@gnu.org>
46794
46795         Fix lib/close.c build on Windows.
46796         * modules/close (Files): Add lib/w32sock.h.
46797
46798 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
46799
46800         Accept Bison's NEWS format.
46801         * build-aux/announce-gen (print_news_deltas): Tweak
46802         $re_prefix.
46803
46804 2008-11-04  Bruno Haible  <bruno@clisp.org>
46805
46806         * modules/random_r (Maintainer): Add glibc.
46807
46808 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46809
46810         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
46811         by karl@freefriends.org (Karl Berry).
46812         * doc/alloca.texi: Likewise.
46813         * doc/c-ctype.texi: Likewise.
46814         * doc/c-strcase.texi: Likewise.
46815         * doc/c-strcaseeq.texi: Likewise.
46816         * doc/c-strcasestr.texi: Likewise.
46817         * doc/c-strstr.texi: Likewise.
46818         * doc/c-strtod.texi: Likewise.
46819         * doc/c-strtold.texi: Likewise.
46820         * doc/ctime.texi: Likewise.
46821         * doc/error.texi: Likewise.
46822         * doc/fdl.texi: Likewise.
46823         * doc/gcd.texi: Likewise.
46824         * doc/getdate.texi: Likewise.
46825         * doc/gnulib-intro.texi: Likewise.
46826         * doc/gnulib-tool.texi: Likewise.
46827         * doc/gnulib.texi: Likewise.
46828         * doc/inet_ntoa.texi: Likewise.
46829         * doc/maintain.texi: Likewise.
46830         * doc/make-stds.texi: Likewise.
46831         * doc/quote.texi: Likewise.
46832         * doc/regexprops-generic.texi: Likewise.
46833         * doc/standards.texi: Likewise.
46834         * doc/verify.texi: Likewise.
46835         * doc/visibility.texi: Likewise.
46836         * doc/gnulib.texi (GNU Free Documentation License): Include
46837         fdl-1.3.texi instead of fdl.texi.
46838
46839 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46840
46841         * doc/fdl-1.3.texi: New file, from
46842         <http://www.gnu.org/licenses/fdl-1.3.texi>.
46843         * modules/fdl-1.3: Add.
46844         * MODULES.html.sh: Add fdl-1.3.
46845
46846 2008-11-03  Bruno Haible  <bruno@clisp.org>
46847
46848         Make determination of absolute name of header file work with AIX xlc.
46849         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
46850         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
46851         preprocessing.
46852         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46853         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46854
46855 2008-11-03  Simon Josefsson  <simon@josefsson.org>
46856
46857         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
46858         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
46859         <ludo@gnu.org>.
46860
46861 2008-11-02  Bruno Haible  <bruno@clisp.org>
46862
46863         Mark 'strpbrk' obsolete.
46864         * modules/strpbrk (Status, Notice): New sections.
46865         * modules/strtok_r (Depends-on): Add strpbrk.
46866
46867 2008-11-02  Bruno Haible  <bruno@clisp.org>
46868
46869         Mark 'strdup' obsolete.
46870         * modules/strdup (Status, Notice): New sections.
46871         * modules/findprog (Depends-on): Add strdup.
46872         * modules/getaddrinfo (Depends-on): Likewise.
46873         * modules/localename (Depends-on): Likewise.
46874         * modules/relocatable-lib (Depends-on): Likewise.
46875         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
46876         * modules/relocatable-prog (Depends-on): Likewise.
46877         * modules/trim (Depends-on): Likewise.
46878         * modules/unictype/gen-ctype (Depends-on): Likewise.
46879         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46880
46881 2008-11-02  Bruno Haible  <bruno@clisp.org>
46882
46883         Mark 'strcspn' obsolete.
46884         * modules/strcspn (Status, Notice): New sections.
46885
46886 2008-11-02  Bruno Haible  <bruno@clisp.org>
46887
46888         Mark 'rmdir' obsolete.
46889         * modules/rmdir (Status, Notice): New sections.
46890         * modules/clean-temp (Depends-on): Add rmdir.
46891         * modules/openat (Depends-on): Likewise.
46892
46893 2008-11-02  Bruno Haible  <bruno@clisp.org>
46894
46895         Mark 'raise' obsolete.
46896         * modules/raise (Status, Notice): New sections.
46897         (Include): Specify <signal.h>.
46898         * modules/stdio (Depends-on): Add raise.
46899         * modules/write (Depends-on): Likewise.
46900
46901 2008-11-02  Bruno Haible  <bruno@clisp.org>
46902
46903         Mark 'memset' obsolete.
46904         * modules/memset (Status, Notice): New sections.
46905
46906 2008-11-02  Bruno Haible  <bruno@clisp.org>
46907
46908         Mark 'memmove' obsolete.
46909         * modules/memmove (Status, Notice): New sections.
46910         * modules/argp (Depends-on): Add memmove.
46911         * modules/argz (Depends-on): Likewise.
46912         * modules/canonicalize (Depends-on): Likewise.
46913         * modules/canonicalize-lgpl (Depends-on): Likewise.
46914         * modules/fts (Depends-on): Likewise.
46915         * modules/getcwd (Depends-on): Likewise.
46916         * modules/human (Depends-on): Likewise.
46917         * modules/regex (Depends-on): Likewise.
46918         * modules/striconveh (Depends-on): Likewise.
46919         * modules/trim (Depends-on): Likewise.
46920         * modules/unistr/u8-move (Depends-on): Likewise.
46921         * modules/unistr/u16-move (Depends-on): Likewise.
46922         * modules/unistr/u32-move (Depends-on): Likewise.
46923
46924 2008-11-02  Bruno Haible  <bruno@clisp.org>
46925
46926         Mark 'memcpy' obsolete.
46927         * modules/memcpy (Status, Notice): New sections.
46928
46929 2008-11-02  Bruno Haible  <bruno@clisp.org>
46930
46931         Mark 'memcmp' obsolete.
46932         * modules/memcmp (Status, Notice): New sections.
46933         * modules/argmatch (Depends-on): Add memchr.
46934         * modules/backupfile (Depends-on): Likewise.
46935         * modules/c-strcasestr (Depends-on): Likewise.
46936         * modules/crypto/des (Depends-on): Likewise.
46937         * modules/csharpcomp (Depends-on): Likewise.
46938         * modules/fnmatch (Depends-on): Likewise.
46939         * modules/git-merge-changelog (Depends-on): Likewise.
46940         * modules/isnand (Depends-on): Likewise.
46941         * modules/isnand-nolibm (Depends-on): Likewise.
46942         * modules/isnanf (Depends-on): Likewise.
46943         * modules/isnanf-nolibm (Depends-on): Likewise.
46944         * modules/isnanl (Depends-on): Likewise.
46945         * modules/isnanl-nolibm (Depends-on): Likewise.
46946         * modules/mbchar (Depends-on): Likewise.
46947         * modules/memcoll (Depends-on): Likewise.
46948         * modules/quotearg (Depends-on): Likewise.
46949         * modules/regex (Depends-on): Likewise.
46950         * modules/relocatable-prog (Depends-on): Likewise.
46951         * modules/same (Depends-on): Likewise.
46952         * modules/signbit (Depends-on): Likewise.
46953         * modules/strcasestr-simple (Depends-on): Likewise.
46954         * modules/unictype/gen-ctype (Depends-on): Likewise.
46955         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46956         * modules/uniname/uniname (Depends-on): Likewise.
46957         * modules/unistr/u8-cmp (Depends-on): Likewise.
46958
46959 2008-11-02  Bruno Haible  <bruno@clisp.org>
46960
46961         Mark 'memchr' obsolete.
46962         * modules/memchr (Status, Notice): New sections.
46963         * modules/argp (Depends-on): Add memchr.
46964         * modules/base64 (Depends-on): Likewise.
46965         * modules/c-strcasestr (Depends-on): Likewise.
46966         * modules/chdir-long (Depends-on): Likewise.
46967         * modules/fnmatch (Depends-on): Likewise.
46968         * modules/getsubopt (Depends-on): Likewise.
46969         * modules/git-merge-changelog (Depends-on): Likewise.
46970         * modules/glob (Depends-on): Likewise.
46971         * modules/strcasestr-simple (Depends-on): Likewise.
46972         * modules/strnlen (Depends-on): Likewise.
46973
46974 2008-11-02  Bruno Haible  <bruno@clisp.org>
46975
46976         Mark 'atexit' obsolete.
46977         * modules/atexit (Status, Notice): New sections.
46978         * modules/chdir-long (Depends-on): Add atexit.
46979         * modules/wait-process (Depends-on): Likewise.
46980
46981 2008-11-02  Bruno Haible  <bruno@clisp.org>
46982
46983         * gnulib-tool: New option --with-obsolete.
46984         (func_usage): Document it.
46985         (func_modules_transitive_closure): Drop obsolete dependencies if
46986         incobsolete is not true.
46987         (func_import): Read and save the incobsolete variable to the cache.
46988
46989 2008-11-02  Bruno Haible  <bruno@clisp.org>
46990
46991         * modules/TEMPLATE-EXTENDED: New field 'Status'.
46992         * gnulib-tool: New option --extract-status.
46993         (func_usage): Document it.
46994         (sed_extract_prog): Recognize it.
46995         (func_get_status): New function.
46996
46997 2008-10-30  Simon Josefsson  <simon@josefsson.org>
46998
46999         * modules/sockets (License): Change from LGPL to LGPLv2+.
47000
47001 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47002
47003         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
47004
47005 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47006
47007         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47008         Mention times and sys_times.
47009         * modules/sys_times, modules/sys_times-tests: New modules.
47010         * modules/times, modules/times-tests: Likewise
47011         * m4/sys_times_h.m4: New file.
47012         * lib/sys_times.in.h: Likewise
47013         * lib/times.c: Likewise.
47014         * tests/test-sys_times.c: Likewise.
47015         * tests/test-times.c: Likewise.
47016         * doc/posix-headers/sys_times.texi: Update.
47017         * doc/posix-functions/times.texi: Update.
47018
47019 2008-10-28  Jim Meyering  <meyering@redhat.com>
47020
47021         * modules/tempname (Depends-on): Add lstat.
47022
47023         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
47024
47025 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47026
47027         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
47028         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
47029         using idiom used elsewhere in gnulib.
47030
47031 2008-10-27  Jim Meyering  <meyering@redhat.com>
47032
47033         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
47034
47035 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47036
47037         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
47038         TESTS_ENVIRONMENT, for shell scripts that needs to call built
47039         programs.
47040         * tests/test-argp-2.sh: Use $EXEEXT when needed.
47041
47042 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47043
47044         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
47045
47046 2008-10-27  Bruno Haible  <bruno@clisp.org>
47047
47048         * tests/test-lstat.c: Include <stdio.h>.
47049
47050 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47051
47052         * modules/lstat-tests: New module.
47053         * tests/test-lstat.c: New file.
47054
47055 2008-10-26  Jim Meyering  <meyering@redhat.com>
47056
47057         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
47058
47059 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47060             Bruno Haible  <bruno@clisp.org>
47061
47062         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
47063         * modules/configmake (Include): Add a note that the include must come
47064         after all system headers.
47065         * lib/javaversion.c: Include configmake.h after all other includes.
47066
47067 2008-10-26  Bruno Haible  <bruno@clisp.org>
47068
47069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
47070         HAVE_STRUCT_RANDOM_DATA to 1.
47071         (gl_STDLIB_H): Simplify.
47072
47073 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47074
47075         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
47076         substitute HAVE_STRUCT_RANDOM_DATA.
47077         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
47078         random_data.
47079         * modules/stdlib (Makefile.am): Substitute
47080         HAVE_STRUCT_RANDOM_DATA.
47081
47082 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47083
47084         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
47085         * doc/gnulib-intro.texi (Copyright): Likewise.
47086
47087 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47088
47089         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
47090         findings.
47091
47092 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
47093             Bruno Haible  <bruno@clisp.org>
47094
47095         * lib/unistd.in.h: Include <winsock2.h>.
47096         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
47097         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
47098         Provide dummy declarations.
47099         (gethostname): Override.
47100         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
47101         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
47102         gl_PREREQ_SYS_H_WINSOCK2.
47103         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
47104         * doc/posix-functions/gethostname.texi: More details.
47105
47106 2008-10-25  Bruno Haible  <bruno@clisp.org>
47107
47108         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47109         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
47110         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
47111
47112         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
47113         here ...
47114         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
47115         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
47116         gl_UNISTD_H_DEFAULTS.
47117
47118 2008-10-25  Eric Blake  <ebb9@byu.net>
47119
47120         signbit: avoid spurious compiler failure
47121         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
47122         declarations inside function.
47123
47124 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47125             Bruno Haible  <bruno@clisp.org>
47126
47127         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
47128         * modules/random_r (Depends-on): Add stdint.
47129
47130 2008-10-24  Bruno Haible  <bruno@clisp.org>
47131
47132         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
47133         Eggert.
47134         * modules/strerror (License): Likewise.
47135
47136 2008-10-24  Jim Meyering  <meyering@redhat.com>
47137
47138         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
47139         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
47140
47141 2008-10-24  Eric Blake  <ebb9@byu.net>
47142
47143         getgroups: fix compilation when getgroups is available
47144         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
47145         but with <config.h> override of getgroups disabled.
47146
47147 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47148
47149         * doc/gnulib.texi (Header files): Add note about C++ problems.
47150         Explained by Bruno Haible <bruno@clisp.org>.
47151
47152 2008-10-23  Bruno Haible  <bruno@clisp.org>
47153
47154         Define a dummy SA_NODEFER macro on Interix.
47155         * lib/signal.in.h (SA_NODEFER): Define fallback.
47156         Reported by Aleksey Cheusov <cheusov@tut.by> via
47157         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
47158
47159 2008-10-23  Bruno Haible  <bruno@clisp.org>
47160
47161         * modules/freadahead (License): Change to LGPLv2+.
47162         Suggested by Simon Josefsson.
47163
47164 2008-10-23  Jim Meyering  <meyering@redhat.com>
47165
47166         random_r: new module
47167         * modules/random_r: New file.
47168         * m4/random_r.m4: New file.
47169         * lib/random_r.c: New file, from glibc.
47170         * modules/random_r-tests: New file.
47171         * tests/test-random_r.c: New file.
47172         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
47173          Declare.
47174         (RAND_MAX): Define.
47175         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
47176         * modules/stdlib: Substitute them, too.
47177         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
47178         * doc/glibc-functions/initstate_r.texi: Mention the new module.
47179         * doc/glibc-functions/random_r.texi: Likewise.
47180         * doc/glibc-functions/setstate_r.texi: Likewise.
47181         * doc/glibc-functions/srandom_r.texi: Likewise.
47182         * config/srclist.txt: Mention it.
47183
47184 2008-10-23  David Lutterkort  <lutter@redhat.com>
47185
47186         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
47187         link requirement
47188
47189 2008-10-23  Jim Meyering  <meyering@redhat.com>
47190
47191         selinux-h: mark parameters of stub functions as intentionally unused
47192         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
47193         * lib/se-context.in.h: Likewise.
47194
47195 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47196
47197         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
47198
47199 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47200
47201         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
47202
47203 2008-10-22  Eric Blake  <ebb9@byu.net>
47204
47205         glthread/thread: avoid compiler warning
47206         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
47207         Add unreachable abort to silence compiler.
47208
47209 2008-10-22  Eric Blake  <ebb9@byu.net>
47210
47211         netdb: also supply struct addrinfo for cygwin 1.5.x
47212         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
47213         older cygwin.
47214         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
47215         cygwin.
47216         * doc/posix-headers/netdb.texi (netdb.h): Document this.
47217
47218 2008-10-22  Bruno Haible  <bruno@clisp.org>
47219
47220         * users.txt: Update entry about pspp.
47221
47222 2008-10-21  Bruno Haible  <bruno@clisp.org>
47223
47224         Simplification.
47225         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
47226         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
47227
47228         Simplification.
47229         * lib/ioctl.c (ioctl): Don't undefine.
47230         * lib/socket.c (socket): Don't undefine.
47231
47232         Remove unused module indicator macros.
47233         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
47234         GNULIB_$1 as a C macro.
47235
47236         * doc/posix-functions/close.texi: Undo last change.
47237         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
47238         Windows platforms.
47239
47240 2008-10-21  Bruno Haible  <bruno@clisp.org>
47241
47242         Add gethostname() declaration to <unistd.h>.
47243         * lib/unistd.in.h (gethostname): New declaration.
47244         * lib/gethostname.c: Include <unistd.h>.
47245         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
47246         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
47247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
47248         and HAVE_GETHOSTNAME.
47249         * modules/gethostname (Depends-on): Add unistd.
47250         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47251         (Include): Specify <unistd.h>.
47252         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
47253         HAVE_GETHOSTNAME.
47254         * tests/test-gethostname.c: Include <unistd.h> first.
47255
47256 2008-10-21  Bruno Haible  <bruno@clisp.org>
47257
47258         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
47259         * modules/select-tests (Depends-on): Likewise.
47260         Reported by Simon Josefsson.
47261
47262 2008-10-21  Simon Josefsson  <simon@josefsson.org>
47263
47264         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
47265         * lib/accept.c: New file, based on winsock.c.
47266         * lib/bind.c: New file, based on winsock.c.
47267         * lib/connect.c: New file, based on winsock.c.
47268         * lib/getpeername.c: New file, based on winsock.c.
47269         * lib/getsockname.c: New file, based on winsock.c.
47270         * lib/getsockopt.c: New file, based on winsock.c.
47271         * lib/ioctl.c: New file, based on winsock.c.
47272         * lib/listen.c: New file, based on winsock.c.
47273         * lib/recv.c: New file, based on winsock.c.
47274         * lib/recvfrom.c: New file, based on winsock.c.
47275         * lib/send.c: New file, based on winsock.c.
47276         * lib/sendto.c: New file, based on winsock.c.
47277         * lib/setsockopt.c: New file, based on winsock.c.
47278         * lib/shutdown.c: New file, based on winsock.c.
47279         * lib/socket.c: New file, based on winsock.c.
47280         * lib/w32sock.h: New file, based on winsock.c.
47281         * lib/winsock.c: Remove file.
47282         * modules/accept: Likewise.
47283         * modules/bind: Likewise.
47284         * modules/connect: Likewise.
47285         * modules/getpeername: Likewise.
47286         * modules/getsockname: Likewise.
47287         * modules/getsockopt: Likewise.
47288         * modules/ioctl: Likewise.
47289         * modules/listen: Likewise.
47290         * modules/recv: Likewise.
47291         * modules/recvfrom: Likewise.
47292         * modules/send: Likewise.
47293         * modules/sendto: Likewise.
47294         * modules/setsockopt: Likewise.
47295         * modules/shutdown: Likewise.
47296         * modules/socket: Use socket.c instead of winsock.c.
47297         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
47298         * doc/posix-functions/accept.texi: Doc fix.
47299         * doc/posix-functions/bind.texi: Doc fix.
47300         * doc/posix-functions/close.texi: Doc fix.
47301         * doc/posix-functions/connect.texi: Doc fix.
47302         * doc/posix-functions/getpeername.texi: Doc fix.
47303         * doc/posix-functions/getsockname.texi: Doc fix.
47304         * doc/posix-functions/getsockopt.texi: Doc fix.
47305         * doc/posix-functions/ioctl.texi: Doc fix.
47306         * doc/posix-functions/listen.texi: Doc fix.
47307         * doc/posix-functions/recv.texi: Doc fix.
47308         * doc/posix-functions/recvfrom.texi: Doc fix.
47309         * doc/posix-functions/send.texi: Doc fix.
47310         * doc/posix-functions/sendto.texi: Doc fix.
47311         * doc/posix-functions/setsockopt.texi: Doc fix.
47312         * doc/posix-functions/shutdown.texi: Doc fix.
47313         * doc/posix-functions/socket.texi: Doc fix.
47314
47315 2008-10-20  Bruno Haible  <bruno@clisp.org>
47316
47317         Take into account the role of SIGABRT_COMPAT on Windows 2008.
47318         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
47319         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
47320         as an alias for SIGABRT.
47321         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
47322         (sigaction): Map it to SIGABRT.
47323         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
47324
47325 2008-10-20  Bruno Haible  <bruno@clisp.org>
47326
47327         * lib/fts.c: Don't include lstat.h.
47328         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
47329
47330         Move the lstat() declaration to <sys/stat.h>.
47331         * lib/lstat.h: Remove file.
47332         * lib/sys_stat.in.h: Add special invocation convention.
47333         (lstat): New declaration.
47334         * lib/lstat.c (orig_lstat): New function.
47335         (rpl_lstat): Use orig_lstat instead of lstat.
47336         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
47337         AC_C_INLINE. Set REPLACE_LSTAT.
47338         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
47339         and REPLACE_LSTAT.
47340         * modules/lstat (Files): Remove lib/lstat.h.
47341         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47342         (Include): Specify <sys/stat.h> instead of lstat.h.
47343         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
47344         REPLACE_LSTAT.
47345         * NEWS: Mention the change.
47346
47347 2008-10-20  Bruno Haible  <bruno@clisp.org>
47348
47349         * modules/posix_spawn-tests: New file.
47350         * tests/test-posix_spawn3.c: New file.
47351
47352 2008-10-20  Bruno Haible  <bruno@clisp.org>
47353
47354         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
47355         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47356         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
47357         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47358         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
47359
47360 2008-10-20  Bruno Haible  <bruno@clisp.org>
47361
47362         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
47363         of posix_spawn on AIX 5.3.
47364
47365 2008-10-20  Bruno Haible  <bruno@clisp.org>
47366
47367         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
47368
47369 2008-10-20  Bruno Haible  <bruno@clisp.org>
47370
47371         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
47372         of AC_LANG_PROGRAM.
47373
47374 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47375
47376         * lib/netdb.in.h: Don't define GNU specific constants until they
47377         are supported or needed.  Reported by Bruno Haible
47378         <bruno@clisp.org>.
47379
47380 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47381
47382         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
47383
47384 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47385
47386         * lib/getaddrinfo.h: Remove file.
47387         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
47388         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
47389         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
47390         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
47391         * modules/netdb: Substitute GNULIB_GETADDRINFO.
47392         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
47393         * tests/test-getaddrinfo.c: Likewise.
47394         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
47395         * NEWS: Mention change.
47396
47397 2008-10-19  Bruno Haible  <bruno@clisp.org>
47398
47399         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
47400
47401 2008-10-19  Bruno Haible  <bruno@clisp.org>
47402
47403         * lib/wait-process.c: Include simply <sys/wait.h>.
47404         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
47405         WIFSTOPPED): Remove fallback definitions.
47406         * modules/wait-process (Depends-on): Add sys_wait.
47407
47408         New module 'sys_wait'.
47409         * modules/sys_wait: New file.
47410         * lib/sys_wait.in.h: New file, partially copied from
47411         lib/wait-process.c.
47412         * m4/sys_wait_h.m4: New file.
47413         * doc/posix-headers/sys_wait.texi: Mention the new module.
47414
47415 2008-10-19  Bruno Haible  <bruno@clisp.org>
47416
47417         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
47418
47419 2008-10-19  Bruno Haible  <bruno@clisp.org>
47420
47421         Assume that waitpid() fills an 'int' status, not a 'union wait'.
47422         * lib/wait-process.c (WAIT_T): Remove type.
47423         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
47424         (wait_subprocess): Update.
47425
47426 2008-10-19  Bruno Haible  <bruno@clisp.org>
47427
47428         New module 'atoll'.
47429         * modules/atoll: New file.
47430         * lib/stdlib.in.h (atoll): New declaration.
47431         * lib/atoll.c: New file, from glibc with modifications.
47432         * m4/atoll.m4: New file.
47433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
47434         HAVE_ATOLL.
47435         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
47436         * doc/posix-functions/atoll.texi: Mention the new module.
47437
47438 2008-10-19  Bruno Haible  <bruno@clisp.org>
47439
47440         Add strtoull() declaration to <stdlib.h>.
47441         * lib/stdlib.in.h (strtoull): New declaration.
47442         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47443         Set HAVE_STRTOULL.
47444         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
47445         HAVE_STRTOULL.
47446         * modules/strtoull (Depends-on): Add stdlib.
47447         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47448         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
47449         HAVE_STRTOULL.
47450
47451 2008-10-19  Bruno Haible  <bruno@clisp.org>
47452
47453         Add strtoll() declaration to <stdlib.h>.
47454         * lib/stdlib.in.h (strtoll): New declaration.
47455         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47456         Set HAVE_STRTOLL.
47457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
47458         HAVE_STRTOLL.
47459         * modules/strtoll (Depends-on): Add stdlib.
47460         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47461         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
47462
47463 2008-10-19  Bruno Haible  <bruno@clisp.org>
47464
47465         * modules/bcopy (Depends-on): Add strings.
47466         (Include): Specify <strings.h>.
47467
47468 2008-10-19  Bruno Haible  <bruno@clisp.org>
47469
47470         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
47471
47472 2008-10-19  Bruno Haible  <bruno@clisp.org>
47473
47474         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
47475         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
47476         mingw.
47477
47478 2008-10-19  Bruno Haible  <bruno@clisp.org>
47479
47480         * lib/atanl.c: Don't include isnanl.h.
47481         * lib/cosl.c: Likewise.
47482         * lib/ldexpl.c: Likewise.
47483         * lib/logl.c: Likewise.
47484         * lib/sinl.c: Likewise.
47485         * lib/sqrtl.c: Likewise.
47486         * lib/tanl.c: Likewise.
47487
47488         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
47489         * lib/isnanf.h: Remove file.
47490         * lib/isnand.h: Remove file.
47491         * lib/isnanl.h: Remove file.
47492         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
47493         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
47494         macros.
47495         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
47496         HAVE_ISNANF, don't define it as a C macro.
47497         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
47498         HAVE_ISNAND, don't define it as a C macro.
47499         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
47500         HAVE_ISNANL, don't define it as a C macro.
47501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
47502         HAVE_ISNAN[FDL].
47503         * modules/isnanf (Files): Remove lib/isnanf.h.
47504         (Depends-on): Add math.
47505         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47506         (Include): Specify <math.h> instead of isnanf.h.
47507         * modules/isnand (Files): Remove lib/isnand.h.
47508         (Depends-on): Add math.
47509         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47510         (Include): Specify <math.h> instead of isnand.h.
47511         * modules/isnanl (Files): Remove lib/isnanl.h.
47512         (Depends-on): Add math.
47513         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47514         (Include): Specify <math.h> instead of isnanl.h.
47515         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
47516         HAVE_ISNAN[FDL].
47517         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
47518         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
47519         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
47520         * NEWS: Mention the change.
47521
47522 2008-10-18  Bruno Haible  <bruno@clisp.org>
47523
47524         Add getusershell(), setusershell(), endusershell() declarations to
47525         <unistd.h>.
47526         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
47527         declarations.
47528         * lib/getusershell.c: Include unistd.h.
47529         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
47530         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47531         HAVE_GETUSERSHELL.
47532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
47533         and HAVE_GETUSERSHELL.
47534         * modules/getusershell (Depends-on): Add unistd, extensions.
47535         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47536         (Include): Specify <unistd.h>.
47537         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
47538         HAVE_GETUSERSHELL.
47539
47540 2008-10-18  Bruno Haible  <bruno@clisp.org>
47541
47542         Add a getloadavg() declaration to <stdlib.h>.
47543         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
47544         getloadavg declaration.
47545         (getloadavg): New declaration.
47546         * lib/getloadavg.c: Include <stdlib.h> first.
47547         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
47548         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
47549         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
47550         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
47551         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47552         * modules/getloadavg (Depends-on): Add stdlib, extensions.
47553         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47554         (Include): Specify <stdlib.h>.
47555         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
47556         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47557
47558 2008-10-18  Bruno Haible  <bruno@clisp.org>
47559
47560         * lib/dirchownmod.c: Don't include lchmod.h.
47561
47562         Move the lchmod() declaration to <sys/stat.h>.
47563         * lib/lchmod.h: Remove file.
47564         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
47565         (lchmod): New declaration, moved here from lib/lchown.h.
47566         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
47567         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
47568         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
47569         and HAVE_LCHMOD.
47570         * modules/lchmod (Files): Remove lib/lchmod.h.
47571         (Depends-on): Add sys_stat, extensions.
47572         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47573         (Include): Specify <sys/stat.h> instead of lchmod.h.
47574         * modules/sys_stat (Depends-on): Add link-warning.
47575         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
47576         definition of GL_LINK_WARNING.
47577         * NEWS: Mention the change.
47578
47579 2008-10-18  Bruno Haible  <bruno@clisp.org>
47580
47581         * lib/fchdir.c: Don't include dirfd.h.
47582         * lib/fts.c: Likewise.
47583         * lib/getcwd.c: Likewise.
47584         * lib/glob.c: Likewise.
47585
47586         Move the dirfd() declaration to <dirent.h>.
47587         * lib/dirfd.h: Remove file.
47588         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
47589         (dirfd): New declaration.
47590         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
47591         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
47592         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
47593         HAVE_DECL_DIRFD.
47594         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
47595         HAVE_DECL_DIRFD.
47596         * modules/dirfd (Files): Remove lib/dirfd.h.
47597         (Depends-on): Add dirent, extensions.
47598         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
47599         (Include): Specify <dirent.h> instead of dirfd.h.
47600         * modules/dirent (Depends-on): Add link-warning.
47601         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
47602         definition of GL_LINK_WARNING.
47603         * NEWS: Mention the change.
47604
47605 2008-10-18  Bruno Haible  <bruno@clisp.org>
47606
47607         Move the euidaccess() declaration to <unistd.h>.
47608         * lib/euidaccess.h: Remove file.
47609         * lib/unistd.in.h (euidaccess): New declaration.
47610         * lib/euidaccess.c: Don't include euidaccess.h.
47611         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
47612         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
47613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
47614         and HAVE_EUIDACCESS.
47615         * modules/euidaccess (Files): Remove lib/euidaccess.h.
47616         (Depends-on): Add unistd.
47617         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47618         (Include): Specify <unistd.h> instead of euidaccess.h.
47619         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
47620         HAVE_EUIDACCESS.
47621         * NEWS: Mention the change.
47622
47623 2008-10-18  Bruno Haible  <bruno@clisp.org>
47624
47625         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
47626
47627         Move the getdomainname() declaration to <unistd.h>.
47628         * lib/getdomainname.h: Remove file.
47629         * lib/unistd.in.h (getdomainname): New declaration.
47630         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
47631         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47632         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47633         HAVE_GETDOMAINNAME.
47634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47635         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
47636         * modules/getdomainname (Files): Remove lib/getdomainname.h.
47637         (Depends-on): Add unistd, extensions.
47638         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47639         (Includes): Specify <unistd.h> instead of getdomainname.h.
47640         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
47641         HAVE_GETDOMAINNAME.
47642         * NEWS: Mention the change.
47643
47644 2008-10-18  Bruno Haible  <bruno@clisp.org>
47645
47646         * modules/dirent: New file.
47647         * m4/dirent_h.m4: New file.
47648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
47649         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
47650         * modules/fchdir (Files): Remove lib/dirent.in.h.
47651         (Depends-on): Add dirent.
47652         (Makefile.am): Move rules to modules/dirent.
47653         * doc/posix-headers/dirent.texi: Mention the new module.
47654
47655 2008-10-18  Bruno Haible  <bruno@clisp.org>
47656
47657         Avoid -Wunused-parameter warnings in public gnulib header files.
47658         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
47659         macro.
47660         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
47661
47662 2008-10-18  Bruno Haible  <bruno@clisp.org>
47663
47664         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
47665         * doc/glibc-functions/error.texi: Mention the module 'error'.
47666         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
47667         * doc/glibc-functions/getdomainname.texi: Mention the module
47668         'getdomainname'.
47669         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
47670         * doc/glibc-functions/getpagesize.texi: Mention the module
47671         'getpagesize'.
47672         * doc/glibc-functions/getusershell.texi: Mention the module
47673         'getusershell'.
47674         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
47675         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
47676         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
47677         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
47678         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
47679         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
47680         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
47681         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
47682         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
47683         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
47684         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
47685         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
47686         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
47687         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
47688
47689 2008-10-17  Bruno Haible  <bruno@clisp.org>
47690
47691         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
47692         HP-UX and IRIX, use -0.0L.
47693         * tests/test-ceill.c (minus_zero): Likewise.
47694         * tests/test-floorl.c (minus_zero): Likewise.
47695         * tests/test-frexpl.c (minus_zero): Likewise.
47696         * tests/test-isnan.c (minus_zerol): Likewise.
47697         * tests/test-isnanl.h (minus_zero): Likewise.
47698         * tests/test-ldexpl.c (minus_zero): Likewise.
47699         * tests/test-roundl.c (minus_zero): Likewise.
47700         * tests/test-signbit.c (minus_zerol): Likewise.
47701         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47702         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47703         * tests/test-truncl.c (minus_zero): Likewise.
47704         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47705         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47706         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
47707         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47708
47709 2008-10-17  Bruno Haible  <bruno@clisp.org>
47710
47711         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
47712         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
47713         that it gets activated only for gcc >= 3.0.
47714         * lib/dirent.in.h: Likewise.
47715         * lib/errno.in.h: Likewise.
47716         * lib/fcntl.in.h: Likewise.
47717         * lib/float.in.h: Likewise.
47718         * lib/iconv.in.h: Likewise.
47719         * lib/inttypes.in.h: Likewise.
47720         * lib/locale.in.h: Likewise.
47721         * lib/math.in.h: Likewise.
47722         * lib/netdb.in.h: Likewise.
47723         * lib/netinet_in.in.h: Likewise.
47724         * lib/search.in.h: Likewise.
47725         * lib/signal.in.h: Likewise.
47726         * lib/spawn.in.h: Likewise.
47727         * lib/stdarg.in.h: Likewise.
47728         * lib/stdint.in.h: Likewise.
47729         * lib/stdio.in.h: Likewise.
47730         * lib/stdlib.in.h: Likewise.
47731         * lib/string.in.h: Likewise.
47732         * lib/strings.in.h: Likewise.
47733         * lib/sys_file.in.h: Likewise.
47734         * lib/sys_ioctl.in.h: Likewise.
47735         * lib/sys_select.in.h: Likewise.
47736         * lib/sys_socket.in.h: Likewise.
47737         * lib/sys_stat.in.h: Likewise.
47738         * lib/sys_time.in.h: Likewise.
47739         * lib/sysexits.in.h: Likewise.
47740         * lib/time.in.h: Likewise.
47741         * lib/unistd.in.h: Likewise.
47742         * lib/wchar.in.h: Likewise.
47743         * lib/wctype.in.h: Likewise.
47744         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47745
47746 2008-10-17  Jim Meyering  <meyering@redhat.com>
47747
47748         ignore-value: don't depend on inline module
47749         * modules/ignore-value (Depends-on): Remove 'inline'.
47750         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
47751         Suggestion from Bruno Haible.
47752
47753 2008-10-17  Bruno Haible  <bruno@clisp.org>
47754
47755         New implementation of condition variables for Win32.
47756         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
47757         (gl_linked_waitqueue_t): New type.
47758         (gl_cond_t): Use it.
47759         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
47760         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
47761         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
47762         (glthread_cond_init_func, glthread_cond_wait_func,
47763         glthread_cond_timedwait_func, glthread_cond_signal_func,
47764         glthread_cond_broadcast_func, glthread_cond_destroy_func):
47765         Reimplemented on the basis of gl_linked_waitqueue_t.
47766         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
47767         gl_waitqueue_t.
47768         (gl_rwlock_t): Update.
47769         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
47770
47771 2008-10-17  Simon Josefsson  <simon@josefsson.org>
47772
47773         * modules/recvfrom (Depends-on): Add dependency on getpeername.
47774         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47775
47776 2008-10-17  Jim Meyering  <meyering@redhat.com>
47777
47778         ignore-value: new module
47779         * modules/ignore-value: New file.
47780         * lib/ignore-value.h: New file.
47781         * MODULES.html.sh (Compiler warning management): New section,
47782         just for this module.  More to come.
47783
47784 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47785
47786         open-safer.c: avoid 'signed and unsigned in conditional...' warning
47787         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
47788         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
47789
47790 2008-10-16  Jim Meyering  <meyering@redhat.com>
47791
47792         openat-die.c: avoid 'no previous prototype' warning
47793         * lib/openat-die.c: Include "openat.h".
47794         Reported by Reuben Thomas <rrt@sc3d.org>.
47795
47796 2008-10-16  Simon Josefsson  <simon@josefsson.org>
47797
47798         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
47799         * lib/netdb.in.h: Fix typo.
47800         Reported by Bruno Haible  <bruno@clisp.org>
47801
47802         * lib/netdb.in.h: Include sys/socket.h for platforms without
47803         netdb.h, to get structures like hostent on MinGW.
47804         * modules/netdb (Depends-on): Add sys_socket.
47805
47806 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47807
47808         * modules/netdb, modules/netdb-tests: New file.
47809         * m4/netdb_h.m4: New file.
47810         * lib/netdb.in.h: Add, currently just an empty file pending
47811         definitions.
47812         * tests/test-netdb.c: New file.
47813         * doc/posix-headers/netdb.texi: Mention that we replace it if
47814         needed.
47815         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47816         netdb.
47817
47818 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47819
47820         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
47821         with code.
47822
47823 2008-10-13  Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/glthread/cond.c (glthread_cond_wait_func,
47826         glthread_cond_timedwait_func): Add a comment.
47827
47828 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47829
47830         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
47831         * tests/test-select.c: Likewise,
47832
47833 2008-10-13  Bruno Haible  <bruno@clisp.org>
47834
47835         * lib/glthread/cond.c (glthread_cond_wait_func,
47836         glthread_cond_timedwait_func): Fix variable name.
47837         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47838
47839 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
47840
47841         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
47842         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
47843         struct sockaddr.sa_len.
47844         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
47845
47846 2008-10-13  Simon Josefsson  <simon@josefsson.org>
47847
47848         * build-aux/pmccabe2html: Add css and css_url parameters.
47849
47850 2008-10-12  Bruno Haible  <bruno@clisp.org>
47851
47852         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
47853         calling aclx_get.
47854         Reported by Rainer Tammer <tammer@tammer.net>.
47855
47856 2008-10-12  Bruno Haible  <bruno@clisp.org>
47857
47858         Use msvcrt aware primitives for creation/termination of Win32 threads.
47859         * lib/glthread/thread.c: Include <process.h>.
47860         (glthread_create_func): Use _beginthreadex instead of CreateThread.
47861         (wrapper_func): Update signature.
47862         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
47863
47864 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47865             Bruno Haible  <bruno@clisp.org>
47866
47867         Provide a Win32 implementation of the 'cond' module.
47868         * lib/glthread/cond.h [USE_WIN32]: New implementation.
47869         * lib/glthread/cond.c (glthread_cond_init_func,
47870         glthread_cond_wait_func, glthread_cond_timedwait_func,
47871         glthread_cond_signal_func, glthread_cond_broadcast_func,
47872         glthread_cond_destroy_func) [USE_WIN32]: New functions.
47873         * modules/cond (Dependencies): Add gettimeofday.
47874
47875 2008-10-11  Bruno Haible  <bruno@clisp.org>
47876
47877         Make sleep work on older versions of mingw.
47878         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
47879         only whether it exists.
47880         * doc/posix-functions/sleep.texi: Mention the problem with older
47881         versions of mingw.
47882
47883 2008-10-11  Bruno Haible  <bruno@clisp.org>
47884
47885         New module 'shutdown'.
47886         * modules/shutdown: New file.
47887         * lib/sys_socket.in.h (shutdown): New declaration.
47888         * lib/winsock.c (shutdown): New function.
47889         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47890         GNULIB_SHUTDOWN.
47891         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
47892         * doc/posix-functions/shutdown.texi: Document the new module.
47893
47894 2008-10-11  Jim Meyering  <meyering@redhat.com>
47895
47896         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
47897
47898 2008-10-11  Bruno Haible  <bruno@clisp.org>
47899
47900         New module 'fclose'.
47901         * modules/fclose: New file.
47902         * lib/stdio.in.h (fclose): New declaration.
47903         * lib/fclose.c: New file.
47904         * m4/fclose.m4: New file.
47905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
47906         REPLACE_FCLOSE.
47907         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
47908         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
47909         REPLACE_FCLOSE.
47910         * modules/close (Depends-on): fclose.
47911         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
47912
47913 2008-10-11  Bruno Haible  <bruno@clisp.org>
47914
47915         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
47916         set errno and don't call _close.
47917
47918 2008-10-10  Bruno Haible  <bruno@clisp.org>
47919
47920         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
47921         ACL, not afterwards. Fixes test failure on Cygwin.
47922
47923 2008-10-09  Ben Pfaff  <blp@gnu.org>
47924
47925         * build-aux/announce-gen: Fix gnulib version related part of usage
47926         message.  Die with a useful error message if no tarballs are
47927         found.
47928
47929 2008-10-10  Jim Meyering  <meyering@redhat.com>
47930
47931         bootstrap: use git's --depth=N option only if it's supported
47932         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
47933         recognize the --depth option.  Reported by Pádraig Brady.
47934
47935 2008-10-09  Bruno Haible  <bruno@clisp.org>
47936
47937         New module 'ioctl'.
47938         * modules/ioctl: New file.
47939         * lib/sys_socket.in.h (ioctl): Remove declaration.
47940         * lib/winsock.c: Include <sys/ioctl.h>.
47941         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
47942         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47943         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
47944         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
47945         * doc/posix-functions/ioctl.texi: Mention the new module.
47946
47947 2008-10-09  Bruno Haible  <bruno@clisp.org>
47948
47949         New module 'sys_ioctl'.
47950         * lib/sys_ioctl.in.h: New file.
47951         * m4/sys_ioctl_h.m4: New file.
47952         * modules/sys_ioctl: New file.
47953         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
47954
47955 2008-10-09  Bruno Haible  <bruno@clisp.org>
47956
47957         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
47958         * lib/winsock.c: Include <stdarg.h>.
47959         (rpl_ioctl): Change to second argument 'int' and then varargs.
47960
47961 2008-10-09  Bruno Haible  <bruno@clisp.org>
47962
47963         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
47964         when the sys_socket module is present and the system has <winsock2.h>.
47965
47966 2008-10-09  Bruno Haible  <bruno@clisp.org>
47967
47968         * doc/posix-functions/close.texi: Mention module 'close' instead of
47969         module 'sys_socket'.
47970
47971 2008-10-09  Bruno Haible  <bruno@clisp.org>
47972
47973         * doc/glibc-headers/sys_ioctl.texi: New file.
47974         * doc/gnulib.texi: Include it.
47975
47976 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47977             Bruno Haible  <bruno@clisp.org>
47978
47979         Combine the two replacements of 'close'.
47980         * lib/sys_socket.in.h (close): Define to a reminder to include
47981         <unistd.h>.
47982         (_gl_close_fd_maybe_socket): New declaration.
47983         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
47984         * lib/winsock.c (close): Remove undefinition.
47985         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
47986         needed for the gnulib module 'close'.
47987         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
47988         define to an error symbol or to a warning, if suitable.
47989         * lib/close.c: Include <sys/socket.h>.
47990         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
47991         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
47992         UNISTD_H_HAVE_WINSOCK2_H.
47993         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
47994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47995         UNISTD_H_HAVE_WINSOCK2_H.
47996         * modules/sys_socket (Files): Add m4/unistd_h.m4.
47997         (configure.ac): Set a module indicator.
47998         (Makefile.am): Substitute GNULIB_CLOSE.
47999         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
48000         * modules/poll-tests (Depends-on): Add close.
48001         * modules/select-tests (Depends-on): Likewise.
48002
48003 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48004             Bruno Haible  <bruno@clisp.org>
48005
48006         New module 'close'.
48007         * modules/close: New file.
48008         * lib/unistd.in.h (close): Move declaration out of the
48009         FCHDIR_REPLACEMENT scope.
48010         (_gl_unregister_fd): New declaration.
48011         * lib/close.c: New file.
48012         * lib/fchdir.c (rpl_close): Remove function.
48013         * m4/close.m4: New file.
48014         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48015         close.
48016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
48017         REPLACE_CLOSE.
48018         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
48019         REPLACE_CLOSE.
48020         * modules/fchdir (Depends-on): Add close.
48021
48022 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48023             Bruno Haible  <bruno@clisp.org>
48024
48025         * lib/fcntl.in.h (open): Simplify conditionals.
48026         (_gl_register_fd): New declaration.
48027         * lib/fchdir.c (rpl_open): Remove function.
48028         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
48029         also.
48030         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
48031         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48032         open.
48033
48034 2008-10-09  Jim Meyering  <meyering@redhat.com>
48035
48036         GNUmakefile: use the more name-space-friendly "_version"
48037         * top/GNUmakefile (_dummy): Update.
48038         (_version): Rename from "version".
48039
48040 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48041             Bruno Haible  <bruno@clisp.org>
48042
48043         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
48044         rpl_close.
48045         (_gl_register_fd): New function, extracted from rpl_open.
48046         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
48047         (rpl_open, rpl_opendir): Use _gl_register_fd.
48048
48049 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48050
48051         Fix organization of 'open' replacement.
48052         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
48053         (gl_FUNC_OPEN): Use it.
48054         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
48055
48056 2008-10-08  Bruno Haible  <bruno@clisp.org>
48057
48058         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
48059
48060 2008-10-08  Simon Josefsson  <simon@josefsson.org>
48061
48062         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
48063         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
48064         listen).
48065
48066 2008-10-08  Eric Blake  <ebb9@byu.net>
48067
48068         GNUmakefile: add 'make version' target
48069         * top/GNUmakefile (_curr-ver): Split version update rules...
48070         (version): ...into a target.
48071
48072 2008-10-07  Bruno Haible  <bruno@clisp.org>
48073
48074         Use a more portable replacement expression for -0.0L.
48075         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
48076         instead of -0.0L. Fix m4 quotation.
48077
48078         * tests/test-signbit.c: Include <float.h>.
48079         (minus_zero): New variable.
48080         (test_signbitl): Use minus_zero instead of -zero.
48081         * modules/signbit-tests (Depends-on): Add float.
48082
48083         * tests/test-ceill.c: Include <float.h>.
48084         (zero): Remove variable.
48085         (minus_zero): New variable.
48086         (main): Use minus_zero instead of -zero.
48087         * modules/ceill-tests (Depends-on): Add float.
48088
48089         * tests/test-floorl.c: Include <float.h>.
48090         (zero): Remove variable.
48091         (minus_zero): New variable.
48092         (main): Use minus_zero instead of -zero.
48093         * modules/floorl-tests (Depends-on): Add float.
48094
48095         * tests/test-roundl.c: Include <float.h>.
48096         (zero): Remove variable.
48097         (minus_zero): New variable.
48098         (main): Use minus_zero instead of -zero.
48099         * modules/roundl-tests (Depends-on): Add float.
48100
48101         * tests/test-truncl.c: Include <float.h>.
48102         (zero): Remove variable.
48103         (minus_zero): New variable.
48104         (main): Use minus_zero instead of -zero.
48105         * modules/truncl-tests (Depends-on): Add float.
48106
48107         * tests/test-frexpl.c (zero): Remove variable.
48108         (minus_zero): New variable.
48109         (main): Use minus_zero instead of -zero.
48110         * modules/frexpl-tests (Depends-on): Add float.
48111
48112         * tests/test-isnan.c (zerol): Remove variable.
48113         (minus_zerol): New variable.
48114         (test_long_double): Use minus_zerol instead of -zerol.
48115         * modules/isnan-tests (Depends-on): Add float.
48116
48117         * tests/test-isnanl.h (zero): Remove variable.
48118         (minus_zero): New variable.
48119         (main): Use minus_zero instead of -zero.
48120         * modules/isnanl-nolibm-tests (Depends-on): Add float.
48121         * modules/isnanl-tests (Depends-on): Add float.
48122
48123         * tests/test-ldexpl.c (zero): Remove variable.
48124         (minus_zero): New variable.
48125         (main): Use minus_zero instead of -zero.
48126         * modules/ldexpl-tests (Depends-on): Add float.
48127
48128         * tests/test-snprintf-posix.h (zerol): Remove variable.
48129         (minus_zerol): New variable.
48130         (test_function): Use minus_zerol instead of -zerol.
48131         * modules/snprintf-posix-tests (Depends-on): Add float.
48132         * modules/vsnprintf-posix-tests (Depends-on): Add float.
48133
48134         * tests/test-sprintf-posix.h (zerol): Remove variable.
48135         (minus_zerol): New variable.
48136         (test_function): Use minus_zerol instead of -zerol.
48137         * modules/sprintf-posix-tests (Depends-on): Add float.
48138         * modules/vsprintf-posix-tests (Depends-on): Add float.
48139
48140         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
48141         (minus_zerol): New variable.
48142         (test_function): Use minus_zerol instead of -zerol.
48143         * modules/vasnprintf-posix-tests (Depends-on): Add float.
48144
48145         * tests/test-vasprintf-posix.c (zerol): Remove variable.
48146         (minus_zerol): New variable.
48147         (test_function): Use minus_zerol instead of -zerol.
48148         * modules/vasprintf-posix-tests (Depends-on): Add float.
48149
48150 2008-10-07  Simon Josefsson  <simon@josefsson.org>
48151
48152         * MODULES.html.sh (Support for building documentation): Mention
48153         pmccabe2html.  Sort entries.
48154
48155         Add pmccabe2html module, from gnupdf.
48156         * build-aux/pmccabe.css: New file.
48157         * build-aux/pmccabe2html: New file.
48158         * m4/pmccabe2html.m4: New file.
48159         * modules/pmccabe2html: New file.
48160
48161 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
48162
48163         flock: new module
48164         * MODULES.html.sh: Add to list of modules.
48165         * lib/flock.c: flock implementation for Windows and Unix systems
48166         which have fcntl.
48167         * doc/glibc-functions/flock.texi: Update documentation.
48168         * lib/sys_file.in.h: <sys/file.h> header file.
48169         * m4/flock.m4: M4 macros.
48170         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
48171         * modules/flock: flock module.
48172         * modules/flock-tests: flock tests module.
48173         * modules/sys_file: sys/file.h module.
48174         * tests/test-flock.c: test suite for flock.
48175
48176 2008-10-06  Jim Meyering  <meyering@redhat.com>
48177
48178         bootstrap: check for LT_INIT more portably still ;-)
48179         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
48180         Spotted by Bruno Haible.
48181
48182 2008-10-06  Eric Blake  <ebb9@byu.net>
48183
48184         test-signbit: avoid tripping Irix cc bug on -0.0L
48185         * tests/test-signbit.c (minus_zerol): Delete, and replace with
48186         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
48187         entire testsuite consistent and avoids an Irix 6.2 bug.
48188
48189 2008-10-05  Bruno Haible  <bruno@clisp.org>
48190             Jim Meyering  <jim@meyering.net>
48191
48192         Add an option for ignoring EPIPE during close_stdout.
48193         * lib/closeout.h: Include <stdbool.h>.
48194         (close_stdout_set_ignore_EPIPE): New declaration.
48195         * lib/closeout.c: Include <stdbool.h>.
48196         (ignore_EPIPE): New variable.
48197         (close_stdout_set_ignore_EPIPE): New function.
48198         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
48199         * lib/close-stream.c (close_stream): Mention the possible EPIPE
48200         failure.
48201         * modules/closeout (Depends-on): Add stdbool.
48202
48203 2008-10-05  Bruno Haible  <bruno@clisp.org>
48204
48205         * modules/accept: New file.
48206         * modules/bind: New file.
48207         * modules/connect: New file.
48208         * modules/getpeername: New file.
48209         * modules/getsockname: New file.
48210         * modules/getsockopt: New file.
48211         * modules/listen: New file.
48212         * modules/recv: New file.
48213         * modules/recvfrom: New file.
48214         * modules/send: New file.
48215         * modules/sendto: New file.
48216         * modules/setsockopt: New file.
48217         * modules/socket: New file.
48218         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
48219         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48220         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
48221         the particular module is requested. Add a link warning when the
48222         particular module is not requested.
48223         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
48224         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
48225         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
48226         the particular module is requested.
48227         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
48228         gl_SYS_SOCKET_H_DEFAULTS): New macros.
48229         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
48230         * modules/sys_socket (Depends-on): Add link-warning.
48231         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
48232         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
48233         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
48234         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
48235         GL_LINK_WARNING.
48236         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
48237         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
48238         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
48239         * doc/posix-functions/getpeername.texi: Mention the new module
48240         'getpeername'.
48241         * doc/posix-functions/getsockname.texi: Mention the new module
48242         'getsockname'.
48243         * doc/posix-functions/getsockopt.texi: Mention the new module
48244         'getsockopt'.
48245         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
48246         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
48247         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
48248         * doc/posix-functions/send.texi: Mention the new module 'send'.
48249         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
48250         * doc/posix-functions/setsockopt.texi: Mention the new module
48251         'setsockopt'.
48252         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
48253         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
48254         listen, connect, accept.
48255         * modules/select-tests (Depends-on): Likewise.
48256
48257 2008-10-05  Bruno Haible  <bruno@clisp.org>
48258
48259         * lib/winsock.c (strerror): Remove unused #undef.
48260         (rpl_close): Remove unused local variable.
48261
48262         * modules/sys_socket (Depends-on); Add errno.
48263
48264 2008-10-05  Bruno Haible  <bruno@clisp.org>
48265
48266         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
48267         (select): Add a link warning when the 'select' module is not used.
48268         * modules/sys_select (Depends-on): Add link-warning.
48269         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
48270         Suggested by Paolo Bonzini.
48271
48272 2008-10-05  Jim Meyering  <meyering@redhat.com>
48273
48274         bootstrap: check for LT_INIT more portably
48275         * build-aux/bootstrap: Avoid using grep -E, since it's not
48276         portable enough.  Suggestion from Bruno Haible.
48277
48278 2008-10-05  Bruno Haible  <bruno@clisp.org>
48279
48280         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
48281         as being fixed by gnulib.
48282
48283 2008-10-05  Bruno Haible  <bruno@clisp.org>
48284
48285         * modules/select-tests: New file, mostly copied from
48286         modules/sys_select-tests.
48287         * tests/test-select.c: New file, mostly copied from
48288         tests/test-sys_select.c.
48289         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
48290         * modules/sys_select-tests (Depends-on): Remove all dependencies.
48291         (Makefile.am): Remove test_sys_select_LDADD.
48292
48293         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
48294         to an undefined symbol, for an error message.
48295         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
48296         (gl_SYS_SELECT_H_DEFAULTS): New macro.
48297         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
48298         winsock-select.c here.
48299         * modules/sys_select (Files): Remove lib/winsock-select.c.
48300         (Depends-on): Remove alloca.
48301         (Makefile.am): Substitute GNULIB_SELECT.
48302         * modules/select: New file.
48303         * doc/posix-functions/select.texi: Update.
48304
48305 2008-10-05  Bruno Haible  <bruno@clisp.org>
48306
48307         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
48308         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
48309         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
48310         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
48311         getdtablesize.
48312         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
48313         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
48314
48315 2008-10-05  Bruno Haible  <bruno@clisp.org>
48316
48317         * modules/getdtablesize-tests: New file.
48318         * tests/test-getdtablesize.c: New file.
48319
48320         New module 'getdtablesize'.
48321         * lib/unistd.in.h (getdtablesize): New declaration.
48322         * lib/getdtablesize.c: New file.
48323         * m4/getdtablesize.m4: New file.
48324         * modules/getdtablesize: New file.
48325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48326         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
48327         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
48328         HAVE_GETDTABLESIZE.
48329         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
48330
48331 2008-10-05  Bruno Haible  <bruno@clisp.org>
48332
48333         * modules/sched (Makefile.am): Fix typo.
48334         Reported by Simon Josefsson.
48335
48336 2008-10-05  Jim Meyering  <meyering@redhat.com>
48337
48338         bootstrap: check for LT_INIT, too
48339         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
48340         are deprecated.  Suggestion from Ralf Wildenhues.
48341
48342 2008-10-05  Bruno Haible  <bruno@clisp.org>
48343
48344         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
48345         overriding them by ours.
48346         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
48347
48348 2008-10-05  Jim Meyering  <meyering@redhat.com>
48349
48350         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
48351         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
48352         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
48353
48354 2008-10-04  Bruno Haible  <bruno@clisp.org>
48355
48356         * modules/dup2 (License): Change to LGPLv2+.
48357         * modules/sleep (License): Likewise.
48358         * modules/perror (License): Likewise.
48359         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
48360         Blake.
48361         * modules/signal (License): Likewise.
48362         * modules/sigprocmask (License): Likewise.
48363         * modules/raise (License): Change to LGPLv2+, with approval by Jim
48364         Meyering.
48365
48366 2008-10-04  Bruno Haible  <bruno@clisp.org>
48367
48368         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
48369         Reported by Rainer Tammer <tammer@tammer.net>.
48370
48371 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
48372             Bruno Haible  <bruno@clisp.org>
48373
48374         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
48375         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
48376         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
48377
48378 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
48379
48380         filevercmp: new module
48381         * lib/filevercmp.h: New function filevercmp comparing version strings.
48382         * lib/filevercmp.c: Implementation of filevercmp function.
48383         * modules/filevercmp: Module metadata.
48384         * tests/test-filevercmp.c: Unit test for new module.
48385         * modules/filevercmp-tests: Unit test metadata.
48386         * MODULES.html.sh: Add filevercmp module.
48387
48388 2008-10-03  Bruno Haible  <bruno@clisp.org>
48389
48390         * lib/c-ctype.h: Add comment.
48391         Reported by Jim Meyering.
48392
48393 2008-10-02  Bruno Haible  <bruno@clisp.org>
48394
48395         * modules/posix_spawn-internal (Depends-on): Add 'open'.
48396
48397 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48398
48399         * build-aux/bootstrap: Allow renaming bootstrap, and change the
48400         name of bootstrap.conf accordingly.
48401
48402 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48403
48404         * build-aux/bootstrap: Install git-merge-changelog configuration
48405         items into .gitconfig if needed.
48406
48407 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48408
48409         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
48410         git repository, and initialize/update it accordingly.
48411
48412 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
48413
48414         * modules/fsync-tests: New file.
48415         * tests/test-fsync.c: New file.
48416
48417         New module 'fsync'.
48418         * lib/fsync.c: New file.
48419         * m4/fsync.m4: New file.
48420         * modules/fsync: New file.
48421         * lib/unistd.in.h (fsync): New declaration.
48422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
48423         GNULIB_FSYNC and HAVE_FSYNC.
48424         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
48425         * MODULES.html.sh (posix_functions): Add fsync.
48426         * doc/posix-functions/fsync.texi: Mention the new module.
48427
48428 2008-10-02  Jim Meyering  <meyering@redhat.com>
48429
48430         fts.c: sync with similar code from coreutils' remove.c
48431         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
48432         Guard also with "#if defined __linux__", since for now at least,
48433         this code is Linux-kernel-specific.
48434
48435 2008-10-02  Jim Meyering  <meyering@redhat.com>
48436
48437         fts: bug fixes
48438         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
48439         Include <sys/vfs.h>, not <sys/statfs.h>.
48440
48441         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
48442         Include <sys/vfs.h>, not <sys/statfs.h>.
48443
48444 2008-10-01  Bruno Haible  <bruno@clisp.org>
48445
48446         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
48447         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
48448         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
48449         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
48450         * doc/posix-functions/posix_spawnp.texi: Likewise.
48451         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
48452         whether posix_spawn actually works.
48453         * m4/pipe.m4 (gl_PIPE): Likewise.
48454         * modules/execute (Files): Add m4/posix_spawn.m4.
48455         * modules/pipe (Files): Add m4/posix_spawn.m4.
48456         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
48457
48458 2008-10-01  Jim Meyering  <meyering@redhat.com>
48459
48460         remove trailing spaces
48461         * NEWS: Likewise.
48462         * lib/poll.c (poll): Likewise.
48463         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
48464         * lib/winsock.c (rpl_close): Likewise.
48465         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
48466         * modules/yield: Likewise.
48467         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
48468         * tests/test-sys_select.c (connect_to_socket): Likewise.
48469
48470         fts.c: adjust a new interface to be more generally useful
48471         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
48472         (fts_build): Adjust caller.
48473
48474 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48475
48476         * modules/cond-tests: New file.
48477         * tests/test-cond.c: New file.
48478
48479 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48480             Bruno Haible  <bruno@clisp.org>
48481
48482         * modules/cond (Dependencies): Add errno, time.
48483         * lib/glthread/cond.h: Include <time.h>.
48484         (gl_cond_define, gl_cond_define_initialized): Use the same definition
48485         across platforms.
48486
48487 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48488             Bruno Haible  <bruno@clisp.org>
48489
48490         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
48491
48492 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48493             Bruno Haible  <bruno@clisp.org>
48494
48495         * modules/tls-tests (Depends-on): Add thread, yield.
48496         (configure.ac): Remove all checks.
48497         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
48498         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48499         gl_thread_self): Remove definitions. Include glthread/thread.h and
48500         glthread/yield.h instead.
48501         (test_tls): Pass an additional NULL argument to gl_thread_join.
48502
48503 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48504             Bruno Haible  <bruno@clisp.org>
48505
48506         * modules/lock-tests (Depends-on): Add thread, yield.
48507         (configure.ac): Remove all checks.
48508         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
48509         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48510         gl_thread_self): Remove definitions. Include glthread/thread.h and
48511         glthread/yield.h instead.
48512         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
48513         additional NULL argument to gl_thread_join.
48514
48515 2008-09-30  Bruno Haible  <bruno@clisp.org>
48516
48517         Fix the Win32 implementation of the 'thread' module.
48518         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
48519         pointer type.
48520         (gl_thread_self): Invoke gl_thread_self_func.
48521         (gl_thread_self_func): New declaration.
48522         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
48523         (do_init_self_key, init_self_key): New functions.
48524         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
48525         Remove some fields.
48526         (running_threads, running_lock): Remove variables.
48527         (get_current_thread_handle): New function.
48528         (gl_thread_self_func, wrapper_func, glthread_create_func,
48529         glthread_join_func, gl_thread_exit_func): Largely rewritten and
48530         simplified.
48531
48532 2008-09-30  Bruno Haible  <bruno@clisp.org>
48533
48534         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
48535         files.
48536
48537 2008-09-30  Jim Meyering  <meyering@redhat.com>
48538
48539         fts.m4: correct the test for statfs.f_type
48540         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
48541         when checking for statfs.f_type.
48542
48543 2008-09-15  Simon Josefsson  <simon@josefsson.org>
48544
48545         tests: avoid some compiler warnings
48546         * tests/test-memchr.c (main): Pass NULL indirectly.
48547         * tests/test-getdate.c (main): Remove unused variable 'ret'.
48548
48549 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
48550
48551         getdate.y: disallow countable dayshifts like "4 yesterday ago"
48552         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
48553         exactly specified dayshifts.
48554         (dayshift): New rule.
48555         (rel): Add dayshift.
48556         (relative_time_table) [tomorrow, yesterday, today, now]:
48557         Use tDAY_SHIFT in place of tDAY_UNIT.
48558         * tests/test-getdate.c: Add tests for now-disallowed countable
48559         dayshifts, e.g., "4 yesterday ago".
48560
48561 2008-09-29  Bruno Haible  <bruno@clisp.org>
48562
48563         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
48564         * tests/test-posix_spawn1.in.sh: Renamed from
48565         tests/test-posix_spawn.in.sh.
48566         * tests/test-posix_spawn2.c: New file.
48567         * tests/test-posix_spawn2.in.sh: New file.
48568         * modules/posix_spawnp-tests (Files): Update.
48569         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
48570
48571 2008-09-29  Bruno Haible  <bruno@clisp.org>
48572
48573         Propagate effects of putenv/setenv/unsetenv to child processes.
48574         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
48575         * lib/pipe.c (create_pipe): Likewise.
48576
48577 2008-09-29  Bruno Haible  <bruno@clisp.org>
48578
48579         Enable use of shell scripts as executables in mingw.
48580         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
48581         run the program as a shell script.
48582         * lib/pipe.c (create_pipe): Likewise.
48583         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
48584         resulting array.
48585
48586 2008-09-29  Eric Blake  <ebb9@byu.net>
48587
48588         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
48589
48590 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
48591
48592         * doc/posix-functions/accept.texi: Update mingw problems.
48593         * doc/posix-functions/bind.texi: Update mingw problems.
48594         * doc/posix-functions/close.texi: Update mingw problems.
48595         * doc/posix-functions/connect.texi: Update mingw problems.
48596         * doc/posix-functions/getpeername.texi: Update mingw problems.
48597         * doc/posix-functions/getsockname.texi: Update mingw problems.
48598         * doc/posix-functions/getsockopt.texi: Update mingw problems.
48599         * doc/posix-functions/ioctl.texi: Update mingw problems.
48600         * doc/posix-functions/listen.texi: Update mingw problems.
48601         * doc/posix-functions/recv.texi: Update mingw problems.
48602         * doc/posix-functions/recvfrom.texi: Update mingw problems.
48603         * doc/posix-functions/select.texi: Update mingw problems.
48604         * doc/posix-functions/send.texi: Update mingw problems.
48605         * doc/posix-functions/sendto.texi: Update mingw problems.
48606         * doc/posix-functions/setsockopt.texi: Update mingw problems.
48607         * doc/posix-functions/socket.texi: Update mingw problems.
48608
48609 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
48610             Bruno Haible  <bruno@clisp.org>
48611
48612         * lib/sys_select.in.h: Include sys/time.h.
48613         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
48614         * modules/sys_select: Depend on sys_time.
48615         * tests/test-sys_select.c: Test that sys/select.h defines struct
48616         timeval fully.
48617
48618 2008-09-29  Bruno Haible  <bruno@clisp.org>
48619
48620         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
48621         * lib/sys_select.in.h: Likewise.
48622
48623 2008-09-29  Bruno Haible  <bruno@clisp.org>
48624
48625         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
48626
48627 2008-09-29  Bruno Haible  <bruno@clisp.org>
48628
48629         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
48630         Set LIBSOCKET instead of augmenting LIBS.
48631         * modules/sockets (Link): New section.
48632         * modules/sockets-tests (test_sockets_LDADD): New variable.
48633         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
48634         * modules/poll-tests (test_poll_LDADD): New variable.
48635         * NEWS: Document the change.
48636
48637 2008-09-29  Bruno Haible  <bruno@clisp.org>
48638
48639         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
48640         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
48641         ARPA_INET_H directly.
48642         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48643
48644 2008-09-28  Bruno Haible  <bruno@clisp.org>
48645
48646         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
48647         from gl_HEADER_SYS_SOCKET.
48648         (gl_HEADER_SYS_SOCKET): Invoke it.
48649         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48650
48651 2008-09-28  Bruno Haible  <bruno@clisp.org>
48652
48653         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
48654         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
48655         Needed on OSF/1 4.0.
48656
48657 2008-09-28  Bruno Haible  <bruno@clisp.org>
48658
48659         Override open more carefully.
48660         * lib/open.c (orig_open): New function.
48661         (rpl_open): Use orig_open instead of open.
48662         * lib/fcntl.in.h: Add special invocation convention.
48663         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
48664         (gl_FUNC_OPEN): Invoke it.
48665
48666         Override freopen more carefully.
48667         * lib/freopen.c (orig_freopen): New function.
48668         (rpl_freopen): Use orig_freopen instead of freopen.
48669         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
48670         (gl_FUNC_FREOPEN): Invoke it.
48671
48672         Override fopen more carefully.
48673         * lib/fopen.c (orig_fopen): New function.
48674         (rpl_fopen): Use orig_fopen instead of fopen.
48675         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
48676         (gl_FUNC_FOPEN): Invoke it.
48677         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
48678
48679 2008-09-28  Bruno Haible  <bruno@clisp.org>
48680
48681         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
48682         SIGPIPE.
48683
48684 2008-09-28  Bruno Haible  <bruno@clisp.org>
48685
48686         * tests/test-sigaction.c (handler, main): Disable the check whether
48687         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
48688         glibc systems with LinuxThreads.
48689
48690 2008-09-28  Bruno Haible  <bruno@clisp.org>
48691
48692         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
48693
48694         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
48695         with AIX xlc.
48696         * lib/fcntl.in.h (open): Likewise.
48697         Reported by Rainer Tammer <tammer@tammer.net>.
48698
48699 2008-09-28  Bruno Haible  <bruno@clisp.org>
48700
48701         * modules/posix_spawnp-tests: New file.
48702         * tests/test-posix_spawn.c: New file.
48703         * tests/test-posix_spawn.in.sh: New file.
48704
48705         New module 'posix_spawnp'.
48706         * modules/posix_spawnp: New file.
48707         * lib/spawnp.c: New file, from GNU libc with modifications.
48708         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
48709
48710         New module 'posix_spawn'.
48711         * modules/posix_spawn: New file.
48712         * lib/spawn.c: New file, from GNU libc with modifications.
48713         * doc/posix-functions/posix_spawn.texi: Mention the new module.
48714
48715         New module 'posix_spawnattr_destroy'.
48716         * modules/posix_spawnattr_destroy: New file.
48717         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
48718         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
48719         module.
48720
48721         New module 'posix_spawnattr_setsigmask'.
48722         * modules/posix_spawnattr_setsigmask: New file.
48723         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
48724         modifications.
48725         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
48726         new module.
48727
48728         New module 'posix_spawnattr_getsigmask'.
48729         * modules/posix_spawnattr_getsigmask: New file.
48730         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
48731         modifications.
48732         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
48733         new module.
48734
48735         New module 'posix_spawnattr_setsigdefault'.
48736         * modules/posix_spawnattr_setsigdefault: New file.
48737         * lib/spawnattr_setdefault.c: New file, from GNU libc with
48738         modifications.
48739         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
48740         new module.
48741
48742         New module 'posix_spawnattr_getsigdefault'.
48743         * modules/posix_spawnattr_getsigdefault: New file.
48744         * lib/spawnattr_getdefault.c: New file, from GNU libc with
48745         modifications.
48746         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
48747         new module.
48748
48749         New module 'posix_spawnattr_setschedpolicy'.
48750         * modules/posix_spawnattr_setschedpolicy: New file.
48751         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
48752         modifications.
48753         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
48754         new module.
48755
48756         New module 'posix_spawnattr_getschedpolicy'.
48757         * modules/posix_spawnattr_getschedpolicy: New file.
48758         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
48759         modifications.
48760         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
48761         new module.
48762
48763         New module 'posix_spawnattr_setschedparam'.
48764         * modules/posix_spawnattr_setschedparam: New file.
48765         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
48766         modifications.
48767         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
48768         new module.
48769
48770         New module 'posix_spawnattr_getschedparam'.
48771         * modules/posix_spawnattr_getschedparam: New file.
48772         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
48773         modifications.
48774         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
48775         new module.
48776
48777         New module 'posix_spawnattr_setpgroup'.
48778         * modules/posix_spawnattr_setpgroup: New file.
48779         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
48780         modifications.
48781         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
48782         module.
48783
48784         New module 'posix_spawnattr_getpgroup'.
48785         * modules/posix_spawnattr_getpgroup: New file.
48786         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
48787         modifications.
48788         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
48789         module.
48790
48791         New module 'posix_spawnattr_setflags'.
48792         * modules/posix_spawnattr_setflags: New file.
48793         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
48794         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
48795         module.
48796
48797         New module 'posix_spawnattr_getflags'.
48798         * modules/posix_spawnattr_getflags: New file.
48799         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
48800         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
48801         module.
48802
48803         New module 'posix_spawnattr_init'.
48804         * modules/posix_spawnattr_init: New file.
48805         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
48806         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
48807         module.
48808
48809         New module 'posix_spawn_file_actions_destroy'.
48810         * modules/posix_spawn_file_actions_destroy: New file.
48811         * lib/spawn_faction_destroy.c: New file, from GNU libc with
48812         modifications.
48813         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
48814         the new module.
48815
48816         New module 'posix_spawn_file_actions_addopen'.
48817         * modules/posix_spawn_file_actions_addopen: New file.
48818         * lib/spawn_faction_addopen.c: New file, from GNU libc with
48819         modifications.
48820         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
48821         the new module.
48822
48823         New module 'posix_spawn_file_actions_adddup2'.
48824         * modules/posix_spawn_file_actions_adddup2: New file.
48825         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
48826         modifications.
48827         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
48828         the new module.
48829
48830         New module 'posix_spawn_file_actions_addclose'.
48831         * modules/posix_spawn_file_actions_addclose: New file.
48832         * lib/spawn_faction_addclose.c: New file, from GNU libc with
48833         modifications.
48834         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
48835         the new module.
48836
48837         New module 'posix_spawn_file_actions_init'.
48838         * modules/posix_spawn_file_actions_init: New file.
48839         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
48840         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
48841         new module.
48842
48843         New module 'posix_spawn-internal'.
48844         * modules/posix_spawn-internal: New file.
48845         * lib/spawn_int.h: New file, from GNU libc with modifications.
48846         * lib/spawni.c: New file, from GNU libc with modifications.
48847         * m4/posix_spawn.m4: New file.
48848
48849         New module 'spawn'.
48850         * modules/spawn: New file.
48851         * lib/spawn.in.h: New file, from GNU libc with modifications.
48852         * m4/spawn_h.m4: New file.
48853         * doc/posix-headers/spawn.texi: Mention the new module.
48854
48855 2008-09-28  Bruno Haible  <bruno@clisp.org>
48856
48857         * modules/sched-tests: New file.
48858         * tests/test-sched.c: New file.
48859
48860         New module 'sched'.
48861         * modules/sched: New file.
48862         * lib/sched.in.h: New file.
48863         * m4/sched_h.m4: New file.
48864         * doc/posix-headers/sched.texi: Mention the new module.
48865
48866 2008-09-27  Eric Blake  <ebb9@byu.net>
48867
48868         Fix previous patch, and tweak references to $0.
48869         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
48870         (func_version, func_gnulib_dir): Don't call this program
48871         gnulib-tool.
48872         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
48873         with using $0 in function.
48874         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
48875         (func_fatal_error): Reuse the name the user invoked us with.
48876
48877 2008-09-27  Bruno Haible  <bruno@clisp.org>
48878
48879         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
48880         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
48881         (gl_ICONV_H): Not here.
48882         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
48883         instead of assigning ICONV_H directly.
48884
48885         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
48886         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
48887         WCHAR_H directly.
48888
48889 2008-09-27  Bruno Haible  <bruno@clisp.org>
48890
48891         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
48892         * modules/arpa_inet (Depends-on): Add link-warning.
48893         (Makefile.am): Insert the definition of GL_LINK-WARNING.
48894         * modules/unistd (Makefile.am): Likewise.
48895
48896 2008-09-26  Bruno Haible  <bruno@clisp.org>
48897
48898         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
48899         variables.
48900         (func_version): Essentially copied from gnulib-tool.
48901         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
48902         func_readlink): Copied from gnulib-tool.
48903
48904 2008-09-26  Bruno Haible  <bruno@clisp.org>
48905
48906         * gnulib-tool (func_version): Change directory to $gnulib_dir before
48907         invoking git-version-gen.
48908
48909 2008-09-26  Bruno Haible  <bruno@clisp.org>
48910
48911         * posix-modules: Update to directory names changed on 2008-01-19.
48912         Remove commas in output before splitting into words. No more need to
48913         avoid 'ftruncate' since 2007-02-19.
48914
48915 2008-09-26  Bruno Haible  <bruno@clisp.org>
48916
48917         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
48918
48919 2008-09-26  Bruno Haible  <bruno@clisp.org>
48920
48921         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
48922         * modules/fwriteerror (Depends-on): Add errno.
48923
48924 2008-09-26  Bruno Haible  <bruno@clisp.org>
48925
48926         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
48927         * tests/test-vc-list-files-cvs.sh: Likewise.
48928
48929 2008-09-26  Bruno Haible  <bruno@clisp.org>
48930
48931         * doc/posix-headers/sys_resource.texi: Reorder items.
48932
48933 2008-09-26  Jim Meyering  <meyering@redhat.com>
48934
48935         fts: tweak inode comparison function
48936         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
48937         inode numbers, as documented.
48938
48939         fts: sort dirent entries on inode number before traversing
48940         This avoids a quadratic, seek-related performance penalty when
48941         operating on a directory containing many entries (measurable at 10k;
48942         3.5 hours at 2 million entries with a cold cache) on certain types
48943         of file systems, including ext3 and ext4, but not tmpfs.
48944         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
48945         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
48946         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
48947         (fs_handles_readdir_ordered_dirents_efficiently): New function.
48948         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
48949         (fts_build): Set the stat.st_ino member from D_INO.
48950         If it is likely to be useful, sort dirent entries on inode number.
48951
48952         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
48953         and the struct statfs.f_type member.
48954         * modules/fts (Depends-on): Add d-ino.
48955
48956 2008-09-26  Bruno Haible  <bruno@clisp.org>
48957
48958         * modules/sigpipe-die (Depends-on): Add sigpipe.
48959
48960         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
48961         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
48962         and GNULIB_STDIO_H_SIGPIPE are set.
48963         * lib/stdio-write.c: New file.
48964         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
48965         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48966         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48967         REPLACE_STDIO_WRITE_FUNCS.
48968         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
48969         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48970         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48971         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48972         * modules/stdio (Files): Add lib/stdio-write.c.
48973         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
48974         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48975         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48976         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48977         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
48978         REPLACE_FPRINTF_POSIX.
48979         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
48980         REPLACE_PRINTF_POSIX.
48981         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
48982         REPLACE_VFPRINTF_POSIX.
48983         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
48984         REPLACE_VPRINTF_POSIX.
48985         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
48986         SIGPIPE issue.
48987         * doc/posix-functions/fputc.texi: Likewise.
48988         * doc/posix-functions/fputs.texi: Likewise.
48989         * doc/posix-functions/fwrite.texi: Likewise.
48990         * doc/posix-functions/printf.texi: Likewise.
48991         * doc/posix-functions/putc.texi: Likewise.
48992         * doc/posix-functions/putchar.texi: Likewise.
48993         * doc/posix-functions/puts.texi: Likewise.
48994         * doc/posix-functions/vfprintf.texi: Likewise.
48995         * doc/posix-functions/vprintf.texi: Likewise.
48996
48997         * modules/safe-write (Depends-on): Add write.
48998
48999         * modules/sigpipe-tests: New file.
49000         * tests/test-sigpipe.c: New file.
49001         * tests/test-sigpipe.sh: New file.
49002
49003         * modules/write: New file.
49004         * lib/unistd.in.h: Include <sys/types.h>.
49005         (write): New declaration.
49006         * lib/write.c: New file.
49007         * m4/write.m4: New file.
49008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49009         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
49010         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
49011         GNULIB_WRITE, REPLACE_WRITE.
49012         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
49013         and the SIGPIPE issue.
49014
49015         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
49016         (raise): New declaration.
49017         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
49018         (ext_signal): New function.
49019         (rpl_raise): New function.
49020         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49021         GNULIB_SIGNAL_H_SIGPIPE.
49022         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
49023         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
49024
49025         * modules/sigpipe: New file.
49026         * m4/sigpipe.m4: New file.
49027
49028 2008-09-25  Derek Price  <derek@ximbiot.com>
49029             Bruno Haible  <bruno@clisp.org>
49030
49031         * gnulib-tool (func_import): Report all license incompatibilities, not
49032         just the first one.
49033
49034 2008-09-25  Bruno Haible  <bruno@clisp.org>
49035
49036         * gnulib-tool (func_import): When computing the edits, consider not
49037         only the Makefile.ams that exist but also those that will be generated.
49038
49039 2008-09-25  Simon Josefsson  <simon@josefsson.org>
49040
49041         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
49042         fixes gnulib-tool --test warning about duplicate dependency.
49043
49044 2008-09-25  Bruno Haible  <bruno@clisp.org>
49045
49046         * gnulib-tool: Don't ask the user to perform edits in the generated
49047         Makefile.ams.
49048         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
49049         apply to the Makefile.am being generated.
49050         (func_emit_tests_Makefile_am): Execute edits that apply to the
49051         Makefile.am being generated.
49052         (func_import): Setup list of Makefile.am edits before emitting the
49053         Makefile.ams, not at the end.
49054         (func_create_testdir): Update.
49055         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49056
49057 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49058
49059         * gnulib-tool (func_import): Store the --tests-base option in the
49060         comment in gnulib-cache.m4.
49061
49062 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
49063
49064         * NEWS: Document increased portability that sys_select now provides.
49065
49066         * lib/sys_select.in.h: Install select wrapper.
49067         * lib/sys_socket.in.h: Use more descriptive name when there is no
49068         select wrapper.
49069         * lib/winsock-select.c: New.
49070         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
49071         Require gl_HEADER_SYS_SOCKET.
49072         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
49073         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
49074         * tests/test-sys_select.c: Add functional tests.
49075
49076 2008-09-24  Eric Blake  <ebb9@byu.net>
49077
49078         open, fopen: close fd leak in last patch
49079         * lib/open.c (rpl_open): Close fd before returning error.
49080         * lib/fopen.c (rpl_fopen): Close fd before returning error.
49081         * doc/posix-functions/open.texi (open): Document that Irix also
49082         has the bug.
49083         * doc/posix-functions/fopen.texi (fopen): Likewise.
49084         Reported by Paolo Bonzini.
49085
49086 2008-09-24  Bruno Haible  <bruno@clisp.org>
49087
49088         Ensure that a filename ending in a slash cannot be used to access a
49089         non-directory.
49090         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
49091         to check whether it's really a directory.
49092         * lib/fopen.c: Include fcntl.h, unistd.h.
49093         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
49094         and fdopen().
49095         * modules/fopen (Depends-on): Add unistd.
49096         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
49097         * tests/test-fopen.c (main): Likewise.
49098         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
49099         * doc/posix-functions/fopen.texi: Likewise.
49100         Reported by Eric Blake.
49101
49102 2008-09-23  Eric Blake  <ebb9@byu.net>
49103
49104         c-stack: avoid compiler optimizations when provoking overflow
49105         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
49106         recursion harder to optimize, to ensure a stack overflow occurs.
49107         * tests/test-c-stack.c (recurse): Likewise.
49108         Borrowed from libsigsegv.
49109
49110         c-stack: work around Irix sigaltstack bug
49111         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
49112         whether sigaltstack uses wrong end of stack_t (copied in part from
49113         libsigsegv).
49114         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
49115         Irix bug, without requiring an over-allocation.
49116         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
49117         bug.
49118
49119         fopen: document mingw bug on directories
49120         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
49121         not allowing a stream visiting a directory, even though reading
49122         from such a stream is not portable.
49123
49124 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49125
49126         * lib/poll.c: Rewrite.
49127         * modules/poll: Depend on alloca.
49128
49129 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49130
49131         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
49132         instead define prototypes for a full set of wrappers.  Ensure
49133         that Cygwin does not use the compatibility code, which is only
49134         for MinGW.
49135         * lib/winsock.c: New.
49136         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
49137         * modules/sys_socket: Add lib/winsock.c.
49138
49139         * modules/poll-tests: Add errno and perror.
49140         * tests/test-poll.c: Use ioctl, not ioctlsocket.
49141
49142 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49143
49144         * tests/test-poll.c: Downgrade minimum needed Winsock version.
49145
49146 2008-09-23  Bruno Haible  <bruno@clisp.org>
49147
49148         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
49149         * doc/glibc-functions/*: Likewise.
49150
49151 2008-09-23  Simon Josefsson  <simon@josefsson.org>
49152
49153         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
49154         success.
49155
49156 2008-09-22  Eric Blake  <ebb9@byu.net>
49157             Bruno Haible  <bruno@clisp.org>
49158
49159         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
49160         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
49161         supply %A but mishandle pseudo-NaN.
49162         Reported by Simon Josefsson.
49163
49164 2008-09-21  Bruno Haible  <bruno@clisp.org>
49165
49166         * tests/test-lock.c (main): Tweak skip message.
49167         * tests/test-tls.c (main): Likewise.
49168
49169 2008-09-21  Bruno Haible  <bruno@clisp.org>
49170
49171         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
49172         whether 'struct sigaction' has sa_sigaction here...
49173         (gl_PREREQ_SIG_HANDLER_H): ... not here.
49174         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
49175
49176 2008-09-21  Bruno Haible  <bruno@clisp.org>
49177
49178         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
49179         section.
49180         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
49181         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
49182         the new section.
49183         (Support for obsolete systems lacking POSIX:2001): New section.
49184         (String handling <string.h>): Move strdup to the new section.
49185         Suggested by Simon Josefsson and Paolo Bonzini.
49186
49187 2008-09-21  Bruno Haible  <bruno@clisp.org>
49188
49189         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
49190         exponents in %e and %g results on 'long double'. Needed for mingw's
49191         improved *printf functions.
49192         * tests/test-vasprintf-posix.c (test_function): Likewise.
49193         * tests/test-snprintf-posix.h (test_function): Likewise.
49194         * tests/test-sprintf-posix.h (test_function): Likewise.
49195         Reported by Eric Blake.
49196
49197 2008-09-21  Bruno Haible  <bruno@clisp.org>
49198
49199         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
49200         * tests/test-sprintf-posix.h (test_function): Likewise.
49201
49202 2008-09-21  Bruno Haible  <bruno@clisp.org>
49203
49204         * modules/getpass (Depends-on): Add strdup-posix.
49205
49206         New module 'strdup-posix'.
49207         * modules/strdup-posix: New file.
49208         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
49209         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
49210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49211         REPLACE_STRDUP.
49212         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
49213         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
49214         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49215         strdup-posix.
49216
49217         * modules/strdup (Depends-on): Remove malloc-posix.
49218
49219 2008-09-20  Bruno Haible  <bruno@clisp.org>
49220
49221         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
49222         Wildenhues.
49223
49224 2008-09-20  Bruno Haible  <bruno@clisp.org>
49225
49226         Ensure that wint_t gets defined on IRIX 5.3.
49227         * lib/wchar.in.h (wint_t): Define if not defined by the system.
49228         * lib/wctype.in.h (wint_t): Likewise.
49229         (__wctype_wint_t): Remove type.
49230         (isw*): Use wint_t instead of __wctype_wint_t.
49231         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
49232         * modules/wchar (Files): Add m4/wint_t.m4.
49233         (Makefile.am): Substitute HAVE_WINT_T.
49234         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
49235         * tests/test-wctype.c: Check that wint_t is defined.
49236         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
49237         * doc/posix-headers/wctype.texi: Likewise.
49238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49239
49240 2008-09-18  Bruno Haible  <bruno@clisp.org>
49241
49242         * gnulib-tool (func_exit): Update comment.
49243
49244 2008-09-18  Simon Josefsson  <simon@josefsson.org>
49245
49246         * modules/getaddrinfo (Depends-on): Remove strdup, this module
49247         assumes strdup exists and does not depend on strdup to return
49248         ENOMEM on out of memory conditions.
49249
49250 2008-09-18  Bruno Haible  <bruno@clisp.org>
49251
49252         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
49253         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
49254         digits for the exponent.
49255
49256 2008-09-18  Jim Meyering  <meyering@redhat.com>
49257             Bruno Haible  <bruno@clisp.org>
49258
49259         * lib/vasnprintf.c (decimal_point_char): Define also if
49260         NEED_PRINTF_INFINITE_LONG_DOUBLE.
49261
49262 2008-09-16  Bruno Haible  <bruno@clisp.org>
49263         and Eric Blake  <ebb9@byu.net>
49264
49265         vasnprintf: support Irix 5.3
49266         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
49267         that mishandle long double infinity.
49268         Reported by Tom G. Christensen.
49269
49270 2008-09-16  Bruno Haible  <bruno@clisp.org>
49271
49272         * doc/glibc-functions/scandir.texi: Mention the function is missing on
49273         Solaris 9.
49274         * doc/glibc-functions/alphasort.texi: Likewise.
49275         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
49276
49277 2008-09-16  Jim Meyering  <meyering@redhat.com>
49278
49279         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
49280         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
49281         a umask modification leak out of a subshell.  Otherwise, the
49282         opensolaris /bin/sh would be accepted and thus cause unwarranted
49283         failures in the coreutils test suite.
49284
49285 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
49286
49287         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
49288         to succeed.
49289
49290 2008-09-16  Jim Meyering  <meyering@redhat.com>
49291
49292         avoid spurious test failure when library is built without ACL support
49293         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
49294         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
49295         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
49296         * tests/test-copy-acl.sh: Likewise.
49297
49298 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49299
49300         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
49301         based on character occurrence counts.
49302
49303 2008-09-15  Eric Blake  <ebb9@byu.net>
49304
49305         tests: avoid some compiler warnings
49306         * tests/test-memchr.c (main): Pass NULL indirectly.
49307         * tests/test-closein.c (main): Avoid unused variable.
49308
49309 2008-09-15  Bruno Haible  <bruno@clisp.org>
49310
49311         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
49312         are missing on OpenBSD 4.0 individually.
49313         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49314
49315 2008-09-15  Bruno Haible  <bruno@clisp.org>
49316
49317         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
49318         * doc/posix-functions/strerror.texi: Mention also Cygwin.
49319         * doc/posix-functions/perror.texi: Likewise.
49320         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
49321         is missing.
49322         Reported by Eric Blake.
49323
49324         * lib/errno.in.h: Use replacement values >= 2000.
49325         Reported by Eric Blake.
49326
49327 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49328
49329         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
49330         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
49331         limit.
49332         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
49333         compareseq was aborted.
49334
49335 2008-09-14  Bruno Haible  <bruno@clisp.org>
49336
49337         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
49338         yvec_edit_count.
49339         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
49340         (fstrcmp_bounded): Simplify result computation accordingly.
49341
49342 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49343
49344         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
49345         (fstrcmp): Define in terms of fstrcmp_bounded.
49346         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
49347         lower_bound argument.
49348         Return quickly if the result is certainly < lower_bound.
49349         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
49350
49351 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49352
49353         * lib/diffseq.h (EARLY_ABORT): New macro.
49354         (compareseq): Change return type to bool. Return true when EARLY_ABORT
49355         evaluates to true.
49356
49357 2008-09-14  Bruno Haible  <bruno@clisp.org>
49358
49359         * modules/perror-tests: New file.
49360         * tests/test-perror.sh: New file.
49361         * tests/test-perror.c: New file.
49362
49363         New module 'perror'.
49364         * lib/stdio.in.h (perror): New declaration.
49365         * lib/perror.c: New file.
49366         * m4/perror.m4: New file.
49367         * modules/perror: New file.
49368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
49369         * doc/posix-functions/perror.texi: Mention the perror module.
49370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
49371         REPLACE_PERROR.
49372         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
49373         REPLACE_PERROR.
49374
49375 2008-09-14  Bruno Haible  <bruno@clisp.org>
49376
49377         * modules/stdio (Makefile.am): Reorder to match the order in
49378         lib/stdio.in.h.
49379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49380
49381 2008-09-13  Bruno Haible  <bruno@clisp.org>
49382
49383         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
49384
49385 2008-09-13  Bruno Haible  <bruno@clisp.org>
49386
49387         Extend strerror to cover the added errno values.
49388         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
49389         (rpl_strerror): Provide error messages for the added errno values and
49390         for the WSA* values.
49391         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
49392         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
49393         strerror.
49394         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
49395         * modules/strerror (Depends-on): Add errno.
49396         * doc/posix-functions/strerror.texi: Document the change.
49397         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
49398         and EOVERFLOW.
49399
49400 2008-09-13  Bruno Haible  <bruno@clisp.org>
49401
49402         * modules/EOVERFLOW: Remove file.
49403         * m4/eoverflow.m4: Remove file.
49404         * modules/EOVERFLOW-tests: Remove file.
49405         * tests/test-EOVERFLOW.c: Remove file.
49406         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
49407         * modules/ftell (Depends-on): Likewise.
49408         * modules/getdelim (Depends-on): Likewise.
49409         * modules/getugroups (Depends-on): Likewise.
49410         * modules/poll (Depends-on): Likewise.
49411         * modules/snprintf (Depends-on): Likewise.
49412         * modules/sprintf-posix (Depends-on): Likewise.
49413         * modules/vasnprintf (Depends-on): Likewise.
49414         * modules/vasprintf (Depends-on): Likewise.
49415         * modules/vfprintf-posix (Depends-on): Likewise.
49416         * modules/vsnprintf (Depends-on): Likewise.
49417         * modules/vsprintf-posix (Depends-on): Likewise.
49418         * modules/xvasprintf (Depends-on): Likewise.
49419         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49420         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
49421         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
49422         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
49423         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49424         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
49425         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
49426         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
49427         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49428         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
49429         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
49430         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
49431         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49432         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
49433         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
49434         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
49435         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49436         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
49437         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
49438         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
49439         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49440         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
49441         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
49442         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
49443         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
49444         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49445         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
49446         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
49447         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
49448         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
49449         * MODULES.html.sh: Remove EOVERFLOW.
49450         * NEWS: Mention the change.
49451
49452 2008-09-13  Bruno Haible  <bruno@clisp.org>
49453
49454         * modules/errno-tests: New file.
49455         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
49456
49457         * lib/errno.in.h: New file.
49458         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
49459         * modules/errno: New file.
49460         * doc/posix-headers/errno.texi: Update documentation.
49461         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
49462
49463 2008-09-13  Bruno Haible  <bruno@clisp.org>
49464
49465         * tests/test-poll.c: Use #if for native Windows, rather than testing
49466         __MSVCRT__.
49467
49468 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49469             Bruno Haible  <bruno@clisp.org>
49470
49471         * lib/glob.c: Don't include <pwd.h> on native Windows.
49472         (WINDOWS32): New macro.
49473         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
49474
49475 2008-09-13  Bruno Haible  <bruno@clisp.org>
49476
49477         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
49478         (ETIMEDOUT): Remove macro.
49479         (glthread_cond_timedwait_multithreaded): New declaration.
49480         (glthread_cond_timedwait): Use it.
49481         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
49482         (glthread_cond_timedwait_multithreaded): New function.
49483
49484 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49485
49486         * modules/poll-tests: Do not check for io.h.
49487         * tests/test-poll.c: Check for __MSVCRT__ instead.
49488
49489 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49490
49491         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
49492         * modules/poll-tests: Add inet_pton, stdbool, sockets.
49493         * tests/test-poll.c: Use them.  Use _pipe on Windows.
49494
49495 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49496
49497         * modules/poll-tests: New.
49498         * tests/test-poll.c: New.
49499
49500 2008-09-12  Eric Blake  <ebb9@byu.net>
49501
49502         frexp: test for NetBSD failure on -0.0
49503         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
49504         not all, bugs from NetBSD 3.0 have been fixed.
49505         * doc/posix-functions/frexp.texi (frexp): Document bug.
49506         Reported by Thomas Klausner.
49507
49508         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
49509         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
49510         literal -0.0.
49511         Reported by Jonathan C. Patschke <jp@centtech.com>.
49512
49513 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49514
49515         * lib/glthread/cond.h: Use dummy implementation also if
49516         USE_WIN32_THREADS.
49517
49518 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49519
49520         * modules/fnmatch-posix (License): Change to LGPLv2+.
49521         * modules/fnmatch-gnu (License): Likewise.
49522
49523 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49524
49525         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
49526
49527 2008-09-11  Jim Meyering  <meyering@redhat.com>
49528
49529         * users.txt: Add gtk-vnc.
49530
49531 2008-09-08  Simon Josefsson  <simon@josefsson.org>
49532
49533         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
49534         rotate amounts.
49535
49536         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
49537         required for 16-bit and 8-bit rotates.
49538         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
49539         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
49540         UINT8_MAX instead of hard-coded constants.
49541         Suggested by Paul Eggert.
49542
49543 2008-09-07  Bruno Haible  <bruno@clisp.org>
49544
49545         * tests/test-striconveh.c (main): Check behaviour when converting from
49546         UTF-7.
49547
49548         Make striconveh work better with stateful encodings.
49549         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
49550         that iconv does not increment the inptr when returning -1/EINVAL.
49551
49552 2008-09-07  Bruno Haible  <bruno@clisp.org>
49553
49554         * build-aux/config.rpath: Update according to libtool-2.2.6.
49555         * build-aux/config.libpath: Likewise.
49556
49557 2008-09-06  Bruno Haible  <bruno@clisp.org>
49558
49559         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
49560         * lib/freadptr.c (freadptr): Likewise.
49561         * lib/freadseek.c (freadptrinc): Likewise.
49562         Reported by Simon Josefsson.
49563
49564 2008-09-06  Bruno Haible  <bruno@clisp.org>
49565
49566         * modules/freadptr (License): Change to LGPLv2+.
49567         * modules/freadseek (License): Likewise.
49568         Suggested by Eric Blake.
49569
49570         * modules/memchr2 (License): Change to LGPLv2+.
49571         Approved by Eric Blake.
49572
49573 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49574             Bruno Haible  <bruno@clisp.org>
49575
49576         Make gnulib-tool work with native 'sed' on AIX.
49577         * gnulib-tool (sed_noop): New variable.
49578         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
49579         func_add_or_update, func_create_testdir): Use it to initialize sed
49580         script variables.
49581         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49582
49583 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
49584             Bruno Haible  <bruno@clisp.org>
49585
49586         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
49587         also works after #include directives.
49588
49589 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
49590
49591         getdate.y: reject an out-of-range timezone value
49592         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
49593         the range [-24...+24].  When specified with only one or two digits,
49594         * tests/test-getdate.c: Tests for the fix.
49595         * doc/getdate.texi: Document this change.
49596
49597 2008-09-03  Bruno Haible  <bruno@clisp.org>
49598
49599         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
49600
49601 2008-09-02  Simon Josefsson  <simon@josefsson.org>
49602
49603         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
49604         <bruce.korb@gmail.com> with ideas from Ben Pfaff
49605         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
49606         Blake <ebb9@byu.net>.
49607
49608         * tests/test-bitrotate.c: Add more test vectors.
49609
49610 2008-09-02  Eric Blake  <ebb9@byu.net>
49611
49612         vasnprintf-posix: handle large precision via %.*d
49613         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
49614         when handling it ourselves.
49615         * tests/test-vasnprintf-posix.c (test_function): Add test.
49616         * tests/test-snprintf-posix.h (test_function): Likewise.
49617         * tests/test-sprintf-posix.h (test_function): Likewise.
49618         * tests/test-vasprintf-posix.c (test_function): Likewise.
49619         Reported by Alain Guibert.
49620
49621 2008-09-01  Eric Blake  <ebb9@byu.net>
49622
49623         c-stack: make configure-time check more robust
49624         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
49625         successful sigaction call.
49626         Reported by Tom G. Christensen.
49627
49628 2008-09-01  Bruno Haible  <bruno@clisp.org>
49629
49630         New module 'findprog-lgpl'.
49631         * modules/findprog-lgpl: New file.
49632         * lib/findprog-lgpl.c: New file.
49633         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
49634         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
49635         to decide whether to use strdup or xstrdup, concatenated_filename or
49636         xconcatenated_filename.
49637
49638 2008-09-01  Bruno Haible  <bruno@clisp.org>
49639
49640         Split module 'concat-filename' into 'concat-filename' (LGPL) and
49641         'xconcat-filename' (GPL).
49642         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
49643         (License): Change to LGPLv2+.
49644         * modules/xconcat-filename: New file.
49645         * lib/concat-filename.h (concatenated_filename): Change specification.
49646         (xconcatenated_filename): New declaration.
49647         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
49648         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
49649         memory situations.
49650         * lib/xconcat-filename.c: New file.
49651         * NEWS: Mention the change.
49652         * lib/findprog.c: Include concat-filename.h, not filename.h.
49653         (find_in_path): Use xconcatenated_filename instead of
49654         concatenated_filename.
49655         * lib/javacomp.c: Include concat-filename.h, not filename.h.
49656         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49657         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49658         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49659         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
49660         instead of concatenated_filename.
49661         * lib/javaexec.c: Include concat-filename.h, not filename.h.
49662         (execute_java_class): Use xconcatenated_filename instead of
49663         concatenated_filename.
49664         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
49665         * modules/javacomp (Depends-on): Likewise.
49666         * modules/javaexec (Depends-on): Likewise.
49667
49668 2008-09-01  Bruno Haible  <bruno@clisp.org>
49669
49670         Split module 'filename' into 'filename' and 'concat-filename'.
49671         * modules/filename: Keep only lib/filename.h.
49672         (License): Change to LGPLv2+.
49673         * modules/concat-filename: New file, extracted from modules/filename.
49674         * lib/filename.h (concatenated_filename): Remove declaration.
49675         * lib/concat-filename.h: New file, extracted from lib/filename.h.
49676         * lib/concat-filename.c: Include concat-filename.h.
49677         * NEWS: Mention the change.
49678
49679 2008-09-01  Simon Josefsson  <simon@josefsson.org>
49680
49681         * lib/bitrotate.h (rotl8, rotr8): Add.
49682
49683         * modules/bitrotate (configure.ac): Need
49684         AC_REQUIRE([AC_C_INLINE]).
49685         (Description): Mention stdint.h.  Reported by Bruno Haible
49686         <bruno@clisp.org>.
49687
49688         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
49689         Paolo Bonzini <bonzini@gnu.org>.
49690
49691 2008-08-31  Bruno Haible  <bruno@clisp.org>
49692
49693         Assume Solaris specific bi-arch conventions on Solaris systems.
49694         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
49695         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
49696         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
49697         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
49698         like acl_libdirstem.
49699         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
49700         acl_libdirstem.
49701         * NEWS: Mention the change.
49702         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
49703
49704 2008-08-31  Jim Meyering  <meyering@redhat.com>
49705
49706         * lib/strftime.h: Add comments describing the two added arguments.
49707
49708         remove duplicate #include directives
49709         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
49710         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
49711
49712 2008-08-31  Bruno Haible  <bruno@clisp.org>
49713
49714         New module 'sigpipe-die'.
49715         * modules/sigpipe-die: New file.
49716         * lib/sigpipe-die.h: New file.
49717         * lib/sigpipe-die.c: New file.
49718         * MODULES.html.sh (Signal handling): Add sigpipe-die.
49719
49720 2008-08-31  Bruno Haible  <bruno@clisp.org>
49721
49722         Don't override previously installed signal handlers.
49723         * lib/fatal-signal.c (saved_sigactions): New variable.
49724         (uninstall_handlers): Reset the signal to the saved handler, not
49725         to SIG_DFL (except when ignored).
49726         (install_handlers): Save the previous handlers.
49727
49728 2008-08-30  Bruno Haible  <bruno@clisp.org>
49729
49730         * gnulib-tool (func_reset_sigpipe): New function.
49731         (func_get_automake_snippet, func_modules_transitive_closure,
49732         func_import): Invoke it before a join command that reads from stdin,
49733         to avoid "echo: write error: Broken pipe" error messages on stderr.
49734         Reported by Sam Steingold <sds@gnu.org>.
49735
49736 2008-08-30  Bruno Haible  <bruno@clisp.org>
49737
49738         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
49739         Code copied from m4/open.m4.
49740         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
49741         access and the filename ends in a slash. Code copied from lib/open.c.
49742         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
49743         * tests/test-fopen.c (main): Check against bug with trailing slash.
49744
49745 2008-08-29  Bruno Haible  <bruno@clisp.org>
49746
49747         Avoid some "gcc -pedantic" warnings.
49748         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
49749         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
49750         * lib/dirent.in.h: Likewise.
49751         * lib/fcntl.in.h: Likewise.
49752         * lib/float.in.h: Likewise.
49753         * lib/iconv.in.h: Likewise.
49754         * lib/inttypes.in.h: Likewise.
49755         * lib/locale.in.h: Likewise.
49756         * lib/math.in.h: Likewise.
49757         * lib/netinet_in.in.h: Likewise.
49758         * lib/search.in.h: Likewise.
49759         * lib/signal.in.h: Likewise.
49760         * lib/stdarg.in.h: Likewise.
49761         * lib/stdint.in.h: Likewise.
49762         * lib/stdio.in.h: Likewise.
49763         * lib/stdlib.in.h: Likewise.
49764         * lib/string.in.h: Likewise.
49765         * lib/strings.in.h: Likewise.
49766         * lib/sys_select.in.h: Likewise.
49767         * lib/sys_socket.in.h: Likewise.
49768         * lib/sys_stat.in.h: Likewise.
49769         * lib/sys_time.in.h: Likewise.
49770         * lib/sysexits.in.h: Likewise.
49771         * lib/time.in.h: Likewise.
49772         * lib/unistd.in.h: Likewise.
49773         * lib/wchar.in.h: Likewise.
49774         * lib/wctype.in.h: Likewise.
49775         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
49776         * modules/fchdir (Makefile.am): Likewise.
49777         * modules/fcntl (Makefile.am): Likewise.
49778         * modules/float (Makefile.am): Likewise.
49779         * modules/iconv_open (Makefile.am): Likewise.
49780         * modules/inttypes (Makefile.am): Likewise.
49781         * modules/locale (Makefile.am): Likewise.
49782         * modules/math (Makefile.am): Likewise.
49783         * modules/netinet_in (Makefile.am): Likewise.
49784         * modules/search (Makefile.am): Likewise.
49785         * modules/signal (Makefile.am): Likewise.
49786         * modules/stdarg (Makefile.am): Likewise.
49787         * modules/stdint (Makefile.am): Likewise.
49788         * modules/stdio (Makefile.am): Likewise.
49789         * modules/stdlib (Makefile.am): Likewise.
49790         * modules/string (Makefile.am): Likewise.
49791         * modules/strings (Makefile.am): Likewise.
49792         * modules/sys_select (Makefile.am): Likewise.
49793         * modules/sys_socket (Makefile.am): Likewise.
49794         * modules/sys_stat (Makefile.am): Likewise.
49795         * modules/sys_time (Makefile.am): Likewise.
49796         * modules/sysexits (Makefile.am): Likewise.
49797         * modules/time (Makefile.am): Likewise.
49798         * modules/unistd (Makefile.am): Likewise.
49799         * modules/wchar (Makefile.am): Likewise.
49800         * modules/wctype (Makefile.am): Likewise.
49801         Reported by Reuben Thomas <rrt@sc3d.org>.
49802
49803 2008-08-29  Bruno Haible  <bruno@clisp.org>
49804
49805         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
49806         any more.
49807
49808 2008-08-29  Simon Josefsson  <simon@josefsson.org>
49809
49810         * MODULES.html.sh (Misc): Add bitrotate.
49811
49812         * modules/bitrotate: New file.
49813
49814         * lib/bitrotate.h: New file.
49815
49816         * modules/bitrotate-tests: New file.
49817
49818         * tests/test-bitrotate.c: New file.
49819
49820         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
49821         on the bitrotate module.
49822
49823         * lib/arctwo.c: Use new bitrotate module.
49824
49825 2008-08-29  Jim Meyering  <meyering@redhat.com>
49826
49827         bootstrap: merge changes from coreutils
49828         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
49829         of copied files.  Remove a kludge, now that this is fixed.
49830         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
49831         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
49832         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
49833
49834 2008-08-29  Bruno Haible  <bruno@clisp.org>
49835
49836         * MODULES.html.sh: Remove --cvs-urls option.
49837
49838 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
49839
49840         maint.mk: adjust to file name change
49841         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
49842
49843 2008-08-28  Jim Meyering  <meyering@redhat.com>
49844
49845         * modules/getndelim2 (License): Relicense to LGPLv2+.
49846         Approved by Richard Stallman for the version of 1995, and by
49847         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
49848
49849 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
49850
49851         * lib/getdelim.c (flockfile, funlockfile): Make all of them
49852         dummy if one is not available.  Do not touch them if
49853         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
49854         (getc_maybe_unlocked): New.
49855         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
49856
49857 2008-08-26  Eric Blake  <ebb9@byu.net>
49858
49859         doc/INSTALL: resync from autoconf
49860         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
49861         (INSTALL_PRELUDE): Delete; this is done more efficiently by
49862         moving...
49863         * install.texi [!autoconf]: ...here.  Resync from autoconf.
49864         * INSTALL: Regenerate.
49865         * INSTALL.ISO: New file.
49866         * INSTALL.UTF-8: Likewise.
49867
49868 2008-08-26  Jim Meyering  <meyering@redhat.com>
49869
49870         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
49871         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
49872         these definitions conditional, so that they may be overridden, too.
49873
49874 2008-08-26  Bruno Haible  <bruno@clisp.org>
49875
49876         Generate INSTALL file variants with prettier quotes.
49877         * doc/Makefile (INSTALL_PRELUDE): New macro.
49878         (INSTALL): Use it.
49879         (INSTALL.ISO, INSTALL.UTF-8): New rules.
49880
49881 2008-08-26  Bruno Haible  <bruno@clisp.org>
49882
49883         Run makeinfo in an English locale.
49884         * doc/Makefile (MAKEINFO): New variable.
49885
49886 2008-08-26  Bruno Haible  <bruno@clisp.org>
49887
49888         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
49889         Suggested by Eric Blake.
49890
49891 2008-08-25  Bruno Haible  <bruno@clisp.org>
49892
49893         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
49894
49895 2008-08-25  Eric Blake  <ebb9@byu.net>
49896
49897         c-stack: test that stack overflow can be caught
49898         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
49899         that platform allows handling stack overflow; at least OS/2 EMX
49900         has sigaltstack, but crashes before transferring control to
49901         handler on stack overflow.
49902         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
49903         check for HAVE_STACK_OVERFLOW_HANDLING.
49904         Reported by Elbert Pol.
49905
49906 2008-08-25  Bruno Haible  <bruno@clisp.org>
49907
49908         * doc/posix-functions/strftime.texi: Fix description of strftime
49909         module.
49910
49911 2008-08-24  Bruno Haible  <bruno@clisp.org>
49912
49913         * tests/uniwidth/test-uc_width2.c: New file.
49914         * tests/uniwidth/test-uc_width2.sh: New file.
49915         * modules/uniwidth/width-tests (Files): Add the new files.
49916         (TESTS): Add uniwidth/test-uc_width2.sh.
49917         (TESTS_ENVIRONMENT): New variable.
49918         (check_PROGRAMS): Add test-uc_width2.
49919         (test_uc_width2_SOURCES): New variable.
49920
49921         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
49922         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
49923         not 0x00AB.
49924         Reported by Alexander V. Lukyanov <lav@netis.ru>.
49925
49926 2008-08-22  Eric Blake  <ebb9@byu.net>
49927
49928         test-lock, test-tls: mention why a test is skipped
49929         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
49930         skipped.
49931         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
49932
49933         count-one-bits: relax license
49934         * modules/count-one-bits (License): Relicense to LGPLv2+.
49935         Suggested by Ludovic Courtès, approved by Ben Pfaff.
49936
49937 2008-08-22  Andreas Schwab  <schwab@suse.de>
49938
49939         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
49940         Remove spurious space in assignment.
49941
49942 2008-08-21  Simon Josefsson  <simon@josefsson.org>
49943
49944         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
49945         Paul Eggert <eggert@CS.UCLA.EDU>.
49946
49947 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
49948
49949         * modules/gettext: Add m4/threadlib.m4.
49950
49951 2008-08-19  Eric Blake  <ebb9@byu.net>
49952
49953         test-c-stack: fix compilation failure on FreeBSD 5.0
49954         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
49955         headers before <sys/resource.h>.
49956         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
49957         the bug.
49958         Reported by Nelson H. F. Beebe.
49959
49960         strverscmp: migrate from "strverscmp.h" to <string.h>
49961         * modules/string (Makefile.am): Add new hooks.
49962         * modules/strverscmp (Files): Remove strverscmp.h.
49963         (Depends-on): Add string.
49964         (configure.ac): Add indicator.
49965         (Include): Mention new header.
49966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
49967         defaults.
49968         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
49969         results.
49970         * lib/strverscmp.h: Delete.
49971         * lib/string.in.h (strverscmp): Provide declaration, when needed.
49972         * tests/test-strverscmp.c (includes): Adjust client.
49973         * lib/check-version.c (includes): Likewise.
49974         * NEWS: Document the change.
49975
49976         strverscmp: add unit test
49977         * modules/strverscmp-tests: New file.
49978         * tests/test-strverscmp.c: Likewise.
49979
49980 2008-08-19  Simon Josefsson  <simon@josefsson.org>
49981
49982         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
49983         regarding Windows crypto stuff, from Mono.
49984
49985 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
49986
49987         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
49988         if present, for intel RND.  Return error on failures.
49989
49990 2008-08-18  Ben Pfaff  <blp@gnu.org>
49991
49992         gitlog-to-changelog: give better diagnostic for failed pipe-open
49993         * build-aux/gitlog-to-changelog: Improve error message: suggest
49994         that the version of Git may be too old.
49995
49996 2008-08-18  Simon Josefsson  <simon@josefsson.org>
49997
49998         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
49999         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
50000
50001 2008-08-18  Bruno Haible  <bruno@clisp.org>
50002
50003         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
50004         pthread_in_use().
50005
50006 2008-08-18  Bruno Haible  <bruno@clisp.org>
50007
50008         * lib/glthread/threadlib.c: Include <pthread.h>.
50009
50010 2008-08-18  Bruno Haible  <bruno@clisp.org>
50011
50012         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
50013         glthread_recursive_lock_* macros.
50014         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
50015         Fix syntax error.
50016
50017 2008-08-18  Bruno Haible  <bruno@clisp.org>
50018
50019         * lib/glthread/thread.c: Avoid forcing a context switch right after
50020         thread creation.
50021
50022 2008-08-17  Bruno Haible  <bruno@clisp.org>
50023
50024         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
50025         * lib/glthread/thread.h: Provide Win32 specific implementation.
50026         * modules/thread (Files): Add lib/glthread/thread.c.
50027         (Depends-on): Add lock.
50028         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
50029
50030 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50031
50032         New module 'yield'.
50033         * modules/yield: New file.
50034         * lib/glthread/yield.h: New file.
50035         * m4/yield.m4: New file.
50036         * MODULES.html.sh (Multithreading): Add yield.
50037
50038 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50039
50040         New module 'thread'.
50041         * modules/thread: New file.
50042         * lib/glthread/thread.h: New file.
50043         * m4/thread.m4: New file.
50044         * MODULES.html.sh (Multithreading): Add thread.
50045
50046 2008-08-17  Bruno Haible  <bruno@clisp.org>
50047
50048         * lib/glthread/lock.h: Include <stdlib.h> always.
50049         * lib/glthread/tls.h: Likewise.
50050         * lib/glthread/cond.h: Likewise.
50051
50052 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50053
50054         New module 'cond'.
50055         * modules/cond: New file.
50056         * lib/glthread/cond.h: New file.
50057         * lib/glthread/cond.c: New file.
50058         * m4/cond.m4: New file.
50059         * MODULES.html.sh (Multithreading): Add cond.
50060
50061 2008-08-16  Eric Blake  <ebb9@byu.net>
50062
50063         c-stack: fix regression on Irix 5.3 from 2008-06-21
50064         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
50065         sa_sigaction...
50066         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
50067         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
50068         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
50069         * modules/signal (Makefile.am): Use the value.
50070         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
50071         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
50072         * doc/posix-headers/signal.texi (signal.h): Document this
50073         portability issue.
50074         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
50075         Reported by Tom G. Christensen.
50076
50077 2008-08-17  Bruno Haible  <bruno@clisp.org>
50078
50079         New module 'threadlib'.
50080         * modules/threadlib: New file.
50081         * lib/glthread/threadlib.c: New file, extracted from
50082         lib/glthread/lock.c.
50083         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
50084         functions.
50085         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
50086         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
50087         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
50088         macros.
50089         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
50090         (gl_DISABLE_THREADS): Remove macro.
50091         * modules/lock (Files): Remove build-aux/config.rpath.
50092         (Depends-on): Remove havelib. Add threadlib.
50093         (configure.ac-early): Remove section.
50094         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
50095         * modules/tls (Depends-on): Remove lock. Add threadlib.
50096         (Link): New section, copied from threadlib.
50097         * MODULES.html.sh (Multithreading): Add threadlib.
50098
50099 2008-08-14  Bruno Haible  <bruno@clisp.org>
50100
50101         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
50102         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
50103         glthread_rwlock_unlock, glthread_rwlock_destroy,
50104         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
50105         glthread_recursive_lock_destroy): Define as macros always.
50106         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
50107         glthread_lock_lock.
50108         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
50109         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
50110         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
50111         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
50112         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
50113         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
50114         (glthread_recursive_lock_lock_func): Renamed from
50115         glthread_recursive_lock_lock.
50116         (glthread_recursive_lock_unlock_func): Renamed from
50117         glthread_recursive_lock_unlock.
50118         (glthread_recursive_lock_destroy_func): Renamed from
50119         glthread_recursive_lock_destroy.
50120
50121 2008-08-14  Bruno Haible  <bruno@clisp.org>
50122
50123         * lib/glthread/lock.h: Renamed from lib/lock.h.
50124         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
50125         * lib/glthread/tls.h: Renamed from lib/tls.h.
50126         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
50127         * lib/fstrcmp.c: Update includes.
50128         * lib/strsignal.c: Update includes.
50129         * modules/lock (Files, Makefile.am): Update.
50130         (Include): Change to "glthread/lock.h".
50131         * modules/tls (Files, Makefile.am): Update.
50132         (Include): Change to "glthread/tls.h".
50133         * tests/test-lock.c: Update includes.
50134         * tests/test-tls.c: Update includes.
50135         * NEWS: Mention the renamed header files.
50136
50137 2008-08-11  Jim Meyering  <meyering@redhat.com>
50138
50139         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
50140
50141 2008-08-11  Eric Blake  <ebb9@byu.net>
50142
50143         test-c-stack: avoid C99-ism
50144         * tests/test-c-stack.c (main): Fix whitespace, move declaration
50145         before statement.
50146         Reported by Alain Guibert.
50147
50148 2008-08-10  Jim Meyering  <meyering@redhat.com>
50149
50150         ensure that return value of uinttostr et al are not ignored
50151         * lib/inttostr.h (__GNUC_PREREQ): Define.
50152         (__attribute_warn_unused_result__): Define.
50153         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
50154
50155 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
50156
50157         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
50158         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
50159
50160 2008-08-07  Jim Meyering  <meyering@redhat.com>
50161
50162         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
50163
50164         * modules/mkstemp (License): Relicense under LGPLv2+.
50165         * modules/tempname (License): Likewise.
50166
50167 2008-08-06  Bruno Haible  <bruno@clisp.org>
50168
50169         * lib/poll.c (poll): Further micro-optimization.
50170
50171 2008-08-06  Jim Meyering  <meyering@redhat.com>
50172
50173         inet_pton.c: use locale-independent tolower
50174         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
50175         (inet_pton6): Use c_tolower rather than tolower.
50176         * modules/inet_pton (Depends-on): Add c-ctype.
50177
50178 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
50179
50180         * lib/poll.c (poll): Avoid division when timeout is 0, cache
50181         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
50182
50183 2008-08-06  Jim Meyering  <meyering@redhat.com>
50184
50185         * modules/inet_pton (License): Relicense under LGPLv2+.
50186
50187 2008-08-03  Bruno Haible  <bruno@clisp.org>
50188
50189         Additional non-aborting API for lock and tls.
50190         * lib/lock.h: Include <errno.h>.
50191         (glthread_lock_init): New macro/function.
50192         (gl_lock_init): Define as wrapper around glthread_lock_init.
50193         (glthread_lock_lock): New macro/function.
50194         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
50195         (glthread_lock_unlock): New macro/function.
50196         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
50197         (glthread_lock_destroy): New macro/function.
50198         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
50199         (glthread_rwlock_init): New macro/function.
50200         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
50201         (glthread_rwlock_rdlock): New macro/function.
50202         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
50203         (glthread_rwlock_wrlock): New macro/function.
50204         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
50205         (glthread_rwlock_unlock): New macro/function.
50206         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
50207         (glthread_rwlock_destroy): New macro/function.
50208         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
50209         (glthread_recursive_lock_init): New macro/function.
50210         (gl_recursive_lock_init): Define as wrapper around
50211         glthread_recursive_lock_init.
50212         (glthread_recursive_lock_lock): New macro/function.
50213         (gl_recursive_lock_lock): Define as wrapper around
50214         glthread_recursive_lock_lock.
50215         (glthread_recursive_lock_unlock): New macro/function.
50216         (gl_recursive_lock_unlock): Define as wrapper around
50217         glthread_recursive_lock_unlock.
50218         (glthread_recursive_lock_destroy): New macro/function.
50219         (gl_recursive_lock_destroy): Define as wrapper around
50220         glthread_recursive_lock_destroy.
50221         (glthread_once): New macro/function.
50222         (gl_once): Define as wrapper around glthread_once.
50223         Update function declarations.
50224         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
50225         glthread_rwlock_init. Return error code.
50226         (glthread_rwlock_rdlock_multithreaded): Renamed from
50227         glthread_rwlock_rdlock. Return error code.
50228         (glthread_rwlock_wrlock_multithreaded): Renamed from
50229         glthread_rwlock_wrlock. Return error code.
50230         (glthread_rwlock_unlock_multithreaded): Renamed from
50231         glthread_rwlock_unlock. Return error code.
50232         (glthread_rwlock_destroy_multithreaded): Renamed from
50233         glthread_rwlock_destroy. Return error code.
50234         (glthread_recursive_lock_init_multithreaded): Renamed from
50235         glthread_recursive_lock_init. Return error code.
50236         (glthread_recursive_lock_lock_multithreaded): Renamed from
50237         glthread_recursive_lock_lock. Return error code.
50238         (glthread_recursive_lock_unlock_multithreaded): Renamed from
50239         glthread_recursive_lock_unlock. Return error code.
50240         (glthread_recursive_lock_destroy_multithreaded): Renamed from
50241         glthread_recursive_lock_destroy. Return error code.
50242         (glthread_once_call): Make static.
50243         (glthread_once_multithreaded): Renamed from glthread_once.
50244         * lib/tls.h: Include <errno.h>.
50245         (glthread_tls_key_init): New macro/function.
50246         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
50247         (glthread_tls_set): New macro/function.
50248         (gl_tls_set): Define as wrapper around glthread_tls_set.
50249         (glthread_tls_key_destroy): New macro/function.
50250         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
50251         Update function declarations.
50252         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
50253         glthread_tls_get.
50254         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50255
50256 2008-08-04  Eric Blake  <ebb9@byu.net>
50257
50258         gnumakefile: use space, not TAB, outside of targets
50259         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
50260
50261 2008-08-02  Jim Meyering  <meyering@redhat.com>
50262
50263         getdate.y: avoid locale-dependent date parsing failure
50264         In Turkish locales, getdate would fail to recognize keywords
50265         containing a lowercase "i".  The solution is not to rely on
50266         locale-sensitive case-conversion.
50267         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
50268         (lookup_word): Use c_toupper in place of toupper.
50269         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
50270         Reported by Vefa Bicakci <bicave@superonline.com> in
50271         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
50272         * modules/getdate (Depends-on): Add c-ctype.
50273
50274 2008-08-02  Bruno Haible  <bruno@clisp.org>
50275
50276         * gnulib-tool (func_import): When updating or creating a .gitignore
50277         file, prepend each added line with a slash, and ignore leading slashes
50278         from the existing lines.
50279         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50280
50281 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50282
50283         Portability fix for GNU make 3.79.1.
50284         * top/GNUmakefile: Avoid 'else COND', which older GNU make
50285         versions do not understand.
50286
50287 2008-08-01  Bruno Haible  <bruno@clisp.org>
50288
50289         Work around bug of HP-UX 10.20 cc with -0.0 literal.
50290         * tests/test-isnanf.h (zero): New variable.
50291         (main): Avoid literal -0.0f.
50292         * tests/test-isnand.h (zero): New variable.
50293         (main): Avoid literal -0.0.
50294         * tests/test-isnanl.h (zero): New variable.
50295         (main): Avoid literal -0.0L.
50296         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
50297         (test_float, test_double, test_long_double): Avoid literals -0.0f,
50298         -0.0, -0.0L.
50299         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
50300         (test_signbitd): Avoid literal -0.0.
50301         (test_signbitl): Avoid literal -0.0L.
50302         * tests/test-ceilf1.c (zero): New variable.
50303         (main): Avoid literal -0.0f.
50304         * tests/test-ceill.c (zero): New variable.
50305         (main): Avoid literal -0.0L.
50306         * tests/test-floorf1.c (zero): New variable.
50307         (main): Avoid literal -0.0f.
50308         * tests/test-floorl.c (zero): New variable.
50309         (main): Avoid literal -0.0L.
50310         * tests/test-roundf1.c (zero): New variable.
50311         (main): Avoid literal -0.0f.
50312         * tests/test-round1.c (zero): New variable.
50313         (main): Avoid literal -0.0.
50314         * tests/test-roundl.c (zero): New variable.
50315         (main): Avoid literal -0.0L.
50316         * tests/test-truncf1.c (zero): New variable.
50317         (main): Avoid literal -0.0f.
50318         * tests/test-trunc1.c (zero): New variable.
50319         (main): Avoid literal -0.0.
50320         * tests/test-truncl.c (zero): New variable.
50321         (main): Avoid literal -0.0L.
50322         * tests/test-frexp.c (zero): New variable.
50323         (main): Avoid literal -0.0.
50324         * tests/test-frexpl.c (zero): New variable.
50325         (main): Avoid literal -0.0L.
50326         * tests/test-ldexpl.c (zero): New variable.
50327         (main): Avoid literal -0.0L.
50328         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50329         (zerod, zerol): New variables.
50330         (test_function): Avoid literals -0.0, -0.0L.
50331         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50332         (zerod, zerol): New variables.
50333         (test_function): Avoid literals -0.0, -0.0L.
50334         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50335         (zerod, zerol): New variables.
50336         (test_function): Avoid literals -0.0, -0.0L.
50337         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50338         (zerod, zerol): New variables.
50339         (test_function): Avoid literals -0.0, -0.0L.
50340         * tests/test-strtod.c (zero): New variable.
50341         (main): Avoid literal -0.0.
50342         Reported by Jonathan C. Patschke <jp@centtech.com>.
50343
50344 2008-07-31  Jim Meyering  <meyering@redhat.com>
50345
50346         sha256.h: correct definition of SHA224_DIGEST_SIZE
50347         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
50348         Reported by Paulie Pena IV <paulie4@gmail.com>.
50349         Define as 224 / 8, rather than as a literal.
50350         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
50351         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
50352         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
50353
50354 2008-07-31  Bruno Haible  <bruno@clisp.org>
50355
50356         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
50357         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
50358         Reported by Jonathan Patschke <jp@centtech.com>.
50359
50360 2008-07-31  Bruno Haible  <bruno@clisp.org>
50361
50362         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
50363         Reported by Paolo Bonzini <bonzini@gnu.org>.
50364
50365 2008-07-30  Eric Blake  <ebb9@byu.net>
50366
50367         test-strtod: allow compilation without -lm
50368         * tests/test-strtod.c (main): Avoid link dependence on fabs.
50369         Reported by Dennis Clarke <blastwave@gmail.com>.
50370
50371 2008-07-28  Jim Meyering  <meyering@redhat.com>
50372
50373         bootstrap: work also when there are no .po files in po/
50374         * build-aux/bootstrap (update_po_files): Complete the change
50375         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
50376
50377 2008-07-27  Jim Meyering  <meyering@redhat.com>
50378
50379         * users.txt: Add zile.
50380
50381 2008-07-26  Ben Pfaff  <blp@gnu.org>
50382
50383         Add missing dependencies on new m4/exponent[fdl].m4 files.
50384         * modules/isnanf-nolibm: Add m4/exponentf.m4.
50385         * modules/isnand-nolibm: Add m4/exponentd.m4.
50386         * modules/isnanl-nolibm: Add m4/exponentl.m4.
50387         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
50388         m4/isnan[fdl].m4, because the macros actually used moved.
50389         Reported by Jim Meyering.
50390
50391 2008-07-14  Ben Pfaff  <blp@gnu.org>
50392
50393         Add isinf module.
50394         * lib/isinf.c: New file.
50395         * lib/math.in.h: Define isinf macro if we have decided to replace
50396         it.
50397         * m4/isinf.m4: New file.
50398         * m4/math_h.m4: Initialize and substitute variables for isinf
50399         module.
50400         * modules/isinf: New file.
50401         * modules/isinf-tests: New file.
50402         * modules/math: Add substitutions for new module.
50403         * tests/test-isinf.c: New file.
50404         * doc/posix-functions/isinf.texi: Mention new module.
50405         * MODULES.html.sh: Mention new module.
50406
50407 2008-07-14  Ben Pfaff  <blp@gnu.org>
50408
50409         Factor out some macros for use by additional modules.
50410         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
50411         exponentf.m4.
50412         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
50413         exponentd.m4.
50414         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
50415         file exponentl.m4.
50416         * m4/exponentf.m4: New file.
50417         * m4/exponentd.m4: New file.
50418         * m4/exponentl.m4: New file.
50419         * modules/isnanf: Use new file m4/exponentf.m4.
50420         * modules/isnand: Use new file m4/exponentd.m4.
50421         * modules/isnanl: Use new file m4/exponentl.m4.
50422
50423 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
50424
50425         mktime.c: normalize tp->tm_isdst value to -1/0/1.
50426         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
50427         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
50428         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
50429
50430         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
50431         readlink on platforms without PATH_MAX.
50432
50433 2008-07-21  Eric Blake  <ebb9@byu.net>
50434
50435         Warn, not fail, on stale version.
50436         * top/GNUmakefile (_curr-ver): Tone down previous patch.
50437
50438         Don't allow installation with stale devel version number.
50439         * top/GNUmakefile (_is-install-target): New macro.
50440         (_curr-ver): Forbid installation with stale version number.
50441
50442 2008-07-20  Bruno Haible  <bruno@clisp.org>
50443
50444         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
50445         TESTS_ENVIRONMENT.
50446         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
50447
50448 2008-07-20  Bruno Haible  <bruno@clisp.org>
50449
50450         * lib/c-stack.h (c_stack_action): Add documentation.
50451         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
50452
50453 2008-07-20  Bruno Haible  <bruno@clisp.org>
50454
50455         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
50456         * modules/readlink (License): Likewise.
50457
50458 2008-07-17  Eric Blake  <ebb9@byu.net>
50459
50460         * modules/c-stack (Link): Fix typo.
50461
50462         Make c-stack use libsigsegv, when available.
50463         * modules/c-stack (Depends-on): Add libsigsegv.
50464         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
50465         needed.
50466         * lib/c-stack.c (SIGSTKSZ): Define fallback.
50467         (segv_handler, overflow_handler, c_stack_action)
50468         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
50469         implementation when libsigsegv is available, but only when using
50470         the library is necessary.
50471         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
50472         comment, explaining why XSI check fails on Linux.
50473         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
50474         * tests/test-c-stack2.sh: Tweak skip message.
50475         * NEWS: Document new link-time requirements.
50476
50477 2008-07-16  Eric Blake  <ebb9@byu.net>
50478
50479         c-stack: Expose false positives when not using libsigsegv.
50480         * modules/c-stack-tests (Files): Expand test.
50481         * tests/test-c-stack.c (main): Add means to conditionally trigger
50482         non-overflow SIGSEGV.
50483         * tests/test-c-stack2.sh: New file.
50484
50485 2008-07-14  Bruno Haible  <bruno@clisp.org>
50486
50487         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
50488         Reported by Eric Blake.
50489
50490 2008-07-14  Sam Steingold  <sds@gnu.org>
50491             Bruno Haible  <bruno@clisp.org>
50492
50493         New module libsigsegv.
50494         * modules/libsigsegv: New file.
50495         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
50496         modifications.
50497         * MODULES.html.sh (Signal handling): New section.
50498
50499 2008-07-14  Bruno Haible  <bruno@clisp.org>
50500
50501         * modules/unictype/ctype-* (Description): Add the word "function".
50502         Improves the resulting doc in MODULES.html.
50503
50504 2008-07-12  Ben Pfaff  <blp@gnu.org>
50505
50506         Add longlong module.
50507         * modules/longlong: New file.
50508
50509 2008-07-12  Bruno Haible  <bruno@clisp.org>
50510
50511         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
50512         to empty.
50513
50514 2008-07-10  Ben Pfaff  <blp@gnu.org>
50515
50516         Add isnan module.
50517         * doc/posix-functions/isnan.texi: Mention new module.
50518         * lib/math.in.h: Define isnan macro if we have decided to replace
50519         it.
50520         * m4/isnan.m4: New file.
50521         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
50522         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
50523         also.
50524         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
50525         redundancy.
50526         * m4/math_h.m4: Initialize and substitute variables for isnan
50527         module.
50528         * modules/isnan: New file.
50529         * modules/isnan-tests: New file.
50530         * modules/math: Add substitutions for new module.
50531         * tests/test-isnan.c: New file.
50532         * MODULES.html.sh: Mention new module.
50533
50534 2008-07-10  Ben Pfaff  <blp@gnu.org>
50535
50536         Add isnanf module.
50537         * lib/isnanf.m4: New file.
50538         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
50539         (gl_HAVE_ISNANF_IN_LIBM): New macro.
50540         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
50541         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
50542         * modules/isnanf: New file.
50543         * modules/isnanf-tests: New file.
50544         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
50545         files.
50546         * tests/test-isnanf-nolibm.c: factored most of its contents into
50547         new file tests/test-isnanf.h.
50548         * tests/test-isnanf.h: New file.
50549         * tests/test-isnanf.c: New file.
50550         * MODULES.html.sh: Mention new module.
50551         * doc/glibc-functions/isnanf.texi: Mention new module.
50552
50553 2008-07-10  Ben Pfaff  <blp@gnu.org>
50554
50555         Add isnand module.
50556         * lib/isnand.h: New file.
50557         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
50558         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
50559         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
50560         functionality also.
50561         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
50562         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
50563         (gl_HAVE_ISNAND_IN_LIBM): New macro.
50564         * modules/isnand: New file.
50565         * modules/isnand-tests: New file.
50566         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
50567         files.
50568         * tests/test-isnand-nolibm.c: factored most of its contents into
50569         new file tests/test-isnand.h.
50570         * tests/test-isnand.h: New file.
50571         * tests/test-isnand.c: New file.
50572         * MODULES.html.sh: Mention new module.
50573
50574 2008-07-10  Ben Pfaff  <blp@gnu.org>
50575
50576         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
50577         * lib/isnand.h: Rename lib/isnand-nolibm.h.
50578         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
50579         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
50580         * modules/isnanf-nolibm: Update references to renamed files.
50581         * modules/isnand-nolibm: Likewise.
50582         * modules/isnanf-nolibm-tests: Likewise.
50583         * modules/isnand-nolibm-tests: Likewise.
50584         * lib/frexp.c: Likewise.
50585         * lib/isfinite.c: Likewise.
50586         * lib/signbitd.c: Likewise.
50587         * lib/signbitf.c: Likewise.
50588         * lib/vasnprintf.c: Likewise.
50589         * tests/test-ceilf1.c: Likewise.
50590         * tests/test-ceilf2.c: Likewise.
50591         * tests/test-floorf1.c: Likewise.
50592         * tests/test-floorf2.c: Likewise.
50593         * tests/test-frexp.c: Likewise.
50594         * tests/test-round1.c: Likewise.
50595         * tests/test-round2.c: Likewise.
50596         * tests/test-roundf1.c: Likewise.
50597         * tests/test-strtod.c: Likewise.
50598         * tests/test-trunc1.c: Likewise.
50599         * tests/test-trunc2.c: Likewise.
50600         * tests/test-truncf1.c: Likewise.
50601         * tests/test-truncf2.c: Likewise.
50602         * NEWS: Mention the renamed header files.
50603
50604 2008-07-11  Jim Meyering  <meyering@redhat.com>
50605
50606         vc-list-files: make the last-resort awk code more portable
50607         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
50608         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
50609         does not support it.
50610
50611 2008-07-10  Eric Blake  <ebb9@byu.net>
50612
50613         Work with tar's bootstrap.
50614         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
50615         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
50616         an m4 comment.
50617
50618 2008-07-09  Jim Meyering  <meyering@redhat.com>
50619
50620         posix-shell.m4: fix typo that made this test malfunction
50621         * m4/posix-shell.m4: Remove capitalization in variable name.
50622
50623 2008-07-08  Bruno Haible  <bruno@clisp.org>
50624
50625         * m4/onceonly.m4: Update comments.
50626         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50627
50628 2008-07-04  Jim Meyering  <meyering@redhat.com>
50629
50630         * users.txt: Add vc-dwim.
50631         (bison, coreutils): Use the gitweb URL.
50632
50633 2008-07-03  Jim Meyering  <meyering@redhat.com>
50634
50635         * users.txt: Add libffcall.  From Sam Steingold.
50636
50637 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
50638
50639         getdate.y: do not ignore TZ with relative day, month or year offset
50640         * lib/getdate.y (get_date): Move the tz-handling block to follow the
50641         relative-date-handling, since otherwise, the latter would clobber the
50642         sole output (an updated Start value) of the tz-handling block.
50643         * tests/test-getdate.c: Tests for the fix
50644
50645 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50646
50647         Recognize 'foo_LIBRARIES += libgnu.a'.
50648         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
50649         makefile snippet has already specified an installation location,
50650         also using '+='.
50651
50652 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
50653
50654         getdate.y: factor out common actions
50655         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
50656         Use them in place of open-coded actions.
50657
50658 2008-07-01  Simon Josefsson  <simon@josefsson.org>
50659
50660         Add self-test for getdate module.
50661         * modules/getdate-tests: New file.
50662         * tests/test-getdate.c: New file.
50663
50664 2008-06-29  Bruno Haible  <bruno@clisp.org>
50665
50666         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
50667         .gitignore.
50668         Reported by Sylvain Beucler <beuc@beuc.net>.
50669
50670 2008-06-29  Bruno Haible  <bruno@clisp.org>
50671
50672         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
50673         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
50674
50675 2008-06-29  Bruno Haible  <bruno@clisp.org>
50676
50677         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
50678         EXTRA_DIST.
50679         Reported by Sylvain Beucler <beuc@beuc.net>.
50680
50681 2008-06-26  Jim Meyering  <meyering@redhat.com>
50682
50683         make several modules depend on the "open" module
50684         This provides slightly increased consistency when opening-for-write
50685         the name of a non-directory spelled with a trailing slash.
50686         * modules/chdir-safer: Likewise.
50687         * modules/chown: Likewise.
50688         * modules/clean-temp: Likewise.
50689         * modules/copy-file: Likewise.
50690         * modules/fchdir: Likewise.
50691         * modules/fcntl-safer: Likewise.
50692         * modules/pipe: Likewise.
50693         * modules/utime: Likewise.
50694         Prompted by Eric Blake and Bruno Haible.
50695
50696 2008-06-24  Andreas Schwab  <schwab@suse.de>
50697
50698         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
50699         literals can be used as initializers for global variables.
50700
50701 2008-06-23  Eric Blake  <ebb9@byu.net>
50702
50703         Make gnulib-cache.m4 easier to diff.
50704         * gnulib-tool (func_import): Allow newlines when reading cached
50705         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
50706
50707 2008-06-23  Bruno Haible  <bruno@clisp.org>
50708
50709         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
50710         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
50711         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
50712         m4/signalblocking.m4.
50713         (gl_PREREQ_SIGACTION): Don't invoke it.
50714         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
50715         gl_PREREQ_SIG_HANDLER_H.
50716         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50717         Don't check for sigaction here.
50718
50719 2008-06-23  Bruno Haible  <bruno@clisp.org>
50720
50721         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
50722         (install_handlers): Don't set the SA_RESETHAND flag.
50723
50724 2008-06-23  Bruno Haible  <bruno@clisp.org>
50725
50726         * m4/sigaction.m4: Comment fixes.
50727         * lib/signal.in.h: Likewise.
50728
50729 2008-06-23  Eric Blake  <ebb9@byu.net>
50730
50731         Fix typo.
50732         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
50733
50734         Avoid SA_ namespace.
50735         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
50736         Reported by Ralf Wildenhues.
50737
50738         Avoid test failure due to SA_RESTORER.
50739         * tests/test-sigaction.c (SA_MASK): New macro.
50740         (main): Avoid failing due to extension flags being set.
50741         Reported by Jim Meyering.
50742
50743         Revert use of sig-handler.h in sigprocmask.c.
50744         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
50745         it requires the existence of struct sigaction.
50746         * lib/sigprocmask.c (handler_t): Restore typedef.
50747         (rpl_signal, old_handlers): Use local type.
50748
50749 2008-06-22  Bruno Haible  <bruno@clisp.org>
50750
50751         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
50752         conditionally.
50753         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50754
50755 2008-06-22  Bruno Haible  <bruno@clisp.org>
50756
50757         * doc/posix-functions/siginterrupt.texi: Move note.
50758
50759         * lib/signal.in.h (SA_RESTART): New macro.
50760         * lib/sigaction.c: Update comment.
50761
50762         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
50763
50764         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
50765         (gl_PREREQ_SIGPROCMASK): Invoke it.
50766         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
50767
50768         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
50769
50770         * lib/sigprocmask.c: Update a comment.
50771
50772 2008-06-21  Eric Blake  <ebb9@byu.net>
50773
50774         Use sigaction module rather than signal().
50775         * modules/c-stack (Depends-on): Add sigaction.
50776         * modules/fatal-signal (Depends-on): Likewise.
50777         * modules/nanosleep (Depends-on): Likewise.
50778         * modules/sigprocmask (Files): Add sig-handler.h.
50779         * modules/sigaction (Files): Likewise.
50780         * lib/sig-handler.h (get_handler): New file, suggested by Paul
50781         Eggert.
50782         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
50783         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
50784         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
50785         (init_fatal_signals): Likewise.
50786         * lib/nanosleep.c (rpl_nanosleep): Likewise.
50787         (siginterrupt): Delete fallback.
50788         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
50789         instead.
50790         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
50791         siginterrupt.
50792
50793         New module sigaction, for mingw.
50794         * modules/sigaction: New module...
50795         * modules/sigaction-tests: ...and its test.
50796         * m4/sigaction.m4: New file.
50797         * lib/sigaction.c: Likewise.
50798         * tests/test-sigaction.c: Likewise.
50799         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
50800         * modules/signal (Makefile.am): Likewise.
50801         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
50802         needed.
50803         * doc/posix-headers/signal.texi (signal.h): Mention provided
50804         types.
50805         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
50806         that sigaction is preferable.
50807         * doc/posix-functions/sigaction.texi (sigaction): Mention new
50808         module.
50809         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50810         sigaction.
50811
50812         Improve robustness of sigprocmask by overriding signal.
50813         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
50814         is in use.
50815         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
50816         (SIGKILL, SIGSTOP): Provide fallbacks.
50817         (rpl_signal): Implement.
50818         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
50819         signal can be called inside handlers.
50820
50821         Fix nanosleep module on mingw.
50822         * modules/nanosleep (Depends-on): Add sys_select.
50823         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
50824
50825         Fix licensing of sigprocmask.
50826         * modules/raise (License): Relicense as LGPL.
50827
50828 2008-06-21  Bruno Haible  <bruno@clisp.org>
50829
50830         * lib/propername.c (proper_name_utf8): Don't use the transliterated
50831         result if it contains question marks.
50832         Reported by Michael Geng <linux@michaelgeng.de>.
50833
50834 2008-06-19  Bruno Haible  <bruno@clisp.org>
50835
50836         Fix CVS-ism.
50837         * doc/gnulib.texi: Include updated-stamp.texi.
50838         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
50839         (updated-stamp.texi): New rule.
50840         (gnulib.info): Depend on it.
50841         * doc/.gitignore: Add updated-stamp.texi.
50842         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
50843
50844 2008-06-19  Bruno Haible  <bruno@clisp.org>
50845
50846         * doc/Makefile (gnulib.info): Update and simplify dependencies.
50847         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50848
50849 2008-06-19  Eric Blake  <ebb9@byu.net>
50850
50851         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
50852         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
50853         Reported by Stepan Kasal.
50854
50855 2008-06-18  Bruno Haible  <bruno@clisp.org>
50856
50857         * lib/fatal-signal.c (init_fatal_signals): Add comment.
50858         Reported by Eric Blake.
50859
50860 2008-06-18  Eric Blake  <ebb9@byu.net>
50861
50862         Work around cygwin 1.5.25 strsignal bug.
50863         * tests/test-strsignal.c: Allow for const char *.
50864         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
50865
50866 2008-06-18  Simon Josefsson  <simon@josefsson.org>
50867
50868         * users.txt: Update URL to article and add author/date
50869         information.
50870
50871 2008-06-17  Bruno Haible  <bruno@clisp.org>
50872
50873         New macro gl_DISABLE_THREADS.
50874         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
50875         if the user did not pass --enable-threads or --disable-threads option.
50876         (gl_DISABLE_THREADS): New macro.
50877         Reported by Eric Blake <ebb9@byu.net>.
50878
50879 2008-06-17  Bruno Haible  <bruno@clisp.org>
50880
50881         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
50882         when the macro ignores it.
50883         Based on a patch by Eric Blake <ebb9@byu.net>.
50884
50885 2008-06-17  Bruno Haible  <bruno@clisp.org>
50886
50887         * modules/tls (License): Change to LGPLv2+.
50888         Reported by Eric Blake.
50889
50890 2008-06-17  Eric Blake  <ebb9@byu.net>
50891
50892         Simplify c-stack prerequisites.
50893         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
50894         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
50895         no longer requires <ucontext.h> to exist.  Optimize setrlimit
50896         check.
50897         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
50898         <sys/resource.h>.
50899
50900         Move c-stack test into testsuite.
50901         * modules/c-stack-tests: New file.
50902         * lib/c-stack.c [DEBUG]: Move test program...
50903         * tests/test-c-stack.c: ...into this new file.  Skip rather than
50904         fail test if sigaltstack is lacking.
50905         * tests/test-c-stack.sh: New driver file.
50906
50907 2008-06-16  Eric Blake  <ebb9@byu.net>
50908
50909         Use raise module consistently.
50910         * modules/fatal-signal (Depends-on): Add raise.
50911         * modules/sigprocmask (Depends-on): Likewise.
50912         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
50913         * lib/sigprocmask.c (sigprocmask): Likewise.
50914         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50915         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
50916
50917         Fix compliance bug in sigpending.
50918         * lib/sigprocmask.c (sigpending): Return pending array via
50919         parameter, not return value.
50920
50921 2008-06-14  Eric Blake  <ebb9@byu.net>
50922
50923         Improve obstack-printf test code.
50924         * tests/test-obstack-printf.c (test_function): Fix comment, and
50925         simplify usage of obstack_* in macros.  Add a test for coverage.
50926         Reported by Bruno Haible.
50927
50928 2008-06-14  Bruno Haible  <bruno@clisp.org>
50929
50930         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
50931         array size as a constant, not as a const variable.
50932         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
50933         AC_USE_SYSTEM_EXTENSIONS.
50934         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50935         Test whether the obstack_printf function actually exists.
50936         * modules/obstack-printf (Depends-on): Add extensions.
50937         (Include): Remove obstack.h.
50938         * modules/obstack-printf-posix (Depends-on): Add extensions.
50939         (Include): Remove obstack.h.
50940
50941 2008-06-13  Eric Blake  <ebb9@byu.net>
50942
50943         Add obstack-printf and obstack-printf-posix modules.
50944         * modules/obstack-printf: New file.
50945         * modules/obstack-printf-posix: Likewise.
50946         * MODULES.html.sh (Misc): Mention them.
50947         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50948         Likewise.
50949         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50950         Likewise.
50951         * modules/stdio (Makefile.am): Accomodate new modules.
50952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50953         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
50954         Declare.
50955         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
50956         functions.
50957         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
50958         (gl_REPLACE_OBSTACK_PRINTF): New macros
50959         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
50960         * tests/test-obstack-printf.c: New file.
50961         * modules/obstack-printf-tests: Likewise.
50962         * modules/obstack-printf-posix-tests: Likewise.
50963
50964 2008-06-11  Bruno Haible  <bruno@clisp.org>
50965
50966         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
50967         * lib/open.c: Include errno.h.
50968         (open): Fail when attempting to write to a file that has a trailing
50969         slash.
50970         * tests/test-open.c (main): Test against trailing slash bug.
50971         * doc/posix-functions/open.texi: Mention the trailing slash bug.
50972
50973 2008-06-10  Bruno Haible  <bruno@clisp.org>
50974
50975         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
50976         for $? to work inside the trap command, with various /bin/sh-s.
50977         * tests/test-vc-list-files-cvs.sh: Likewise.
50978
50979 2008-06-10  Bruno Haible  <bruno@clisp.org>
50980
50981         * lib/acl-internal.h: Don't include gettext.h here.
50982         * lib/set-mode-acl.c: Include gettext.h here.
50983         * lib/copy-acl.c: Likewise.
50984
50985 2008-06-10  Bruno Haible  <bruno@clisp.org>
50986
50987         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
50988         * lib/wait-process.c (wait_subprocess): Likewise.
50989         * lib/execute.h (execute): Add termsigp argument.
50990         * lib/execute.c (execute): Likewise.
50991         * lib/csharpcomp.c (compile_csharp_using_pnet,
50992         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
50993         * lib/csharpexec.c (execute_csharp_using_pnet,
50994         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
50995         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
50996         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
50997         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
50998         is_jikes_present): Update.
50999         * lib/javaexec.c (execute_java_class): Update.
51000         * lib/javaversion.c (execute_and_read_line): Update.
51001         * NEWS: Document the changes.
51002         Reported by Eric Blake.
51003
51004 2008-06-10  Eric Blake  <ebb9@byu.net>
51005
51006         Add missing include.
51007         * tests/test-strstr.c (includes): Add <signal.h>.
51008         * tests/test-strcasestr.c (includes): Likewise.
51009         * tests/test-memmem.c (includes): Likewise.
51010
51011 2008-06-10  Bruno Haible  <bruno@clisp.org>
51012
51013         * lib/wait-process.c (wait_subprocess): Add an assertion.
51014
51015 2008-06-10  Bruno Haible  <bruno@clisp.org>
51016
51017         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
51018
51019 2008-06-10  Bruno Haible  <bruno@clisp.org>
51020
51021         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
51022         using alarm().
51023         * tests/test-strcasestr.c (main): Likewise.
51024         * tests/test-strstr.c (main): Likewise.
51025
51026 2008-06-09  Bruno Haible  <bruno@clisp.org>
51027
51028         Work around the Solaris 10 ACE ACLs ABI change.
51029         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
51030         declare if ACL_NO_TRIVIAL is present.
51031         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
51032         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
51033         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
51034         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
51035         define if ACL_NO_TRIVIAL is present.
51036         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
51037         and use the current ABI.
51038         (file_has_acl): Use same #if condition as elsewhere.
51039         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
51040         in use, and use the current ABI.
51041         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
51042         Reported by Jim Meyering.
51043
51044 2008-06-09  Eric Blake  <ebb9@byu.net>
51045
51046         Work around environments that (stupidly) ignore SIGALRM.
51047         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
51048         before using alarm().
51049         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51050         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51051         Reported by Ian Beckwith <ianb@erislabs.net>.
51052
51053         Produce autobuild blurb earlier in log.
51054         * modules/autobuild (configure.ac-early): Move AB_INIT here.
51055
51056 2008-06-09  Jim Meyering  <meyering@redhat.com>
51057         and OndÅ™ej Vašík  <ovasik@redhat.com>
51058
51059         utimens.c: correct kernel bug work-around
51060         OndÅ™ej Vašík found that the invalid return value of 280 indicates
51061         failure, not success, and the kernel bug we're trying to work
51062         around affects not just the utimensat call, but also the fallback
51063         futimens call.
51064         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
51065         not success.
51066         [HAVE_FUTIMENS]: Use the same work-around, here.
51067
51068 2008-06-09  Jim Meyering  <meyering@redhat.com>
51069
51070         add more guards around definition of ACE_-related code
51071         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
51072         ALLOW and ACE_OWNER are also defined.
51073
51074 2008-06-08  Bruno Haible  <bruno@clisp.org>
51075
51076         * lib/acl-internal.h: Add me as co-author.
51077         * lib/file-has-acl.c: Likewise.
51078         * lib/set-mode-acl.c: Likewise.
51079         * lib/copy-acl.c: Likewise.
51080
51081 2008-06-08  Bruno Haible  <bruno@clisp.org>
51082
51083         Add support for AIX ACLs.
51084         * lib/acl-internal.h (acl_nontrivial): New declaration.
51085         * lib/file-has-acl.c (acl_nontrivial): New function.
51086         (file_has_acl): Add implementation using AIX 4 ACL API.
51087         * lib/set-mode-acl.c (qset_acl): Likewise.
51088         * lib/copy-acl.c (qcopy_acl): Likewise.
51089
51090 2008-06-08  Bruno Haible  <bruno@clisp.org>
51091
51092         Add support for HP-UX ACLs.
51093         * lib/acl-internal.h (acl_nontrivial): New declaration.
51094         * lib/file-has-acl.c (acl_nontrivial): New function.
51095         (file_has_acl): Add implementation using HP-UX 11 ACL API.
51096         * lib/set-mode-acl.c (qset_acl): Likewise.
51097         * lib/copy-acl.c (qcopy_acl): Likewise.
51098
51099 2008-06-08  Bruno Haible  <bruno@clisp.org>
51100
51101         Add support for Cygwin ACLs.
51102         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
51103         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
51104         the chmod_or_fchmod call.
51105         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
51106
51107 2008-06-08  Bruno Haible  <bruno@clisp.org>
51108
51109         Fix bug with setuid modes in Solaris 10+ code.
51110         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
51111         succeeded, when the mode contains some special bits.
51112
51113 2008-06-08  Bruno Haible  <bruno@clisp.org>
51114
51115         Add support for Solaris 7..10 ACLs.
51116         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
51117         declarations.
51118         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
51119         functions.
51120         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
51121         * lib/set-mode-acl.c (qset_acl): Likewise.
51122         * lib/copy-acl.c (qcopy_acl): Likewise.
51123
51124 2008-06-08  Bruno Haible  <bruno@clisp.org>
51125
51126         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
51127         declaration.
51128         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
51129         (acl_access_nontrivial): Remove MacOS X case.
51130         (file_has_acl): Use acl_extended_nontrivial.
51131         * lib/copy-acl.c (qcopy_acl): Likewise.
51132
51133 2008-06-08  Bruno Haible  <bruno@clisp.org>
51134
51135         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
51136
51137 2008-06-08  Jim Meyering  <meyering@redhat.com>
51138
51139         * modules/acl (Maintainer): Add Bruno Haible.
51140
51141 2008-06-07  Bruno Haible  <bruno@clisp.org>
51142
51143         Improve support for Tru64 ACLs.
51144         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
51145         ACL on OSF/1.
51146
51147 2008-06-07  Bruno Haible  <bruno@clisp.org>
51148
51149         Add support for MacOS X ACLs.
51150         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
51151         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
51152         * lib/set-mode-acl.c (qset_acl): Likewise.
51153         * lib/copy-acl.c (qcopy_acl): Likewise.
51154
51155 2008-06-07  Bruno Haible  <bruno@clisp.org>
51156
51157         Fix memory leak introduced on 2008-05-22.
51158         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
51159         use.
51160
51161 2008-06-07  Bruno Haible  <bruno@clisp.org>
51162
51163         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
51164         to construct an empty ACL.
51165
51166 2008-06-07  Bruno Haible  <bruno@clisp.org>
51167
51168         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
51169         precisely.
51170         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
51171
51172 2008-06-07  Bruno Haible  <bruno@clisp.org>
51173
51174         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
51175         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
51176
51177 2008-06-07  Bruno Haible  <bruno@clisp.org>
51178
51179         * doc/posix-functions/_setjmp.texi: Explain the use of this function
51180         regardless of POSIX.
51181         * doc/posix-functions/_longjmp.texi: Likewise.
51182         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
51183         SystemV platform in this case.
51184
51185 2008-06-06  Eric Blake  <ebb9@byu.net>
51186
51187         Document abort() bugs.
51188         * doc/posix-functions/abort.texi (abort): Mention anomalies.
51189
51190         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
51191         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
51192         sigsetjmp.
51193         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
51194         siglongjmp, but only as a macro.
51195         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
51196         is obsolete.
51197         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
51198
51199         Tweak documentation to cover cygwin argz bugs.
51200         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
51201         argz bug fix; no code change needed since no cygwin releases
51202         occurred between the last fix and the bug being tested.
51203         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
51204         module and recently fixed cygwin bugs.
51205         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
51206         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
51207         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
51208         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
51209         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
51210         Likewise.
51211         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
51212         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
51213         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
51214         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
51215         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
51216         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
51217         Likewise.
51218
51219         Avoid gcc warning on cygwin.
51220         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
51221         !ACL_NO_TRIVIAL]: Avoid unused variable.
51222
51223 2008-06-05  Eric Blake  <ebb9@byu.net>
51224
51225         Be tolerant of UNKNOWN version in gnulib-tool test dir.
51226         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
51227         git-version-gen fails to come up with a version.
51228         Reported by Simon Josefsson.
51229
51230 2008-06-05  Jim Meyering  <meyering@redhat.com>
51231             Paul Eggert  <eggert@cs.ucla.edu>
51232
51233         utimens.c: work around a probable Linux kernel bug
51234         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
51235         appears to be a kernel bug that causes utimensat to return 280
51236         instead of 0, indicating success.
51237
51238 2008-06-04  Bruno Haible  <bruno@clisp.org>
51239
51240         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
51241         2008-06-01 commit.
51242
51243 2008-06-04  Bruno Haible  <bruno@clisp.org>
51244
51245         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
51246         * lib/file-has-acl.c (acl_access_nontrivial): New function.
51247         (file_has_acl): Use it. Save errno afterwards.
51248         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
51249
51250 2008-06-03  Bruno Haible  <bruno@clisp.org>
51251
51252         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
51253         draft code. Simplify #ifs.
51254         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
51255         Put Solaris code after POSIX-draft code. Fix comments regarding
51256         Solaris 10, HP-UX. Mention Cygwin.
51257         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
51258
51259 2008-06-03  Eric Blake  <ebb9@byu.net>
51260
51261         Provide fallback for older kernels.
51262         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
51263         Provide runtime fallback if kernel lacks support.
51264         Reported by Mike Frysinger.
51265
51266 2008-06-02  Bruno Haible  <bruno@clisp.org>
51267
51268         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
51269         it exists.
51270
51271 2008-06-02  Bruno Haible  <bruno@clisp.org>
51272
51273         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
51274         * lib/copy-acl.c (qcopy_acl): Update comment.
51275
51276 2008-06-02  Bruno Haible  <bruno@clisp.org>
51277
51278         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
51279         like ACL APIs.
51280
51281 2008-06-02  Bruno Haible  <bruno@clisp.org>
51282
51283         * tests/test-file-has-acl.sh: Use different code for Cygwin.
51284         * tests/test-set-mode-acl.sh: Likewise.
51285         * tests/test-copy-acl.sh: Likewise.
51286         * tests/test-copy-file.sh: Likewise.
51287
51288 2008-06-02  Bruno Haible  <bruno@clisp.org>
51289
51290         * tests/test-file-has-acl.sh: Remove unused code.
51291
51292 2008-06-01  Bruno Haible  <bruno@clisp.org>
51293
51294         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
51295         (copy_acl): Just a wrapper around qcopy_acl that emits the error
51296         messages.
51297         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
51298
51299 2008-06-01  Bruno Haible  <bruno@clisp.org>
51300
51301         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
51302         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
51303         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
51304         APIs.
51305         * modules/acl-tests (configure.ac): Remove tests now contained in
51306         m4/acl.m4.
51307
51308 2008-06-02  Jim Meyering  <meyering@redhat.com>
51309
51310         announce-gen: use a better key-server host name
51311         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
51312         it may be more consistently reliable.  Suggested by Werner Koch
51313         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
51314
51315 2008-06-01  Bruno Haible  <bruno@clisp.org>
51316
51317         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
51318         Reported by Voroskoi Andras <voroskoi@gmail.com>.
51319
51320 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
51321
51322         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
51323
51324 2008-06-01  Bruno Haible  <bruno@clisp.org>
51325
51326         New ACL tests.
51327         * tests/test-file-has-acl.sh: New file.
51328         * tests/test-file-has-acl.c: New file.
51329         * tests/test-set-mode-acl.sh: New file.
51330         * tests/test-set-mode-acl.c: New file.
51331         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
51332         * tests/test-copy-acl.c: New file.
51333         * modules/acl-tests: New file, based on modules/copy-file-tests.
51334         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
51335         (Depends-on): Add acl-tests.
51336         (configure.ac): Remove checks.
51337         (Makefile.am): Don't create test-sameacls program here any more.
51338
51339 2008-06-01  Bruno Haible  <bruno@clisp.org>
51340
51341         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
51342         * tests/test-sameacls.c: Include progname.h.
51343         (main): Invoke set_program_name. Portability fixes for MacOS X,
51344         Solaris, HP-UX.
51345
51346 2008-06-01  Bruno Haible  <bruno@clisp.org>
51347
51348         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
51349         function.
51350         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
51351
51352 2008-06-01  Bruno Haible  <bruno@clisp.org>
51353
51354         * modules/rpmatch (Depends-on): Add strdup.
51355
51356 2008-06-01  Bruno Haible  <bruno@clisp.org>
51357
51358         * lib/pipe.c: Include unistd-safer.h.
51359         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
51360         * modules/pipe (Depends-on): Add unistd-safer.
51361
51362 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51363
51364         * modules/autobuild (configure.ac): Call AB_INIT.
51365
51366 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51367
51368         * tests/test-getaddrinfo.c: Don't print debug messages by default.
51369         Suggested by Bruno Haible <bruno@clisp.org>.
51370
51371 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51372
51373         * tests/test-base64.c: Cast size_t to unsigned long when invoking
51374         printf.  Use %lu instead of %d.  Reported by Bruno Haible
51375         <bruno@clisp.org>.
51376
51377 2008-05-29  Eric Blake  <ebb9@byu.net>
51378
51379         Prefer new POSIX 200x interfaces over futimesat.
51380         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
51381         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
51382         when available.
51383         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
51384
51385 2008-05-28  Bruno Haible  <bruno@clisp.org>
51386
51387         * modules/stpcpy (License): Change to LGPLv2+.
51388         Requested by David Lutterkort <dlutter@redhat.com>.
51389
51390 2008-05-27  Bruno Haible  <bruno@clisp.org>
51391
51392         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
51393         current mingw.
51394         Reported by Jose E. Marchesi <jemarch@gnu.org>.
51395
51396 2008-05-27  Bruno Haible  <bruno@clisp.org>
51397
51398         * modules/iconv_open (Link): New section, from module 'iconv'.
51399         * modules/striconv (Link): Likewise.
51400         * modules/striconveh (Link): Likewise.
51401         * modules/xstriconv (Link): Likewise.
51402         * modules/unicodeio (Link): Likewise.
51403         * modules/propername (Link): Likewise.
51404         Reported by Jim Meyering.
51405
51406 2008-05-26  Jim Meyering  <meyering@redhat.com>
51407
51408         sha256: do not artificially restrict buffer length to be < 2^32
51409         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
51410         uint32_t to size_t.
51411         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
51412         to match.
51413
51414         avoid unaligned access errors, e.g., on sparc
51415         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
51416         direct access through a possibly-unaligned uint64* pointer.
51417         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
51418         direct access through a possibly-unaligned uint32* pointer.
51419         Prompted by this patch from Tom "spot" Callaway:
51420         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
51421
51422         sha512.c: fix typo in comment
51423         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
51424
51425 2008-05-25  Bruno Haible  <bruno@clisp.org>
51426
51427         * lib/set-mode-acl.c: Renamed from lib/acl.c.
51428         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
51429         (Makefile.am): Update lib_SOURCES.
51430
51431 2008-05-25  Bruno Haible  <bruno@clisp.org>
51432
51433         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
51434
51435 2008-05-25  Jim Meyering  <meyering@redhat.com>
51436
51437         useless-if-before-free: freed expr may have white-space differences
51438         * build-aux/useless-if-before-free: Recognize cases in which the
51439         freed expression differs from the tested one in embedded white
51440         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
51441         $1 was used, so we can't make any regexp shy.  Improved tests now
51442         detect this.
51443
51444         useless-if-before-free: accept white space in the expression.
51445         * build-aux/useless-if-before-free: For now, any white space
51446         in the expression must be identical in the free argument.
51447
51448         useless-if-before-free: efficiency tweak
51449         * build-aux/useless-if-before-free: Make the expression-matching
51450         regexp "shy".
51451         Make the *outer* regexp shy, not the expr-matching one.
51452
51453         update code-in-comment to accept cast of free arg
51454         * build-aux/useless-if-before-free: Update regexp.
51455
51456 2008-05-25  Bruno Haible  <bruno@clisp.org>
51457
51458         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
51459         * modules/copy-file-tests (Files, Makefile.am): Update.
51460         * tests/test-copy-file.c (func_test_copy): Update.
51461
51462 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
51463
51464         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
51465
51466 2008-05-23  Bruno Haible  <bruno@clisp.org>
51467
51468         Improve support for ACLs on OSF/1.
51469         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
51470         Remove fallback for unknown flavors of ACLs.
51471
51472 2008-05-22  Bruno Haible  <bruno@clisp.org>
51473
51474         Add support for ACLs on OSF/1.
51475         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
51476         replacements.
51477         (acl_free_text): New macro fallback.
51478         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
51479         acl_free.
51480         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
51481         acl_free_text function. Require AC_C_INLINE.
51482
51483 2008-05-22  Bruno Haible  <bruno@clisp.org>
51484
51485         Make copy_acl work on MacOS X 10.5.
51486         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
51487         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
51488         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
51489         If MODE_INSIDE_ACL, don't assume that every system has the same text
51490         representation for ACLs as FreeBSD.
51491         * lib/copy-acl.c (copy_acl): Add support for platforms with
51492         !MODE_INSIDE_ACL.
51493         * lib/file-has-acl.c (file_has_acl): Likewise.
51494         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
51495         FreeBSD, MacOS X, or IRIX, respectively.
51496
51497 2008-05-22  Bruno Haible  <bruno@clisp.org>
51498
51499         * lib/acl.h: Don't include <sys/acl.h>.
51500         (GETACLCNT): Move fallback to lib/acl-internal.h.
51501         * lib/acl-internal.h: Include <sys/acl.h> here.
51502         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
51503
51504 2008-05-22  Bruno Haible  <bruno@clisp.org>
51505
51506         Split off copy_acl function to separate file.
51507         * lib/copy-acl.c: New file, extracted from lib/acl.c.
51508         * lib/acl.c (copy_acl): Moved function to separate file.
51509         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
51510         * modules/acl (Files): Add lib/copy-acl.c.
51511         (Makefiles.am): Augment lib_SOURCES.
51512
51513 2008-05-22  Bruno Haible  <bruno@clisp.org>
51514
51515         * modules/copy-file-tests: New file.
51516         * tests/test-copy-file.sh: New file.
51517         * tests/test-copy-file.c: New file.
51518         * tests/test-copy-file-sameacls.c: New file.
51519
51520 2008-05-22  Eric Blake  <ebb9@byu.net>
51521
51522         Avoid gcc warning.
51523         * tests/test-memcmp.c (main): Pass NULL indirectly.
51524
51525 2008-05-21  Bruno Haible  <bruno@clisp.org>
51526
51527         Add reference doc about ACLs.
51528         * doc/acl-resources.txt: New file.
51529         * doc/acl-cygwin.txt: New file.
51530
51531 2008-05-21  Bruno Haible  <bruno@clisp.org>
51532
51533         Avoid one more warning from gcc.
51534         * lib/vasnprintf.c (IF_LINT): Update comments.
51535         (VASNPRINTF): Use it also for the 'prefix' array initializer.
51536
51537 2008-05-21  Jim Meyering  <meyering@redhat.com>
51538
51539         avoid a warning from gcc
51540         * lib/vasnprintf.c (IF_LINT): Define.
51541         (scale10_round_decimal_long_double):
51542         Use it to avoid a "may be used uninitialized" warning.
51543         (scale10_round_decimal_double): Likewise.
51544
51545 2008-05-21  Simon Josefsson  <simon@josefsson.org>
51546
51547         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
51548         declared.
51549
51550 2008-05-20  Bruno Haible  <bruno@clisp.org>
51551
51552         * tests/test-memcmp.c (main): Test also the sign of the result. Test
51553         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
51554
51555 2008-05-20  Simon Josefsson  <simon@josefsson.org>
51556
51557         * modules/memcmp-tests: New file.
51558         * tests/test-memcmp.c: New file.
51559
51560 2008-05-19  Bruno Haible  <bruno@clisp.org>
51561
51562         * modules/propername (Notice, configure.ac): Put quoted "..." into
51563         --keyword option.
51564         * lib/propername.h: Update comments accordingly.
51565         Reported by Eric Blake.
51566
51567 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
51568
51569         * modules/getpass-gnu (Depends-on): Add fseeko.
51570
51571 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51572
51573         * modules/base64-tests: New file.
51574
51575 2008-05-19  Bo Borgerson <gigabo@gmail.com>
51576
51577         * lib/base64.c (base64_decode_ctx): If a decode context structure
51578         was passed in use it to ignore newlines.  If a context structure
51579         was _not_ passed in, continue to treat newlines as garbage (this
51580         is the historical behavior).  Formerly base64_decode.
51581         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51582         takes a decode context structure.
51583         * lib/base64.h (base64_decode): Macro for four-argument calls.
51584         (base64_decode_alloc): Likewise.
51585         * lib/base64.c (base64_decode_ctx): If a decode context structure
51586         was passed in use it to ignore newlines.  If a context structure
51587         was _not_ passed in, continue to treat newlines as garbage (this
51588         is the historical behavior).  Formerly base64_decode.
51589         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51590         takes a decode context structure.
51591         * lib/base64.h (base64_decode): Macro for four-argument calls.
51592         (base64_decode_alloc): Likewise.
51593
51594 2008-05-19  Jim Meyering  <meyering@redhat.com>
51595
51596         avoid a warning from gcc
51597         * lib/trim.c (IF_LINT): Define.
51598         (trim2): Use it to avoid a "may be used uninitialized" warning.
51599
51600         Fix doc typo.
51601         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
51602
51603 2008-05-19  Bruno Haible  <bruno@clisp.org>
51604
51605         * doc/glibc-functions/getpass.texi: Document limits of other
51606         implementations.
51607
51608 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51609             Bruno Haible <bruno@clisp.org>
51610
51611         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
51612
51613 2008-05-18  Bruno Haible  <bruno@clisp.org>
51614
51615         * modules/propername: New file, from GNU gettext.
51616         * lib/propername.h: New file, from GNU gettext.
51617         * lib/propername.c: New file, from GNU gettext.
51618         * MODULES.html.sh (Internationalization functions): Add propername.
51619
51620 2008-05-16  Jim Meyering  <meyering@redhat.com>
51621             Bruno Haible  <bruno@clisp.org>
51622
51623         Avoid some warnings from "gcc -Wshadow".
51624         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
51625
51626 2008-05-15  Eric Blake  <ebb9@byu.net>
51627
51628         Extend previous patch to cygwin 1.7.0.
51629         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
51630         fast implementation in cygwin >= 1.7.0.
51631         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51632         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51633
51634 2008-05-15  Bruno Haible  <bruno@clisp.org>
51635
51636         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
51637         implementation in glibc >= 2.9.
51638         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51639         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51640
51641 2008-05-15  Bruno Haible  <bruno@clisp.org>
51642
51643         * MODULES.html.sh (Internationalization functions): Remove linebreak.
51644         (Unicode string functions): Add unilbrk/*.
51645         Reported by Karl Berry.
51646
51647 2008-05-15  Eric Blake  <ebb9@byu.net>
51648
51649         Fix violation of <stdbool.h> replacement in regex.
51650         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
51651         * lib/regexec.c (re_search_internal): Likewise.
51652         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
51653
51654 2008-05-15  Jim Meyering  <meyering@redhat.com>
51655
51656         avoid distracting test output when git or cvs is not found
51657         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
51658         * tests/test-vc-list-files-git.sh: Likewise.
51659
51660 2008-05-15  Eric Blake  <ebb9@byu.net>
51661
51662         Glibc finally accepted the memmem speedup code, bugzilla #5514.
51663         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
51664         glibc version.
51665         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
51666         * doc/posix-functions/strstr.texi (strstr): Likewise.
51667         * lib/str-two-way.h (MAX): Sychronize with glibc.
51668
51669 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
51670
51671         * lib/regcomp.c (optimize_utf8): Add a note on why we test
51672         opr.ctx_type.
51673         (calc_first): Initialize constraint field.
51674         (duplicate_node_closure): Use it instead of special casing ANCHORS.
51675         Fix grammar.
51676         (duplicate_node): Merge constraint field for all node types.
51677         (calc_eclosure_iter): Look at constraint field for all node types.
51678         * lib/regex_internal.c (create_cd_newstate): Don't look at
51679         opr.ctx_type.
51680
51681 2008-05-14  Bruno Haible  <bruno@clisp.org>
51682
51683         Help GCC to do better code generation.
51684         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
51685         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
51686         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
51687         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
51688         Declare with attribute 'malloc' if supported.
51689
51690 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
51691
51692         use "echo STR|wc -c" rather than unportable "expr length STR"
51693         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
51694         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
51695
51696 2008-05-14  Jim Meyering  <meyering@redhat.com>
51697
51698         use dd ibs=$n count=1 ... rather than less-portable head -c$n
51699         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
51700         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
51701         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
51702         via Collin Lasse.
51703
51704 2008-05-14  Eric Blake  <ebb9@byu.net>
51705
51706         Avoid quadratic growth in gl_LIBSOURCES.
51707         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
51708         Suggested by Bruno Haible.
51709
51710         Test xmemdup0.
51711         * modules/xmemdup0-tests: New file.
51712         * tests/test-xmemdup0.c: Likewise.
51713
51714 2008-05-13  Eric Blake  <ebb9@byu.net>
51715
51716         Split xmemdup0 into its own module.
51717         * modules/xmemdup0: New file.
51718         * lib/xmemdup0.h: Likewise.
51719         * lib/xmemdup0.c: Likewise.
51720         * MODULES.html.sh (Memory management functions): Add xmemdup0.
51721         * lib/xalloc.h (xmemdup0): Remove.
51722         * lib/xmalloc.c (xmemdup0): Likewise.
51723
51724 2008-05-13  Eric Blake  <ebb9@byu.net>
51725             Bruno Haible  <bruno@clisp.org>
51726
51727         Reduce number of forks required during autoconf.
51728         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
51729         and gl_LIBSOURCES_DIR.
51730         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
51731         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
51732         m4_syscmd per file.
51733         <m4_foreach_w>: Move...
51734         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
51735
51736 2008-05-13  Eric Blake  <ebb9@byu.net>
51737
51738         * gnulib-tool: Fix various comment typos.
51739
51740 2008-05-12  Bruno Haible  <bruno@clisp.org>
51741
51742         Tailor the linebreaking algorithm.
51743         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
51744
51745 2008-05-12  Bruno Haible  <bruno@clisp.org>
51746
51747         Update to Unicode 5.0.0.
51748         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51749         LBP_JV, LBP_JT. Redistribute values.
51750         (unilbrk_table): Change size.
51751         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
51752         Unicode TR#14 rev. 22.
51753         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51754         LBP_JV, LBP_JT. Redistribute values.
51755         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
51756         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
51757         Update.
51758         * lib/unilbrk/lbrkprop1.h: Regenerated.
51759         * lib/unilbrk/lbrkprop2.h: Regenerated.
51760         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
51761         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
51762         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
51763         Likewise.
51764         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
51765         Likewise.
51766         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
51767         result.
51768         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
51769         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
51770         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
51771         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
51772         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
51773         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
51774
51775 2008-05-11  Bruno Haible  <bruno@clisp.org>
51776
51777         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
51778
51779 2008-05-11  Bruno Haible  <bruno@clisp.org>
51780
51781         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
51782         * modules/unilbrk/gen-lbrk: New file.
51783
51784 2008-05-11  Bruno Haible  <bruno@clisp.org>
51785
51786         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
51787         * m4/sha512.m4 (gl_SHA512): Likewise.
51788
51789 2008-05-11  Jim Meyering  <meyering@redhat.com>
51790
51791         New modules: crypto/sha256, crypto/sha512 (from coreutils)
51792         * modules/crypto/sha256: New file.
51793         * modules/crypto/sha512: Likewise.
51794         * lib/sha256.c: Likewise.
51795         * lib/sha256.h: Likewise.
51796         * lib/sha512.c: Likewise.
51797         * lib/sha512.h: Likewise.
51798         * lib/u64.h: Likewise.
51799         * m4/sha256.m4: Likewise.
51800         * m4/sha512.m4: Likewise.
51801         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
51802
51803 2008-05-10  Bruno Haible  <bruno@clisp.org>
51804
51805         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
51806         (Input/Output <stdio.h>): Add xprintf.
51807         (Signal handling <signal.h>): Add strsignal.
51808         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
51809         (Core language properties): Add func.
51810         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
51811         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
51812         strings.
51813         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
51814         (Input/output): New section.
51815         (File system functions): Add openat-die, stat-macros.
51816         (Networking functions): Add sockets.
51817         (Unicode string functions): Add unictype/*.
51818         (Support for building libraries and executables): Add gperf.
51819         (Support for building documentation): Add agpl-3.0.
51820         (Misc): Add nocrash.
51821
51822 2008-05-10  Bruno Haible  <bruno@clisp.org>
51823
51824         * modules/unictype/gen-ctype: New file.
51825
51826 2008-05-10  Jim Meyering  <meyering@redhat.com>
51827
51828         Make chdir-safer.c more efficient on a system with no symlinks.
51829         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
51830         also if ELOOP is zero.  Suggested by Bruno Haible.
51831
51832         Make chdir-safer.c slightly safer.
51833         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
51834         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
51835
51836         Avoid compile failure on systems without ELOOP (like mingw).
51837         * lib/chdir-safer.c (ELOOP): Define if not already defined.
51838         Reported by Bruno Haible.
51839
51840 2008-05-10  Bruno Haible  <bruno@clisp.org>
51841
51842         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
51843         (is_utf8_encoding): Use a case-insensitive comparison.
51844         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
51845         streq.
51846
51847 2008-05-10  Bruno Haible  <bruno@clisp.org>
51848
51849         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
51850         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
51851         * lib/unilbrk/ulc-common.h (iconv_string_length,
51852         iconv_string_keeping_offsets): Remove declarations.
51853         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
51854         Don't include <iconv.h>, streq.h, xsize.h.
51855         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
51856         conversion.
51857         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
51858         <iconv.h>, streq.h, xsize.h.
51859         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
51860         conversion.
51861         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
51862         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
51863         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
51864         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
51865
51866 2008-05-10  Bruno Haible  <bruno@clisp.org>
51867
51868         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
51869         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
51870
51871         * modules/unilbrk/u32-width-linebreaks-tests: New file.
51872         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
51873
51874         * modules/unilbrk/u16-width-linebreaks-tests: New file.
51875         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
51876
51877         * modules/unilbrk/u8-width-linebreaks-tests: New file.
51878         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
51879
51880         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
51881         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
51882
51883         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
51884         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
51885
51886         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
51887         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
51888
51889         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
51890         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
51891
51892 2008-05-10  Bruno Haible  <bruno@clisp.org>
51893
51894         Split up 'linebreak' module.
51895         * lib/unilbrk.h: New file, based on lib/linebreak.h.
51896         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
51897         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
51898         modifications.
51899         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
51900         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
51901         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
51902         lib/linebreak.c.
51903         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
51904         lib/linebreak.c.
51905         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
51906         lib/linebreak.c.
51907         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
51908         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
51909         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
51910         lib/linebreak.c.
51911         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
51912         lib/linebreak.c.
51913         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
51914         lib/linebreak.c.
51915         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
51916         lib/linebreak.c.
51917         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
51918         lib/linebreak.c.
51919         * modules/unilbrk/base: New file.
51920         * modules/unilbrk/tables: New file.
51921         * modules/unilbrk/u8-possible-linebreaks: New file.
51922         * modules/unilbrk/u16-possible-linebreaks: New file.
51923         * modules/unilbrk/u32-possible-linebreaks: New file.
51924         * modules/unilbrk/ulc-common: New file.
51925         * modules/unilbrk/ulc-possible-linebreaks: New file.
51926         * modules/unilbrk/u8-width-linebreaks: New file.
51927         * modules/unilbrk/u16-width-linebreaks: New file.
51928         * modules/unilbrk/u32-width-linebreaks: New file.
51929         * modules/unilbrk/ulc-width-linebreaks: New file.
51930         * lib/linebreak.h: Remove file.
51931         * lib/linebreak.c: Remove file.
51932         * m4/linebreak.m4: Remove file.
51933         * modules/linebreak: Remove file.
51934         * NEWS: Mention the changes.
51935
51936 2008-05-09  Eric Blake  <ebb9@byu.net>
51937
51938         Add xmemdup0.
51939         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
51940         implementation.
51941         * lib/xmalloc.c (xmemdup0): New C implementation.
51942
51943 2008-05-08  Bruno Haible  <bruno@clisp.org>
51944
51945         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
51946
51947 2008-05-07  Eric Blake  <ebb9@byu.net>
51948
51949         Support cross-compilation of <wctype.h>.
51950         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
51951         AC_CACHE_CHECK.
51952
51953 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
51954
51955         * build-aux/vc-list-files: Add support for bzr.
51956
51957 2008-05-03  Jim Meyering  <meyering@redhat.com>
51958
51959         avoid failed assertion with tight malloc
51960         * tests/test-getndelim2.c: Correct an off-by-one assertion.
51961
51962 2008-05-03  Simon Josefsson  <simon@josefsson.org>
51963
51964         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
51965         are needed from arpa/inet.h.
51966         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
51967         Reported by Bruno Haible.
51968
51969 2008-05-02  Jim Meyering  <meyering@redhat.com>
51970
51971         avoid compilation error on FreeBSD 6
51972         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
51973
51974 2008-05-01  Jim Meyering  <meyering@redhat.com>
51975
51976         useless-if-before-free: correct --help's exit status description
51977         * build-aux/useless-if-before-free (usage): Like grep, exit 0
51978         for one or more matches, etc.  Reported by Bruno Haible.
51979
51980         vc-list-files: make the stand-alone gnulib test work
51981         * modules/vc-list-files-tests (configure.ac):
51982         Define and AC_SUBST abs_aux_dir.
51983         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
51984         $(abs_top_srcdir) to each script and having each of them
51985         duplicate the work of setting PATH, set PATH here, using
51986         the new variable, abs_aux_dir instead.
51987         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
51988         * tests/test-vc-list-files-git.sh: Likewise.
51989         Reported by Bruno Haible.
51990
51991 2008-05-01  Bruno Haible  <bruno@clisp.org>
51992
51993         * lib/getndelim2.c (getndelim2): Fix newsize computation during
51994         reallocation. Rename 'done' to 'found_delimiter'.
51995
51996 2008-05-01  Jim Meyering  <meyering@redhat.com>
51997
51998         vc-list-files: accommodate /bin/sh like the one from Solaris 10
51999         * build-aux/vc-list-files: Use `...`, not $(...).
52000
52001 2008-04-30  Jim Meyering  <meyering@redhat.com>
52002
52003         add tests for vc-list-files
52004         * modules/vc-list-files-tests: New module.
52005         * tests/test-vc-list-files-cvs.sh: New file.
52006         * tests/test-vc-list-files-git.sh: New file.
52007
52008         avoid a warning from gcc
52009         * lib/getndelim2.c (IF_LINT): Define.
52010         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
52011
52012         vc-list-files: work properly with build-aux/cvsu, too
52013         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
52014         to all cvs-based clauses.
52015
52016         vc-list-files: work properly in the CVS+awk case, too
52017         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
52018
52019         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
52020         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
52021         take more than one file argument, so .  Add quotes, just in case $dir
52022         ever contains a shell meta-character.  Prompted by Soren Hansen in
52023         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
52024
52025 2008-04-29  Eric Blake  <ebb9@byu.net>
52026
52027         Optimize getndelim2 to use block operations when possible.
52028         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
52029         freadseek, and memchr2.
52030         * lib/getndelim2.c (getndelim2): Use them for block reads.
52031
52032 2008-04-29  Bruno Haible  <bruno@clisp.org>
52033
52034         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
52035         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52036         * modules/inet_ntop (Depends-on): Add extensions.
52037         * modules/inet_pton (Depends-on): Likewise.
52038         Reported by Simon Josefsson.
52039
52040 2008-04-29  Jim Meyering  <meyering@redhat.com>
52041
52042         When the is more than one match in a block, match all of them.
52043         * build-aux/useless-if-before-free: Iterate through each block
52044         until there are no more matches.
52045
52046         Fix broken useless-if-before-free script.
52047         * build-aux/useless-if-before-free: Fix typo: missing "?" after
52048         the expression to match cast of argument to free-like function.
52049
52050 2008-04-29  Eric Blake  <ebb9@byu.net>
52051
52052         Use new header.
52053         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
52054
52055 2008-04-29  Jim Meyering  <meyering@redhat.com>
52056
52057         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
52058         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
52059         by gnulib to exist and to declare e.g., inet_ntop.
52060         Don't include "inet_ntop.h", now removed.
52061
52062         * m4/arpa_inet_h.m4: Remove trailing blanks.
52063
52064 2008-04-29  Eric Blake  <ebb9@byu.net>
52065
52066         Silence valgrind on safe reads beyond potential array bounds.
52067         * lib/rawmemchr.valgrind: New file.
52068         * lib/strchrnul.valgrind: Likewise.
52069         * modules/rawmemchr (Files): Distribute new file.
52070         * modules/strchrnul (Files): Likewise.
52071         Suggested by Bruno Haible.
52072
52073 2008-04-29  Bruno Haible  <bruno@clisp.org>
52074
52075         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
52076         (inet_ntop, inet_pton): Change portability warning's wording.
52077         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
52078         Invoke gl_CHECK_NEXT_HEADERS.
52079         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
52080         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
52081         set ARPA_INET_H.
52082         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52083         * modules/arpa_inet (Description): No longer only for systems that
52084         lack it.
52085         (Depends-on): Add include_next.
52086         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
52087         HAVE_ARPA_INET_H.
52088
52089 2008-04-29  Jim Meyering  <meyering@redhat.com>
52090
52091         * modules/mkdir (License): Re-license as LGPLv2+.
52092
52093 2008-04-29  Bruno Haible  <bruno@clisp.org>
52094
52095         * modules/rawmemchr (Maintainer): Set to Eric.
52096         * modules/strchrnul (Maintainer): Likewise.
52097
52098 2008-04-29  Simon Josefsson  <simon@josefsson.org>
52099
52100         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
52101         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
52102
52103         * modules/arpa_inet (arpa/inet.h): Use them.
52104
52105 2008-04-28  Eric Blake  <ebb9@byu.net>
52106
52107         Test getndelim2.
52108         * modules/getndelim2-tests: New file.
52109         * tests/test-getndelim2.c: Likewise.
52110         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
52111         stream.
52112         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
52113
52114         * MODULES.html.sh: Document new module.
52115
52116 2008-04-20  Bruno Haible  <bruno@clisp.org>
52117
52118         * lib/c-stack.c (die): Use raise.
52119         * modules/c-stack (Depends-on): Add raise.
52120
52121 2008-04-28  Bruno Haible  <bruno@clisp.org>
52122
52123         Expect rpmatch to be declared.
52124         * lib/yesno.c (rpmatch): Remove declaration.
52125
52126         Declare rpmatch.
52127         * lib/stdlib.in.h (rpmatch): New declaration.
52128         * lib/rpmatch.c: Include <stdlib.h> first.
52129         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
52130         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
52131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
52132         HAVE_RPMATCH.
52133         * modules/rpmatch (Depends-on): Add stdlib, extensions.
52134         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52135         (Include): Set to <stdlib.h>.
52136         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
52137         HAVE_RPMATCH.
52138         * NEWS: Document the change.
52139
52140 2008-04-28  Bruno Haible  <bruno@clisp.org>
52141
52142         Change rpmatch to use nl_langinfo when appropriate.
52143         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
52144         (N_): New macro.
52145         (localized_pattern): New function/macro.
52146         (try): Remove match, nomatch arguments. Copy the pattern into safe
52147         memory before caching it.
52148         (rpmatch): Use localized_pattern. Add translator comments.
52149         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
52150         Suggested by Eric Blake.
52151         * modules/rpmatch (Depends-on): Add stdbool.
52152
52153 2008-04-28  Eric Blake  <ebb9@byu.net>
52154
52155         Add rawmemchr module, matching glibc.
52156         * modules/string (Makefile.am): New indicator.
52157         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
52158         * lib/string.in.h (rawmemchr): Declare when appropriate.
52159         * modules/rawmemchr: New file.
52160         * m4/rawmemchr.m4: Likewise.
52161         * lib/rawmemchr.c: Likewise.
52162         * modules/rawmemchr-tests: Likewise.
52163         * tests/test-rawmemchr.c: Likewise.
52164         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
52165         module.
52166         * modules/strchrnul (Depends-on): Add rawmemchr.
52167         * lib/strchrnul.c (strchrnul): Optimize a corner case.
52168
52169         Whitespace cleanup.
52170         * tests/test-strchrnul.c: Reindent.
52171         * lib/strchrnul.c: Likewise.
52172
52173         Optimize and test strchrnul.
52174         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
52175         * modules/strchrnul-tests: New file.
52176         * tests/test-strchrnul.c: Likewise.
52177
52178         Remove intprops dependency.
52179         * modules/memchr (Depends-on): Remove intprops.
52180         * modules/memrchr (Depends-on): Likewise.
52181         * modules/memchr2 (Depends-on): Likewise.
52182         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
52183         * lib/memrchr.c (__memrchr): Likewise.
52184         * lib/memrchr2.c (memchr2): Likewise.
52185         Reported by Simon Josefsson.
52186
52187 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52188
52189         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
52190         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52191
52192 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52193
52194         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
52195
52196         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
52197
52198         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
52199
52200         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
52201         declarations.
52202         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
52203
52204         * m4/inet_pton.m4: Don't check for header files.
52205
52206         * m4/inet_ntop.m4: Don't check for header files.
52207
52208 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52209
52210         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
52211         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
52212         trigger for cygwin).
52213         Reported by Bruno Haible  <bruno@clisp.org>.
52214
52215 2008-04-28  Bruno Haible  <bruno@clisp.org>
52216
52217         * doc/posix-functions/strdup.texi: Mention mingw problem.
52218
52219 2008-04-27  Bruno Haible  <bruno@clisp.org>
52220
52221         * modules/stat-time-tests (Depends-on): Add sleep.
52222         * tests/test-stat-time.c (force_unlink): New function.
52223         (cleanup): Use it.
52224         (test_mtime): Remove the ctime related tests.
52225         (test_ctime): New function, containing the ctime related tests.
52226         (main): Call test_ctime, except on native Windows platforms.
52227
52228 2008-04-27  Bruno Haible  <bruno@clisp.org>
52229
52230         * lib/rpmatch.c (rpmatch): Add some comments.
52231         Reported by James Youngman <jay@gnu.org>.
52232
52233 2008-04-27  Bruno Haible  <bruno@clisp.org>
52234
52235         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
52236         quiet NaNs.
52237
52238 2008-04-27  Bruno Haible  <bruno@clisp.org>
52239
52240         Make test-yesno.sh work on mingw.
52241         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
52242         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
52243         (main): Set stdin to binary mode.
52244         * modules/yesno-tests (Depends-on): Add binary-io.
52245
52246 2008-04-27  Bruno Haible  <bruno@clisp.org>
52247
52248         Fix 'isfinite' on x86, x86_64, ia64 platforms.
52249         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
52250         argument that lie outside the IEEE 854 domain.
52251         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
52252         (gl_ISFINITE): Use it.
52253         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
52254
52255 2008-04-27  Bruno Haible  <bruno@clisp.org>
52256
52257         Allow local renaming in config.h.
52258         * lib/memrchr.c (memrchr): Don't undefine outside libc.
52259
52260 2008-04-27  Bruno Haible  <bruno@clisp.org>
52261
52262         * lib/memchr.c (__memchr): Change type of 'i'.
52263         * lib/memchr2.c (memchr2): Likewise.
52264
52265 2008-04-26  Eric Blake  <ebb9@byu.net>
52266         and Bruno Haible  <bruno@clisp.org>
52267
52268         Optimize and test memrchr.
52269         * modules/memrchr (Depends-on): Add intprops.
52270         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
52271         * modules/memrchr-tests: New file.
52272         * tests/test-memrchr.c: New file.
52273
52274 2008-04-26  Bruno Haible  <bruno@clisp.org>
52275
52276         Add tentative support for DragonFly BSD.
52277         * lib/stdio-impl.h: Add macros for DragonFly BSD.
52278         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
52279         fp.
52280         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52281         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
52282         * lib/fpurge.c (fpurge): Likewise.
52283         * lib/freadable.c (freaadable): Likewise.
52284         * lib/freadahead.c (freadahead): Likewise.
52285         * lib/freading.c (freading): Likewise.
52286         * lib/freadptr.c (freadptr): Likewise.
52287         * lib/freadseek.c (freadptrinc): Likewise.
52288         * lib/fseeko.c (fseeko): Likewise.
52289         * lib/fseterr.c (fseterr): Likewise.
52290         * lib/fwritable.c (fwritable): Likewise.
52291         * lib/fwriting.c (fwriting): Likewise.
52292
52293 2008-04-26  Bruno Haible  <bruno@clisp.org>
52294
52295         * lib/stdio-impl.h: New file.
52296         * lib/fbufmode.c: Include stdio-impl.h.
52297         (fbufmode): Use fp_, remove redundant #defines.
52298         * lib/fflush.c: Include stdio-impl.h.
52299         (clear_ungetc_buffer): Remove redundant #defines.
52300         * lib/fpurge.c: Include stdio-impl.h.
52301         (fpurge): Remove redundant #defines.
52302         * lib/freadable.c: Include stdio-impl.h.
52303         (freadable): Remove redundant #defines.
52304         * lib/freadahead.c: Include stdio-impl.h.
52305         (freadahead): Remove redundant #defines.
52306         * lib/freading.c: Include stdio-impl.h.
52307         (freading): Remove redundant #defines.
52308         * lib/freadptr.c: Include stdio-impl.h.
52309         (freadptr): Remove redundant #defines.
52310         * lib/freadseek.c: Include stdio-impl.h.
52311         (freadptrinc): Remove redundant #defines.
52312         * lib/fseeko.c: Include stdio-impl.h.
52313         (rpl_fseeko): Remove redundant #defines.
52314         * lib/fseterr.c: Include stdio-impl.h.
52315         (fseterr): Remove redundant #defines.
52316         * lib/fwritable.c: Include stdio-impl.h.
52317         (fwritable: Remove redundant #defines.
52318         * lib/fwriting.c: Include stdio-impl.h.
52319         (fwriting): Remove redundant #defines.
52320         * modules/fbufmode (Files): Add lib/stdio-impl.h.
52321         * modules/fflush (Files): Likewise.
52322         * modules/fpurge (Files): Likewise.
52323         * modules/freadable (Files): Likewise.
52324         * modules/freadahead (Files): Likewise.
52325         * modules/freading (Files): Likewise.
52326         * modules/freadptr (Files): Likewise.
52327         * modules/freadseek (Files): Likewise.
52328         * modules/fseeko (Files): Likewise.
52329         * modules/fseterr (Files): Likewise.
52330         * modules/fwritable (Files): Likewise.
52331         * modules/fwriting (Files): Likewise.
52332
52333 2008-04-26  Bruno Haible  <bruno@clisp.org>
52334
52335         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52336         restore_seek_optimization, update_fpos_cache): New functions, extracted
52337         from rpl_fflush.
52338         (rpl_fflush): Use them.
52339         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
52340         (gl_REPLACE_FFLUSH): Use it.
52341
52342 2008-04-26  Bruno Haible  <bruno@clisp.org>
52343
52344         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
52345         on Solaris.
52346         * tests/test-xstrtoimax.sh: Likewise.
52347         * tests/test-xstrtoumax.sh: Likewise.
52348         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52349
52350 2008-04-26  Bruno Haible  <bruno@clisp.org>
52351
52352         * modules/memchr-tests: New file.
52353         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
52354
52355 2008-04-26  Eric Blake  <ebb9@byu.net>
52356             Bruno Haible  <bruno@clisp.org>
52357
52358         * lib/memchr.c: Include intprops.h.
52359         (__memchr): Optimize parallel detection of matching bytes. Rename local
52360         variables. Add explanatory comments.
52361
52362 2008-04-26  Bruno Haible  <bruno@clisp.org>
52363
52364         Fix module 'memchr', broken since 2000-10-28.
52365         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
52366
52367 2008-04-26  Bruno Haible  <bruno@clisp.org>
52368
52369         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
52370         comments.
52371
52372 2008-04-25  Eric Blake  <ebb9@byu.net>
52373
52374         Use native fstatat on cygwin 1.7.0.
52375         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
52376         first.
52377
52378 2008-04-23  Eric Blake  <ebb9@byu.net>
52379
52380         Improve memchr2 performance.
52381         * lib/memchr2.c (memchr2): Further optimize parallel detection of
52382         NUL bytes.
52383         * modules/memchr2 (Depends-on): Use intprops.h.
52384
52385 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52386
52387         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
52388         an inline function instead of a CPP macro.  Patch by Ben Pfaff
52389         <blp@cs.stanford.edu>.
52390
52391 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52392
52393         * lib/arpa_inet.in.h: New file.
52394
52395         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
52396         (Makefile.am): Sed in substitute header file.
52397
52398         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
52399         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
52400
52401         * modules/inet_ntop (configure.ac): Use
52402         gl_ARPA_INET_MODULE_INDICATOR.
52403
52404         * modules/inet_pton (configure.ac): Use
52405         gl_ARPA_INET_MODULE_INDICATOR.
52406
52407 2008-04-22  Jim Meyering  <meyering@redhat.com>
52408
52409         * modules/verify (License): Re-license as LGPLv2+.
52410
52411 2008-04-22  Simon Josefsson  <simon@josefsson.org>
52412
52413         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
52414         parameter to void* as per POSIX standard (MinGW uses char*).
52415
52416 2008-04-21  Bruno Haible  <bruno@clisp.org>
52417
52418         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52419         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52420         Define to replacements if REPLACE_ISWCNTRL is 1.
52421         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
52422         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
52423         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
52424         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
52425         what it fixes.
52426         * doc/posix-functions/iswalpha.texi: Likewise.
52427         * doc/posix-functions/iswblank.texi: Likewise.
52428         * doc/posix-functions/iswcntrl.texi: Likewise.
52429         * doc/posix-functions/iswdigit.texi: Likewise.
52430         * doc/posix-functions/iswgraph.texi: Likewise.
52431         * doc/posix-functions/iswlower.texi: Likewise.
52432         * doc/posix-functions/iswprint.texi: Likewise.
52433         * doc/posix-functions/iswpunct.texi: Likewise.
52434         * doc/posix-functions/iswspace.texi: Likewise.
52435         * doc/posix-functions/iswupper.texi: Likewise.
52436         * doc/posix-functions/iswxdigit.texi: Likewise.
52437         Reported by Alain Guibert.
52438
52439 2008-04-21  Bruno Haible  <bruno@clisp.org>
52440
52441         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
52442         Patch by Alain Guibert.
52443
52444 2008-04-21  Bruno Haible  <bruno@clisp.org>
52445
52446         Fix test failures on mingw.
52447         * tests/test-xstrtol.c (print_no_progname): New function.
52448         (main): Install it in error_print_progname hook.
52449         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
52450         * tests/test-xstrtoimax.sh: Likewise.
52451         * tests/test-xstrtoumax.sh: Likewise.
52452
52453 2008-04-21  Bruno Haible  <bruno@clisp.org>
52454
52455         Fix test failure on mingw.
52456         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
52457
52458 2008-04-21  Bruno Haible  <bruno@clisp.org>
52459
52460         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
52461         Actually assign a value.
52462
52463 2008-04-20  Bruno Haible  <bruno@clisp.org>
52464
52465         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
52466         take 2.
52467         * lib/canonicalize.c (canonicalize_file_name): Elide if the
52468         'canonicalize-lgpl' module is also used.
52469         * lib/canonicalize-lgpl.c: Undo last change.
52470         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
52471
52472 2008-04-20  Bruno Haible  <bruno@clisp.org>
52473
52474         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
52475         config.h. Provide _mkdir based fallback for mingw.
52476         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
52477         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
52478         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
52479         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
52480         rather than defining mkdir in config.h.
52481         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
52482         (gl_SYS_STAT_H_DEFAULTS): New macro.
52483         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
52484         HAVE_IO_H any more.
52485         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
52486         HAVE_DECL_MKDIR and HAVE_IO_H.
52487
52488 2008-04-20  Bruno Haible  <bruno@clisp.org>
52489
52490         * lib/isapipe.c: Port to native Windows platforms.
52491
52492 2008-04-20  Bruno Haible  <bruno@clisp.org>
52493
52494         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
52495
52496 2008-04-21  Eric Blake  <ebb9@byu.net>
52497
52498         Work around preprocessors that don't handle UINTMAX_MAX.
52499         * lib/memchr2.c (memchr2): Avoid embedded #if.
52500         Reported by Alain Guibert, fix suggested by Bruno Haible.
52501
52502 2008-04-21  Simon Josefsson  <simon@josefsson.org>
52503
52504         * doc/posix-functions/strftime.texi (strftime): Explain better
52505         Windows incompatibility.  Suggested by Micah Cowan
52506         <micah@cowan.name>.
52507
52508 2008-04-20  Bruno Haible  <bruno@clisp.org>
52509
52510         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
52511         unistr/u8-mblen.
52512
52513 2008-04-20  Bruno Haible  <bruno@clisp.org>
52514
52515         Fix test failure on platforms with non-GNU iconv.
52516         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
52517         (U_TO_U8): Use it, rather than u16_to_u8.
52518         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
52519         units at the end of the input string.
52520         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
52521
52522 2008-04-20  Bruno Haible  <bruno@clisp.org>
52523
52524         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
52525         when the resulting length is 0.
52526         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
52527
52528 2008-04-20  Bruno Haible  <bruno@clisp.org>
52529
52530         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
52531         works.
52532         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
52533
52534 2008-04-20  Bruno Haible  <bruno@clisp.org>
52535
52536         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
52537         * modules/tsearch-tests (configure.ac): Test for initstate function.
52538
52539 2008-04-20  Bruno Haible  <bruno@clisp.org>
52540
52541         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
52542         for nlink_t if missing.
52543         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
52544
52545 2008-04-19  Bruno Haible  <bruno@clisp.org>
52546
52547         Work around snprintf bug on Linux libc5.
52548         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
52549         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52550         gl_SNPRINTF_SIZE1.
52551         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52552         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
52553         that test failed.
52554         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
52555         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
52556         * modules/snprintf (Files): Add m4/printf.m4.
52557         * modules/vsnprintf (Files): Likewise.
52558         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
52559         * doc/posix-functions/vsnprintf.texi: Likewise.
52560
52561 2008-04-19  Bruno Haible  <bruno@clisp.org>
52562
52563         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
52564         from 0.0058 to less than 10^-7.
52565
52566 2008-04-19  Bruno Haible  <bruno@clisp.org>
52567
52568         Fix rounding when a precision is given.
52569         * lib/vasnprintf.c (is_borderline): New function.
52570         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
52571         9...9x.
52572         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
52573         %e, %g.
52574         * tests/test-vasprintf-posix.c (test_function): Likewise.
52575         * tests/test-snprintf-posix.h (test_function): Likewise.
52576         * tests/test-sprintf-posix.h (test_function): Likewise.
52577         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
52578         * tests/test-printf-posix.h (test_function): Likewise.
52579         * tests/test-printf-posix.output: Update.
52580         Reported by John Darrington <john@darrington.wattle.id.au> via
52581         Ben Pfaff <blp@cs.stanford.edu>.
52582
52583 2008-04-18  Simon Josefsson  <simon@josefsson.org>
52584
52585         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
52586         Suggested by Bruno Haible <bruno@clisp.org>.
52587
52588 2008-04-17  Bruno Haible  <bruno@clisp.org>
52589
52590         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
52591         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
52592         implementation.
52593         Patch by Bruce Merry <bmerry@gmail.com>.
52594
52595 2008-04-17  Simon Josefsson  <simon@josefsson.org>
52596
52597         * doc/posix-functions/strftime.texi (strftime): Mention that %e
52598         doesn't work under Windows.
52599
52600 2008-04-16  Bruno Haible  <bruno@clisp.org>
52601
52602         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
52603         New macros.
52604         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
52605         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
52606         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
52607         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
52608         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
52609         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
52610         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
52611         macros.
52612         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
52613         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
52614         Northern Sotho, Uighur.
52615
52616 2008-04-16  Bruno Haible  <bruno@clisp.org>
52617
52618         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
52619         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
52620         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
52621         Reported by Daniel Bergström <daniel@octocode.com>.
52622
52623 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
52624             Bruno Haible  <bruno@clisp.org>
52625
52626         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
52627         function.
52628         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
52629         New functions, mostly extracted from gl_locale_name_default.
52630         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
52631
52632 2008-04-16  Eric Blake  <ebb9@byu.net>
52633
52634         Adjust strtod detection to catch glibc 2.7 bug.
52635         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
52636         Reported by John Gatewood Ham.
52637
52638 2008-04-16  Bruno Haible  <bruno@clisp.org>
52639
52640         Add tentative support for Linux libc5.
52641         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
52642         * lib/fpurge.c (fpurge): Likewise.
52643         * lib/freadable.c (freadable): Likewise.
52644         * lib/freadahead.c (freadahead): Likewise.
52645         * lib/freading.c (freading): Likewise.
52646         * lib/freadptr.c (freadptr): Likewise.
52647         * lib/freadseek.c (freadptrinc): Likewise.
52648         * lib/fseeko.c (rpl_fseeko): Likewise.
52649         * lib/fseterr.c (fseterr): Likewise.
52650         * lib/fwritable.c (fwritable): Likewise.
52651         * lib/fwriting.c (fwriting): Likewise.
52652         Reported by Alain Guibert <alguibert+bts@free.fr>.
52653
52654 2008-04-15  Bruno Haible  <bruno@clisp.org>
52655
52656         * modules/mathl (configure.ac): Define module indicator.
52657
52658 2008-04-15  Bruno Haible  <bruno@clisp.org>
52659
52660         * lib/logl.c (logl): Remove unused variables.
52661
52662 2008-04-15  Bruno Haible  <bruno@clisp.org>
52663
52664         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
52665         fails.
52666
52667 2008-04-15  Bruno Haible  <bruno@clisp.org>
52668
52669         * lib/trim.c (trim2): Fix argument of isspace() macro.
52670
52671 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
52672
52673         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
52674         to 0.
52675         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
52676
52677 2008-04-14  Bruno Haible  <bruno@clisp.org>
52678
52679         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
52680         AC_LANG_PROGRAM argument.
52681         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
52682         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
52683         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
52684         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52685         * m4/math_h.m4 (gl_MATH_H): Likewise.
52686         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
52687         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52688         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52689         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
52690         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52691         * m4/regex.m4 (gl_REGEX): Likewise.
52692         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
52693         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
52694         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52695         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
52696         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52697         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52698         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52699         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52700
52701 2008-04-14  Jim Meyering  <meyering@redhat.com>
52702
52703         test-strtod: fix typos: s/abs/fabs/
52704         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
52705
52706 2008-04-13  Bruno Haible  <bruno@clisp.org>
52707
52708         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
52709         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
52710         module is also used and while not building the reloc-wrapper.
52711
52712 2008-04-13  Bruno Haible  <bruno@clisp.org>
52713
52714         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
52715
52716 2008-04-13  Bruno Haible  <bruno@clisp.org>
52717
52718         Fix AIX compilation failure introduced on 2008-04-02.
52719         * tests/test-frexp.c (exp): Undefine before redefining.
52720         * tests/test-frexpl.c (exp): Likewise.
52721
52722 2008-04-13  Bruno Haible  <bruno@clisp.org>
52723
52724         Work around a HP-UX stdio bug.
52725         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
52726         * tests/test-ftello.c (main): Likewise.
52727         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
52728         * doc/posix-functions/ftello.texi: Likewise.
52729
52730 2008-04-13  Bruno Haible  <bruno@clisp.org>
52731
52732         Make test-signbit pass on HP-UX/hppa.
52733         * tests/test-signbit.c (minus_zerol): New variable.
52734         (test_signbitl): Use it.
52735
52736 2008-04-13  Bruno Haible  <bruno@clisp.org>
52737
52738         Make truncl work on OSF/1 4.0.
52739         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
52740         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52741         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52742         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
52743         HAVE_DECL_TRUNCL.
52744         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
52745         HAVE_DECL_TRUNCL.
52746         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
52747
52748 2008-04-13  Bruno Haible  <bruno@clisp.org>
52749
52750         * lib/unictype.h: Remove trailing comma from enumeration definitions.
52751
52752 2008-04-13  Bruno Haible  <bruno@clisp.org>
52753
52754         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
52755         expression, so as to avoid HP-UX 11 cc compiler bug.
52756
52757 2008-04-13  Bruno Haible  <bruno@clisp.org>
52758
52759         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
52760
52761 2008-04-13  Bruno Haible  <bruno@clisp.org>
52762
52763         * lib/git-merge-changelog.c: Remove empty declaration outside of
52764         functions.
52765
52766 2008-04-13  Bruno Haible  <bruno@clisp.org>
52767
52768         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
52769
52770 2008-04-13  Bruno Haible  <bruno@clisp.org>
52771
52772         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
52773         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
52774         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
52775         also if it exists but lacks definitions of the SHUT_* macros.
52776         * modules/sys_socket (Description): Update.
52777         Reported by Elbert Pol <e.pol@chello.nl>.
52778
52779 2008-04-13  Bruno Haible  <bruno@clisp.org>
52780
52781         * lib/localcharset.c (OS2): Don't redefine if already defined.
52782         Reported by Elbert Pol <e.pol@chello.nl>.
52783
52784 2008-04-13  Bruno Haible  <bruno@clisp.org>
52785
52786         * lib/binary-io.h [__EMX__]: Include <io.h>.
52787         Reported by Elbert Pol <e.pol@chello.nl>.
52788
52789 2008-04-12  Bruno Haible  <bruno@clisp.org>
52790
52791         * lib/fpucw.h: Enable the definitions also for x86_64.
52792         Needed for NetBSD/x86_64.
52793         Reported by Thomas Klausner <tk@giga.or.at>.
52794
52795 2008-04-12  Bruno Haible  <bruno@clisp.org>
52796
52797         * tests/test-strtod.c: Include isnand.h.
52798         (main): Use isnand instead of isnan.
52799         Reported by Jim Meyering.
52800
52801 2008-04-12  Bruno Haible  <bruno@clisp.org>
52802
52803         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
52804         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52805
52806 2008-04-12  Jim Meyering  <meyering@redhat.com>
52807
52808         * m4/math_h.m4 (gl_MATH_H): Fix typos.
52809
52810 2008-04-12  Bruno Haible  <bruno@clisp.org>
52811
52812         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
52813         Reported by Elbert Pol <e.pol@chello.nl>.
52814
52815 2008-04-12  Eric Blake  <ebb9@byu.net>
52816
52817         Work around Solaris 10 math.h bug.
52818         * m4/math_h.m4 (gl_MATH_H): Check for bug.
52819         (gl_MATH_H_DEFAULTS): Set up default.
52820         * modules/math (Makefile.am): Replace new indicators.
52821         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
52822         * tests/test-math.c (main): Test this.
52823         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
52824         * doc/posix-headers/math.texi (math.h): Mention bug.
52825         Reported by Nelson H. F. Beebe and Jim Meyering.
52826
52827 2008-04-11  Bruno Haible  <bruno@clisp.org>
52828
52829         Adapt to future versions of Apple GCC.
52830         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
52831         Reported by Peter O'Gorman <peter@pogma.com>.
52832
52833 2008-04-11  Bruno Haible  <bruno@clisp.org>
52834
52835         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
52836
52837 2008-04-11  Bruno Haible  <bruno@clisp.org>
52838
52839         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
52840
52841         * modules/getaddrinfo-tests (Makefile.am): Define
52842         test_getaddrinfo_LDADD.
52843
52844 2008-04-11  Bruno Haible  <bruno@clisp.org>
52845
52846         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
52847         (init): Fix syntax error.
52848         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
52849         is declared.
52850
52851 2008-04-11  Bruno Haible  <bruno@clisp.org>
52852
52853         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
52854         * modules/glob (Depends-on): Add stdbool.
52855
52856 2008-04-11  Bruno Haible  <bruno@clisp.org>
52857
52858         * lib/trim.c: Include <string.h>.
52859
52860 2008-04-11  Eric Blake  <ebb9@byu.net>
52861
52862         Avoid compile failure on OS/2.
52863         * lib/regex_internal.h (internal_function): Disable optimization
52864         on OS/2 (__EMX__), where it caused compiler error.
52865         Reported by Elbert Pol.
52866
52867 2008-04-11  Bruno Haible  <bruno@clisp.org>
52868
52869         Flush the standard error stream before aborting. Needed on mingw.
52870         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
52871         * tests/test-array_list.c (ASSERT): Likewise.
52872         * tests/test-array_oset.c (ASSERT): Likewise.
52873         * tests/test-avltree_list.c (ASSERT): Likewise.
52874         * tests/test-avltree_oset.c (ASSERT): Likewise.
52875         * tests/test-avltreehash_list.c (ASSERT): Likewise.
52876         * tests/test-binary-io.c (ASSERT): Likewise.
52877         * tests/test-byteswap.c (ASSERT): Likewise.
52878         * tests/test-c-ctype.c (ASSERT): Likewise.
52879         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
52880         * tests/test-c-strcasestr.c (ASSERT): Likewise.
52881         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
52882         * tests/test-c-strstr.c (ASSERT): Likewise.
52883         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
52884         * tests/test-canonicalize.c (ASSERT): Likewise.
52885         * tests/test-carray_list.c (ASSERT): Likewise.
52886         * tests/test-ceilf1.c (ASSERT): Likewise.
52887         * tests/test-ceilf2.c (ASSERT): Likewise.
52888         * tests/test-ceill.c (ASSERT): Likewise.
52889         * tests/test-count-one-bits.c (ASSERT): Likewise.
52890         * tests/test-fbufmode.c (ASSERT): Likewise.
52891         * tests/test-fflush2.c (ASSERT): Likewise.
52892         * tests/test-floorf1.c (ASSERT): Likewise.
52893         * tests/test-floorf2.c (ASSERT): Likewise.
52894         * tests/test-floorl.c (ASSERT): Likewise.
52895         * tests/test-fopen.c (ASSERT): Likewise.
52896         * tests/test-fpending.c (ASSERT): Likewise.
52897         * tests/test-fprintf-posix.c (ASSERT): Likewise.
52898         * tests/test-fpurge.c (ASSERT): Likewise.
52899         * tests/test-freadable.c (ASSERT): Likewise.
52900         * tests/test-freadahead.c (ASSERT): Likewise.
52901         * tests/test-freading.c (ASSERT): Likewise.
52902         * tests/test-freadptr.c (ASSERT): Likewise.
52903         * tests/test-freadptr2.c (ASSERT): Likewise.
52904         * tests/test-freadseek.c (ASSERT): Likewise.
52905         * tests/test-freopen.c (ASSERT): Likewise.
52906         * tests/test-frexp.c (ASSERT): Likewise.
52907         * tests/test-frexpl.c (ASSERT): Likewise.
52908         * tests/test-fseek.c (ASSERT): Likewise.
52909         * tests/test-fseeko.c (ASSERT): Likewise.
52910         * tests/test-fstrcmp.c (ASSERT): Likewise.
52911         * tests/test-ftell.c (ASSERT): Likewise.
52912         * tests/test-ftello.c (ASSERT): Likewise.
52913         * tests/test-func.c (ASSERT): Likewise.
52914         * tests/test-fwritable.c (ASSERT): Likewise.
52915         * tests/test-fwriting.c (ASSERT): Likewise.
52916         * tests/test-getdelim.c (ASSERT): Likewise.
52917         * tests/test-getline.c (ASSERT): Likewise.
52918         * tests/test-i-ring.c (ASSERT): Likewise.
52919         * tests/test-iconv-utf.c (ASSERT): Likewise.
52920         * tests/test-iconv.c (ASSERT): Likewise.
52921         * tests/test-isfinite.c (ASSERT): Likewise.
52922         * tests/test-isnand.c (ASSERT): Likewise.
52923         * tests/test-isnanf.c (ASSERT): Likewise.
52924         * tests/test-isnanl.h (ASSERT): Likewise.
52925         * tests/test-ldexpl.c (ASSERT): Likewise.
52926         * tests/test-linked_list.c (ASSERT): Likewise.
52927         * tests/test-linkedhash_list.c (ASSERT): Likewise.
52928         * tests/test-localename.c (ASSERT): Likewise.
52929         * tests/test-lseek.c (ASSERT): Likewise.
52930         * tests/test-mbscasecmp.c (ASSERT): Likewise.
52931         * tests/test-mbscasestr1.c (ASSERT): Likewise.
52932         * tests/test-mbscasestr2.c (ASSERT): Likewise.
52933         * tests/test-mbscasestr3.c (ASSERT): Likewise.
52934         * tests/test-mbscasestr4.c (ASSERT): Likewise.
52935         * tests/test-mbschr.c (ASSERT): Likewise.
52936         * tests/test-mbscspn.c (ASSERT): Likewise.
52937         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
52938         * tests/test-mbspbrk.c (ASSERT): Likewise.
52939         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
52940         * tests/test-mbsrchr.c (ASSERT): Likewise.
52941         * tests/test-mbsspn.c (ASSERT): Likewise.
52942         * tests/test-mbsstr1.c (ASSERT): Likewise.
52943         * tests/test-mbsstr2.c (ASSERT): Likewise.
52944         * tests/test-mbsstr3.c (ASSERT): Likewise.
52945         * tests/test-memchr2.c (ASSERT): Likewise.
52946         * tests/test-memmem.c (ASSERT): Likewise.
52947         * tests/test-open.c (ASSERT): Likewise.
52948         * tests/test-printf-frexp.c (ASSERT): Likewise.
52949         * tests/test-printf-frexpl.c (ASSERT): Likewise.
52950         * tests/test-printf-posix.c (ASSERT): Likewise.
52951         * tests/test-quotearg.c (ASSERT): Likewise.
52952         * tests/test-rbtree_list.c (ASSERT): Likewise.
52953         * tests/test-rbtree_oset.c (ASSERT): Likewise.
52954         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
52955         * tests/test-round1.c (ASSERT): Likewise.
52956         * tests/test-roundf1.c (ASSERT): Likewise.
52957         * tests/test-roundl.c (ASSERT): Likewise.
52958         * tests/test-signbit.c (ASSERT): Likewise.
52959         * tests/test-sleep.c (ASSERT): Likewise.
52960         * tests/test-snprintf-posix.c (ASSERT): Likewise.
52961         * tests/test-snprintf.c (ASSERT): Likewise.
52962         * tests/test-sprintf-posix.c (ASSERT): Likewise.
52963         * tests/test-stat-time.c (ASSERT): Likewise.
52964         * tests/test-strcasestr.c (ASSERT): Likewise.
52965         * tests/test-strerror.c (ASSERT): Likewise.
52966         * tests/test-striconv.c (ASSERT): Likewise.
52967         * tests/test-striconveh.c (ASSERT): Likewise.
52968         * tests/test-striconveha.c (ASSERT): Likewise.
52969         * tests/test-strsignal.c (ASSERT): Likewise.
52970         * tests/test-strstr.c (ASSERT): Likewise.
52971         * tests/test-strtod.c (ASSERT): Likewise.
52972         * tests/test-trunc1.c (ASSERT): Likewise.
52973         * tests/test-trunc2.c (ASSERT): Likewise.
52974         * tests/test-truncf1.c (ASSERT): Likewise.
52975         * tests/test-truncf2.c (ASSERT): Likewise.
52976         * tests/test-truncl.c (ASSERT): Likewise.
52977         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
52978         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
52979         * tests/test-vasnprintf.c (ASSERT): Likewise.
52980         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
52981         * tests/test-vasprintf.c (ASSERT): Likewise.
52982         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
52983         * tests/test-vprintf-posix.c (ASSERT): Likewise.
52984         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
52985         * tests/test-vsnprintf.c (ASSERT): Likewise.
52986         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
52987         * tests/test-wcwidth.c (ASSERT): Likewise.
52988         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
52989         * tests/test-xprintf-posix.c (ASSERT): Likewise.
52990         * tests/test-xvasprintf.c (ASSERT): Likewise.
52991         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
52992         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
52993         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
52994         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
52995         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
52996         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
52997         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
52998         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
52999         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
53000         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
53001         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
53002         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
53003         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
53004         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
53005         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
53006         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
53007         * tests/unictype/test-block_list.c (ASSERT): Likewise.
53008         * tests/unictype/test-block_of.c (ASSERT): Likewise.
53009         * tests/unictype/test-block_test.c (ASSERT): Likewise.
53010         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
53011         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
53012         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
53013         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
53014         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
53015         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
53016         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
53017         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
53018         * tests/unictype/test-combining.c (ASSERT): Likewise.
53019         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
53020         * tests/unictype/test-digit.c (ASSERT): Likewise.
53021         * tests/unictype/test-mirror.c (ASSERT): Likewise.
53022         * tests/unictype/test-numeric.c (ASSERT): Likewise.
53023         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
53024         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
53025         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
53026         * tests/unictype/test-scripts.c (ASSERT): Likewise.
53027         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
53028         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
53029         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
53030         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
53031         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
53032         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
53033         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
53034         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
53035         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
53036         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
53037         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
53038         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
53039         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
53040         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
53041         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
53042         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
53043         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
53044         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
53045         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
53046         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
53047         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
53048         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
53049         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
53050         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
53051         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
53052         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
53053         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
53054         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
53055         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
53056         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
53057         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
53058         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
53059         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
53060         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
53061         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
53062         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
53063         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
53064         Reported by Eric Blake.
53065
53066 2008-04-11  Bruno Haible  <bruno@clisp.org>
53067
53068         * lib/wchar.in.h: Tweak comment.
53069
53070 2008-04-11  Bruno Haible  <bruno@clisp.org>
53071
53072         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
53073         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
53074         gl_COMMON.
53075         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
53076
53077 2008-04-11  Bruno Haible  <bruno@clisp.org>
53078
53079         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
53080
53081 2008-04-11  Simon Josefsson  <simon@josefsson.org>
53082
53083         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
53084         of attempting to use non-existing /dev/*random.  Based on patch
53085         from Adam Strzelecki <ono@java.pl> in
53086         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
53087
53088 2008-04-08  Bruno Haible  <bruno@clisp.org>
53089
53090         Add tentative support for emx+gcc.
53091         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
53092         * lib/fpurge.c (fpurge): Likewise.
53093         * lib/freadable.c (freadable): Likewise.
53094         * lib/freadahead.c (freadahead): Likewise.
53095         * lib/freading.c (freading): Likewise.
53096         * lib/freadptr.c (freadptr): Likewise.
53097         * lib/freadseek.c (freadptrinc): Likewise.
53098         * lib/fseeko.c (rpl_fseeko): Likewise.
53099         * lib/fseterr.c (fseterr): Likewise.
53100         * lib/fwritable.c (fwritable): Likewise.
53101         * lib/fwriting.c (fwriting): Likewise.
53102         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
53103
53104 2008-04-09  Eric Blake  <ebb9@byu.net>
53105
53106         Avoid some autoconf warnings.
53107         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
53108         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
53109         * m4/afs.m4 (gl_AFS): Likewise.
53110         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
53111         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
53112         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53113         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
53114         (gl_INTEGER_TYPE_SUFFIX): Likewise.
53115         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
53116         (AC_CHECK_DECLS_ONCE): Likewise.
53117         Rename file...
53118         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
53119         gnulib-tool requires autoconf 2.59 or better.
53120         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
53121
53122 2008-04-08  Eric Blake  <ebb9@byu.net>
53123
53124         Use 'git describe --match' if present (added in git 1.5.5).
53125         * build-aux/git-version-gen: Limit result to tags that match 'v*'
53126         if possible.
53127
53128 2008-04-08  Bruno Haible  <bruno@clisp.org>
53129
53130         Add tentative support for OpenServer.
53131         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
53132         _ptr, _cnt.
53133         * lib/fpurge.c (fpurge): Likewise.
53134         * lib/freadable.c (freadable): Likewise.
53135         * lib/freadahead.c (freadahead): Likewise.
53136         * lib/freading.c (freading): Likewise.
53137         * lib/freadptr.c (freadptr): Likewise.
53138         * lib/freadseek.c (freadptrinc): Likewise.
53139         * lib/fseeko.c (rpl_fseeko): Likewise.
53140         * lib/fseterr.c (fseterr): Likewise.
53141         * lib/fwritable.c (fwritable): Likewise.
53142         * lib/fwriting.c (fwriting): Likewise.
53143         Reported by Roger Cornelius <rac@tenzing.org> and
53144         Brian K. White <brian@aljex.com>.
53145
53146 2008-04-06  Jim Meyering  <meyering@redhat.com>
53147
53148         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
53149
53150 2008-04-06  Bruno Haible  <bruno@clisp.org>
53151
53152         Avoid possible error with non-ASCII bytes in UTF-8 locales.
53153         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
53154         * tests/test-printf-posix.sh: Likewise.
53155         * tests/test-vfprintf-posix.sh: Likewise.
53156         * tests/test-vprintf-posix.sh: Likewise.
53157         * tests/test-xprintf-posix.sh: Likewise.
53158
53159 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53160
53161         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
53162         hide error from 'ls', needed on OS/2.
53163         Report by Elbert Pol <elbert.pol@gmail.com>.
53164
53165 2008-04-04  Eric Blake  <ebb9@byu.net>
53166
53167         Make test-fseeko.c failures meaningful.
53168         * tests/test-fseeko.c: Print line number on failure.
53169         * tests/test-fseek.c: Likewise.
53170         Reported by Nelson H. F. Beebe.
53171
53172         Improve strtod bug detection check.
53173         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
53174         required for Solaris 10.
53175         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
53176
53177 2008-04-04  Bruno Haible  <bruno@clisp.org>
53178
53179         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
53180         by m4/setenv.m4.
53181
53182 2008-04-03  Eric Blake  <ebb9@byu.net>
53183
53184         Ensure sane .version contents.
53185         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
53186         version string.
53187         * build-aux/git-version-gen: Improve documentation.
53188
53189         Make GNU make output nicer.
53190         * top/GNUmakefile [!_have-Makefile]: Add dependency on
53191         MAKECMDGOALS to enforce message for all command line targets.  Set
53192         srcdir for use in maint.mk.
53193
53194         Another maintainer tweak.
53195         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
53196         a target that regenerates version.
53197
53198 2008-04-03  Jim Meyering  <meyering@redhat.com>
53199
53200         vc-list-files: don't cause coreutils "make po-check" failure
53201         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
53202
53203 2008-04-03  Eric Blake  <ebb9@byu.net>
53204
53205         Allow VPATH usage of vc-list-files.
53206         * build-aux/vc-list-files (scriptversion): Add timestamp.
53207         (options): Add --help, --version, -C.
53208         (CVS): Support installed cvsu.
53209
53210 2008-04-02  Bruno Haible  <bruno@clisp.org>
53211
53212         Avoid some "statement with no effect" warnings from gcc.
53213         * tests/test-wctype.c (main): Explicitly ignore unused values.
53214         Reported by Jim Meyering.
53215
53216 2008-04-02  Jim Meyering  <meyering@redhat.com>
53217
53218         Avoid some warnings from "gcc -Wshadow".
53219         * tests/test-frexp.c (exp): Define to a different identifier.
53220         * tests/test-frexpl.c (exp): Likewise.
53221
53222 2008-04-03  Jim Meyering  <meyering@redhat.com>
53223
53224         bootstrap: remove dangling *.[ch] symlinks from lib
53225         * build-aux/bootstrap [dangling symlink removal]: Move find's
53226         -depth option to precede all others, to avoid a warning.
53227         Remove *.[ch] files too, and from "$source_base" (usually lib/).
53228
53229 2008-04-02  Bruno Haible  <bruno@clisp.org>
53230
53231         Avoid some warnings from "gcc -Wshadow".
53232         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
53233         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
53234         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
53235         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
53236         Reported by Jim Meyering.
53237
53238 2008-04-01  Bruno Haible  <bruno@clisp.org>
53239
53240         Fix test to work on IRIX 6.5 with cc.
53241         * tests/test-math.c (numeric_equal): New function.
53242         (main): Use it.
53243
53244 2008-04-01  Bruno Haible  <bruno@clisp.org>
53245
53246         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
53247
53248 2008-04-01  Bruno Haible  <bruno@clisp.org>
53249
53250         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
53251         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53252         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
53253         (Depends-on): Remove math.
53254
53255         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
53256         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53257         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
53258         (Depends-on): Remove math.
53259
53260         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
53261         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53262         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
53263         (Depends-on): Remove math.
53264         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
53265         (Depends-on): Remove math.
53266
53267         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
53268         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53269         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
53270         (Depends-on): Remove math.
53271         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
53272         (Depends-on): Remove math.
53273
53274         * tests/test-round1.c: Include nan.h.
53275         (main): Use NaNd instead of NAN.
53276         * modules/round-tests (Files): Add tests/nan.h.
53277
53278         * tests/test-trunc1.c: Include nan.h.
53279         (main): Use NaNd instead of NAN.
53280         * modules/trunc-tests (Files): Add tests/nan.h.
53281
53282         * tests/test-roundf1.c: Include nan.h.
53283         (main): Use NaNf instead of NAN.
53284         * modules/roundf-tests (Files): Add tests/nan.h.
53285
53286         * tests/test-truncf1.c: Include nan.h.
53287         (main): Use NaNf instead of NAN.
53288         * modules/truncf-tests (Files): Add tests/nan.h.
53289
53290         * tests/test-ceilf1.c: Include nan.h.
53291         (main): Use NaNf instead of NAN.
53292         * modules/ceilf-tests (Files): Add tests/nan.h.
53293
53294         * tests/test-floorf1.c: Include nan.h.
53295         (main): Use NaNf instead of NAN.
53296         * modules/floorf-tests (Files): Add tests/nan.h.
53297
53298         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
53299         (main): Use NaNf instead of NAN.
53300         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
53301
53302         * tests/test-isnand.c: Include nan.h instead of <math.h>.
53303         (main): Use NaNd instead of NAN.
53304         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
53305
53306         * tests/test-frexp.c: Include nan.h.
53307         (main): Use NaNd instead of NAN.
53308         * modules/frexp-tests (Files): Add tests/nan.h.
53309
53310         * lib/isnan.c: Don't include <math.h>.
53311         (FUNC): Don't use NAN macro.
53312         * modules/isnand-nolibm (Depends-on): Remove math.
53313         * modules/isnanf-nolibm (Depends-on): Remove math.
53314         * modules/isnanl (Depends-on): Remove math.
53315         * modules/isnanl-nolibm (Depends-on): Remove math.
53316
53317         * tests/nan.h: New file.
53318
53319 2008-04-01  Eric Blake  <ebb9@byu.net>
53320
53321         Fix typos.
53322         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
53323         values to be the right type.
53324
53325         For now, cater to gnulib strtod inaccuracies.
53326         * tests/test-strtod.c (main): Allow 1-ulp error on expected
53327         fractional results.  While not as nice from a QoI perspective, it
53328         is a quicker patch than correctly implementing decimal to binary
53329         rounding.
53330
53331 2008-03-31  Eric Blake  <ebb9@byu.net>
53332
53333         Guarantee a definition of NAN.
53334         * lib/math.in.h (NAN): Define if missing.
53335         * tests/test-math.c (main): Test it.
53336         * doc/posix-headers/math.texi (math.h): Document this.
53337         * lib/isnan.c (rpl_isnand): Use it.
53338         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
53339         * tests/test-floorf1.c (NaN): Likewise.
53340         * tests/test-frexp.c (NaN): Likewise.
53341         * tests/test-isnand.c (NaN): Likewise.
53342         * tests/test-isnanf.c (NaN): Likewise.
53343         * tests/test-round1.c (NaN): Likewise.
53344         * tests/test-roundf1.c (NaN): Likewise.
53345         * tests/test-snprintf-posix.h (NaN): Likewise.
53346         * tests/test-sprintf-posix.h (NaN): Likewise.
53347         * tests/test-trunc1.c (NaN): Likewise.
53348         * tests/test-truncf1.c (NaN): Likewise.
53349         * tests/test-vasnprintf-posix.c (NaN): Likewise.
53350         * tests/test-vasprintf-posix.c (NaN): Likewise.
53351         * modules/isnand-nolibm (Depends-on): Add math.
53352         * modules/isnanf-nolibm (Depends-on): Likewise.
53353         * modules/isnanl (Depends-on): Likewise.
53354         * modules/isnanl-nolibm (Depends-on): Likewise.
53355         * modules/snprintf-posix-tests (Depends-on): Likewise.
53356         * modules/sprintf-posix-tests (Depends-on): Likewise.
53357         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
53358         * modules/vsprintf-posix-tests (Depends-on): Likewise.
53359         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
53360         * modules/vasprintf-posix-tests (Depends-on): Likewise.
53361
53362 2008-03-31  Bruno Haible  <bruno@clisp.org>
53363
53364         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
53365         * doc/posix-functions/strtod.texi: Likewise.
53366
53367 2008-03-31  Bruno Haible  <bruno@clisp.org>
53368
53369         * tests/test-strtod.c (main): Don't use C99 syntax.
53370
53371 2008-03-31  Bruno Haible  <bruno@clisp.org>
53372
53373         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
53374         Reported by Eric Blake.
53375
53376 2008-03-31  Jim Meyering  <meyering@redhat.com>
53377
53378         Don't compare actual signbit return values.
53379         * tests/test-strtod.c (main): Rather, compare only their
53380         zero/non-zero nature.
53381
53382 2008-03-31  Eric Blake  <ebb9@byu.net>
53383
53384         More strtod documentation.
53385         * doc/posix-functions/strtod.texi (strtod): Interpret more test
53386         failures as distinct bugs.
53387
53388 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53389
53390         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
53391         Problem reported by Erik Benada in
53392         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
53393
53394 2008-03-30  Bruno Haible  <bruno@clisp.org>
53395
53396         * tests/test-strtod.c: Add comments about which assertion fails on which
53397         platform.
53398         * doc/posix-functions/strtod.texi: Add info about many more platforms.
53399
53400 2008-03-30  Eric Blake  <ebb9@byu.net>
53401
53402         Test signbit behavior on zeros.
53403         * tests/test-signbit.c (test_signbitf): Add tests for zero.
53404         (test_signbitd, test_signbitl): Likewise.
53405
53406         More strtod touchups.
53407         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
53408         sign of negative underflow, for now.  Use .5, not .1.
53409         * doc/posix-functions/strtod.texi (strtod): Mention these
53410         limitations.
53411         Reported by Jim Meyering.
53412
53413 2008-03-30  Bruno Haible  <bruno@clisp.org>
53414
53415         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
53416         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
53417
53418 2008-03-30  Bruno Haible  <bruno@clisp.org>
53419
53420         Avoid failure when attempting to return empty iconv results on some
53421         platforms.
53422         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
53423         allocation, don't report ENOMEM when the resulting string is empty.
53424
53425 2008-03-30  Bruno Haible  <bruno@clisp.org>
53426
53427         Fix buffer overrun.
53428         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
53429         Don't consider the width for tmp_length. Check count against tmp_length
53430         before doing the padding. Ensure enough allocation during padding.
53431
53432 2008-03-30  Eric Blake  <ebb9@byu.net>
53433
53434         strtod touchups.
53435         * lib/strtod.c (strtod): Avoid compiler warnings.
53436         Reported by Jim Meyering.
53437
53438 2008-03-30  Bruno Haible  <bruno@clisp.org>
53439
53440         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
53441         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
53442         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
53443         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
53444         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
53445         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
53446         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
53447         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
53448
53449         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
53450         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
53451         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
53452         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
53453         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
53454         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
53455         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
53456         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
53457
53458         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
53459         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
53460         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
53461         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
53462         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
53463         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
53464         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
53465         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
53466
53467         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
53468         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
53469
53470         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
53471         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
53472
53473         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
53474         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
53475
53476         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
53477         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
53478         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
53479
53480         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
53481         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
53482         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
53483
53484         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
53485         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
53486         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
53487
53488         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
53489         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
53490         * modules/vasprintf (Depends-on): Add EOVERFLOW.
53491
53492         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
53493         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
53494         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
53495         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
53496         (Depends-on): Add EOVERFLOW.
53497         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
53498         (Depends-on): Add EOVERFLOW.
53499         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53500         (Depends-on): Add EOVERFLOW.
53501         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53502         (Depends-on): Add EOVERFLOW.
53503         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53504         (Depends-on): Add EOVERFLOW.
53505         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53506         (Depends-on): Add EOVERFLOW.
53507         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53508         (Depends-on): Add EOVERFLOW.
53509         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53510         (Depends-on): Add EOVERFLOW.
53511
53512         * lib/sprintf.c (EOVERFLOW): Remove fallback.
53513         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
53514         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
53515
53516         * lib/snprintf.c (EOVERFLOW): Remove fallback.
53517         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
53518         * modules/snprintf (Depends-on): Add EOVERFLOW.
53519
53520         * lib/poll.c (EOVERFLOW): Remove fallback.
53521         * modules/poll (Depends-on): Add EOVERFLOW.
53522
53523         * lib/getugroups.c (EOVERFLOW): Remove fallback.
53524         * modules/getugroups (Depends-on): Add EOVERFLOW.
53525
53526         * lib/getdelim.c (EOVERFLOW): Remove fallback.
53527         * modules/getdelim (Depends-on): Add EOVERFLOW.
53528
53529         * lib/ftell.c (EOVERFLOW): Remove fallback.
53530         * modules/ftell (Depends-on): Add EOVERFLOW.
53531
53532         * lib/fprintf.c (EOVERFLOW): Remove fallback.
53533         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
53534         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
53535
53536         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
53537
53538         * modules/EOVERFLOW-tests: New file.
53539         * tests/test-EOVERFLOW.c: New file.
53540
53541         * modules/EOVERFLOW: New file.
53542         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
53543
53544 2008-03-30  Bruno Haible  <bruno@clisp.org>
53545
53546         Fix bug introduced on 2007-06-10.
53547         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
53548         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
53549
53550 2008-03-30  Bruno Haible  <bruno@clisp.org>
53551
53552         Improve freadseek's efficiency after ungetc.
53553         * lib/freadseek.c: Include freadahead.h.
53554         (freadptrinc): New function, extracted from freadseek.
53555         (freadseek): Use it in a loop. Use freadahead to determine the number
53556         of loop iterations.
53557         * modules/freadseek (Depends-on): Add freadahead.
53558         (configure.ac): Require AC_C_INLINE.
53559
53560 2008-03-30  Bruno Haible  <bruno@clisp.org>
53561
53562         * lib/freadseek.c (freadseek): Don't ignore the return value of
53563         freadptr.
53564
53565 2008-03-29  Eric Blake  <ebb9@byu.net>
53566
53567         Add hex float support.
53568         * modules/strtod (Depends-on): Add c-ctype.
53569         (Link): Mention POW_LIB.
53570         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
53571         whitespace between 'e' and exponent.
53572         * tests/test-strtod.c (main): Enable hex float tests.
53573         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
53574         now provides.
53575
53576         Document various strtod bugs, with some fixes.
53577         * doc/posix-functions/strtod.texi (strtod): Document bugs with
53578         "-0x", "inf", "nan", and hex constants.
53579         * doc/posix-functions/atof.texi (atof): Likewise.
53580         * modules/stdlib (Makefile.am): Support strtod.
53581         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
53582         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
53583         detect additional strtod bugs.
53584         * lib/stdlib.in.h (rpl_strtod): Add declarations.
53585         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
53586         bool where appropriate.  Parse 'inf' and 'nan'.
53587         * tests/test-strtod.c: New file.
53588         * modules/strtod (Depends-on): Add stdbool, stdlib.
53589         (configure.ac): Turn on module indicator.
53590         * modules/strtod-tests: New module.
53591
53592 2008-03-29  Eric Blake  <ebb9@byu.net>
53593
53594         Fix ftell on mingw.
53595         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
53596         * modules/ftell-tests (Depends-on): Add binary-io.
53597         * modules/ftello-tests (Depends-on): Likewise.
53598         * tests/test-ftell.c (main): Enhance test to cover behavior after
53599         ungetc.  Enforce binary mode.
53600         * tests/test-ftello.c (main): Likewise.
53601
53602         Pass test-freadseek on cygwin.
53603         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
53604         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
53605         ungetc buffer.
53606
53607         * tests/test-fflush2.c (main): Fix typo.
53608
53609 2008-03-29  Bruno Haible  <bruno@clisp.org>
53610
53611         * tests/test-fflush2.c (main): Temporarily disable the contents of
53612         this test.
53613         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
53614         Reported by Eric Blake.
53615
53616 2008-03-28  Simon Josefsson  <simon@josefsson.org>
53617
53618         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
53619         (GC_SHA224_DIGEST_SIZE): Add.
53620
53621         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
53622         (gc_hash_digest_length): Likewise.
53623         (gc_hash_buffer): Likewise.
53624
53625 2008-03-25  Bruno Haible  <bruno@clisp.org>
53626
53627         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
53628         detail which gettext release to use.
53629         Reported by Simon Josefsson.
53630
53631 2008-03-26  Jim Meyering  <meyering@redhat.com>
53632
53633         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
53634         * modules/gnumakefile (clean-GNUmakefile): Also, use
53635         test ... && ... || : syntax rather than if-then ... fi.
53636
53637         gnumakefile: Don't double-quote-expand $(VPATH) value.
53638         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
53639
53640 2008-03-24  Eric Blake  <ebb9@byu.net>
53641
53642         Alter GNUmakefile to install into top directory.
53643         * modules/maintainer-makefile: Split, and add dependency...
53644         * modules/gnumakefile: to this new module.
53645         * build-aux/GNUmakefile: Move...
53646         * top/GNUmakefile: ...here.
53647         * build-aux/maint.mk: Move...
53648         * top/maint.mk: ...here.
53649         * MODULES.html.sh (Support for maintaining...): Document new
53650         module.
53651
53652 2008-03-23  Bruno Haible  <bruno@clisp.org>
53653
53654         * gnulib-tool: New options --vc-files, --no-vc-files.
53655         (func_usage): Document them.
53656         (vc_files): New variable.
53657         (func_import): Consider vc_files.
53658         (func_create_testdir): Set vc_files to empty.
53659         Suggested by Jim Meyering and Karl Berry.
53660
53661 2008-03-23  Bruno Haible  <bruno@clisp.org>
53662
53663         Fix regex compilation error on HP-UX 11.
53664         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
53665         * modules/regex (Files): Add m4/mbstate_t.m4.
53666         Reported by Ton Voon <ton.voon@altinity.com>.
53667
53668 2008-03-23  Bruno Haible  <bruno@clisp.org>
53669
53670         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
53671
53672 2008-03-23  Eric Blake  <ebb9@byu.net>
53673             Bruno Haible  <bruno@clisp.org>
53674
53675         Install files from top/ in the destination directory.
53676         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53677         augmentation also for the files from top/.
53678         (func_import, func_create_testdir): Rewrite file names:
53679         top/filename -> filename.
53680
53681 2008-03-23  Bruno Haible  <bruno@clisp.org>
53682
53683         Tweak "gnulib --version" output.
53684         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
53685
53686 2008-03-23  Bruno Haible  <bruno@clisp.org>
53687
53688         Tweak "gnulib --version" output.
53689         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
53690         rather than contents of ChangeLog, when possible.
53691
53692 2008-03-21  Eric Blake  <ebb9@byu.net>
53693
53694         More --version tweaks.
53695         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
53696         date of last ChangeLog entry.
53697
53698 2008-03-21  Jim Meyering  <meyering@redhat.com>
53699
53700         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
53701
53702 2008-03-20  Eric Blake  <ebb9@byu.net>
53703
53704         VPATH fix.
53705         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
53706
53707 2008-03-20  Simon Josefsson  <simon@josefsson.org>
53708
53709         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
53710         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
53711
53712 2008-03-20  Eric Blake  <ebb9@byu.net>
53713
53714         Sync GNUmakefile with coreutils.
53715         * build-aux/GNUmakefile (have-Makefile): Rename...
53716         (_have-Makefile): ...to this, for namespace consideration.
53717         (GNUmakefile.cfg): Include, if present.
53718         (_autoreconf): Define a default.
53719         (_is-dist-target): New rule for rebuilds to pick up intra-release
53720         version.
53721         (maint-cfg.mk): Rename...
53722         (cfg.mk): ...to this.
53723
53724 2008-03-18  Jim Meyering  <meyering@redhat.com>
53725
53726         New script and module: mktempd
53727         * MODULES.html.sh (maint+release support): Add mktempd.
53728         * build-aux/mktempd: New file.
53729         * modules/mktempd: New file.
53730
53731 2008-03-15  Jim Meyering  <meyering@redhat.com>
53732
53733         Undo last change.
53734         * lib/sha1.c, lib/md5.c: 63 != ~63.
53735         Reported by Andreas Schwab.
53736
53737         sha1.c, md5.c: Hoist a redundant expression.
53738         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
53739         "ctx->buflen" only once, before calling *_process_block.
53740         * lib/md5.c (md5_process_bytes): Likewise.
53741
53742 2008-03-14  Eric Blake  <ebb9@byu.net>
53743
53744         Bump copyright year in files generated by gnulib-tool.
53745         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
53746         gnulib-tool, rather than hard-coding it.
53747
53748         Fix 'gnulib-tool --version' output to work with git.
53749         * gnulib-tool (func_gnulib_dir): New function, extracted from...
53750         (startup): ...here.
53751         (func_version): Use it to invoke git-version-gen, rather than
53752         relying on CVS keyword expansion.  Modernize wording.
53753         (cvsdatestamp, last_checkin_date, version): Kill unused
53754         variables.
53755
53756 2008-03-12  Jim Meyering  <meyering@redhat.com>
53757
53758         Recognize optional cast of the argument to free.
53759         * build-aux/useless-if-before-free: Update regexps.
53760
53761         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
53762
53763 2008-03-11  Bruno Haible  <bruno@clisp.org>
53764
53765         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
53766         by a single package.
53767         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
53768         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
53769         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
53770         Reported by Sam Steingold <sds@gnu.org>.
53771
53772 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53773
53774         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
53775         repositories.
53776
53777 2008-03-11  Bruno Haible  <bruno@clisp.org>
53778
53779         Avoid conflicts between local macro definitions.
53780         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53781         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
53782
53783 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
53784             Bruno Haible  <bruno@clisp.org>
53785
53786         Make va_copy work with some version of xlc on AIX 5.1.
53787         * lib/stdarg.in.h: New file.
53788         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
53789         On AIX, use a <stdarg.h> file substitute.
53790         * modules/stdarg (Files): Add lib/stdarg.in.h.
53791         (Depends-on): Add include_next.
53792         (Makefile.am): Build a stdarg.h substitute if requested.
53793         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
53794
53795 2008-03-10  Bruno Haible  <bruno@clisp.org>
53796
53797         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
53798         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53799         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53800
53801 2008-03-10  Bruno Haible  <bruno@clisp.org>
53802
53803         * modules/stdlib (Depends-on): Add include_next, remove
53804         absolute-header.
53805
53806 2008-03-09  Bruno Haible  <bruno@clisp.org>
53807
53808         * lib/freadahead.h (freadahead): Document more precisely.
53809         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
53810         the sum of both buffer sizes.
53811         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
53812         * NEWS: Document the change.
53813
53814 2008-03-09  Bruno Haible  <bruno@clisp.org>
53815
53816         Extend freadptr to return also the buffer size.
53817         * lib/freadptr.h (freadptr): Add sizep argument.
53818         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
53819         (freadptr): Add sizep argument. Determine buffer size like freadahead
53820         does.
53821         * tests/test-freadptr.c: Don't include freadahead.h.
53822         (main): Adapt for new calling convention of freadptr.
53823         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
53824         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
53825         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
53826         tests/test-freadptr2.sh.
53827         (Depends): Remove freadahead.
53828         (TESTS): Add test-freadptr2.sh.
53829         (check_PROGRAMS): Add test-freadptr2.
53830
53831 2008-03-09  Bruno Haible  <bruno@clisp.org>
53832
53833         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
53834         Report and solution by Simon Josefsson.
53835
53836 2008-03-06  Bruno Haible  <bruno@clisp.org>
53837
53838         Make fflush after ungetc work on BSD platforms.
53839         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
53840         * tests/test-fflush2.c: New file.
53841         * tests/test-fflush2.sh: New file.
53842         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
53843         tests/test-fflush2.c.
53844         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
53845         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
53846
53847 2008-03-06  Eric Blake  <ebb9@byu.net>
53848
53849         Likewise for ftello.
53850         * modules/ftello (Dependencies): Add extensions.
53851         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
53852
53853 2008-03-06  Bruno Haible  <bruno@clisp.org>
53854
53855         * modules/fseeko (Dependencies): Add extensions.
53856         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
53857         Needed on glibc systems.
53858
53859 2008-03-06  Bruno Haible  <bruno@clisp.org>
53860
53861         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
53862         email address.
53863         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53864
53865 2008-03-06  Bruno Haible  <bruno@clisp.org>
53866
53867         * users.txt: Add libgnupdf.
53868
53869 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53870
53871         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
53872         (Header File Substitutes, Function Substitutes,
53873         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
53874         (Build robot for gnulib): Fix typo.
53875
53876 2008-03-06  Bruno Haible  <bruno@clisp.org>
53877
53878         * doc/gnulib-tool.texi (VCS Issues): Small updates.
53879         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53880
53881 2008-03-06  Bruno Haible  <bruno@clisp.org>
53882
53883         * doc/func.texi: New file, extracted from doc/gnulib.texi.
53884         * doc/gnulib.texi: Include it.
53885
53886 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53887
53888         * modules/func (License): Change license to unlimited; there was
53889         no LGPL parts in the module anyway.
53890
53891 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53892
53893         * modules/__func__: Renamed to modules/func.
53894         * modules/__func__-tests: Renamed to modules/func-tests.
53895         * tests/test-__func__.c: Renamed to tests/test-func.c.
53896         * m4/__func__.m4: Renamed to m4/func.m4.
53897         * doc/gnulib.texi (__func__): Section renamed to func.
53898         Suggested by Eric Blake <ebb9@byu.net>.
53899
53900 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53901
53902         * doc/gnulib.texi (__func__): Use C99 terminology when talking
53903         about __func__.  Make example self-contained.  Suggested by Eric
53904         Blake <ebb9@byu.net>.
53905
53906         * tests/test-__func__.c (main): Avoid extraneous () around __func.
53907         Suggested by Eric Blake <ebb9@byu.net>.
53908
53909 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53910
53911         * modules/__func__: New file.
53912         * modules/__func__-tests: New file.
53913         * tests/test-__func__.c: New file.
53914         * m4/__func__.m4: New file.
53915         * doc/gnulib.texi (__func__): Document __func__ module.
53916
53917 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53918
53919         * modules/byteswap (License): Re-license as LGPLv2+.
53920
53921 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53922
53923         * doc/Makefile: Add pdf target.
53924
53925 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53926
53927         * modules/inline (License): Use 'unlimited', since there are only
53928         *.m4 files in this module.
53929
53930 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53931             Bruno Haible  <bruno@clisp.org>
53932
53933         Add support for HP C 7.1 on OpenVMS 8.3.
53934         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
53935
53936 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53937
53938         Update VMS specifics.
53939         * lib/getopt.c [VMS]: Remove include of unixlib.h.
53940
53941 2008-03-02  Jim Meyering  <meyering@redhat.com>
53942
53943         Remove the last dependency on the "free" module.
53944         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
53945         Reported by Bob Proulx.
53946
53947         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
53948
53949         Remove useless "if" tests before free.  Deprecate "free" module.
53950         * doc/posix-functions/free.texi: Mention that this
53951         module is no longer useful.
53952         * modules/free (Notice): Say this module is obsolete.
53953         * modules/readutmp (Depends-on): Remove free.
53954         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
53955         * lib/putenv.c (putenv): Likewise.
53956         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
53957         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
53958         * tests/test-c-strcasestr.c (main): Likewise.
53959         * tests/test-c-strstr.c (main): Likewise.
53960         * tests/test-mbscasestr1.c (main): Likewise.
53961         * tests/test-mbscasestr2.c (main): Likewise.
53962         * tests/test-mbsstr1.c (main): Likewise.
53963         * tests/test-mbsstr2.c (main): Likewise.
53964         * tests/test-memmem.c (main): Likewise.
53965         * tests/test-strcasestr.c (main): Likewise.
53966         * tests/test-striconv.c (main): Likewise.
53967         * tests/test-striconveh.c (main): Likewise.
53968         * tests/test-striconveha.c (main): Likewise.
53969         * tests/test-strstr.c (main): Likewise.
53970
53971         * build-aux/git-version-gen: Adjust a comment and the Usage string.
53972
53973         bootstrap: sync from coreutils again
53974         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
53975
53976 2008-03-01  Jim Meyering  <meyering@redhat.com>
53977
53978         bootstrap: sync from coreutils
53979         * build-aux/bootstrap (update_po_files): Copy a .po file into place
53980         also when the target doesn't exist.
53981
53982 2008-03-01  Eric Blake  <ebb9@byu.net>
53983
53984         Fix bugs in last patch.
53985         * lib/memchr2.c (memchr2): Fix typo.
53986         * tests/test-memchr2.c: Test previous bug, and don't use GNU
53987         extension.
53988         Reported by Bruce Korb.
53989
53990         New module 'memchr2'.
53991         * modules/memchr2: New file.
53992         * modules/memchr2-tests: Likewise.
53993         * lib/memchr2.h: Likewise.
53994         * lib/memchr2.c: Likewise, based on memchr.c.
53995         * tests/test-memchr2.c: New test.
53996         * MODULES.html.sh (String handling): Add memchr2.
53997
53998 2008-02-29  Bruno Haible  <bruno@clisp.org>
53999
54000         * modules/freadseek-tests: New file.
54001         * tests/test-freadseek.sh: New file.
54002         * tests/test-freadseek.c: New file.
54003
54004         New module 'freadseek'.
54005         * modules/freadseek: New file.
54006         * lib/freadseek.h: New file.
54007         * lib/freadseek.c: New file.
54008         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
54009
54010 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54011
54012         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
54013         wydawca.
54014
54015         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
54016         program_invocation_name and program_invocation_short_name are
54017         present.
54018
54019 2008-02-28  Bruno Haible  <bruno@clisp.org>
54020
54021         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
54022         * tests/test-freadptr.sh: Also test non-seekable stdin.
54023
54024 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
54025
54026         * build-aux/bootstrap (source_base, m4_base)
54027         (doc_base, tests_base): New variables.
54028         (gnulib_tool_options): Do not hardcode base directories, use
54029         the above variables instead.
54030
54031 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
54032
54033         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
54034
54035 2008-02-28  Bruno Haible  <bruno@clisp.org>
54036
54037         * modules/freadptr-tests: New file.
54038         * tests/test-freadptr.sh: New file.
54039         * tests/test-freadptr.c: New file.
54040
54041         New module 'freadptr'.
54042         * modules/freadptr: New file.
54043         * lib/freadptr.h: New file.
54044         * lib/freadptr.c: New file.
54045         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
54046
54047 2008-02-26  Karl Berry  <karl@freefriends.org>
54048
54049         Sync from Libtool:
54050         * libltdl/argz.c (argz_add, argz_count): New functions.
54051         * libltdl/argz.in.h: Declare them.
54052         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
54053
54054 2008-02-22  Bruno Haible  <bruno@clisp.org>
54055
54056         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
54057         is a pointer type.  Needed for HP-UX 10.
54058         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
54059         * doc/posix-functions/gmtime_r.texi: Likewise.
54060         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54061
54062 2008-02-24  Bruno Haible  <bruno@clisp.org>
54063
54064         * modules/environ-tests: New file.
54065         * tests/test-environ.c: New file.
54066
54067         New module 'environ'.
54068         * modules/environ: New file.
54069         * lib/unistd.in.h (environ): New declaration.
54070         * m4/environ.m4: New file.
54071         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
54072         after use.
54073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
54074         HAVE_DECL_ENVIRON.
54075         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
54076         HAVE_DECL_ENVIRON.
54077         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
54078         wrong claim that 'environ' is missing on some systems.
54079         * modules/execute (Depends-on): Add environ.
54080         * lib/execute.c (environ): Remove fallback declaration.
54081         * modules/pipe (Depends-on): Add environ.
54082         * lib/pipe.c (environ): Remove fallback declaration.
54083         * modules/setenv (Depends-on): Add environ.
54084         * lib/setenv.c (environ): Remove fallback declaration.
54085         * modules/unsetenv (Depends-on): Add environ.
54086         * lib/unsetenv.c (environ): Remove fallback declaration.
54087         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
54088         m4/environ.m4.
54089         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
54090         (gl_PREREQ_UNSETENV): Likewise.
54091
54092 2008-02-24  Bruno Haible  <bruno@clisp.org>
54093
54094         * doc/posix-functions/environ.texi: Document the MacOS X problem.
54095
54096 2008-02-20  Bob Proulx  <bob@proulx.com>
54097
54098         Enable use of older two part flavor 'git describe'.
54099         * build-aux/git-version-gen: If using the older two part flavor of
54100         git version then recreate the third part now present in the
54101         newer three part flavor of git describe.
54102
54103 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
54104
54105         * lib/fts.c (fts_build): Typo correction to comment.
54106
54107 2008-02-17  Bruno Haible  <bruno@clisp.org>
54108
54109         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
54110         generating no-op conflicts.
54111
54112 2008-02-17  Bruno Haible  <bruno@clisp.org>
54113
54114         Speed up by 10%.
54115         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
54116         result_entries, rather than an index-based loop.
54117
54118 2008-02-17  Bruno Haible  <bruno@clisp.org>
54119
54120         Speed up by 25%.
54121         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
54122         'hashcode_cached'.
54123         (entry_create): New function.
54124         (entry_hashcode): Use the cached hashcode if possible.
54125         (read_changelog_file, try_split_merged_entry): Use entry_create.
54126
54127 2008-02-17  Bruno Haible  <bruno@clisp.org>
54128
54129         Speed up from O(n^2) to O(n) for long ChangeLog files.
54130         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
54131         (read_changelog_file): Change implementation of entries_reversed list
54132         to rbtreehash.
54133         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
54134
54135 2008-02-17  Bruno Haible  <bruno@clisp.org>
54136
54137         New option --split-merged-entry.
54138         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
54139         (find_paragraph_end, try_split_merged_entry): New functions.
54140         (long_options): Add option --split-merged-entry.
54141         (usage): Document option --split-merged-entry.
54142         (main): Implement option --split-merged-entry.
54143         Reported by Eric Blake.
54144
54145 2008-02-17  Bruno Haible  <bruno@clisp.org>
54146
54147         * lib/git-merge-changelog.c: Include c-strstr.h.
54148         (main): Support the "git pull --rebase" situation.
54149         * modules/git-merge-changelog (Depends-on): Add c-strstr.
54150         Reported by Eric Blake.
54151
54152 2008-02-16  Eric Blake  <ebb9@byu.net>
54153
54154         Avoid doubling \ in common case of "c-maybe" quoting style.
54155         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
54156         eliding outer quotes.
54157         * lib/quotearg.h: Document this.
54158         * tests/test-quotearg.c (result_strings, inputs, results_g)
54159         (flag_results, locale_results): Test it by adding a new string to
54160         each test group.
54161         (compare_strings): Test new string.
54162
54163 2008-02-13  Eric Blake  <ebb9@byu.net>
54164
54165         Avoid trigraph quoting in default output.
54166         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
54167         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
54168         unless explicitly requested.
54169         * tests/test-quotearg.c (flag_results, main): Add additional tests.
54170
54171 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
54172
54173         Don't rely on signed integer overflowing to negative value.
54174         * lib/getugroups.c (getugroups): Include <limits.h>.
54175         Instead, compare against INT_MAX, and increment only if the test passes.
54176
54177 2008-02-13  Jim Meyering  <meyering@redhat.com>
54178         and Eric Blake  <ebb9@byu.net>
54179
54180         Avoid shadowing warning and compile errors on Linux.
54181         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
54182         forwarding macros on Linux.
54183         (dcgettext): Define a stub, for Linux.
54184         (results_g, main): Avoid warnings.
54185
54186 2008-02-12  Eric Blake  <ebb9@byu.net>
54187
54188         Silence warning in last patch.
54189         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
54190
54191         Quotearg part 4: add tests, fix c-maybe colon quoting.
54192         * lib/quotearg.h: Improve documentation.
54193         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
54194         escapes when adding outer quotes.  When quoting trigraphs, use
54195         valid C notation.  When quoting NUL, omit extra characters if next
54196         character is not digit.  Alter prototype.
54197         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
54198         callers.
54199         * modules/quotearg-tests: New module.
54200         * tests/test-quotearg.c: New test.
54201
54202 2008-02-07  Eric Blake  <ebb9@byu.net>
54203
54204         Quotearg part 3: add flag to control outer quote elision.
54205         * lib/quotearg.h (c_maybe_quoting_style): New style.
54206         (enum quoting_flags): Better documentation of flags.
54207         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
54208         c-maybe style.
54209         (quotearg_buffer_restyled): Handle new flag to elide outer
54210         quotes.
54211
54212         Quotearg part 2: add flag that can control NUL elision.
54213         * lib/quotearg.h (set_quoting_flags): New prototype.
54214         * lib/quotearg.c (struct quoting_options): Add flag field.
54215         (set_quoting_flags): New function.
54216         (quotearg_buffer_restyled): Add flags parameter.
54217         (quotearg_alloc_mem): Set the flag if length cannot be returned.
54218         (quotearg_n_options): Set the flag, since length cannot be
54219         returned.
54220         (quoting_options_from_style): Default flags correctly.
54221
54222         Quotearg part 1: more wrappers, restore quotearg_char state.
54223         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
54224         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
54225         (quotearg_colon_mem): New wrappers.
54226         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
54227         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
54228         functions.
54229         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
54230         (quotearg_colon_mem): New functions.
54231
54232 2008-02-11  Bruno Haible  <bruno@clisp.org>
54233
54234         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
54235         library in the current directory: it does not work with parallel make.
54236         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54237
54238 2008-02-11  Bruno Haible  <bruno@clisp.org>
54239
54240         * .gitattributes: New file.
54241
54242 2008-02-11  Jim Meyering  <meyering@redhat.com>
54243
54244         useless-if-before-free: Fix reversed exit values.
54245         * build-aux/useless-if-before-free: Use correct values
54246         for EXIT_MATCH and EXIT_NO_MATCH.
54247
54248         * build-aux/useless-if-before-free: Close stdout carefully.
54249
54250 2008-02-10  Bruno Haible  <bruno@clisp.org>
54251
54252         New module 'git-merge-changelog'.
54253         * modules/git-merge-changelog: New file.
54254         * lib/git-merge-changelog.c: New file.
54255
54256 2008-02-10  Jim Meyering  <meyering@redhat.com>
54257
54258         useless-if-before-free: New option: --list (-l).
54259
54260         useless-if-before-free: Don't exit immediately upon open failure.
54261         * build-aux/useless-if-before-free: Exit 2 for errors.
54262         Upon failure to open a file, don't exit immediately.
54263         Rather, just warn and continue with any remaining files.
54264
54265 2008-02-10  Bruno Haible  <bruno@clisp.org>
54266
54267         New abstract list operation 'node_set_value'.
54268         * lib/gl_list.h (gl_list_node_set_value): New function.
54269         (struct gl_list_implementation): New field node_set_value.
54270         * lib/gl_list.c (gl_list_node_set_value): New function.
54271         * lib/gl_array_list.c (gl_array_node_set_value): New function.
54272         (gl_array_list_implementation): Update.
54273         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
54274         (gl_carray_list_implementation): Update.
54275         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
54276         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54277         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54278         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
54279         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54280         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54281         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54282         Update.
54283         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54284         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
54285         (gl_sublist_list_implementation): Update.
54286
54287 2008-02-10  Bruno Haible  <bruno@clisp.org>
54288
54289         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
54290         Needed when ELEMENT is #defined to 'some_type *'.
54291
54292 2008-02-10  Jim Meyering  <meyering@redhat.com>
54293
54294         New script and module: useless-if-before-free
54295         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
54296         * build-aux/useless-if-before-free: New file.
54297         * modules/useless-if-before-free: New file.
54298
54299         * build-aux/gitlog-to-changelog: Use committer date, not author date.
54300
54301         xstrtol_error: Fix typo.
54302         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
54303         s/exit_failure/exit_status/.
54304
54305 2008-02-09  Jim Meyering  <meyering@redhat.com>
54306
54307         New script and module: gitlog-to-changelog
54308         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
54309         * modules/gitlog-to-changelog: New file.
54310         * build-aux/gitlog-to-changelog: New file.
54311
54312 2008-02-08  Jim Meyering  <meyering@redhat.com>
54313
54314         Avoid two "parameter unused" warnings.
54315         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
54316         Mark "st" as used.
54317
54318         Use "git COMMAND", not "git-COMMAND".
54319         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
54320         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
54321         * build-aux/git-version-gen: Use "git status", not "git-status".
54322
54323 2008-02-07  Bruno Haible  <bruno@clisp.org>
54324
54325         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
54326         Avoids a crash on Windows Vista.
54327         Reported by Adam Strzelecki <ono@java.pl> via
54328         Simon Josefsson <simon@josefsson.org>.
54329
54330 2008-02-06  Bruno Haible  <bruno@clisp.org>
54331
54332         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
54333         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
54334         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
54335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
54336         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54337         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54338         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
54339         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
54340         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54341         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54342         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54343         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54344         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54345         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54346         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54347         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
54348         left-adjust flag.
54349         * tests/test-snprintf-posix.h (test_function): Likewise.
54350         * tests/test-sprintf-posix.h (test_function): Likewise.
54351         * tests/test-vasprintf-posix.c (test_function): Likewise.
54352         * doc/posix-functions/fprintf.texi: Update.
54353         * doc/posix-functions/printf.texi: Update.
54354         * doc/posix-functions/snprintf.texi: Update.
54355         * doc/posix-functions/sprintf.texi: Update.
54356         * doc/posix-functions/vfprintf.texi: Update.
54357         * doc/posix-functions/vprintf.texi: Update.
54358         * doc/posix-functions/vsnprintf.texi: Update.
54359         * doc/posix-functions/vsprintf.texi: Update.
54360         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54361
54362 2008-02-06  Bruno Haible  <bruno@clisp.org>
54363
54364         Fix bug introduced on 2008-01-26.
54365         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
54366
54367 2008-02-06  Bruno Haible  <bruno@clisp.org>
54368
54369         Fix bug introduced on 2007-06-10.
54370         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
54371         !NEED_PRINTF_FLAG_ZERO.
54372
54373 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
54374
54375         getloadavg: use libperfstat on AIX5
54376         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
54377
54378 2008-02-03  Bruno Haible  <bruno@clisp.org>
54379
54380         * lib/diffseq.h: Add comments about required #includes.
54381         Reported by Michael Biggs <gnulib@doubleplum.net>.
54382
54383 2008-02-01  Bruno Haible  <bruno@clisp.org>
54384
54385         * users.txt: Add gnuit.
54386
54387 2008-01-31  Bruno Haible  <bruno@clisp.org>
54388
54389         * lib/md4.c (set_uint32): Mark as inline.
54390         * lib/md5.c (set_uint32): Likewise.
54391         * lib/sha1.c (set_uint32): Likewise.
54392         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
54393         * m4/md5.m4 (gl_MD5): Likewise.
54394         * m4/sha1.m4 (gl_SHA1): Likewise.
54395
54396 2008-01-31  Jim Meyering  <meyering@redhat.com>
54397
54398         Use "sizeof VAR", rather than a literal "4".
54399         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
54400         * lib/md4.c (md4_read_ctx): Likewise.
54401         * lib/sha1.c (sha1_read_ctx): Likewise.
54402
54403 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54404
54405         * tests/test-sha1.c: New file, based on test-md5.c.
54406
54407         * modules/crypto/sha1-tests: New file.
54408
54409 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54410
54411         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
54412
54413 2008-01-31  Jim Meyering  <meyering@redhat.com>
54414
54415         Prefer "sizeof v" over the equivalent "4".
54416         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
54417         * lib/md5.c (set_uint32): Likewise.
54418         * lib/sha1.c (set_uint32): Likewise.
54419
54420 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54421
54422         * lib/sha1.c (set_uint32): Mark function as static.
54423
54424 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54425
54426         md2: clarify comments to say that alignment is not required.
54427         * lib/md2.h: Remove warning about alignment in comment.
54428         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
54429         never been required.
54430
54431 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54432
54433         md4: adapt alignment constraint fix from sha1.
54434         * lib/md4.c (set_uint32): New function, from sha1.c
54435         (md4_read_ctx): Use it.
54436         (md4_finish_ctx): Doc fix.
54437         * lib/md4.h: Doc fix.
54438
54439 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54440
54441         md5: adapt alignment constraint fix from sha1.
54442         * lib/md5.c (set_uint32): New function, from sha1.c
54443         (md5_read_ctx): Use it.
54444         (md5_finish_ctx): Doc fix.
54445         * lib/md5.h: Doc fix.
54446
54447 2008-01-30  Peter Palfrader  <weasel@debian.org>
54448
54449         sha1: remove the result buffer alignment constraint
54450         * lib/sha1.c (set_uint32): New function.
54451         (sha1_read_ctx): Rewrite to remove the result buffer alignment
54452         constraint.
54453         (sha1_finish_ctx): Remove comment warning about alignment constraint.
54454         * lib/sha1.h: Likewise.
54455
54456 2008-01-30  Andreas Schwab  <schwab@suse.de>
54457             Bruno Haible  <bruno@clisp.org>
54458
54459         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
54460         correct definition of LDBL_MIN_EXP.
54461
54462 2008-01-30  Karl Berry  <karl@gnu.org>
54463
54464         * config/srclist-update: try to preserve x bit on updates.
54465         * config/srclistvars.sh: update for karl.
54466
54467 2008-01-29  Jim Meyering  <meyering@redhat.com>
54468
54469         vasnprintf.c: Avoid warning about unused label
54470         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
54471         "overflow" label definition and associated code with the
54472         same cpp condition that guards the sole use of that label.
54473
54474 2008-01-26  Bruno Haible  <bruno@clisp.org>
54475
54476         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
54477         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
54478         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
54479         * lib/isnanl-nolibm.h (isnanl): Likewise.
54480         Reported by Paul Eggert <eggert@cs.ucla.edu>.
54481
54482 2008-01-26  Bruno Haible  <bruno@clisp.org>
54483
54484         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
54485         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
54486
54487 2008-01-26  Bruno Haible  <bruno@clisp.org>
54488
54489         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
54490         GCC >= 4.0 built-in.
54491         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
54492
54493 2008-01-26  Bruno Haible  <bruno@clisp.org>
54494
54495         Rename isnan, applicable to 'double' only, to isnand.
54496         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
54497         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
54498         (configure.ac): Update.
54499         (Include): Replace "isnan.h" with "isnand.h".
54500         * m4/isnand.m4: Renamed from m4/isnan.m4.
54501         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
54502         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
54503         instead of isnan.c.
54504         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
54505         instead of HAVE_ISNAN_IN_LIBC.
54506         (isnand): Renamed from isnan.
54507         * lib/isnand.c: New file.
54508         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
54509         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
54510         (Makefile.am): Update.
54511         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
54512         Include isnand.h instead of isnan.h.
54513         (main): Test isnand instead of isnan.
54514         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
54515         isnan-nolibm.
54516         * modules/frexp (Depends-on): Likewise.
54517         * modules/frexp-tests (Depends-on): Likewise.
54518         * modules/frexp-nolibm (Depends-on): Likewise.
54519         * modules/frexp-nolibm-tests (Depends-on): Likewise.
54520         * modules/isfinite (Depends-on): Likewise.
54521         * modules/round-tests (Depends-on): Likewise.
54522         * modules/signbit (Depends-on): Likewise.
54523         * modules/signbit-tests (Depends-on): Likewise.
54524         * modules/snprintf-posix (Depends-on): Likewise.
54525         * modules/sprintf-posix (Depends-on): Likewise.
54526         * modules/trunc-tests (Depends-on): Likewise.
54527         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54528         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54529         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54530         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54531         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54532         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54533         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54534         * modules/vasnprintf-posix (Depends-on): Likewise.
54535         * modules/vasprintf-posix (Depends-on): Likewise.
54536         * modules/vfprintf-posix (Depends-on): Likewise.
54537         * modules/vsnprintf-posix (Depends-on): Likewise.
54538         * modules/vsprintf-posix (Depends-on): Likewise.
54539         * lib/frexp.c: Include isnand.h instead of isnan.h.
54540         (ISNAN): Set to isnand instead of isnan.
54541         * lib/isfinite.c: Include isnand.h instead of isnan.h.
54542         (gl_isfinited): Use isnand instead of isnan.
54543         * lib/signbitd.c: Include isnand.h instead of isnan.h.
54544         (gl_signbitd): Use isnand instead of isnan.
54545         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
54546         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
54547         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
54548         (main): Use isnand instead of isnan.
54549         * tests/test-round1.c: Include isnand.h.
54550         (main): Use isnand instead of isnan.
54551         * tests/test-round2.c: Include isnand.h instead of isnan.h.
54552         (ISNAN): Set to isnand instead of isnan.
54553         * tests/test-trunc1.c: Include isnand.h.
54554         (main): Use isnand instead of isnan.
54555         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
54556         (equal): Use isnand instead of isnan.
54557         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
54558         isnand-nolibm.
54559         * NEWS: Mention the change.
54560
54561 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54562             Bruno Haible  <bruno@clisp.org>
54563
54564         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
54565         the GCC builtins for signbits are present and set
54566         REPLACE_SIGNBIT_USING_GCC if so.
54567         * lib/math.in.h (signbit): Define using GCC builtins if
54568         REPLACE_SIGNBIT_USING_GCC is set.
54569         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
54570         REPLACE_SIGNBIT_USING_GCC.
54571         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
54572
54573 2008-01-25  Jim Meyering  <meyering@redhat.com>
54574
54575         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
54576         * lib/poll.c: Include <config.h>, not "config.h".
54577         * tests/test-getaddrinfo.c: Likewise.
54578
54579 2008-01-25  Simon Josefsson  <simon@josefsson.org>
54580
54581         * modules/sockets-tests: New file.
54582
54583 2008-01-24  Simon Josefsson  <simon@josefsson.org>
54584
54585         * modules/sockets: New module, can be used to call WSA_Startup and
54586         WSA_Cleanup when needed.
54587
54588         * lib/sockets.h, lib/sockets.c: New files.
54589
54590         * m4/sockets.m4: New file.
54591
54592         * tests/test-sockets.c: New file.
54593
54594 2008-01-19  Bruno Haible  <bruno@clisp.org>
54595
54596         * doc/posix-headers: Renamed from doc/headers.
54597         * doc/posix-functions: Renamed from doc/functions.
54598         * doc/gnulib.texi: Update.
54599
54600 2008-01-19  Bruno Haible  <bruno@clisp.org>
54601
54602         * doc/glibc-functions/strcasestr.texi: Include contents of
54603         doc/functions/strcasestr.texi, fixing the list of platforms.
54604         * doc/functions/strcasestr.texi: Remove file.
54605
54606 2008-01-19  Bruno Haible  <bruno@clisp.org>
54607
54608         * doc/glibc-functions/memmem.texi: Include contents of
54609         doc/functions/memmem.texi.
54610         * doc/functions/memmem.texi: Remove file.
54611
54612 2008-01-18  Bruno Haible  <bruno@clisp.org>
54613
54614         * doc/glibc-functions/*.texi: New files.
54615         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
54616         to use the new files.
54617
54618 2008-01-17  Bruno Haible  <bruno@clisp.org>
54619
54620         * tests/test-gethostname.c (main): Fix printf statement.
54621
54622 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54623
54624         * modules/gethostname-tests: New file.
54625
54626         * tests/test-gethostname.c: New file.
54627
54628 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54629
54630         * lib/gethostname.c: Include string.h unconditionally, strncpy is
54631         used by the UNAME case.  Reported by Bruno Haible
54632         <bruno@clisp.org>.
54633
54634 2008-01-17  Eric Blake  <ebb9@byu.net>
54635
54636         Convert c-strcasestr to be more efficient.
54637         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
54638         (Depends-on): Add c-strcase, remove malloca, strnlen.
54639         * tests/test-c-strcasestr.c (main): Enhance test.
54640         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
54641
54642 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54643
54644         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
54645         Use it in creating po/Makevars.
54646
54647 2008-01-15  Simon Josefsson  <simon@josefsson.org>
54648
54649         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
54650         Applications that requires it should initialize libgcrypt
54651         manually.
54652
54653 2008-01-16  Simon Josefsson  <simon@josefsson.org>
54654
54655         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
54656
54657 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
54658
54659         Fix problem with getdate on mingw32 reported by Simon Josefsson
54660         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
54661         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
54662         tzname", when deciding whether to declare tzname.
54663         * lib/strftime.c (tzname): Likewise.
54664
54665 2008-01-15  Bruno Haible  <bruno@clisp.org>
54666
54667         Work around a MacOS X 10.5 bug in frexpl().
54668         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
54669         * doc/functions/frexpl.texi: Document the bug.
54670         Reported by Elias Pipping <pipping@gentoo.org>.
54671
54672 2008-01-14  Eric Blake  <ebb9@byu.net>
54673
54674         Touch up previous patch.
54675         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
54676         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
54677
54678         Convert strcasestr module to use Two-Way algorithm.
54679         * modules/strcasestr-simple: New module, based on the old
54680         strcasestr, but with Two-Way rather than KMP.
54681         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
54682         * lib/string.in.h (rpl_strcasestr): Declare.
54683         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
54684         performance.
54685         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
54686         * modules/string (Makefile.am): Support strcasestr.
54687         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
54688         * modules/strcasestr-tests (Depends-on): Check for alarm.
54689         * tests/test-strcasestr.c: Augment test.
54690         * lib/str-two-way.h: Clean up stray macro.
54691         * NEWS: Document new module.
54692         * MODULES.html.sh (string handling): Likewise.
54693         * doc/functions/strcasestr.texi: New file.
54694         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
54695         here, since it is not a POSIX function.
54696
54697 2008-01-14  Colin Watson  <cjwatson@debian.org>
54698             Bruno Haible  <bruno@clisp.org>
54699
54700         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
54701         works fine; if not, set REPLACE_STRSIGNAL.
54702         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
54703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54704         REPLACE_STRSIGNAL.
54705         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
54706         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
54707         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
54708
54709 2008-01-14  Bruno Haible  <bruno@clisp.org>
54710
54711         * modules/strsignal (Include): Change to <string.h>.
54712
54713 2008-01-14  Colin Watson  <cjwatson@debian.org>
54714
54715         * modules/argp (Notice): Add a notice recommending to change
54716         XGETTEXT_OPTIONS.
54717         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
54718
54719 2008-01-13  Colin Watson  <cjwatson@debian.org>
54720
54721         * modules/strsignal-tests: New file.
54722         * tests/test-strsignal.c: New file.
54723
54724         * lib/strsignal.c: New file, from glibc with modifications.
54725         * lib/siglist.h: New file, from glibc with modifications.
54726         * lib/string.in.h (strsignal): New declaration.
54727         * m4/strsignal.m4: New file.
54728         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54729         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
54730         * modules/strsignal: New file.
54731         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
54732         HAVE_DECL_STRSIGNAL.
54733
54734 2008-01-13  Bruno Haible  <bruno@clisp.org>
54735
54736         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
54737         locale encoding is not ASCII. Needed for OpenBSD 4.0.
54738         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54739         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54740
54741 2008-01-13  Bruno Haible  <bruno@clisp.org>
54742
54743         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
54744         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
54745         * lib/argp.h (__attribute__): Likewise.
54746         * lib/c-stack.c (__attribute__): Likewise.
54747         * lib/error.h (__attribute__): Likewise.
54748         * lib/fts.c (__attribute__): Likewise.
54749         * lib/openat.h (__attribute__): Likewise.
54750         * lib/stdio.in.h (__attribute__): Likewise.
54751         * lib/string.in.h (__attribute__): Likewise.
54752         * lib/utimens.c (__attribute__): Likewise.
54753         * lib/vasnprintf.h (__attribute__): Likewise.
54754         * lib/xalloc.h (__attribute__): Likewise.
54755         * lib/xprintf.h (__attribute__): Likewise.
54756         * lib/xstrtol.h (__attribute__): Likewise.
54757         * lib/xvasprintf.h (__attribute__): Likewise.
54758
54759 2008-01-12  Bruno Haible  <bruno@clisp.org>
54760
54761         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
54762         * doc/glibc-headers/a.out.texi: New file.
54763         * doc/glibc-headers/aliases.texi: New file.
54764         * doc/glibc-headers/alloca.texi: New file.
54765         * doc/glibc-headers/ar.texi: New file.
54766         * doc/glibc-headers/argp.texi: New file.
54767         * doc/glibc-headers/argz.texi: New file.
54768         * doc/glibc-headers/byteswap.texi: New file.
54769         * doc/glibc-headers/crypt.texi: New file.
54770         * doc/glibc-headers/endian.texi: New file.
54771         * doc/glibc-headers/envz.texi: New file.
54772         * doc/glibc-headers/err.texi: New file.
54773         * doc/glibc-headers/error.texi: New file.
54774         * doc/glibc-headers/execinfo.texi: New file.
54775         * doc/glibc-headers/fpu_control.texi: New file.
54776         * doc/glibc-headers/fstab.texi: New file.
54777         * doc/glibc-headers/fts.texi: New file.
54778         * doc/glibc-headers/getopt.texi: New file.
54779         * doc/glibc-headers/ieee754.texi: New file.
54780         * doc/glibc-headers/ifaddrs.texi: New file.
54781         * doc/glibc-headers/libintl.texi: New file.
54782         * doc/glibc-headers/mcheck.texi: New file.
54783         * doc/glibc-headers/mntent.texi: New file.
54784         * doc/glibc-headers/obstack.texi: New file.
54785         * doc/glibc-headers/paths.texi: New file.
54786         * doc/glibc-headers/printf.texi: New file.
54787         * doc/glibc-headers/pty.texi: New file.
54788         * doc/glibc-headers/resolv.texi: New file.
54789         * doc/glibc-headers/shadow.texi: New file.
54790         * doc/glibc-headers/sysexits.texi: New file.
54791         * doc/glibc-headers/ttyent.texi: New file.
54792
54793 2008-01-12  Jim Meyering  <meyering@redhat.com>
54794
54795         announce-gen: emit Gnulib's git-based version string.
54796         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
54797         New option --gnulib-version=V, where V is expected to be
54798         the output of running git describe in the gnulib directory.
54799         (get_tool_versions): Request feedback on xdelta.  I suspect it's
54800         not useful, and plan to stop publishing an xdelta file with each
54801         coreutils release.
54802
54803         * build-aux/announce-gen: Also check for lzma-compressed files.
54804
54805 2008-01-11  Bruno Haible  <bruno@clisp.org>
54806
54807         * tests/test-memmem.c (main): Increase maximum allowed time.
54808         * tests/test-strstr.c (main): Likewise.
54809
54810 2008-01-11  Bruno Haible  <bruno@clisp.org>
54811
54812         * doc/functions/memmem.texi: Add more precisions about platforms.
54813         * doc/functions/strstr.texi: Likewise.
54814
54815 2008-01-10  Eric Blake  <ebb9@byu.net>
54816
54817         * m4/strstr.m4: Delete cruft from copy-n-paste.
54818         Reported by Bruno Haible.
54819
54820 2008-01-10  Bruno Haible  <bruno@clisp.org>
54821
54822         Make c-strstr rely on strstr.
54823         * lib/c-strstr.c: Don't include str-kmp.h.
54824         (c_strstr): Define in terms of strstr.
54825         * modules/c-strstr (Files): Remove lib/str-kmp.h.
54826         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
54827
54828 2008-01-10  Bruno Haible  <bruno@clisp.org>
54829
54830         * doc/gnulib.texi (String Functions in C Locale): New section.
54831         * doc/c-ctype.texi: New file.
54832         * doc/c-strcase.texi: New file.
54833         * doc/c-strcaseeq.texi: New file.
54834         * doc/c-strcasestr.texi: New file.
54835         * doc/c-strstr.texi: New file.
54836         * doc/c-strtod.texi: New file.
54837         * doc/c-strtold.texi: New file.
54838
54839 2008-01-10  Eric Blake  <ebb9@byu.net>
54840
54841         * lib/relocatable.h: Fix a comment.
54842
54843 2008-01-10  Eric Blake  <ebb9@byu.net>
54844
54845         Share two-way algorithm.
54846         * lib/str-two-way.h: New file, merged from...
54847         * lib/memmem.c: ...here...
54848         * lib/strstr.c: ...and here.
54849         * modules/memmem (Files): Use it.
54850         * modules/strstr (Files): Likewise.
54851
54852         Avoid quadratic strstr implementations.
54853         * lib/strstr.c: New file.
54854         * m4/strstr.m4: Likewise.
54855         * modules/strstr: Likewise.
54856         * modules/strstr-tests: Likewise.
54857         * tests/test-strstr.c: Likewise.
54858         * lib/string.in.h (rpl_strstr): Declare.
54859         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
54860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
54861         * modules/string (Makefile.am): Likewise.
54862         * MODULES.html.sh (string handling): Mention new module.
54863         * doc/functions/strstr.texi (strstr): Document the bug.
54864
54865 2008-01-10  Bruno Haible  <bruno@clisp.org>
54866
54867         * lib/relocatable.h (relocate): State whether result is freshly
54868         allocated or not.
54869         * lib/relocatable.c (relocate): Return a freshly allocated string
54870         instead of a pointer to a privately held string.
54871         Reported by Sylvain Beucler <beuc@gnu.org>.
54872
54873 2008-01-10  Colin Watson  <cjwatson@debian.org>
54874
54875         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
54876         s/S_ISNLK/S_ISLNK/.
54877
54878 2008-01-09  Bruno Haible  <bruno@clisp.org>
54879
54880         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
54881         and other files.
54882         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
54883         if it's only a guess.
54884         * modules/memmem: Simplify by depending on memmem-simple.
54885
54886 2008-01-09  Bruno Haible  <bruno@clisp.org>
54887
54888         Work around OpenBSD 4.0 tdelete() bug.
54889         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
54890         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
54891         macros and don't redefine the enum values.
54892         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
54893         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
54894         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
54895
54896 2008-01-09  Bruno Haible  <bruno@clisp.org>
54897
54898         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
54899         (main): Don't perform the tests if setlocale did not install a UTF-8
54900         locale. Needed on OpenBSD 4.0.
54901         * modules/wcwidth-tests (Depends-on): Add localcharset.
54902
54903 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54904
54905         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
54906         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
54907         * NEWS: announce this.
54908         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
54909
54910 2008-01-09  Simon Josefsson  <simon@josefsson.org>
54911         and Eric Blake  <ebb9@byu.net>
54912
54913         Add memmem-simple module.
54914         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
54915         (gl_FUNC_MEMMEM): Separate performance from presence checks.
54916         * modules/memmem-simple: New file.
54917         * modules/memmem (Description): Tweak.
54918         * MODULES.html.sh (string handling): Mention new module.
54919         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
54920         addressed by memmem-simple.
54921         * NEWS: Document the difference.
54922
54923 2008-01-09  Eric Blake  <ebb9@byu.net>
54924
54925         Give gcc some memmem optimization hints.
54926         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
54927         (strcasestr): Declare as pure.
54928         * modules/memmem (Maintainer): Claim my implementation.
54929
54930 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54931
54932         Support AIX 6.1 and higher.
54933         * build-aux/config.libpath: Likewise.
54934         * build-aux/config.rpath: Likewise.
54935
54936 2008-01-08  Jim Meyering  <meyering@redhat.com>
54937             Bruno Haible  <bruno@clisp.org>
54938
54939         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
54940         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
54941         Reported by Peter Fales in
54942         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
54943
54944 2008-01-08  Bruno Haible  <bruno@clisp.org>
54945
54946         * modules/unictype/category-of (Depends-on): Add
54947         unictype/category-none.
54948         * modules/unictype/category-and-tests (Depends-on): Add
54949         unictype/category-{L,N,Lu,Nd}.
54950         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
54951         * modules/unictype/category-or-tests (Depends-on): Add
54952         unictype/category-{L,N}.
54953         * modules/unictype/category-name-tests (Depends-on): Add
54954         unictype/category-{Z,Nl}.
54955         Reported by Simon Josefsson.
54956
54957 2008-01-08  Bruno Haible  <bruno@clisp.org>
54958
54959         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
54960         convention better.
54961         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
54962         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
54963         Reported by Peter Miller <millerp@canb.auug.org.au>.
54964
54965 2008-01-08  Eric Blake  <ebb9@byu.net>
54966
54967         Rewrite memmem to guarantee linear complexity without malloc.
54968         * lib/memmem.c (memmem): Use Two-Way rather than
54969         Knuth-Morris-Pratt, to allow O(1) space usage.
54970         (critical_factorization, two_way_short_needle)
54971         (two_way_long_needle): New functions.
54972         (knuth_morris_pratt): Delete.
54973         * modules/memmem (Depends-on): No longer need malloca or stdbool.
54974         Add stdint.
54975         * tests/test-memmem.c (main): Add tests for periodic needle and
54976         sublinear performance.
54977         * doc/functions/memmem.texi (memmem): Document other deficiencies
54978         in cygwin and older glibc.
54979
54980 2008-01-08  Bruno Haible  <bruno@clisp.org>
54981
54982         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
54983         augmentation.
54984
54985 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
54986
54987         Add a configure time option: --disable-acl.
54988         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
54989         AC_ARG_ENABLE(acl).
54990
54991 2008-01-06  Simon Josefsson  <simon@josefsson.org>
54992
54993         * tests/test-localename.c: Don't include obsolete "setenv.h".
54994
54995         * modules/localename-tests (Depends-on): Need unsetenv.
54996
54997 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54998
54999         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
55000
55001 2008-01-06  Colin Watson  <cjwatson@debian.org>
55002
55003         * users.txt: Add man-db.
55004
55005 2008-01-07  Bruno Haible  <bruno@clisp.org>
55006
55007         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
55008         previous section name.
55009
55010 2008-01-07  Bruno Haible  <bruno@clisp.org>
55011
55012         * lib/progname.c (set_program_name): Don't strip off a leading
55013         "lt-" prefix outside a .libs directory.
55014         Suggested by Paul Eggert.
55015
55016 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
55017             Bruno Haible  <bruno@clisp.org>
55018
55019         Improve memory cleanup in 'relocatable' module.
55020         * lib/relocatable.h (compute_curr_prefix): Change return type to
55021         'char *'.
55022         * lib/relocatable.c (compute_curr_prefix): Change return type to
55023         'char *'. Free curr_installdir after use.
55024         (relocate): Free curr_prefix_better after use.
55025         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
55026
55027 2008-01-01  Bruno Haible  <bruno@clisp.org>
55028
55029         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
55030         failure on older glibc systems.
55031         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55032
55033 2008-01-05  Eric Blake  <ebb9@byu.net>
55034
55035         Avoid quadratic system memmem.
55036         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
55037         Reported by Ralf Wildenhues.
55038
55039         Fix memmem test for mingw.
55040         * modules/memmem-tests (configure.ac): Check for alarm.
55041         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
55042         it.
55043         * doc/functions/memmem.texi: New file.
55044         * doc/gnulib.texi (Function Substitutes): Add memmem.
55045         Reported by Bruno Haible.
55046
55047 2008-01-04  Bruno Haible  <bruno@clisp.org>
55048
55049         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
55050         Require gl_HEADER_STRINGS_H_DEFAULTS, not
55051         gl_HEADER_STRING_H_DEFAULTS.
55052
55053 2008-01-04  Eric Blake  <ebb9@byu.net>
55054
55055         Shorten duration of memmem test.
55056         * tests/test-memmem.c (main): Use alarm to declare failure if test
55057         is taking too long.
55058         Reported by Ralf Wildenhues.
55059
55060 2007-12-21  Simon Josefsson  <simon@josefsson.org>
55061
55062         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
55063         string, needed by strerror.
55064
55065 2008-01-03  Colin Watson  <cjwatson@debian.org>
55066             Bruno Haible  <bruno@clisp.org>
55067
55068         * doc/gnulib-tool.texi (Localization): New section.
55069
55070 2008-01-02  Bruno Haible  <bruno@clisp.org>
55071
55072         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
55073         variables to 'unsigned char *' type.
55074         Reported by Paul Eggert.
55075
55076 2008-01-02  Jim Meyering  <jim@meyering.net>
55077
55078         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
55079
55080 2007-12-31  Jim Meyering  <jim@meyering.net>
55081
55082         Avoid use of private FTS type name.
55083         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
55084
55085 2007-12-30  Karl Berry  <karl@gnu.org>
55086
55087         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
55088         work around defect in Texinfo and/or the standalone Info browser.
55089
55090 2007-12-30  Bruno Haible  <bruno@clisp.org>
55091
55092         Unify 5 copies of the KMP code.
55093         * lib/str-kmp.h: New file.
55094         * lib/c-strcasestr.c: Include str-kmp.h.
55095         (knuth_morris_pratt): Remove function.
55096         (c_strcasestr): Update.
55097         * lib/c-strstr.c: Include str-kmp.h.
55098         (knuth_morris_pratt): Remove function.
55099         (c_strcasestr): Update.
55100         * lib/mbscasestr.c: Include str-kmp.h.
55101         (knuth_morris_pratt_unibyte): Remove function.
55102         * lib/mbsstr.c: Include str-kmp.h.
55103         (knuth_morris_pratt_unibyte): Remove function.
55104         * lib/strcasestr.c: Include str-kmp.h.
55105         (knuth_morris_pratt): Remove function.
55106         (strcasestr): Update.
55107         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
55108         * modules/c-strstr (Files): Likewise.
55109         * modules/mbscasestr (Files): Likewise.
55110         * modules/mbsstr (Files): Likewise.
55111         * modules/strcasestr (Files): Likewise.
55112         Suggested by Paul Eggert.
55113
55114 2007-12-30  Bruno Haible  <bruno@clisp.org>
55115
55116         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
55117         defined.
55118
55119 2007-12-30  Bruno Haible  <bruno@clisp.org>
55120
55121         * lib/xmalloca.h: Include xalloc.h.
55122         (xnmalloca): New macro.
55123
55124 2007-12-30  Bruno Haible  <bruno@clisp.org>
55125
55126         * lib/malloca.h (nmalloca): New macro.
55127         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
55128         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
55129         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
55130         knuth_morris_pratt_multibyte): Likewise.
55131         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
55132         knuth_morris_pratt_multibyte): Likewise.
55133         * lib/memmem.c (knuth_morris_pratt): Likewise.
55134         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
55135
55136 2007-12-25  Bruno Haible  <bruno@clisp.org>
55137
55138         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
55139         * lib/glob.c: Don't include openat.h.
55140         (link_exists2_p): Add back the code that deals with the
55141         !GLOB_ALTDIRFUNC case.
55142         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
55143         let it do the filename concatenation.
55144         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
55145         * modules/glob (Depends-on): Remove openat.
55146
55147 2007-12-31  Bruno Haible  <bruno@clisp.org>
55148
55149         * modules/dirfd (License): Change to LGPLv2+.
55150         Approved by Jim Meyering.
55151
55152 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55153
55154         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
55155         when multiplying M by sizeof (size_t).
55156
55157 2007-12-10  Martin Lambers  <marlam@marlam.de>
55158
55159         Override getpagesize on mingw.
55160         * lib/getpagesize.c: New file.
55161         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
55162         * modules/getpagesize (Files): Add lib/getpagesize.c.
55163         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
55164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55165         REPLACE_GETPAGESIZE.
55166         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
55167
55168 2007-12-25  Bruno Haible  <bruno@clisp.org>
55169
55170         * modules/localcharset (Notice): New field.
55171         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
55172         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55173
55174 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55175             Bruno Haible  <bruno@clisp.org>
55176
55177         Avoid using the syntax symbol() in formatted documentation.
55178         * MODULES.html.sh (func_module): When replacing symbol() with a
55179         hyperlink, remove the parentheses. Show an error if some remain.
55180         Recognize and render the '...' syntax.
55181         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
55182         Rework. Add paragraph about GCC's inlining.
55183         * doc/alloca.texi: Likewise.
55184         * doc/error.texi: Remove parentheses from symbol reference.
55185         * doc/gnulib-intro.texi: Likewise.
55186         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
55187         * modules/fnmatch (Description): Reword to say "the ... function".
55188         * modules/full-read (Description): Likewise.
55189         * modules/full-write (Description): Likewise.
55190         * modules/safe-read (Description): Likewise.
55191         * modules/safe-write (Description): Likewise.
55192         * modules/strchrnul (Description): Likewise.
55193         * modules/trim (Description): Likewise.
55194         * modules/error (Description): Remove parentheses from symbol
55195         references.
55196         * modules/verror (Description): Likewise.
55197         Reported by Karl Berry.
55198
55199 2007-12-25  Bruno Haible  <bruno@clisp.org>
55200
55201         Fixup after 2007-10-16 commit.
55202         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
55203
55204 2007-12-24  Bruno Haible  <bruno@clisp.org>
55205
55206         Make --enable-relocatable work with DESTDIR.
55207         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
55208         to compute installdir from destprog.
55209         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
55210         also set the RELOC_DESTDIR variable.
55211         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55212
55213 2007-12-24  Bruno Haible  <bruno@clisp.org>
55214
55215         Fix link error due to xalloc_die().
55216         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
55217         of xreadlink.
55218         * lib/relocwrapper.c: Update comments.
55219         * build-aux/install-reloc: Remove xreadlink.c from file list.
55220         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
55221         xreadlink.c.
55222         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55223
55224 2007-12-24  Bruno Haible  <bruno@clisp.org>
55225
55226         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
55227         * lib/setenv.h: Remove file.
55228         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
55229         lib/setenv.h.
55230         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
55231         (Depends-on): Add stdlib.
55232         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
55233         gl_FUNC_UNSETENV.
55234         (Include): Replace setenv.h with <stdlib.h>.
55235         * modules/unsetenv: New file.
55236         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
55237         * lib/unsetenv.c: Include <stdlib.h> first.
55238         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
55239         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
55240         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
55241         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
55242         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
55243         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
55245         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55246         * doc/functions/unsetenv.texi: Update.
55247         * modules/xsetenv (Depends-on): Add unsetenv.
55248         * modules/getdate (Depends-on): Likewise.
55249         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
55250         * lib/xsetenv.c: Don't include setenv.h.
55251         * lib/getdate.y: Likewise.
55252         * lib/relocwrapper.c: Likewise.
55253         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
55254         (Depends-on): Add stdlib.
55255         * NEWS: Mention the changes.
55256         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55257
55258 2007-12-23  Bruno Haible  <bruno@clisp.org>
55259
55260         * lib/memmem.c (memmem): Use lowercase variable names. Tab
55261         indentation.
55262
55263 2007-12-23  Bruno Haible  <bruno@clisp.org>
55264
55265         * lib/c-strcasestr.c: Add more comments.
55266         * lib/c-strstr.c: Likewise.
55267         * lib/mbscasestr.c: Likewise.
55268         * lib/mbsstr.c: Likewise.
55269         * lib/strcasestr.c: Likewise.
55270         * lib/memmem.c: Likewise.
55271
55272 2007-12-23  Bruno Haible  <bruno@clisp.org>
55273
55274         * tests/test-memmem.c: Include <string.h> first.
55275
55276 2007-12-22  Bruno Haible  <bruno@clisp.org>
55277
55278         * gnulib-tool (func_create_testdir): Change $auxdir while generating
55279         the contents of $testsbase.
55280         Reported by Ralf Wildenhues.
55281
55282 2007-12-22  Bruno Haible  <bruno@clisp.org>
55283
55284         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
55285         two variables local_ldadd_before, local_ldadd_last.
55286
55287 2007-12-20  Eric Blake  <ebb9@byu.net>
55288
55289         Work around circular library issue when cross-compiling.
55290         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
55291         that progname.o does not need to pull in rpl_memcmp.
55292
55293 2007-12-19  Eric Blake  <ebb9@byu.net>
55294
55295         Fix memmem to avoid O(n^2) worst-case complexity.
55296         * lib/memmem.c (knuth_morris_pratt): New function.
55297         (memmem): Use it if first few naive iterations fail.
55298         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
55299         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
55300         * modules/memchr (License): Likewise.
55301         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
55302         malloca.
55303         * tests/test-memmem.c: Rewrite, borrowing ideas from
55304         test-mbsstr1.c; the old version wouldn't even compile!
55305         * modules/memmem-tests: New file.
55306         * lib/string.in.h (rpl_memmem): Add declaration.
55307         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
55308         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
55309         REPLACE_MEMMEM.
55310
55311 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55312
55313         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
55314         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
55315         before any system include files, and undef after them all.  This
55316         should fix a problem on VMS reported by John E. Malmberg in
55317         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
55318
55319 2007-12-17  Eric Blake  <ebb9@byu.net>
55320
55321         Revert addition of verify, for BSD/OS.
55322         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
55323         can't handle large files, for the sake of obsolete platforms.
55324         * modules/fseeko (Depends-on): Remove verify.
55325         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
55326         * doc/functions/ftello.texi (ftello): Likewise.
55327         * doc/functions/fgetpos.texi (fgetpos): Likewise.
55328         Reported by Larry Jones.
55329
55330 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
55331
55332         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
55333         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
55334
55335 2007-12-17  Jim Meyering  <meyering@redhat.com>
55336
55337         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
55338         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
55339         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
55340         * modules/getcwd (Depends-on): Add openat.
55341         Reported by Petr Salinger.
55342
55343 2007-12-17  Bruno Haible  <bruno@clisp.org>
55344
55345         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
55346         avoid a segmentation fault of the configure test on x86_64 systems.
55347
55348 2007-12-15  Jim Meyering  <meyering@redhat.com>
55349
55350         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
55351
55352 2007-12-13  Eric Blake  <ebb9@byu.net>
55353
55354         Another fseek test.
55355         * tests/test-fseek.c (main): Also test ungetc handling.
55356         * tests/test-fseeko.c (main): Likewise.
55357         * modules/fseeko (Depends-on): Add verify.
55358         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
55359         large.
55360         Reported by Larry Jones.
55361
55362         Fix fseeko on mingw.
55363         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
55364         seek.
55365
55366         Beef up fseek tests.
55367         * tests/test-fseek.c (main): Also test eof handling.
55368         * tests/test-fseeko.c (main): Likewise.
55369         Reported by Larry Jones.
55370
55371 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
55372
55373         Fix fseeko on BSD-based platforms.
55374         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
55375         successful seek.
55376
55377 2007-12-12  Eric Blake  <ebb9@byu.net>
55378
55379         Allow circular dependency of separate libtests.a
55380         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
55381         when use_libtests.
55382
55383 2007-12-11  Eric Blake  <ebb9@byu.net>
55384
55385         Fix bug with -0.0L in previous patch.
55386         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
55387         * tests/test-isnan.c (main): Also test on zeroes.
55388         * tests/test-isnanf.c (main): Likewise.
55389         * tests/test-isnanl.h (main): Likewise.
55390
55391         Detect pseudo-denormals on x86 even when cross-compiling.
55392         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
55393         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
55394         invalid bit patterns that happen to satisfy ==.
55395
55396         Avoid link failures with separate libtests.a.
55397         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
55398         last, to satisfy circular dependencies.
55399
55400 2007-12-11  Eric Blake  <ebb9@byu.net>
55401         and Bruno Haible  <bruno@clisp.org>
55402
55403         Fix OpenBSD 4.0 <float.h> handling of long double.
55404         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
55405         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
55406         * doc/headers/float.texi (float.h): Document OpenBSD bug.
55407
55408 2007-12-11  Jim Meyering  <meyering@redhat.com>
55409
55410         * users.txt: Add libvirt.
55411
55412         Support versions of autoconf prior to 2.59c.
55413         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
55414         if it is not already defined.
55415
55416 2007-12-09  Bruno Haible  <bruno@clisp.org>
55417
55418         Let 'gnulib-tool --import' collect sources needed for the tests in
55419         tests/ rather than in lib/.
55420         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
55421         argument. If true, add rules to generate libtests.a, and put libtests.a
55422         into $(LDADD). Consider source files in subdirectories and set
55423         uses_subdirs.
55424         (func_emit_initmacro_start, func_emit_initmacro_end,
55425         func_emit_initmacro_done): Pass all arguments explicitly.
55426         (func_import): Determine two module lists main_modules,
55427         testsrelated_modules. Determine use_libtests. Determine two variables
55428         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
55429         instead of just sed_transform_lib_file. Determine two variables
55430         main_files and testsrelated_files. Compute 'files' as the union of
55431         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
55432         func_add_or_update. In the generated gnulib-comp.m4, collect the
55433         object files for tests/ in different variables than those for lib/.
55434         Substitute LIBTESTS_LIBDEPS.
55435         (func_create_testdir): Combine the uses_subdirs results from
55436         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
55437
55438 2007-12-09  Bruno Haible  <bruno@clisp.org>
55439
55440         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
55441         the build-aux directory.
55442
55443 2007-12-09  Bruno Haible  <bruno@clisp.org>
55444
55445         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
55446         introduced on 2006-09-09.
55447
55448 2007-12-07  Jim Meyering  <meyering@redhat.com>
55449
55450         Let these macros work also with autoconf-2.59.
55451         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
55452         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
55453         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55454
55455 2007-12-06  Jim Meyering  <meyering@redhat.com>
55456
55457         Avoid a configure-time syntax error in gl_FUNC_ACL.
55458         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
55459         function in each branch, before testing the cache variable.
55460
55461 2007-12-04  Eric Blake  <ebb9@byu.net>
55462
55463         Make scripts executable.
55464         * build-aux/config.guess: Add execute permissions.
55465         * build-aux/config.sub: Likewise.
55466         * build-aux/gendocs.sh: Likewise.
55467
55468         Fix frexp on mingw.
55469         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
55470         cross-compiling.
55471         * doc/functions/frexp.texi (frexp): Document the bug.
55472
55473         Make cygwin fseeko check more reliable.
55474         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
55475         version numbers, rather than unrelated feature check.
55476         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
55477         * doc/functions/ftello.texi (ftello): Likewise.
55478         Reported by Bruno Haible.
55479
55480         * m4/strerror.m4: Bump version number.
55481
55482 2007-12-03  Bruno Haible  <bruno@clisp.org>
55483
55484         * doc/functions/mprotect.texi: Mention the mingw problem.
55485
55486 2007-12-03  Eric Blake  <ebb9@byu.net>
55487
55488         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
55489         REPLACE_STRERROR is initialized before this macro.
55490
55491 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55492
55493         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
55494         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
55495         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
55496         put -lsec in even for programs other than 'ls'.  This fixes a problem
55497         for gettext reported by Bruno Haible in
55498         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
55499         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
55500         Add support for Solaris 10.  This isn't efficient, but should get the
55501         job done for now.
55502
55503 2007-12-03  James Youngman  <jay@gnu.org>
55504
55505         * doc/regexprops-generic.texi: change "an close-group" to "a
55506         close-group" and "illegal" to "not allowed".
55507
55508 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55509
55510         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
55511         pr_byname.h. Needed for the rare case when the maintainer has done
55512         "make maintainer-clean" in the source directory and then attempts a
55513         build outside the source directory.
55514         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
55515         scripts_byname.h.
55516
55517 2007-12-02  Martin Lambers <marlam@marlam.de>
55518             Bruno Haible  <bruno@clisp.org>
55519
55520         * lib/getpagesize.h: Remove file.
55521         * lib/unistd.in.h: Include declaration of getpagesize here.
55522         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
55523         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
55524         HAVE_SYS_PARAM_H.
55525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
55526         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55527         * modules/getpagesize (Files): Remove lib/getpagesize.h.
55528         (Depends-on): Add unistd.
55529         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55530         (Include): Use <unistd.h> instead of getpagesize.h.
55531         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
55532         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55533         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
55534         gl_GETPAGESIZE invocation, already handled by module dependency.
55535         * lib/pagealign_alloc.c: Don't include getpagesize.h.
55536
55537 2007-12-02  Bruno Haible  <bruno@clisp.org>
55538
55539         * modules/strings-tests: New file.
55540         * tests/test-strings.c: New file.
55541
55542         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
55543         * lib/strings.in.h: New file.
55544         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
55545         * m4/strings_h.m4: New file.
55546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
55547         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
55548         * modules/strings: New file.
55549         * modules/string (Makefile.am): Update.
55550         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
55551         Reported by Karl Berry.
55552
55553 2007-12-01  Eric Blake  <ebb9@byu.net>
55554
55555         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
55556         accomodate fix in cygwin 1.5.25.
55557
55558 2007-12-01  Jim Meyering  <meyering@redhat.com>
55559
55560         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
55561         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
55562         that would inhibit utf8-optimization of a regexp containing line-
55563         or buffer-anchors, e.g., `^', `$'.
55564
55565 2007-11-30  Bruno Haible  <bruno@clisp.org>
55566
55567         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
55568         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
55569         glthread_recursive_lock_init.
55570         * lib/lock.c (glthread_recursive_lock_init)
55571         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
55572         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55573
55574 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
55575
55576         New function qset_acl, like set_acl but with syscall semantics.
55577         * lib/acl.h (qset_acl): New decl.
55578         * lib/acl.c (qset_acl): New function.
55579         (set_acl): Use new function.  Use more-consistent diagnostics.
55580
55581 2007-11-28  Jim Meyering  <meyering@redhat.com>
55582
55583         * modules/physmem (License): Change from GPL to LGPLv2+.
55584
55585 2007-11-26  Bruno Haible  <bruno@clisp.org>
55586
55587         * lib/vasnprintf.c (decode_long_double): Don't abort if the
55588         'long double' type has excess precision.
55589         Reported by Jim Meyering in
55590         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
55591
55592 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55593
55594         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
55595         Sync from <http://gnu.org/licenses>.
55596         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
55597         with license text from same location.
55598         * doc/maintain.texi, doc/standards.texi:  Sync from
55599         <http://savannah.gnu.org/projects/gnustandards>.
55600
55601 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
55602         and Jim Meyering  <meyering@redhat.com>
55603
55604         Adjust getdate' grammar to accept a slightly more regular language.
55605         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
55606         Before, the former was rejected.
55607         * lib/getdate.y (digits_to_date_time): New function, factored
55608         out of ...
55609         (number): ...here.  Just call digits_to_date_time.
55610         (hybrid): New non-terminal to handle an <unsigned number,
55611         signed relative offset> sequence consistently.
55612
55613 2007-11-18  Jim Meyering  <meyering@redhat.com>
55614
55615         Pull my changes from coreutils:
55616         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
55617         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
55618         use of $gnulib_tool_option_extras, so that it's separated from the
55619         preceding argument.
55620
55621         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
55622         * build-aux/bootstrap (cp_mark_as_generated): Create any required
55623         parent destination directories before copying a file into place.
55624
55625 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55626
55627         bootstrap: work also with 4-argument variant of AC_INIT
55628         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
55629
55630 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55631
55632         Port test-getaddrinfo to Solaris.
55633         Problem reported by Bruno Haible in
55634         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
55635         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
55636         explanation of setting 'hints'.
55637         Don't reject an implementation merely because it returns EAI_SERVICE.
55638         (EAI_SERVICE): Define to 0 if not defined.
55639
55640 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55641
55642         The license of gnu-make and posix-shell is now "GPLed build tool".
55643         * modules/gnu-make (License): Likewise.
55644         * modules/posix-shell (License): Likewise.
55645
55646         New module posix-shell, for determining a POSIX shell
55647         or perhaps something that is close enough to a POSIX shell.
55648         * m4/posix-shell.m4: New file.
55649         * modules/posix-shell: New file.
55650
55651         * MODULES.html.sh: Mention new module.
55652
55653         New module gnu-make, for determining whether we're using GNU Make.
55654         * m4/gnu-make.m4: New file.
55655         * modules/gnu-make: New file.
55656         * MODULES.html.sh: Mention new module.
55657
55658 2007-11-14  Jim Meyering  <meyering@redhat.com>
55659
55660         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
55661         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
55662         use this macro to create a function _definition_.
55663         Remove useless "#undef ARGMATCH_DIE".
55664
55665 2007-11-14  Bruno Haible  <bruno@clisp.org>
55666
55667         * lib/config.charset: Update for OpenBSD 4.1.
55668         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
55669
55670 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
55671
55672         Document 64-bit #if problems in stdint.texi.
55673         * doc/headers/stdint.texi (stdint.h): Mention problems with
55674         64-bit-#if, and how to work around them.
55675
55676         Don't insist on 'long long int' support in the preprocessor.  It
55677         breaks too many things.  For example, PRIdMAX still uses a 'long
55678         long int' format with the latest Sun compiler, even though
55679         HAVE_LONG_LONG_INT isn't defined due to that compiler's
55680         preprocessor problem.  This causes the latest coreutils to dump
55681         core on Solaris 10 sparc with the Sun C compiler.
55682         Instead, fix the 2007-10-16 problem in a different way, by evaluating
55683         the troublesome expressions at configure-time, not at #if-time.
55684         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
55685         preprocessor.
55686         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
55687         compile-time C checks, done at 'configure'-time.
55688         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
55689         * modules/inttypes (Makefile): Substitute the new symbols that
55690         gl_INTTYPES_H now generates.
55691         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
55692
55693 2007-11-12  Bruno Haible  <bruno@clisp.org>
55694
55695         Tests for Unicode character classification functions.
55696
55697         * modules/unictype/bidicategory-byname-tests: New file.
55698         * modules/unictype/bidicategory-name-tests: New file.
55699         * modules/unictype/bidicategory-of-tests: New file.
55700         * modules/unictype/bidicategory-test-tests: New file.
55701         * modules/unictype/block-list-tests: New file.
55702         * modules/unictype/block-of-tests: New file.
55703         * modules/unictype/block-test-tests: New file.
55704         * modules/unictype/category-C-tests: New file.
55705         * modules/unictype/category-Cc-tests: New file.
55706         * modules/unictype/category-Cf-tests: New file.
55707         * modules/unictype/category-Cn-tests: New file.
55708         * modules/unictype/category-Co-tests: New file.
55709         * modules/unictype/category-Cs-tests: New file.
55710         * modules/unictype/category-L-tests: New file.
55711         * modules/unictype/category-Ll-tests: New file.
55712         * modules/unictype/category-Lm-tests: New file.
55713         * modules/unictype/category-Lo-tests: New file.
55714         * modules/unictype/category-Lt-tests: New file.
55715         * modules/unictype/category-Lu-tests: New file.
55716         * modules/unictype/category-M-tests: New file.
55717         * modules/unictype/category-Mc-tests: New file.
55718         * modules/unictype/category-Me-tests: New file.
55719         * modules/unictype/category-Mn-tests: New file.
55720         * modules/unictype/category-N-tests: New file.
55721         * modules/unictype/category-Nd-tests: New file.
55722         * modules/unictype/category-Nl-tests: New file.
55723         * modules/unictype/category-No-tests: New file.
55724         * modules/unictype/category-P-tests: New file.
55725         * modules/unictype/category-Pc-tests: New file.
55726         * modules/unictype/category-Pd-tests: New file.
55727         * modules/unictype/category-Pe-tests: New file.
55728         * modules/unictype/category-Pf-tests: New file.
55729         * modules/unictype/category-Pi-tests: New file.
55730         * modules/unictype/category-Po-tests: New file.
55731         * modules/unictype/category-Ps-tests: New file.
55732         * modules/unictype/category-S-tests: New file.
55733         * modules/unictype/category-Sc-tests: New file.
55734         * modules/unictype/category-Sk-tests: New file.
55735         * modules/unictype/category-Sm-tests: New file.
55736         * modules/unictype/category-So-tests: New file.
55737         * modules/unictype/category-Z-tests: New file.
55738         * modules/unictype/category-Zl-tests: New file.
55739         * modules/unictype/category-Zp-tests: New file.
55740         * modules/unictype/category-Zs-tests: New file.
55741         * modules/unictype/category-and-not-tests: New file.
55742         * modules/unictype/category-and-tests: New file.
55743         * modules/unictype/category-byname-tests: New file.
55744         * modules/unictype/category-name-tests: New file.
55745         * modules/unictype/category-none-tests: New file.
55746         * modules/unictype/category-of-tests: New file.
55747         * modules/unictype/category-or-tests: New file.
55748         * modules/unictype/category-test-withtable-tests: New file.
55749         * modules/unictype/combining-class-tests: New file.
55750         * modules/unictype/ctype-alnum-tests: New file.
55751         * modules/unictype/ctype-alpha-tests: New file.
55752         * modules/unictype/ctype-blank-tests: New file.
55753         * modules/unictype/ctype-cntrl-tests: New file.
55754         * modules/unictype/ctype-digit-tests: New file.
55755         * modules/unictype/ctype-graph-tests: New file.
55756         * modules/unictype/ctype-lower-tests: New file.
55757         * modules/unictype/ctype-print-tests: New file.
55758         * modules/unictype/ctype-punct-tests: New file.
55759         * modules/unictype/ctype-space-tests: New file.
55760         * modules/unictype/ctype-upper-tests: New file.
55761         * modules/unictype/ctype-xdigit-tests: New file.
55762         * modules/unictype/decimal-digit-tests: New file.
55763         * modules/unictype/digit-tests: New file.
55764         * modules/unictype/mirror-tests: New file.
55765         * modules/unictype/numeric-tests: New file.
55766         * modules/unictype/property-alphabetic-tests: New file.
55767         * modules/unictype/property-ascii-hex-digit-tests: New file.
55768         * modules/unictype/property-bidi-arabic-digit-tests: New file.
55769         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
55770         * modules/unictype/property-bidi-block-separator-tests: New file.
55771         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
55772         * modules/unictype/property-bidi-common-separator-tests: New file.
55773         * modules/unictype/property-bidi-control-tests: New file.
55774         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
55775         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
55776         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
55777         * modules/unictype/property-bidi-european-digit-tests: New file.
55778         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
55779         * modules/unictype/property-bidi-left-to-right-tests: New file.
55780         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
55781         * modules/unictype/property-bidi-other-neutral-tests: New file.
55782         * modules/unictype/property-bidi-pdf-tests: New file.
55783         * modules/unictype/property-bidi-segment-separator-tests: New file.
55784         * modules/unictype/property-bidi-whitespace-tests: New file.
55785         * modules/unictype/property-byname-tests: New file.
55786         * modules/unictype/property-combining-tests: New file.
55787         * modules/unictype/property-composite-tests: New file.
55788         * modules/unictype/property-currency-symbol-tests: New file.
55789         * modules/unictype/property-dash-tests: New file.
55790         * modules/unictype/property-decimal-digit-tests: New file.
55791         * modules/unictype/property-default-ignorable-code-point-tests: New file.
55792         * modules/unictype/property-deprecated-tests: New file.
55793         * modules/unictype/property-diacritic-tests: New file.
55794         * modules/unictype/property-extender-tests: New file.
55795         * modules/unictype/property-format-control-tests: New file.
55796         * modules/unictype/property-grapheme-base-tests: New file.
55797         * modules/unictype/property-grapheme-extend-tests: New file.
55798         * modules/unictype/property-grapheme-link-tests: New file.
55799         * modules/unictype/property-hex-digit-tests: New file.
55800         * modules/unictype/property-hyphen-tests: New file.
55801         * modules/unictype/property-id-continue-tests: New file.
55802         * modules/unictype/property-id-start-tests: New file.
55803         * modules/unictype/property-ideographic-tests: New file.
55804         * modules/unictype/property-ids-binary-operator-tests: New file.
55805         * modules/unictype/property-ids-trinary-operator-tests: New file.
55806         * modules/unictype/property-ignorable-control-tests: New file.
55807         * modules/unictype/property-iso-control-tests: New file.
55808         * modules/unictype/property-join-control-tests: New file.
55809         * modules/unictype/property-left-of-pair-tests: New file.
55810         * modules/unictype/property-line-separator-tests: New file.
55811         * modules/unictype/property-logical-order-exception-tests: New file.
55812         * modules/unictype/property-lowercase-tests: New file.
55813         * modules/unictype/property-math-tests: New file.
55814         * modules/unictype/property-non-break-tests: New file.
55815         * modules/unictype/property-not-a-character-tests: New file.
55816         * modules/unictype/property-numeric-tests: New file.
55817         * modules/unictype/property-other-alphabetic-tests: New file.
55818         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
55819         * modules/unictype/property-other-grapheme-extend-tests: New file.
55820         * modules/unictype/property-other-id-continue-tests: New file.
55821         * modules/unictype/property-other-id-start-tests: New file.
55822         * modules/unictype/property-other-lowercase-tests: New file.
55823         * modules/unictype/property-other-math-tests: New file.
55824         * modules/unictype/property-other-uppercase-tests: New file.
55825         * modules/unictype/property-paired-punctuation-tests: New file.
55826         * modules/unictype/property-paragraph-separator-tests: New file.
55827         * modules/unictype/property-pattern-syntax-tests: New file.
55828         * modules/unictype/property-pattern-white-space-tests: New file.
55829         * modules/unictype/property-private-use-tests: New file.
55830         * modules/unictype/property-punctuation-tests: New file.
55831         * modules/unictype/property-quotation-mark-tests: New file.
55832         * modules/unictype/property-radical-tests: New file.
55833         * modules/unictype/property-sentence-terminal-tests: New file.
55834         * modules/unictype/property-soft-dotted-tests: New file.
55835         * modules/unictype/property-space-tests: New file.
55836         * modules/unictype/property-terminal-punctuation-tests: New file.
55837         * modules/unictype/property-test-tests: New file.
55838         * modules/unictype/property-titlecase-tests: New file.
55839         * modules/unictype/property-unassigned-code-value-tests: New file.
55840         * modules/unictype/property-unified-ideograph-tests: New file.
55841         * modules/unictype/property-uppercase-tests: New file.
55842         * modules/unictype/property-variation-selector-tests: New file.
55843         * modules/unictype/property-white-space-tests: New file.
55844         * modules/unictype/property-xid-continue-tests: New file.
55845         * modules/unictype/property-xid-start-tests: New file.
55846         * modules/unictype/property-zero-width-tests: New file.
55847         * modules/unictype/scripts-tests: New file.
55848         * modules/unictype/syntax-c-ident-tests: New file.
55849         * modules/unictype/syntax-c-whitespace-tests: New file.
55850         * modules/unictype/syntax-java-ident-tests: New file.
55851         * modules/unictype/syntax-java-whitespace-tests: New file.
55852         * tests/unictype/test-bidi_byname.c: New file.
55853         * tests/unictype/test-bidi_name.c: New file.
55854         * tests/unictype/test-bidi_of.c: New file.
55855         * tests/unictype/test-bidi_test.c: New file.
55856         * tests/unictype/test-block_list.c: New file.
55857         * tests/unictype/test-block_of.c: New file.
55858         * tests/unictype/test-block_test.c: New file.
55859         * tests/unictype/test-categ_and.c: New file.
55860         * tests/unictype/test-categ_and_not.c: New file.
55861         * tests/unictype/test-categ_byname.c: New file.
55862         * tests/unictype/test-categ_name.c: New file.
55863         * tests/unictype/test-categ_none.c: New file.
55864         * tests/unictype/test-categ_of.c: New file.
55865         * tests/unictype/test-categ_or.c: New file.
55866         * tests/unictype/test-categ_test_withtable.c: New file.
55867         * tests/unictype/test-combining.c: New file.
55868         * tests/unictype/test-decdigit.c: New file.
55869         * tests/unictype/test-digit.c: New file.
55870         * tests/unictype/test-mirror.c: New file.
55871         * tests/unictype/test-numeric.c: New file.
55872         * tests/unictype/test-pr_byname.c: New file.
55873         * tests/unictype/test-pr_test.c: New file.
55874         * tests/unictype/test-predicate-part1.h: New file.
55875         * tests/unictype/test-predicate-part2.h: New file.
55876         * tests/unictype/test-scripts.c: New file.
55877         * tests/unictype/test-sy_c_ident.c: New file.
55878         * tests/unictype/test-sy_java_ident.c: New file.
55879
55880         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
55881         for Unicode 5.0.0.
55882         * tests/unictype/test-categ_Cc.c: Likewise.
55883         * tests/unictype/test-categ_Cf.c: Likewise.
55884         * tests/unictype/test-categ_Cn.c: Likewise.
55885         * tests/unictype/test-categ_Co.c: Likewise.
55886         * tests/unictype/test-categ_Cs.c: Likewise.
55887         * tests/unictype/test-categ_L.c: Likewise.
55888         * tests/unictype/test-categ_Ll.c: Likewise.
55889         * tests/unictype/test-categ_Lm.c: Likewise.
55890         * tests/unictype/test-categ_Lo.c: Likewise.
55891         * tests/unictype/test-categ_Lt.c: Likewise.
55892         * tests/unictype/test-categ_Lu.c: Likewise.
55893         * tests/unictype/test-categ_M.c: Likewise.
55894         * tests/unictype/test-categ_Mc.c: Likewise.
55895         * tests/unictype/test-categ_Me.c: Likewise.
55896         * tests/unictype/test-categ_Mn.c: Likewise.
55897         * tests/unictype/test-categ_N.c: Likewise.
55898         * tests/unictype/test-categ_Nd.c: Likewise.
55899         * tests/unictype/test-categ_Nl.c: Likewise.
55900         * tests/unictype/test-categ_No.c: Likewise.
55901         * tests/unictype/test-categ_P.c: Likewise.
55902         * tests/unictype/test-categ_Pc.c: Likewise.
55903         * tests/unictype/test-categ_Pd.c: Likewise.
55904         * tests/unictype/test-categ_Pe.c: Likewise.
55905         * tests/unictype/test-categ_Pf.c: Likewise.
55906         * tests/unictype/test-categ_Pi.c: Likewise.
55907         * tests/unictype/test-categ_Po.c: Likewise.
55908         * tests/unictype/test-categ_Ps.c: Likewise.
55909         * tests/unictype/test-categ_S.c: Likewise.
55910         * tests/unictype/test-categ_Sc.c: Likewise.
55911         * tests/unictype/test-categ_Sk.c: Likewise.
55912         * tests/unictype/test-categ_Sm.c: Likewise.
55913         * tests/unictype/test-categ_So.c: Likewise.
55914         * tests/unictype/test-categ_Z.c: Likewise.
55915         * tests/unictype/test-categ_Zl.c: Likewise.
55916         * tests/unictype/test-categ_Zp.c: Likewise.
55917         * tests/unictype/test-categ_Zs.c: Likewise.
55918         * tests/unictype/test-ctype_alnum.c: Likewise.
55919         * tests/unictype/test-ctype_alpha.c: Likewise.
55920         * tests/unictype/test-ctype_blank.c: Likewise.
55921         * tests/unictype/test-ctype_cntrl.c: Likewise.
55922         * tests/unictype/test-ctype_digit.c: Likewise.
55923         * tests/unictype/test-ctype_graph.c: Likewise.
55924         * tests/unictype/test-ctype_lower.c: Likewise.
55925         * tests/unictype/test-ctype_print.c: Likewise.
55926         * tests/unictype/test-ctype_punct.c: Likewise.
55927         * tests/unictype/test-ctype_space.c: Likewise.
55928         * tests/unictype/test-ctype_upper.c: Likewise.
55929         * tests/unictype/test-ctype_xdigit.c: Likewise.
55930         * tests/unictype/test-decdigit.h: Likewise.
55931         * tests/unictype/test-digit.h: Likewise.
55932         * tests/unictype/test-numeric.h: Likewise.
55933         * tests/unictype/test-pr_alphabetic.c: Likewise.
55934         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
55935         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55936         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
55937         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
55938         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
55939         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
55940         * tests/unictype/test-pr_bidi_control.c: Likewise.
55941         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
55942         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
55943         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55944         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
55945         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55946         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55947         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55948         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55949         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
55950         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
55951         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
55952         * tests/unictype/test-pr_combining.c: Likewise.
55953         * tests/unictype/test-pr_composite.c: Likewise.
55954         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55955         * tests/unictype/test-pr_dash.c: Likewise.
55956         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55957         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
55958         * tests/unictype/test-pr_deprecated.c: Likewise.
55959         * tests/unictype/test-pr_diacritic.c: Likewise.
55960         * tests/unictype/test-pr_extender.c: Likewise.
55961         * tests/unictype/test-pr_format_control.c: Likewise.
55962         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55963         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55964         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55965         * tests/unictype/test-pr_hex_digit.c: Likewise.
55966         * tests/unictype/test-pr_hyphen.c: Likewise.
55967         * tests/unictype/test-pr_id_continue.c: Likewise.
55968         * tests/unictype/test-pr_id_start.c: Likewise.
55969         * tests/unictype/test-pr_ideographic.c: Likewise.
55970         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
55971         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
55972         * tests/unictype/test-pr_ignorable_control.c: Likewise.
55973         * tests/unictype/test-pr_iso_control.c: Likewise.
55974         * tests/unictype/test-pr_join_control.c: Likewise.
55975         * tests/unictype/test-pr_left_of_pair.c: Likewise.
55976         * tests/unictype/test-pr_line_separator.c: Likewise.
55977         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
55978         * tests/unictype/test-pr_lowercase.c: Likewise.
55979         * tests/unictype/test-pr_math.c: Likewise.
55980         * tests/unictype/test-pr_non_break.c: Likewise.
55981         * tests/unictype/test-pr_not_a_character.c: Likewise.
55982         * tests/unictype/test-pr_numeric.c: Likewise.
55983         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55984         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
55985         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
55986         * tests/unictype/test-pr_other_id_continue.c: Likewise.
55987         * tests/unictype/test-pr_other_id_start.c: Likewise.
55988         * tests/unictype/test-pr_other_lowercase.c: Likewise.
55989         * tests/unictype/test-pr_other_math.c: Likewise.
55990         * tests/unictype/test-pr_other_uppercase.c: Likewise.
55991         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
55992         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
55993         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
55994         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
55995         * tests/unictype/test-pr_private_use.c: Likewise.
55996         * tests/unictype/test-pr_punctuation.c: Likewise.
55997         * tests/unictype/test-pr_quotation_mark.c: Likewise.
55998         * tests/unictype/test-pr_radical.c: Likewise.
55999         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56000         * tests/unictype/test-pr_soft_dotted.c: Likewise.
56001         * tests/unictype/test-pr_space.c: Likewise.
56002         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56003         * tests/unictype/test-pr_titlecase.c: Likewise.
56004         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56005         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56006         * tests/unictype/test-pr_uppercase.c: Likewise.
56007         * tests/unictype/test-pr_variation_selector.c: Likewise.
56008         * tests/unictype/test-pr_white_space.c: Likewise.
56009         * tests/unictype/test-pr_xid_continue.c: Likewise.
56010         * tests/unictype/test-pr_xid_start.c: Likewise.
56011         * tests/unictype/test-pr_zero_width.c: Likewise.
56012         * tests/unictype/test-sy_c_whitespace.c: Likewise.
56013         * tests/unictype/test-sy_java_whitespace.c: Likewise.
56014
56015 2007-11-12  Bruno Haible  <bruno@clisp.org>
56016
56017         Unicode character classification functions.
56018         * lib/unictype.h: New file.
56019         * modules/unictype/base: New file.
56020         * modules/unictype/category-L: New file.
56021         * modules/unictype/category-Lu: New file.
56022         * modules/unictype/category-Ll: New file.
56023         * modules/unictype/category-Lt: New file.
56024         * modules/unictype/category-Lm: New file.
56025         * modules/unictype/category-Lo: New file.
56026         * modules/unictype/category-M: New file.
56027         * modules/unictype/category-Mn: New file.
56028         * modules/unictype/category-Mc: New file.
56029         * modules/unictype/category-Me: New file.
56030         * modules/unictype/category-N: New file.
56031         * modules/unictype/category-Nd: New file.
56032         * modules/unictype/category-Nl: New file.
56033         * modules/unictype/category-No: New file.
56034         * modules/unictype/category-P: New file.
56035         * modules/unictype/category-Pc: New file.
56036         * modules/unictype/category-Pd: New file.
56037         * modules/unictype/category-Ps: New file.
56038         * modules/unictype/category-Pe: New file.
56039         * modules/unictype/category-Pi: New file.
56040         * modules/unictype/category-Pf: New file.
56041         * modules/unictype/category-Po: New file.
56042         * modules/unictype/category-S: New file.
56043         * modules/unictype/category-Sm: New file.
56044         * modules/unictype/category-Sc: New file.
56045         * modules/unictype/category-Sk: New file.
56046         * modules/unictype/category-So: New file.
56047         * modules/unictype/category-Z: New file.
56048         * modules/unictype/category-Zs: New file.
56049         * modules/unictype/category-Zl: New file.
56050         * modules/unictype/category-Zp: New file.
56051         * modules/unictype/category-C: New file.
56052         * modules/unictype/category-Cc: New file.
56053         * modules/unictype/category-Cf: New file.
56054         * modules/unictype/category-Cs: New file.
56055         * modules/unictype/category-Co: New file.
56056         * modules/unictype/category-Cn: New file.
56057         * modules/unictype/category-or: New file.
56058         * modules/unictype/category-of: New file.
56059         * modules/unictype/category-test: New file.
56060         * modules/unictype/category-test-withtable: New file.
56061         * modules/unictype/category-byname: New file.
56062         * modules/unictype/category-none: New file.
56063         * modules/unictype/category-and: New file.
56064         * modules/unictype/category-and-not: New file.
56065         * modules/unictype/category-name: New file.
56066         * modules/unictype/combining-class: New file.
56067         * modules/unictype/category-all: New file.
56068         * modules/unictype/bidicategory-all: New file.
56069         * modules/unictype/bidicategory-byname: New file.
56070         * modules/unictype/bidicategory-name: New file.
56071         * modules/unictype/bidicategory-of: New file.
56072         * modules/unictype/bidicategory-test: New file.
56073         * modules/unictype/decimal-digit: New file.
56074         * modules/unictype/digit: New file.
56075         * modules/unictype/numeric: New file.
56076         * modules/unictype/mirror: New file.
56077         * modules/unictype/property-white-space: New file.
56078         * modules/unictype/property-alphabetic: New file.
56079         * modules/unictype/property-other-alphabetic: New file.
56080         * modules/unictype/property-not-a-character: New file.
56081         * modules/unictype/property-default-ignorable-code-point: New file.
56082         * modules/unictype/property-other-default-ignorable-code-point: New
56083         file.
56084         * modules/unictype/property-deprecated: New file.
56085         * modules/unictype/property-logical-order-exception: New file.
56086         * modules/unictype/property-variation-selector: New file.
56087         * modules/unictype/property-private-use: New file.
56088         * modules/unictype/property-unassigned-code-value: New file.
56089         * modules/unictype/property-uppercase: New file.
56090         * modules/unictype/property-other-uppercase: New file.
56091         * modules/unictype/property-lowercase: New file.
56092         * modules/unictype/property-other-lowercase: New file.
56093         * modules/unictype/property-titlecase: New file.
56094         * modules/unictype/property-soft-dotted: New file.
56095         * modules/unictype/property-id-start: New file.
56096         * modules/unictype/property-other-id-start: New file.
56097         * modules/unictype/property-id-continue: New file.
56098         * modules/unictype/property-other-id-continue: New file.
56099         * modules/unictype/property-xid-start: New file.
56100         * modules/unictype/property-xid-continue: New file.
56101         * modules/unictype/property-pattern-white-space: New file.
56102         * modules/unictype/property-pattern-syntax: New file.
56103         * modules/unictype/property-join-control: New file.
56104         * modules/unictype/property-grapheme-base: New file.
56105         * modules/unictype/property-grapheme-extend: New file.
56106         * modules/unictype/property-other-grapheme-extend: New file.
56107         * modules/unictype/property-grapheme-link: New file.
56108         * modules/unictype/property-bidi-control: New file.
56109         * modules/unictype/property-bidi-left-to-right: New file.
56110         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
56111         * modules/unictype/property-bidi-arabic-right-to-left: New file.
56112         * modules/unictype/property-bidi-european-digit: New file.
56113         * modules/unictype/property-bidi-eur-num-separator: New file.
56114         * modules/unictype/property-bidi-eur-num-terminator: New file.
56115         * modules/unictype/property-bidi-arabic-digit: New file.
56116         * modules/unictype/property-bidi-common-separator: New file.
56117         * modules/unictype/property-bidi-block-separator: New file.
56118         * modules/unictype/property-bidi-segment-separator: New file.
56119         * modules/unictype/property-bidi-whitespace: New file.
56120         * modules/unictype/property-bidi-non-spacing-mark: New file.
56121         * modules/unictype/property-bidi-boundary-neutral: New file.
56122         * modules/unictype/property-bidi-pdf: New file.
56123         * modules/unictype/property-bidi-embedding-or-override: New file.
56124         * modules/unictype/property-bidi-other-neutral: New file.
56125         * modules/unictype/property-hex-digit: New file.
56126         * modules/unictype/property-ascii-hex-digit: New file.
56127         * modules/unictype/property-ideographic: New file.
56128         * modules/unictype/property-unified-ideograph: New file.
56129         * modules/unictype/property-radical: New file.
56130         * modules/unictype/property-ids-binary-operator: New file.
56131         * modules/unictype/property-ids-trinary-operator: New file.
56132         * modules/unictype/property-zero-width: New file.
56133         * modules/unictype/property-space: New file.
56134         * modules/unictype/property-non-break: New file.
56135         * modules/unictype/property-iso-control: New file.
56136         * modules/unictype/property-format-control: New file.
56137         * modules/unictype/property-dash: New file.
56138         * modules/unictype/property-hyphen: New file.
56139         * modules/unictype/property-punctuation: New file.
56140         * modules/unictype/property-line-separator: New file.
56141         * modules/unictype/property-paragraph-separator: New file.
56142         * modules/unictype/property-quotation-mark: New file.
56143         * modules/unictype/property-sentence-terminal: New file.
56144         * modules/unictype/property-terminal-punctuation: New file.
56145         * modules/unictype/property-currency-symbol: New file.
56146         * modules/unictype/property-math: New file.
56147         * modules/unictype/property-other-math: New file.
56148         * modules/unictype/property-paired-punctuation: New file.
56149         * modules/unictype/property-left-of-pair: New file.
56150         * modules/unictype/property-combining: New file.
56151         * modules/unictype/property-composite: New file.
56152         * modules/unictype/property-decimal-digit: New file.
56153         * modules/unictype/property-numeric: New file.
56154         * modules/unictype/property-diacritic: New file.
56155         * modules/unictype/property-extender: New file.
56156         * modules/unictype/property-ignorable-control: New file.
56157         * modules/unictype/property-test: New file.
56158         * modules/unictype/property-byname: New file.
56159         * modules/unictype/property-all: New file.
56160         * modules/unictype/scripts: New file.
56161         * modules/unictype/scripts-all: New file.
56162         * modules/unictype/block-of: New file.
56163         * modules/unictype/block-test: New file.
56164         * modules/unictype/block-list: New file.
56165         * modules/unictype/block-all: New file.
56166         * modules/unictype/syntax-c-whitespace: New file.
56167         * modules/unictype/syntax-java-whitespace: New file.
56168         * modules/unictype/syntax-c-ident: New file.
56169         * modules/unictype/syntax-java-ident: New file.
56170         * modules/unictype/ctype-alnum: New file.
56171         * modules/unictype/ctype-alpha: New file.
56172         * modules/unictype/ctype-cntrl: New file.
56173         * modules/unictype/ctype-digit: New file.
56174         * modules/unictype/ctype-graph: New file.
56175         * modules/unictype/ctype-lower: New file.
56176         * modules/unictype/ctype-print: New file.
56177         * modules/unictype/ctype-punct: New file.
56178         * modules/unictype/ctype-space: New file.
56179         * modules/unictype/ctype-upper: New file.
56180         * modules/unictype/ctype-xdigit: New file.
56181         * modules/unictype/ctype-blank: New file.
56182         * lib/unictype/bidi_byname.c: New file.
56183         * lib/unictype/bidi_name.c: New file.
56184         * lib/unictype/bidi_of.c: New file.
56185         * lib/unictype/bidi_test.c: New file.
56186         * lib/unictype/bitmap.h: New file.
56187         * lib/unictype/block_test.c: New file.
56188         * lib/unictype/blocks.c: New file.
56189         * lib/unictype/categ_C.c: New file.
56190         * lib/unictype/categ_Cc.c: New file.
56191         * lib/unictype/categ_Cf.c: New file.
56192         * lib/unictype/categ_Cn.c: New file.
56193         * lib/unictype/categ_Co.c: New file.
56194         * lib/unictype/categ_Cs.c: New file.
56195         * lib/unictype/categ_L.c: New file.
56196         * lib/unictype/categ_Ll.c: New file.
56197         * lib/unictype/categ_Lm.c: New file.
56198         * lib/unictype/categ_Lo.c: New file.
56199         * lib/unictype/categ_Lt.c: New file.
56200         * lib/unictype/categ_Lu.c: New file.
56201         * lib/unictype/categ_M.c: New file.
56202         * lib/unictype/categ_Mc.c: New file.
56203         * lib/unictype/categ_Me.c: New file.
56204         * lib/unictype/categ_Mn.c: New file.
56205         * lib/unictype/categ_N.c: New file.
56206         * lib/unictype/categ_Nd.c: New file.
56207         * lib/unictype/categ_Nl.c: New file.
56208         * lib/unictype/categ_No.c: New file.
56209         * lib/unictype/categ_P.c: New file.
56210         * lib/unictype/categ_Pc.c: New file.
56211         * lib/unictype/categ_Pd.c: New file.
56212         * lib/unictype/categ_Pe.c: New file.
56213         * lib/unictype/categ_Pf.c: New file.
56214         * lib/unictype/categ_Pi.c: New file.
56215         * lib/unictype/categ_Po.c: New file.
56216         * lib/unictype/categ_Ps.c: New file.
56217         * lib/unictype/categ_S.c: New file.
56218         * lib/unictype/categ_Sc.c: New file.
56219         * lib/unictype/categ_Sk.c: New file.
56220         * lib/unictype/categ_Sm.c: New file.
56221         * lib/unictype/categ_So.c: New file.
56222         * lib/unictype/categ_Z.c: New file.
56223         * lib/unictype/categ_Zl.c: New file.
56224         * lib/unictype/categ_Zp.c: New file.
56225         * lib/unictype/categ_Zs.c: New file.
56226         * lib/unictype/categ_and.c: New file.
56227         * lib/unictype/categ_and_not.c: New file.
56228         * lib/unictype/categ_byname.c: New file.
56229         * lib/unictype/categ_name.c: New file.
56230         * lib/unictype/categ_none.c: New file.
56231         * lib/unictype/categ_of.c: New file.
56232         * lib/unictype/categ_or.c: New file.
56233         * lib/unictype/categ_test.c: New file.
56234         * lib/unictype/combining.c: New file.
56235         * lib/unictype/ctype_alnum.c: New file.
56236         * lib/unictype/ctype_alpha.c: New file.
56237         * lib/unictype/ctype_blank.c: New file.
56238         * lib/unictype/ctype_cntrl.c: New file.
56239         * lib/unictype/ctype_digit.c: New file.
56240         * lib/unictype/ctype_graph.c: New file.
56241         * lib/unictype/ctype_lower.c: New file.
56242         * lib/unictype/ctype_print.c: New file.
56243         * lib/unictype/ctype_punct.c: New file.
56244         * lib/unictype/ctype_space.c: New file.
56245         * lib/unictype/ctype_upper.c: New file.
56246         * lib/unictype/ctype_xdigit.c: New file.
56247         * lib/unictype/decdigit.c: New file.
56248         * lib/unictype/digit.c: New file.
56249         * lib/unictype/identsyntaxmap.h: New file.
56250         * lib/unictype/mirror.c: New file.
56251         * lib/unictype/numeric.c: New file.
56252         * lib/unictype/pr_alphabetic.c: New file.
56253         * lib/unictype/pr_ascii_hex_digit.c: New file.
56254         * lib/unictype/pr_bidi_arabic_digit.c: New file.
56255         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
56256         * lib/unictype/pr_bidi_block_separator.c: New file.
56257         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
56258         * lib/unictype/pr_bidi_common_separator.c: New file.
56259         * lib/unictype/pr_bidi_control.c: New file.
56260         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
56261         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
56262         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
56263         * lib/unictype/pr_bidi_european_digit.c: New file.
56264         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
56265         * lib/unictype/pr_bidi_left_to_right.c: New file.
56266         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
56267         * lib/unictype/pr_bidi_other_neutral.c: New file.
56268         * lib/unictype/pr_bidi_pdf.c: New file.
56269         * lib/unictype/pr_bidi_segment_separator.c: New file.
56270         * lib/unictype/pr_bidi_whitespace.c: New file.
56271         * lib/unictype/pr_byname.c: New file.
56272         * lib/unictype/pr_byname.gperf: New file.
56273         * lib/unictype/pr_combining.c: New file.
56274         * lib/unictype/pr_composite.c: New file.
56275         * lib/unictype/pr_currency_symbol.c: New file.
56276         * lib/unictype/pr_dash.c: New file.
56277         * lib/unictype/pr_decimal_digit.c: New file.
56278         * lib/unictype/pr_default_ignorable_code_point.c: New file.
56279         * lib/unictype/pr_deprecated.c: New file.
56280         * lib/unictype/pr_diacritic.c: New file.
56281         * lib/unictype/pr_extender.c: New file.
56282         * lib/unictype/pr_format_control.c: New file.
56283         * lib/unictype/pr_grapheme_base.c: New file.
56284         * lib/unictype/pr_grapheme_extend.c: New file.
56285         * lib/unictype/pr_grapheme_link.c: New file.
56286         * lib/unictype/pr_hex_digit.c: New file.
56287         * lib/unictype/pr_hyphen.c: New file.
56288         * lib/unictype/pr_id_continue.c: New file.
56289         * lib/unictype/pr_id_start.c: New file.
56290         * lib/unictype/pr_ideographic.c: New file.
56291         * lib/unictype/pr_ids_binary_operator.c: New file.
56292         * lib/unictype/pr_ids_trinary_operator.c: New file.
56293         * lib/unictype/pr_ignorable_control.c: New file.
56294         * lib/unictype/pr_iso_control.c: New file.
56295         * lib/unictype/pr_join_control.c: New file.
56296         * lib/unictype/pr_left_of_pair.c: New file.
56297         * lib/unictype/pr_line_separator.c: New file.
56298         * lib/unictype/pr_logical_order_exception.c: New file.
56299         * lib/unictype/pr_lowercase.c: New file.
56300         * lib/unictype/pr_math.c: New file.
56301         * lib/unictype/pr_non_break.c: New file.
56302         * lib/unictype/pr_not_a_character.c: New file.
56303         * lib/unictype/pr_numeric.c: New file.
56304         * lib/unictype/pr_other_alphabetic.c: New file.
56305         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
56306         * lib/unictype/pr_other_grapheme_extend.c: New file.
56307         * lib/unictype/pr_other_id_continue.c: New file.
56308         * lib/unictype/pr_other_id_start.c: New file.
56309         * lib/unictype/pr_other_lowercase.c: New file.
56310         * lib/unictype/pr_other_math.c: New file.
56311         * lib/unictype/pr_other_uppercase.c: New file.
56312         * lib/unictype/pr_paired_punctuation.c: New file.
56313         * lib/unictype/pr_paragraph_separator.c: New file.
56314         * lib/unictype/pr_pattern_syntax.c: New file.
56315         * lib/unictype/pr_pattern_white_space.c: New file.
56316         * lib/unictype/pr_private_use.c: New file.
56317         * lib/unictype/pr_punctuation.c: New file.
56318         * lib/unictype/pr_quotation_mark.c: New file.
56319         * lib/unictype/pr_radical.c: New file.
56320         * lib/unictype/pr_sentence_terminal.c: New file.
56321         * lib/unictype/pr_soft_dotted.c: New file.
56322         * lib/unictype/pr_space.c: New file.
56323         * lib/unictype/pr_terminal_punctuation.c: New file.
56324         * lib/unictype/pr_test.c: New file.
56325         * lib/unictype/pr_titlecase.c: New file.
56326         * lib/unictype/pr_unassigned_code_value.c: New file.
56327         * lib/unictype/pr_unified_ideograph.c: New file.
56328         * lib/unictype/pr_uppercase.c: New file.
56329         * lib/unictype/pr_variation_selector.c: New file.
56330         * lib/unictype/pr_white_space.c: New file.
56331         * lib/unictype/pr_xid_continue.c: New file.
56332         * lib/unictype/pr_xid_start.c: New file.
56333         * lib/unictype/pr_zero_width.c: New file.
56334         * lib/unictype/scripts.c: New file.
56335         * lib/unictype/sy_c_ident.c: New file.
56336         * lib/unictype/sy_c_whitespace.c: New file.
56337         * lib/unictype/sy_java_ident.c: New file.
56338         * lib/unictype/sy_java_whitespace.c: New file.
56339
56340         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
56341         Unicode 5.0.0.
56342         * lib/unictype/blocks.h: Likewise.
56343         * lib/unictype/categ_C.h: Likewise.
56344         * lib/unictype/categ_Cc.h: Likewise.
56345         * lib/unictype/categ_Cf.h: Likewise.
56346         * lib/unictype/categ_Cn.h: Likewise.
56347         * lib/unictype/categ_Co.h: Likewise.
56348         * lib/unictype/categ_Cs.h: Likewise.
56349         * lib/unictype/categ_L.h: Likewise.
56350         * lib/unictype/categ_Ll.h: Likewise.
56351         * lib/unictype/categ_Lm.h: Likewise.
56352         * lib/unictype/categ_Lo.h: Likewise.
56353         * lib/unictype/categ_Lt.h: Likewise.
56354         * lib/unictype/categ_Lu.h: Likewise.
56355         * lib/unictype/categ_M.h: Likewise.
56356         * lib/unictype/categ_Mc.h: Likewise.
56357         * lib/unictype/categ_Me.h: Likewise.
56358         * lib/unictype/categ_Mn.h: Likewise.
56359         * lib/unictype/categ_N.h: Likewise.
56360         * lib/unictype/categ_Nd.h: Likewise.
56361         * lib/unictype/categ_Nl.h: Likewise.
56362         * lib/unictype/categ_No.h: Likewise.
56363         * lib/unictype/categ_P.h: Likewise.
56364         * lib/unictype/categ_Pc.h: Likewise.
56365         * lib/unictype/categ_Pd.h: Likewise.
56366         * lib/unictype/categ_Pe.h: Likewise.
56367         * lib/unictype/categ_Pf.h: Likewise.
56368         * lib/unictype/categ_Pi.h: Likewise.
56369         * lib/unictype/categ_Po.h: Likewise.
56370         * lib/unictype/categ_Ps.h: Likewise.
56371         * lib/unictype/categ_S.h: Likewise.
56372         * lib/unictype/categ_Sc.h: Likewise.
56373         * lib/unictype/categ_Sk.h: Likewise.
56374         * lib/unictype/categ_Sm.h: Likewise.
56375         * lib/unictype/categ_So.h: Likewise.
56376         * lib/unictype/categ_Z.h: Likewise.
56377         * lib/unictype/categ_Zl.h: Likewise.
56378         * lib/unictype/categ_Zp.h: Likewise.
56379         * lib/unictype/categ_Zs.h: Likewise.
56380         * lib/unictype/categ_of.h: Likewise.
56381         * lib/unictype/combining.h: Likewise.
56382         * lib/unictype/ctype_alnum.h: Likewise.
56383         * lib/unictype/ctype_alpha.h: Likewise.
56384         * lib/unictype/ctype_blank.h: Likewise.
56385         * lib/unictype/ctype_cntrl.h: Likewise.
56386         * lib/unictype/ctype_digit.h: Likewise.
56387         * lib/unictype/ctype_graph.h: Likewise.
56388         * lib/unictype/ctype_lower.h: Likewise.
56389         * lib/unictype/ctype_print.h: Likewise.
56390         * lib/unictype/ctype_punct.h: Likewise.
56391         * lib/unictype/ctype_space.h: Likewise.
56392         * lib/unictype/ctype_upper.h: Likewise.
56393         * lib/unictype/ctype_xdigit.h: Likewise.
56394         * lib/unictype/decdigit.h: Likewise.
56395         * lib/unictype/digit.h: Likewise.
56396         * lib/unictype/mirror.h: Likewise.
56397         * lib/unictype/numeric.h: Likewise.
56398         * lib/unictype/pr_alphabetic.h: Likewise.
56399         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56400         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56401         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56402         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56403         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56404         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56405         * lib/unictype/pr_bidi_control.h: Likewise.
56406         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56407         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56408         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56409         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56410         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56411         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56412         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56413         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56414         * lib/unictype/pr_bidi_pdf.h: Likewise.
56415         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56416         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56417         * lib/unictype/pr_combining.h: Likewise.
56418         * lib/unictype/pr_composite.h: Likewise.
56419         * lib/unictype/pr_currency_symbol.h: Likewise.
56420         * lib/unictype/pr_dash.h: Likewise.
56421         * lib/unictype/pr_decimal_digit.h: Likewise.
56422         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56423         * lib/unictype/pr_deprecated.h: Likewise.
56424         * lib/unictype/pr_diacritic.h: Likewise.
56425         * lib/unictype/pr_extender.h: Likewise.
56426         * lib/unictype/pr_format_control.h: Likewise.
56427         * lib/unictype/pr_grapheme_base.h: Likewise.
56428         * lib/unictype/pr_grapheme_extend.h: Likewise.
56429         * lib/unictype/pr_grapheme_link.h: Likewise.
56430         * lib/unictype/pr_hex_digit.h: Likewise.
56431         * lib/unictype/pr_hyphen.h: Likewise.
56432         * lib/unictype/pr_id_continue.h: Likewise.
56433         * lib/unictype/pr_id_start.h: Likewise.
56434         * lib/unictype/pr_ideographic.h: Likewise.
56435         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56436         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56437         * lib/unictype/pr_ignorable_control.h: Likewise.
56438         * lib/unictype/pr_iso_control.h: Likewise.
56439         * lib/unictype/pr_join_control.h: Likewise.
56440         * lib/unictype/pr_left_of_pair.h: Likewise.
56441         * lib/unictype/pr_line_separator.h: Likewise.
56442         * lib/unictype/pr_logical_order_exception.h: Likewise.
56443         * lib/unictype/pr_lowercase.h: Likewise.
56444         * lib/unictype/pr_math.h: Likewise.
56445         * lib/unictype/pr_non_break.h: Likewise.
56446         * lib/unictype/pr_not_a_character.h: Likewise.
56447         * lib/unictype/pr_numeric.h: Likewise.
56448         * lib/unictype/pr_other_alphabetic.h: Likewise.
56449         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56450         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56451         * lib/unictype/pr_other_id_continue.h: Likewise.
56452         * lib/unictype/pr_other_id_start.h: Likewise.
56453         * lib/unictype/pr_other_lowercase.h: Likewise.
56454         * lib/unictype/pr_other_math.h: Likewise.
56455         * lib/unictype/pr_other_uppercase.h: Likewise.
56456         * lib/unictype/pr_paired_punctuation.h: Likewise.
56457         * lib/unictype/pr_paragraph_separator.h: Likewise.
56458         * lib/unictype/pr_pattern_syntax.h: Likewise.
56459         * lib/unictype/pr_pattern_white_space.h: Likewise.
56460         * lib/unictype/pr_private_use.h: Likewise.
56461         * lib/unictype/pr_punctuation.h: Likewise.
56462         * lib/unictype/pr_quotation_mark.h: Likewise.
56463         * lib/unictype/pr_radical.h: Likewise.
56464         * lib/unictype/pr_sentence_terminal.h: Likewise.
56465         * lib/unictype/pr_soft_dotted.h: Likewise.
56466         * lib/unictype/pr_space.h: Likewise.
56467         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56468         * lib/unictype/pr_titlecase.h: Likewise.
56469         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56470         * lib/unictype/pr_unified_ideograph.h: Likewise.
56471         * lib/unictype/pr_uppercase.h: Likewise.
56472         * lib/unictype/pr_variation_selector.h: Likewise.
56473         * lib/unictype/pr_white_space.h: Likewise.
56474         * lib/unictype/pr_xid_continue.h: Likewise.
56475         * lib/unictype/pr_xid_start.h: Likewise.
56476         * lib/unictype/pr_zero_width.h: Likewise.
56477         * lib/unictype/scripts.h: Likewise.
56478         * lib/unictype/scripts_byname.gperf: Likewise.
56479         * lib/unictype/sy_c_ident.h: Likewise.
56480         * lib/unictype/sy_c_whitespace.h: Likewise.
56481         * lib/unictype/sy_java_ident.h: Likewise.
56482         * lib/unictype/sy_java_whitespace.h: Likewise.
56483
56484         * lib/unictype/Makefile: New file.
56485         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
56486         glibc.
56487         * lib/unictype/3level.h: New file, copied from glibc.
56488         * lib/unictype/3levelbit.h: New file.
56489
56490 2007-11-11  Bruno Haible  <bruno@clisp.org>
56491
56492         * modules/gperf: New file.
56493         * modules/iconv_open (Depends-on): Add it.
56494         (Makefile.am): Remove the GPERF definition.
56495
56496 2007-11-11  Bruno Haible  <bruno@clisp.org>
56497
56498         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
56499         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
56500
56501 2007-11-11  Bruno Haible  <bruno@clisp.org>
56502
56503         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
56504         (usage): Remove function.
56505
56506 2007-11-11  Bruno Haible  <bruno@clisp.org>
56507
56508         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
56509         gl_FUNC_CEILF_LIBS.
56510         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
56511         gl_FUNC_CEIL_LIBS.
56512         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
56513         gl_FUNC_CEILL_LIBS.
56514         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
56515         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
56516         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
56517
56518 2007-11-11  Bruno Haible  <bruno@clisp.org>
56519
56520         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
56521         roundf were declared but do not exist on functions.
56522         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
56523         roundl were declared but do not exist on functions.
56524         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
56525         HAVE_FLOORL_AND_CEILL, respectively.
56526         Needed for Sun C on Solaris 10.
56527
56528 2007-11-11  Bruno Haible  <bruno@clisp.org>
56529
56530         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
56531         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
56532         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
56533         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
56534         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
56535         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
56536         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
56537         HAVE_DECL_ROUNDF.
56538         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
56539         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
56540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
56541         of HAVE_DECL_ROUND*.
56542         * modules/math (Makefile.am): Update.
56543
56544 2007-11-10  Bruno Haible  <bruno@clisp.org>
56545
56546         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
56547         ptrdiff_t as m4/intl.m4.
56548
56549 2007-11-10  Jim Meyering  <meyering@redhat.com>
56550
56551         Avoid link failure for the argmatch test.
56552         * tests/test-argmatch.c (usage): Define function to avoid a link
56553         failure: argmatch_die requires a usage function.
56554
56555 2007-11-09  Bruno Haible  <bruno@clisp.org>
56556
56557         * doc/functions/snprintf.texi: Mention BeOS deficiency.
56558         * doc/functions/vsnprintf.texi: Likewise.
56559         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
56560         with a size argument < 2.
56561
56562 2007-11-09  Bruno Haible  <bruno@clisp.org>
56563
56564         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
56565         buffer. Fixes an inefficiency introduced on 2007-11-03.
56566
56567 2007-11-09  Bruno Haible  <bruno@clisp.org>
56568
56569         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
56570         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
56571
56572 2007-11-08  Jim Meyering  <meyering@redhat.com>
56573
56574         Change cache variable name prefix "jm_" to "gl_" everywhere.
56575         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
56576         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
56577         * m4/uptime.m4: s/gl_/jm_/
56578
56579 2007-11-07  Bruno Haible  <bruno@clisp.org>
56580
56581         Update to GNU gettext 0.17.
56582         * m4/intl.m4: Update to GNU gettext 0.17.
56583         * m4/po.m4: Likewise.
56584         * modules/gettext (Files): Remove m4/ulonglong.m4.
56585         (configure.ac): Require gettext infrastructure from version 0.17.
56586
56587 2007-11-06  Bruno Haible  <bruno@clisp.org>
56588
56589         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
56590         symbolic values are not defined in a public header.
56591         * lib/freadable.c (freadable) [QNX]: Likewise.
56592         * lib/freadahead.c (freadahead) [QNX]: Likewise.
56593         * lib/freading.c (freading) [QNX]: Likewise.
56594         * lib/fseterr.c (fseterr) [QNX]: Likewise.
56595         * lib/fwritable.c (fwritable) [QNX]: Likewise.
56596         * lib/fwriting.c (fwriting) [QNX]: Likewise.
56597         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
56598         Reported by Alain Magloire.
56599
56600         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
56601
56602 2007-11-05  Bruno Haible  <bruno@clisp.org>
56603
56604         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
56605         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
56606         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
56607         Reported by Eric Blake.
56608
56609 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56610             Bruno Haible  <bruno@clisp.org>
56611
56612         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
56613         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
56614         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
56615         (malloc): Undefine also before including <stdlib.h>.
56616         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
56617         Needed on OSF/1 4.0.
56618
56619 2007-11-05  Jim Meyering  <meyering@redhat.com>
56620
56621         git-version-gen: sync from coreutils.
56622         * build-aux/git-version-gen: Add comments.
56623         Change the first '-' to '.' in the snapshot version string,
56624         e.g., 6.9-377-08144 -> 6.9.377-08144
56625         Remove first parameter.
56626         Don't declare a version "-dirty" merely because a time
56627         stamp has changed.
56628
56629 2007-11-04  Bruno Haible  <bruno@clisp.org>
56630
56631         * lib/lock.h: Protect all macro definitions containing an 'if'
56632         statement through a "do { ... } while (0)".
56633         * lib/tls.h: Likewise.
56634
56635 2007-11-04  Bruno Haible  <bruno@clisp.org>
56636
56637         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
56638
56639 2007-11-04  Bruno Haible  <bruno@clisp.org>
56640
56641         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
56642         * modules/fprintf-posix (Depends-on): Add nocrash.
56643         * modules/snprintf-posix (Depends-on): Likewise.
56644         * modules/sprintf-posix (Depends-on): Likewise.
56645         * modules/vasnprintf-posix (Depends-on): Likewise.
56646         * modules/vasprintf-posix (Depends-on): Likewise.
56647         * modules/vfprintf-posix (Depends-on): Likewise.
56648         * modules/vsnprintf-posix (Depends-on): Likewise.
56649         * modules/vsprintf-posix (Depends-on): Likewise.
56650         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56651         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56652         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56653         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56654         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56655         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56656         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56657
56658 2007-11-04  Bruno Haible  <bruno@clisp.org>
56659
56660         * modules/nocrash: New file.
56661         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
56662         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
56663
56664 2007-11-04  Bruno Haible  <bruno@clisp.org>
56665
56666         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
56667         precision handling.
56668         * tests/test-vasprintf-posix.c (test_function): Likewise.
56669         * tests/test-snprintf-posix.h (test_function): Likewise.
56670         * tests/test-sprintf-posix.h (test_function): Likewise.
56671
56672         Fix *printf behaviour for large precisions on mingw and BeOS.
56673         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
56674         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
56675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
56676         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56677         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56678         gl_PRINTF_PRECISION and test its result. Invoke
56679         gl_PREREQ_VASNPRINTF_PRECISION.
56680         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56681         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56682         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56683         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56684         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56685         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56686         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56687         * doc/functions/fprintf.texi: Update.
56688         * doc/functions/printf.texi: Update.
56689         * doc/functions/snprintf.texi: Update.
56690         * doc/functions/sprintf.texi: Update.
56691         * doc/functions/vfprintf.texi: Update.
56692         * doc/functions/vprintf.texi: Update.
56693         * doc/functions/vsnprintf.texi: Update.
56694         * doc/functions/vsprintf.texi: Update.
56695
56696 2007-11-04  Bruno Haible  <bruno@clisp.org>
56697
56698         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
56699
56700 2007-11-04  Bruno Haible  <bruno@clisp.org>
56701
56702         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
56703         Reported by Sylvain Beucler <beuc@gnu.org>.
56704
56705 2007-11-03  Bruno Haible  <bruno@clisp.org>
56706
56707         * tests/test-fprintf-posix2.sh: New file.
56708         * tests/test-fprintf-posix2.c: New file.
56709         * modules/fprintf-posix-tests (Files): Add them.
56710         (TESTS): Add test-fprintf-posix2.sh.
56711         (configure.ac): Check for getrlimit and setrlimit.
56712         (check_PROGRAMS): Add test-fprintf-posix2.
56713
56714         * tests/test-printf-posix2.sh: New file.
56715         * tests/test-printf-posix2.c: New file.
56716         * modules/printf-posix-tests (Files): Add them.
56717         (TESTS): Add test-printf-posix2.sh.
56718         (configure.ac): Check for getrlimit and setrlimit.
56719         (check_PROGRAMS): Add test-printf-posix2.
56720
56721         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
56722         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
56723         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
56724         (decode_double): New function, copied from decode_long_double.
56725         (scale10_round_decimal_decoded): New function, extracted from
56726         scale10_round_decimal_long_double.
56727         (scale10_round_decimal_long_double): Use it.
56728         (scale10_round_decimal_double): New function.
56729         (floorlog10): New function.
56730         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
56731         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
56732         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56733         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56734         gl_PRINTF_ENOMEM and test its result. Invoke
56735         gl_PREREQ_VASNPRINTF_ENOMEM.
56736         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56737         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56738         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56739         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56740         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56741         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56742         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56743         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
56744         * modules/snprintf-posix (Depends-on): Likewise.
56745         * modules/sprintf-posix (Depends-on): Likewise.
56746         * modules/vasnprintf-posix (Depends-on): Likewise.
56747         * modules/vasprintf-posix (Depends-on): Likewise.
56748         * modules/vfprintf-posix (Depends-on): Likewise.
56749         * modules/vsnprintf-posix (Depends-on): Likewise.
56750         * modules/vsprintf-posix (Depends-on): Likewise.
56751         * doc/functions/fprintf.texi: Update.
56752         * doc/functions/printf.texi: Update.
56753         * doc/functions/snprintf.texi: Update.
56754         * doc/functions/sprintf.texi: Update.
56755         * doc/functions/vfprintf.texi: Update.
56756         * doc/functions/vprintf.texi: Update.
56757         * doc/functions/vsnprintf.texi: Update.
56758         * doc/functions/vsprintf.texi: Update.
56759
56760 2007-11-03  Bruno Haible  <bruno@clisp.org>
56761
56762         * modules/frexp-nolibm-tests: New file.
56763
56764         * modules/frexp-nolibm: New file.
56765         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
56766
56767 2007-11-03  Bruno Haible  <bruno@clisp.org>
56768
56769         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
56770         value is C99 compliant.
56771         Needed for OSF/1 5.1.
56772
56773 2007-11-03  Bruno Haible  <bruno@clisp.org>
56774
56775         Fix out-of-memory handling of vasnprintf.
56776         * lib/printf-parse.c: Include <errno.h>.
56777         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
56778         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
56779         is already set.
56780
56781 2007-11-02  Eric Blake  <ebb9@byu.net>
56782
56783         Fix tests on cygwin.
56784         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
56785
56786 2007-11-01  Bruno Haible  <bruno@clisp.org>
56787
56788         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
56789         warning.
56790         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
56791         needed for POSIX compatibility.
56792
56793 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
56794
56795         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
56796         for compatibility with GNU.
56797
56798 2007-11-01  Bruno Haible  <bruno@clisp.org>
56799
56800         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
56801         (putenv): Renamed from rpl_putenv. Change argument type from
56802         'const char *' to 'char *'.
56803         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
56804         of defining putenv in config.h, just set REPLACE_PUTENV.
56805         * modules/putenv (Depends-on): Add stdlib.
56806         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56807         (Include): Use <stdlib.h>.
56808         * lib/stdlib.in.h (putenv): New declaration.
56809         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
56810         REPLACE_PUTENV.
56811         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
56812         REPLACE_PUTENV.
56813         Needed for MacOS X 10.5.0.
56814         Reported by Peter O'Gorman <peter@pogma.com>.
56815
56816 2007-11-01  Jim Meyering  <meyering@redhat.com>
56817
56818         Treat an empty date string exactly like "0".
56819         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
56820         if the remaining date string (to be parsed) is empty, use "0".
56821         Reported by Mischa Molhoek and discussed in this thread:
56822         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
56823
56824 2007-10-31  Bruno Haible  <bruno@clisp.org>
56825
56826         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
56827         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
56828         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
56829         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
56830         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
56831         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
56832
56833 2007-10-31  Bruno Haible  <bruno@clisp.org>
56834
56835         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
56836         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
56837         (AC_TYPE_LONG_LONG_INT): Use it.
56838         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
56839         it as well.
56840         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
56841         to m4/longlong.m4.
56842         * modules/stdint (Files): Remove m4/ulonglong.m4.
56843         * modules/strtoull (Files): Use m4/longlong.m4 instead of
56844         m4/ulonglong.m4.
56845         * modules/strtoumax (Files): Likewise.
56846
56847 2007-10-30  Bruno Haible  <bruno@clisp.org>
56848
56849         * modules/xvasprintf-posix: New file.
56850         Suggested by Eric Blake.
56851
56852 2007-10-30  Bruno Haible  <bruno@clisp.org>
56853
56854         * modules/xprintf-posix-tests: New file.
56855         * tests/test-xprintf-posix.sh: New file.
56856         * tests/test-xprintf-posix.c: New file.
56857         * tests/test-xfprintf-posix.c: New file.
56858
56859         * modules/xprintf-posix: New file.
56860
56861 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56862
56863         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
56864         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
56865         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
56866
56867 2007-10-29  Bruno Haible  <bruno@clisp.org>
56868
56869         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
56870         contain the special marker '_cv_'.
56871         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
56872         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
56873         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
56874         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
56875         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
56876         Reported by Ralf Wildenhues.
56877
56878 2007-10-29  Bruno Haible  <bruno@clisp.org>
56879
56880         * gnulib-tool (func_import): When --lgpl is not specified, set
56881         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
56882         GPLv3.
56883         Reported by Simon Josefsson.
56884
56885 2007-10-28  Bruno Haible  <bruno@clisp.org>
56886
56887         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
56888         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
56889         HAVE_DECL_ISFINITE.
56890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56891         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
56892         HAVE_DECL_ISFINITE.
56893
56894 2007-10-28  Bruno Haible  <bruno@clisp.org>
56895
56896         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
56897         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
56898
56899 2007-10-28  Bruno Haible  <bruno@clisp.org>
56900
56901         Fix link errors with Sun C 5.0 on Solaris 10.
56902         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
56903         function is declared but not present in the compiler's libm.
56904         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
56905         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
56906         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
56907         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
56908         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
56909         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
56910         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
56911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56912         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
56913         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
56914         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
56915         HAVE_DECL_FLOORL.
56916
56917 2007-10-28  Bruno Haible  <bruno@clisp.org>
56918
56919         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
56920         gl_FUNC_FLOORL. Cache the result.
56921         (gl_FUNC_FLOORL): Use it.
56922         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
56923         gl_FUNC_CEILL. Cache the result.
56924         (gl_FUNC_CEILL): Use it.
56925
56926         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
56927         gl_FUNC_FLOOR. Cache the result.
56928         (gl_FUNC_FLOOR): Use it.
56929         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
56930         gl_FUNC_CEIL. Cache the result.
56931         (gl_FUNC_CEIL): Use it.
56932
56933         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
56934         gl_FUNC_FLOORF. Cache the result.
56935         (gl_FUNC_FLOORF): Use it.
56936         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
56937         gl_FUNC_CEILF. Cache the result.
56938         (gl_FUNC_CEILF): Use it.
56939
56940 2007-10-28  Bruno Haible  <bruno@clisp.org>
56941
56942         * gnulib-tool: Allow specifying the LGPL version number through
56943         --lgpl=2 or --lgpl=3.
56944         (func_usage): Document --lgpl with argument.
56945         Handle --lgpl=... arguments.
56946         (func_import): Recognize also gl_LGPL calls with an argument. When
56947         --lgpl=2 is used and the module's license is just LGPL, report an
56948         error. Set sed_transform_lib_file according to the lgpl variable. In
56949         the generated files, use --lgpl or gl_LGPL invocations with argument,
56950         if necessary.
56951         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
56952         an LGPv2+ license.
56953         * doc/gnulib-tool.texi (Modified imports): Update explanation of
56954         gl_LGPL macro.
56955
56956 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56957             Bruno Haible  <bruno@clisp.org>
56958
56959         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
56960         (u16_uctomb_aux): Likewise.
56961         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
56962         !HAVE_INLINE.
56963         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
56964
56965 2007-10-28  Bruno Haible  <bruno@clisp.org>
56966
56967         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
56968         Invoke AM_GETTEXT_OPTION if it exists.
56969         * modules/vasprintf: Likewise.
56970         * modules/verror: Likewise.
56971         * modules/xprintf: Likewise.
56972         * modules/xvasprintf: Likewise.
56973
56974 2007-10-27  Ben Pfaff  <blp@gnu.org>
56975
56976         * lib/math.in.h: Define isfinite macro and prototypes for
56977         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
56978         implementations.
56979         * m4/math_h.m4: New substitutions for isfinite module.
56980         * lib/isfinite.c: New file.
56981         * m4/isfinite.m4: New file.
56982         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
56983         * modules/isfinite: New file.
56984         * modules/isfinite-tests: New file.
56985         * tests/tests-isfinite.c: New file.
56986         * doc/functions/isfinite.texi: Mention isfinite module.
56987         * MODULES.html.sh: Mention new module.
56988
56989 2007-10-27  Ben Pfaff  <blp@gnu.org>
56990
56991         Ralf Wildenhues reported that Tru64 4.0D declares the round
56992         functions but does not have definitions.
56993         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
56994         cannot be found in any library, set the output variable to
56995         "missing" instead of "".
56996         * m4/round.m4: Also use our substitute if we cannot find round in
56997         any library, even if it is declared.
56998         * m4/roundf.m4: Likewise for roundf.
56999         * m4/roundl.m4: Likewise for roundl.
57000         * lib/math.in.h: Undefine roundf, round, roundl before defining
57001         their replacements, to allow for hypothetical systems where these
57002         may be defined as macros but not available in libraries.
57003
57004 2007-10-27  Bruno Haible  <bruno@clisp.org>
57005
57006         * doc/gnulib.texi: Invoke @firstparagraphindent.
57007         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
57008         changes in gnulib.
57009         (Source changes): New section.
57010
57011 2007-10-26  Bruno Haible  <bruno@clisp.org>
57012
57013         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
57014         borrowed from autoconf.
57015
57016 2007-10-26  Bruno Haible  <bruno@clisp.org>
57017
57018         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
57019         strerror returned the empty string. Needed on HP-UX 11.00.
57020
57021 2007-10-24  Micah Cowan  <micah@cowan.name>
57022
57023         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
57024         * build-aux/bootstrap: Remove support for now-unnecessary option,
57025         --cvs-user, and envvars CVS_USER, CVS_RSH.
57026
57027 2007-10-24  Jim Meyering  <meyering@redhat.com>
57028
57029         Avoid diagnostics from sha1sum when there is no cached checksum.
57030         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
57031         if the po.s1 file hasn't been created yet.
57032
57033         * build-aux/bootstrap: Sync from coreutils:
57034         2007-10-24  Jim Meyering  <meyering@redhat.com>
57035         Get gnulib from the git repository, not from an obsolete cvs one.
57036         * build-aux/bootstrap: Suggestion from Micah Cowan.
57037         2007-10-04  Jim Meyering  <jim@meyering.net>
57038         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
57039         (update_po_files): Work also when there are no .po files in po/.
57040
57041 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57042
57043         * README: Append ".git" to git and cg examples.
57044         Problem reported by Benoit Sigoure.
57045
57046 2007-10-23  Micah Cowan  <micah@cowan.name>
57047
57048         * users.txt: Add wget.
57049
57050 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57051
57052         Fix linking of some unistdio tests on FreeBSD.
57053         * modules/unistdio/u16-vsnprintf-tests
57054         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
57055         * modules/unistdio/u16-vsprintf-tests
57056         (test_u16_vsnprintf1_LDADD): Likewise.
57057         * modules/unistdio/u32-vsnprintf-tests
57058         (test_u32_vsnprintf1_LDADD): Likewise.
57059         * modules/unistdio/u32-vsprintf-tests
57060         (test_u32_vsprintf1_LDADD): Likewise.
57061         * modules/unistdio/u8-vsnprintf-tests
57062         (test_u8_vsnprintf1_LDADD): Likewise.
57063         * modules/unistdio/u8-vsprintf-tests
57064         (test_u8_vsprintf1_LDADD): Likewise.
57065         * modules/unistdio/ulc-vsnprintf-tests
57066         (test_ulc_vsnprintf1_LDADD): Likewise.
57067         * modules/unistdio/ulc-vsprintf-tests
57068         (test_ulc_vsprintf1_LDADD): Likewise.
57069
57070         Fix linking of some uniconv tests on FreeBSD.
57071         * modules/uniconv/u16-conv-from-enc-tests
57072         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
57073         * modules/uniconv/u16-conv-to-enc-tests
57074         (test_u16_conv_to_enc_LDADD): Likewise.
57075         * modules/uniconv/u16-strconv-from-enc-tests
57076         (test_u16_strconv_from_enc_LDADD): Likewise.
57077         * modules/uniconv/u16-strconv-to-enc-tests
57078         (test_u16_strconv_to_enc_LDADD): Likewise.
57079         * modules/uniconv/u32-conv-from-enc-tests
57080         (test_u32_conv_from_enc_LDADD): Likewise.
57081         * modules/uniconv/u32-conv-to-enc-tests
57082         (test_u32_conv_to_enc_LDADD): Likewise.
57083         * modules/uniconv/u32-strconv-from-enc-tests
57084         (test_u32_strconv_from_enc_LDADD): Likewise.
57085         * modules/uniconv/u32-strconv-to-enc-tests
57086         (test_u32_strconv_to_enc_LDADD): Likewise.
57087         * modules/uniconv/u8-conv-from-enc-tests
57088         (test_u8_conv_from_enc_LDADD): Likewise.
57089         * modules/uniconv/u8-conv-to-enc-tests
57090         (test_u8_conv_to_enc_LDADD): Likewise.
57091         * modules/uniconv/u8-strconv-from-enc-tests
57092         (test_u8_strconv_from_enc_LDADD): Likewise.
57093         * modules/uniconv/u8-strconv-to-enc-tests
57094         (test_u8_strconv_to_enc_LDADD): Likewise.
57095
57096 2007-10-22  Bruno Haible  <bruno@clisp.org>
57097
57098         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
57099         size.
57100
57101 2007-10-22  Eric Blake  <ebb9@byu.net>
57102
57103         Tweak x*printf documentation.
57104         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
57105         variable name and comments.
57106         Suggested by Bruno Haible.
57107
57108 2007-10-22  Bruno Haible  <bruno@clisp.org>
57109
57110         * lib/acl.c (copy_acl): Fix file name in comment.
57111
57112 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57113
57114         Fix Tru64 problem with stdbool.h.
57115         * lib/stdbool.in.h (false, true):
57116         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
57117         Don't declare as an enum in this situation; it runs afoul of Tru64.
57118         Problem reported by Steven M. Schweda in
57119         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
57120
57121 2007-10-22  Eric Blake  <ebb9@byu.net>
57122
57123         Also wrap vf?printf.
57124         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
57125         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
57126         (xvprintf, xvfprintf): New functions.
57127
57128 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57129
57130         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
57131         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
57132
57133         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
57134         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
57135
57136 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57137
57138         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
57139         by Bruno Haible.
57140
57141 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57142
57143         * lib/getloadavg.c
57144         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
57145         Undef `sys' after including sys/table.h, for Tru64 4.0D.
57146
57147         * tests/test-i-ring.c: Work for C89.
57148
57149 2007-10-22  Bruno Haible  <bruno@clisp.org>
57150
57151         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
57152         -1u, in preprocessor expression, so that we don't test for the bug
57153         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
57154         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
57155
57156 2007-10-22  Eric Blake  <ebb9@byu.net>
57157
57158         * tests/test-yesno.sh: Silence stderr during test.
57159
57160 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57161
57162         * modules/crypto/gc-camellia: New file.
57163
57164         * m4/gc-camellia.m4: New file.
57165
57166         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
57167
57168         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
57169
57170 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57171
57172         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
57173         --help to stdout.  Reported by sms@antinode.org (Steven
57174         M. Schweda).
57175
57176 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57177
57178         * users.txt: Fix link to libksba.
57179
57180 2007-10-21  Ben Pfaff  <blp@gnu.org>
57181
57182         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
57183         round.c roundf implementation that depends on floorf and ceilf to
57184         be tested unconditionally.
57185
57186 2007-10-21  Ben Pfaff  <blp@gnu.org>
57187
57188         * m4/check-libm-func.m4: Removed.
57189         * m4/check-math-lib.m4: New file.
57190         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
57191         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
57192         definition and lack of AC_LIBOBJ([roundf]).
57193         * m4/roundl.m4: Ditto, and similarly for roundl.
57194         * modules/round: Reference new m4 file.
57195         * modules/roundf: Ditto.
57196         * modules/roundl: Ditto.
57197         * tests/test-round2.c (main): Use ROUND instead of round.
57198         Bug report from Bruno Haible.
57199
57200 2007-10-21  Bruno Haible  <bruno@clisp.org>
57201
57202         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
57203         context.
57204
57205 2007-10-21  Bruno Haible  <bruno@clisp.org>
57206
57207         * tests/test-wcwidth.c (main): Allow negative result for some control
57208         characters.
57209
57210         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
57211         Needed on OSF/1 5.1.
57212
57213 2007-10-21  Bruno Haible  <bruno@clisp.org>
57214
57215         * tests/test-floorf1.c: Include isnanf.h.
57216         (main): Use isnanf() instead of isnan().
57217         * tests/test-ceilf1.c: Include isnanf.h.
57218         (main): Use isnanf() instead of isnan().
57219         * tests/test-truncf1.c: Include isnanf.h.
57220         (main): Use isnanf() instead of isnan().
57221         * tests/test-roundf1.c: Include isnanf.h.
57222         (main): Use isnanf() instead of isnan().
57223
57224 2007-10-21  Eric Blake  <ebb9@byu.net>
57225
57226         * users.txt: Update URL for m4.
57227
57228 2007-10-21  Bruno Haible  <bruno@clisp.org>
57229
57230         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
57231
57232 2007-10-21  Bruno Haible  <bruno@clisp.org>
57233
57234         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
57235         Git's management files if the CVS files are not present.
57236
57237 2007-10-20  Bruno Haible  <bruno@clisp.org>
57238
57239         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
57240         gcc-3.4.x.
57241
57242 2007-10-20  Ben Pfaff  <blp@gnu.org>
57243
57244         * lib/math.in.h: Declare round, roundf, roundl if we are providing
57245         implementations.
57246         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
57247         * lib/round.c: New file.
57248         * lib/roundf.c: New file.
57249         * lib/roundl.c: New file.
57250         * m4/round.m4: New file.
57251         * m4/roundf.m4: New file.
57252         * m4/roundl.m4: New file.
57253         * m4/check-libm-func-m4: New file.
57254         * modules/math: Replace round, roundf, roundl related @VARS@ in
57255         math.in.h.
57256         * modules/round: New file.
57257         * modules/round-tests: New file.
57258         * modules/roundf: New file.
57259         * modules/roundf-tests: New file.
57260         * modules/roundl: New file.
57261         * modules/roundl-tests: New file.
57262         * tests/test-round1.c: New file.
57263         * tests/test-round2.c: New file.
57264         * tests/test-roundf1.c: New file.
57265         * tests/test-roundf2.c: New file.
57266         * tests/test-roundl.c: New file.
57267         * doc/functions/round.texi: Mention round module.
57268         * doc/functions/roundf.texi: Mention roundf module.
57269         * doc/functions/roundl.texi: Mention roundl module.
57270         * MODULES.html.sh: Mention new modules.
57271         Thanks to Bruno Haible for suggestions.
57272
57273 2007-10-20  Jim Meyering  <meyering@redhat.com>
57274
57275         * lib/xprintf.c: Include <config.h> unconditionally.
57276
57277         Change xprintf's license to GPL.
57278         * modules/xprintf (License): s/LGPL/GPL/, since this module
57279         depends on modules (exit and exitfail) which are GPL.
57280         Suggestion from Bruno Haible.
57281
57282         xprintf fixes.
57283         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
57284         Use a clearer diagnostic.
57285         Patch from Bruno Haible.
57286
57287 2007-10-20  Bruno Haible  <bruno@clisp.org>
57288
57289         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
57290         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
57291         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57292
57293 2007-10-20  Bruno Haible  <bruno@clisp.org>
57294
57295         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
57296         precision in the comparison result > x - 1 or similar.
57297         * tests/test-ceilf2.c (correct_result_p): Likewise.
57298         * tests/test-truncf2.c (correct_result_p): Likewise.
57299         * tests/test-trunc2.c (correct_result_p): Likewise.
57300         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57301
57302 2007-10-20  Bruno Haible  <bruno@clisp.org>
57303
57304         * modules/ceil: New file.
57305         * m4/ceil.m4: New file.
57306         * doc/functions/ceil.texi: Mention the 'ceil' module.
57307
57308 2007-10-20  Bruno Haible  <bruno@clisp.org>
57309
57310         * modules/floor: New file.
57311         * m4/floor.m4: New file.
57312         * doc/functions/floor.texi: Mention the 'floor' module.
57313
57314 2007-10-20  Bruno Haible  <bruno@clisp.org>
57315
57316         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
57317         of %a.
57318         * modules/floorf-tests (Depends-on): Likewise.
57319         * modules/truncf-tests (Depends-on): Likewise.
57320         * modules/trunc-tests (Depends-on): Likewise.
57321         Reported by Ben Pfaff.
57322
57323 2007-10-19  Jim Meyering  <meyering@redhat.com>
57324
57325         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
57326         Don't bother testing specific errno values.  Just test ferror.
57327
57328         New module: xprintf
57329         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
57330
57331 2007-10-19  Bruno Haible  <bruno@clisp.org>
57332
57333         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
57334         syntax.
57335         * modules/javaexec (Makefile.am): Likewise.
57336         * modules/relocatable-prog (Makefile.am): Likewise.
57337         Suggested by Jim Meyering.
57338
57339 2007-10-18  Bruno Haible  <bruno@clisp.org>
57340
57341         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
57342         Reported by Jim Meyering.
57343
57344 2007-10-18  Eric Blake  <ebb9@byu.net>
57345
57346         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
57347
57348 2007-10-18  Bruno Haible  <bruno@clisp.org>
57349
57350         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
57351         the format string into writable memory. Needed in Fortify conditions.
57352
57353 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
57354             Bruno Haible  <bruno@clisp.org>
57355
57356         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
57357         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
57358         * modules/trim (Depends-on): Add mbchar.
57359         (configure.ac): Add gl_FUNC_MBRTOWC.
57360         (Makefile.am): Augment lib_SOURCES.
57361
57362 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57363
57364         Modify glob.c to use fstatat and dirfd, to simplify it.
57365         Suggested by Eric Blake.
57366         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
57367         Don't include <stdbool.h>; not used.
57368         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
57369         (link_exists_p): Simplify implementation, since we can now assume
57370         dirfd and fstatat.
57371         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
57372
57373 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57374
57375         * gnulib-tool (func_get_dependencies): Fix sed script to
57376         match only tests.
57377
57378 2007-10-17  Bruno Haible  <bruno@clisp.org>
57379
57380         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
57381         allow locale names without encoding suffix.
57382         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57383         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57384
57385 2007-10-16  Bruno Haible  <bruno@clisp.org>
57386
57387         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
57388         * lib/getgroups.c (getgroups): Likewise.
57389         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
57390
57391 2007-10-16  Bruno Haible  <bruno@clisp.org>
57392
57393         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
57394         * modules/malloc-posix (License): Likewise.
57395         * modules/realloc-posix (License): Likewise.
57396         * modules/calloc-posix (License): Likewise.
57397         * modules/intprops (License): Change from GPL to LGPL, with
57398         Paul Eggert's approval.
57399
57400 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57401
57402         Merge glibc changes into lib/glob.c.
57403
57404         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
57405         2007-10-15 04:59:03 UTC.  Here are the changes:
57406
57407         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
57408
57409         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
57410
57411         * lib/glob.c: Add some branch prediction throughout.
57412
57413         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
57414
57415         [BZ #5103]
57416         * lib/glob.c (glob): Recognize patterns starting \/.
57417
57418         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
57419
57420         [BZ #3996]
57421         * lib/glob.c (attribute_hidden): Define if not defined.
57422         (glob): Unescape dirname, filename or username when needed and not
57423         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
57424         is NULL.  Handle unescaped [ in pattern without closing ].
57425         Don't pass GLOB_CHECK down to recursive glob for directories.
57426         (__glob_pattern_type): New function.
57427         (__glob_pattern_p): Implement using __glob_pattern_type.
57428         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
57429         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
57430         Remove unreachable code.
57431
57432         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
57433
57434         * lib/glob.c (glob_in_dir): Add some comments and asserts to
57435         explain why there are no leaks.
57436
57437         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
57438
57439         [BZ #3253]
57440         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
57441         time, rather allocate increasingly bigger arrays of pointers, if
57442         possible with alloca, if too large with malloc.
57443
57444 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57445
57446         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
57447         Problem reported by H.Merijn Brand in
57448         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
57449         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
57450         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57451
57452 2007-10-15  Bruno Haible  <bruno@clisp.org>
57453
57454         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
57455         with explicit rpl_ prefix.
57456         * lib/fopen.c (fopen): Likewise.
57457         * lib/freopen.c (freopen): Likewise.
57458         * lib/iconv.c (iconv): Likewise.
57459         * lib/iconv_close.c (iconv_close): Likewise.
57460
57461 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57462
57463         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
57464
57465 2007-10-15  Bruno Haible  <bruno@clisp.org>
57466
57467         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
57468         <stddef.h> instead of <stdlib.h> since we only need NULL.
57469         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57470
57471 2007-10-15  Bruno Haible  <bruno@clisp.org>
57472
57473         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
57474         Replace paragraph talking about LIBOBJS.
57475         Reported by Colin Watson <cjwatson@debian.org>.
57476
57477 2007-10-15  Bruno Haible  <bruno@clisp.org>
57478
57479         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
57480         <stdlib.h> before using NULL.
57481
57482 2007-10-15  Simon Josefsson  <simon@josefsson.org>
57483
57484         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
57485         Reported by Albert Chin <china@thewrittenword.com>.
57486
57487 2007-10-14  Bruno Haible  <bruno@clisp.org>
57488
57489         * modules/iconv_open-utf-tests: New file.
57490         * tests/test-iconv-utf.c: New file.
57491
57492         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
57493         * modules/iconv_open-utf: New file.
57494         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
57495         (iconv, iconv_close): New declarations.
57496         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
57497         be defined.
57498         (iconv_open): Add special handling of conversion between UTF-8 and
57499         UTF-{16,32}{BE,LE}.
57500         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
57501         * lib/iconv_close.c: New file.
57502         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
57503         gl_FUNC_ICONV_OPEN.
57504         (gl_FUNC_ICONV_OPEN): Use it.
57505         (gl_FUNC_ICONV_OPEN_UTF): New macro.
57506         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
57507         and REPLACE_ICONV_UTF.
57508         * modules/iconv_open (Depends-on): Add c-strcase.
57509         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
57510         ICONV_CONST.
57511         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
57512
57513 2007-10-13  Albert Chin  <china@thewrittenword.com>
57514             Bruno Haible  <bruno@clisp.org>
57515
57516         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
57517         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
57518
57519 2007-10-13  Bruno Haible  <bruno@clisp.org>
57520
57521         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
57522         defined, use the ISO C99 inline semantics.
57523         * lib/argp.h (ARGP_EI): Likewise.
57524
57525 2007-10-13  Bruno Haible  <bruno@clisp.org>
57526
57527         Handle 'inline' change in gcc 4.3.0.
57528         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
57529         argp_fmtstream_write, argp_fmtstream_set_lmargin,
57530         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
57531         argp_fmtstream_point): Disable 'extern' declaration if the function
57532         definition is going to be provided inline.
57533         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
57534         semantics, not the ISO C99 inline semantics.
57535         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
57536         'extern' declaration if the function definition is going to be provided
57537         inline.
57538         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
57539         the GNU C inline semantics, not the ISO C99 inline semantics. With
57540         GCC 4.2, avoid a warning.
57541
57542 2007-10-13  Bruno Haible  <bruno@clisp.org>
57543
57544         * lib/freading.h (freading): Enable the use of __freading for
57545         glibc >= 2.7.
57546         * lib/freading.c (freading): Likewise.
57547
57548 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57549
57550         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
57551         "warning: C99 inline functions are not supported; using GNU89".
57552
57553 2007-10-12  Bruno Haible  <bruno@clisp.org>
57554
57555         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
57556         of 2.
57557         * tests/test-ceilf2.c: New file.
57558         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
57559
57560         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
57561         * modules/ceilf-tests: Update.
57562
57563 2007-10-12  Bruno Haible  <bruno@clisp.org>
57564
57565         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
57566         of 2.
57567         * tests/test-floorf2.c: New file.
57568         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
57569
57570         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
57571         * modules/floorf-tests: Update.
57572
57573 2007-10-12  Bruno Haible  <bruno@clisp.org>
57574
57575         * tests/test-trunc2.c: New file.
57576         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
57577
57578         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
57579         * modules/trunc-tests: Update.
57580
57581 2007-10-12  Bruno Haible  <bruno@clisp.org>
57582
57583         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
57584         of 2.
57585         * tests/test-truncf2.c: New file.
57586         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
57587
57588         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
57589         * modules/truncf-tests: Update.
57590
57591 2007-10-11  Eric Blake  <ebb9@byu.net>
57592
57593         Don't claim strerror is broken on Interix.
57594         * doc/functions/strerror.texi (strerror): Known broken systems are
57595         now Solaris 8, and not Interix.
57596         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
57597         Interix on cross-compile.
57598         Reported by Martin Koeppe in
57599         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
57600
57601 2007-10-11  Bruno Haible  <bruno@clisp.org>
57602
57603         * modules/i-ring-tests: New file.
57604         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
57605         instead of assert.
57606
57607 2007-10-11  Bruno Haible  <bruno@clisp.org>
57608
57609         * modules/filenamecat-tests: New file.
57610         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
57611         * lib/filenamecat.c: Remove test code.
57612
57613 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57614
57615         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
57616
57617         * lib/strerror.c: Include <string.h> always, to test interface,
57618         and to remove the need for the dummy.
57619         Include intprops.h to compute width instead of doing it ourselves
57620         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
57621         (strerror): Define it to return NULL if there's no system strerror.
57622         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
57623         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
57624         ancient pre-strerror Unix systems well any more.  Saying "unknown
57625         system error" is enough.
57626         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
57627         simpler strerror.c implementation.
57628         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
57629         Simplify the tests to reflect the simpler strerror implementation.
57630         * modules/strerror (Depends-on): Add intprops.
57631
57632 2007-10-09  Eric Blake  <ebb9@byu.net>
57633
57634         Silence test-fpending.
57635         * modules/fpending-tests (Files): Add wrapper script.
57636         * tests/test-fpending.sh: New file.
57637
57638 2007-10-09  Bruno Haible  <bruno@clisp.org>
57639
57640         * MODULES.html.sh (func_module): Don't create a hyperlink for
57641         function names like 'printf_frexp'.
57642         (Misc): Add crc, memxor.
57643         (Characteristics of floating types): New section.
57644         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
57645         isnanf-nolibm, signbit, trunc, truncf, truncl.
57646         (Enhancements for ISO C 99 functions): New subsection Input/output.
57647         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
57648         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
57649         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
57650         (Compatibility checks for POSIX:2001 functions): Add clock-time.
57651         (Enhancements for POSIX:2001 functions): Add chdir-long.
57652         (File system functions): Add areadlink, chdir-safer, read-file.
57653         Remove cycle-check.
57654         (File system as inode set): New section.
57655         (Date and time): Add gethrxtime.
57656         (Multithreading): Add openmp.
57657         (Internationalization functions): Add localename.
57658         (Unicode string functions): Add unistr/u*-mbsnlen.
57659         (Support for maintaining and releasing projects): Add git-version-gen.
57660         (Lone files): Remove directories.
57661
57662 2007-10-08  Ben Pfaff  <blp@gnu.org>
57663
57664         * lib/xmalloca.h: Fix typo in comment.
57665
57666 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57667
57668         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
57669         when avoiding problems with integer overflow.  Use a portable test
57670         instead.
57671
57672 2007-10-08  Simon Josefsson  <simon@josefsson.org>
57673
57674         * modules/dummy (License): Change to LGPLv2+.
57675         * modules/float (License): Likewise
57676         * modules/realloc (License): Likewise
57677         * modules/stdlib (License): Likewise
57678
57679 2007-10-07  Bruno Haible  <bruno@clisp.org>
57680
57681         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
57682         * floor.c (TWO_MANT_DIG): Likewise.
57683         * ceil.c (TWO_MANT_DIG): Likewise.
57684         Reported by Ben Pfaff.
57685
57686 2007-10-07  Bruno Haible  <bruno@clisp.org>
57687
57688         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
57689         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
57690         * lib/frexp.c (FUNC): Likewise.
57691         * lib/printf-frexp.h (printf_frexp): Likewise.
57692         * lib/printf-frexpl.h (printf_frexpl): Likewise.
57693         * lib/printf-frexp.c (FUNC): Likewise.
57694         Suggested by Jim Meyering.
57695
57696 2007-10-07  Jim Meyering  <meyering@redhat.com>
57697
57698         Make xnanosleep's integer overflow test more robust.
57699         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
57700         so that gcc-4.3.0 doesn't optimize away this test for overflow.
57701
57702 2007-10-07  Bruno Haible  <bruno@clisp.org>
57703
57704         * NEWS: Mention the license change.
57705
57706         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
57707         abbreviations in the modules files.
57708
57709         Change copyright notice from GPLv2+ to GPLv3+.
57710         * README: Change copyright notice.
57711         * MODULES.html.sh: Likewise.
57712         * build-aux/bootstrap.conf: Likewise.
57713         * build-aux/config.libpath: Likewise.
57714         * build-aux/csharpcomp.sh.in: Likewise.
57715         * build-aux/csharpexec.sh.in: Likewise.
57716         * build-aux/install-reloc: Likewise.
57717         * build-aux/javacomp.sh.in: Likewise.
57718         * build-aux/javaexec.sh.in: Likewise.
57719         * build-aux/ldd.sh.in: Likewise.
57720         * build-aux/reloc-ldflags: Likewise.
57721         * build-aux/relocatable.sh.in: Likewise.
57722         * build-aux/x-to-1.in: Likewise.
57723         * check-module: Likewise.
57724         * config/srclistvars.sh: Likewise.
57725         * gnulib-tool: Likewise.
57726         * lib/acl-internal.h: Likewise.
57727         * lib/acl.c: Likewise.
57728         * lib/acl.h: Likewise.
57729         * lib/acl_entries.c: Likewise.
57730         * lib/areadlink-with-size.c: Likewise.
57731         * lib/areadlink.c: Likewise.
57732         * lib/areadlink.h: Likewise.
57733         * lib/argmatch.c: Likewise.
57734         * lib/argmatch.h: Likewise.
57735         * lib/argp-ba.c: Likewise.
57736         * lib/argp-eexst.c: Likewise.
57737         * lib/argp-fmtstream.c: Likewise.
57738         * lib/argp-fmtstream.h: Likewise.
57739         * lib/argp-fs-xinl.c: Likewise.
57740         * lib/argp-help.c: Likewise.
57741         * lib/argp-namefrob.h: Likewise.
57742         * lib/argp-parse.c: Likewise.
57743         * lib/argp-pin.c: Likewise.
57744         * lib/argp-pv.c: Likewise.
57745         * lib/argp-pvh.c: Likewise.
57746         * lib/argp-xinl.c: Likewise.
57747         * lib/argp.h: Likewise.
57748         * lib/at-func.c: Likewise.
57749         * lib/atanl.c: Likewise.
57750         * lib/backupfile.c: Likewise.
57751         * lib/backupfile.h: Likewise.
57752         * lib/basename.c: Likewise.
57753         * lib/binary-io.h: Likewise.
57754         * lib/byteswap.in.h: Likewise.
57755         * lib/c-stack.c: Likewise.
57756         * lib/c-stack.h: Likewise.
57757         * lib/c-strcasestr.c: Likewise.
57758         * lib/c-strcasestr.h: Likewise.
57759         * lib/c-strstr.c: Likewise.
57760         * lib/c-strstr.h: Likewise.
57761         * lib/c-strtod.c: Likewise.
57762         * lib/calloc.c: Likewise.
57763         * lib/canon-host.c: Likewise.
57764         * lib/canon-host.h: Likewise.
57765         * lib/canonicalize-lgpl.c: Likewise.
57766         * lib/canonicalize.c: Likewise.
57767         * lib/canonicalize.h: Likewise.
57768         * lib/ceil.c: Likewise.
57769         * lib/ceilf.c: Likewise.
57770         * lib/ceill.c: Likewise.
57771         * lib/chdir-long.c: Likewise.
57772         * lib/chdir-long.h: Likewise.
57773         * lib/chdir-safer.c: Likewise.
57774         * lib/chdir-safer.h: Likewise.
57775         * lib/chown.c: Likewise.
57776         * lib/classpath.c: Likewise.
57777         * lib/classpath.h: Likewise.
57778         * lib/clean-temp.c: Likewise.
57779         * lib/clean-temp.h: Likewise.
57780         * lib/cloexec.c: Likewise.
57781         * lib/close-stream.c: Likewise.
57782         * lib/closein.c: Likewise.
57783         * lib/closein.h: Likewise.
57784         * lib/closeout.c: Likewise.
57785         * lib/closeout.h: Likewise.
57786         * lib/concat-filename.c: Likewise.
57787         * lib/copy-file.c: Likewise.
57788         * lib/copy-file.h: Likewise.
57789         * lib/count-one-bits.h: Likewise.
57790         * lib/crc.c: Likewise.
57791         * lib/crc.h: Likewise.
57792         * lib/creat-safer.c: Likewise.
57793         * lib/csharpcomp.c: Likewise.
57794         * lib/csharpcomp.h: Likewise.
57795         * lib/csharpexec.c: Likewise.
57796         * lib/csharpexec.h: Likewise.
57797         * lib/cycle-check.c: Likewise.
57798         * lib/cycle-check.h: Likewise.
57799         * lib/diacrit.c: Likewise.
57800         * lib/diacrit.h: Likewise.
57801         * lib/diffseq.h: Likewise.
57802         * lib/dirchownmod.c: Likewise.
57803         * lib/dirent.in.h: Likewise.
57804         * lib/dirfd.c: Likewise.
57805         * lib/dirfd.h: Likewise.
57806         * lib/dirname.c: Likewise.
57807         * lib/dirname.h: Likewise.
57808         * lib/dummy.c: Likewise.
57809         * lib/dup-safer.c: Likewise.
57810         * lib/dup2.c: Likewise.
57811         * lib/eealloc.h: Likewise.
57812         * lib/error.c: Likewise.
57813         * lib/error.h: Likewise.
57814         * lib/euidaccess.c: Likewise.
57815         * lib/exclude.c: Likewise.
57816         * lib/exclude.h: Likewise.
57817         * lib/execute.c: Likewise.
57818         * lib/execute.h: Likewise.
57819         * lib/exitfail.c: Likewise.
57820         * lib/exitfail.h: Likewise.
57821         * lib/expl.c: Likewise.
57822         * lib/fatal-signal.c: Likewise.
57823         * lib/fatal-signal.h: Likewise.
57824         * lib/fbufmode.c: Likewise.
57825         * lib/fbufmode.h: Likewise.
57826         * lib/fchdir.c: Likewise.
57827         * lib/fchmodat.c: Likewise.
57828         * lib/fchownat.c: Likewise.
57829         * lib/fcntl--.h: Likewise.
57830         * lib/fcntl-safer.h: Likewise.
57831         * lib/fcntl.in.h: Likewise.
57832         * lib/fd-safer.c: Likewise.
57833         * lib/fflush.c: Likewise.
57834         * lib/file-has-acl.c: Likewise.
57835         * lib/file-set.c: Likewise.
57836         * lib/file-type.c: Likewise.
57837         * lib/file-type.h: Likewise.
57838         * lib/fileblocks.c: Likewise.
57839         * lib/filemode.c: Likewise.
57840         * lib/filemode.h: Likewise.
57841         * lib/filename.h: Likewise.
57842         * lib/filenamecat.c: Likewise.
57843         * lib/filenamecat.h: Likewise.
57844         * lib/findprog.c: Likewise.
57845         * lib/findprog.h: Likewise.
57846         * lib/float.in.h: Likewise.
57847         * lib/floor.c: Likewise.
57848         * lib/floorf.c: Likewise.
57849         * lib/floorl.c: Likewise.
57850         * lib/fopen-safer.c: Likewise.
57851         * lib/fopen.c: Likewise.
57852         * lib/fpending.c: Likewise.
57853         * lib/fpending.h: Likewise.
57854         * lib/fprintf.c: Likewise.
57855         * lib/fprintftime.h: Likewise.
57856         * lib/fpucw.h: Likewise.
57857         * lib/fpurge.c: Likewise.
57858         * lib/fpurge.h: Likewise.
57859         * lib/freadable.c: Likewise.
57860         * lib/freadable.h: Likewise.
57861         * lib/freadahead.c: Likewise.
57862         * lib/freadahead.h: Likewise.
57863         * lib/freading.c: Likewise.
57864         * lib/freading.h: Likewise.
57865         * lib/free.c: Likewise.
57866         * lib/freopen.c: Likewise.
57867         * lib/frexp.c: Likewise.
57868         * lib/frexpl.c: Likewise.
57869         * lib/fseek.c: Likewise.
57870         * lib/fseterr.c: Likewise.
57871         * lib/fseterr.h: Likewise.
57872         * lib/fstatat.c: Likewise.
57873         * lib/fstrcmp.c: Likewise.
57874         * lib/fstrcmp.h: Likewise.
57875         * lib/fsusage.c: Likewise.
57876         * lib/fsusage.h: Likewise.
57877         * lib/ftell.c: Likewise.
57878         * lib/ftello.c: Likewise.
57879         * lib/fts-cycle.c: Likewise.
57880         * lib/fts.c: Likewise.
57881         * lib/fts_.h: Likewise.
57882         * lib/full-read.c: Likewise.
57883         * lib/full-read.h: Likewise.
57884         * lib/full-write.c: Likewise.
57885         * lib/full-write.h: Likewise.
57886         * lib/fwritable.c: Likewise.
57887         * lib/fwritable.h: Likewise.
57888         * lib/fwriteerror.c: Likewise.
57889         * lib/fwriteerror.h: Likewise.
57890         * lib/fwriting.c: Likewise.
57891         * lib/fwriting.h: Likewise.
57892         * lib/gcd.c: Likewise.
57893         * lib/gcd.h: Likewise.
57894         * lib/getcwd.c: Likewise.
57895         * lib/getdate.h: Likewise.
57896         * lib/getdate.y: Likewise.
57897         * lib/getdomainname.c: Likewise.
57898         * lib/getdomainname.h: Likewise.
57899         * lib/getgroups.c: Likewise.
57900         * lib/gethostname.c: Likewise.
57901         * lib/gethrxtime.c: Likewise.
57902         * lib/gethrxtime.h: Likewise.
57903         * lib/getloadavg.c: Likewise.
57904         * lib/getndelim2.c: Likewise.
57905         * lib/getndelim2.h: Likewise.
57906         * lib/getnline.c: Likewise.
57907         * lib/getnline.h: Likewise.
57908         * lib/getopt.c: Likewise.
57909         * lib/getopt.in.h: Likewise.
57910         * lib/getopt1.c: Likewise.
57911         * lib/getopt_int.h: Likewise.
57912         * lib/getpagesize.h: Likewise.
57913         * lib/getsubopt.c: Likewise.
57914         * lib/gettime.c: Likewise.
57915         * lib/getugroups.c: Likewise.
57916         * lib/getugroups.h: Likewise.
57917         * lib/getusershell.c: Likewise.
57918         * lib/gl_anyavltree_list1.h: Likewise.
57919         * lib/gl_anyavltree_list2.h: Likewise.
57920         * lib/gl_anyhash_list1.h: Likewise.
57921         * lib/gl_anyhash_list2.h: Likewise.
57922         * lib/gl_anylinked_list1.h: Likewise.
57923         * lib/gl_anylinked_list2.h: Likewise.
57924         * lib/gl_anyrbtree_list1.h: Likewise.
57925         * lib/gl_anyrbtree_list2.h: Likewise.
57926         * lib/gl_anytree_list1.h: Likewise.
57927         * lib/gl_anytree_list2.h: Likewise.
57928         * lib/gl_anytree_oset.h: Likewise.
57929         * lib/gl_anytreehash_list1.h: Likewise.
57930         * lib/gl_anytreehash_list2.h: Likewise.
57931         * lib/gl_array_list.c: Likewise.
57932         * lib/gl_array_list.h: Likewise.
57933         * lib/gl_array_oset.c: Likewise.
57934         * lib/gl_array_oset.h: Likewise.
57935         * lib/gl_avltree_list.c: Likewise.
57936         * lib/gl_avltree_list.h: Likewise.
57937         * lib/gl_avltree_oset.c: Likewise.
57938         * lib/gl_avltree_oset.h: Likewise.
57939         * lib/gl_avltreehash_list.c: Likewise.
57940         * lib/gl_avltreehash_list.h: Likewise.
57941         * lib/gl_carray_list.c: Likewise.
57942         * lib/gl_carray_list.h: Likewise.
57943         * lib/gl_linked_list.c: Likewise.
57944         * lib/gl_linked_list.h: Likewise.
57945         * lib/gl_linkedhash_list.c: Likewise.
57946         * lib/gl_linkedhash_list.h: Likewise.
57947         * lib/gl_list.c: Likewise.
57948         * lib/gl_list.h: Likewise.
57949         * lib/gl_oset.c: Likewise.
57950         * lib/gl_oset.h: Likewise.
57951         * lib/gl_rbtree_list.c: Likewise.
57952         * lib/gl_rbtree_list.h: Likewise.
57953         * lib/gl_rbtree_oset.c: Likewise.
57954         * lib/gl_rbtree_oset.h: Likewise.
57955         * lib/gl_rbtreehash_list.c: Likewise.
57956         * lib/gl_rbtreehash_list.h: Likewise.
57957         * lib/gl_sublist.c: Likewise.
57958         * lib/gl_sublist.h: Likewise.
57959         * lib/group-member.c: Likewise.
57960         * lib/group-member.h: Likewise.
57961         * lib/hard-locale.c: Likewise.
57962         * lib/hard-locale.h: Likewise.
57963         * lib/hash-pjw.c: Likewise.
57964         * lib/hash-pjw.h: Likewise.
57965         * lib/hash-triple.c: Likewise.
57966         * lib/hash.c: Likewise.
57967         * lib/hash.h: Likewise.
57968         * lib/human.c: Likewise.
57969         * lib/human.h: Likewise.
57970         * lib/i-ring.c: Likewise.
57971         * lib/i-ring.h: Likewise.
57972         * lib/idcache.c: Likewise.
57973         * lib/imaxabs.c: Likewise.
57974         * lib/imaxdiv.c: Likewise.
57975         * lib/inet_pton.c: Likewise.
57976         * lib/inet_pton.h: Likewise.
57977         * lib/intprops.h: Likewise.
57978         * lib/inttostr.c: Likewise.
57979         * lib/inttostr.h: Likewise.
57980         * lib/inttypes.in.h: Likewise.
57981         * lib/isapipe.c: Likewise.
57982         * lib/isdir.c: Likewise.
57983         * lib/isnan.c: Likewise.
57984         * lib/isnan.h: Likewise.
57985         * lib/isnanf.c: Likewise.
57986         * lib/isnanf.h: Likewise.
57987         * lib/isnanl-nolibm.h: Likewise.
57988         * lib/isnanl.c: Likewise.
57989         * lib/isnanl.h: Likewise.
57990         * lib/javacomp.c: Likewise.
57991         * lib/javacomp.h: Likewise.
57992         * lib/javaexec.c: Likewise.
57993         * lib/javaexec.h: Likewise.
57994         * lib/javaversion.c: Likewise.
57995         * lib/javaversion.h: Likewise.
57996         * lib/javaversion.java: Likewise.
57997         * lib/lbrkprop.h: Likewise.
57998         * lib/lchmod.h: Likewise.
57999         * lib/lchown.c: Likewise.
58000         * lib/ldexpl.c: Likewise.
58001         * lib/linebreak.c: Likewise.
58002         * lib/linebreak.h: Likewise.
58003         * lib/linebuffer.c: Likewise.
58004         * lib/linebuffer.h: Likewise.
58005         * lib/locale.in.h: Likewise.
58006         * lib/logl.c: Likewise.
58007         * lib/long-options.c: Likewise.
58008         * lib/long-options.h: Likewise.
58009         * lib/lstat.c: Likewise.
58010         * lib/lstat.h: Likewise.
58011         * lib/math.in.h: Likewise.
58012         * lib/mbchar.c: Likewise.
58013         * lib/mbchar.h: Likewise.
58014         * lib/mbfile.h: Likewise.
58015         * lib/mbiter.h: Likewise.
58016         * lib/mbscasecmp.c: Likewise.
58017         * lib/mbscasestr.c: Likewise.
58018         * lib/mbschr.c: Likewise.
58019         * lib/mbscspn.c: Likewise.
58020         * lib/mbslen.c: Likewise.
58021         * lib/mbsncasecmp.c: Likewise.
58022         * lib/mbsnlen.c: Likewise.
58023         * lib/mbspbrk.c: Likewise.
58024         * lib/mbspcasecmp.c: Likewise.
58025         * lib/mbsrchr.c: Likewise.
58026         * lib/mbssep.c: Likewise.
58027         * lib/mbsspn.c: Likewise.
58028         * lib/mbsstr.c: Likewise.
58029         * lib/mbstok_r.c: Likewise.
58030         * lib/mbswidth.c: Likewise.
58031         * lib/mbswidth.h: Likewise.
58032         * lib/mbuiter.h: Likewise.
58033         * lib/memcasecmp.c: Likewise.
58034         * lib/memcasecmp.h: Likewise.
58035         * lib/memchr.c: Likewise.
58036         * lib/memcmp.c: Likewise.
58037         * lib/memcoll.c: Likewise.
58038         * lib/memcoll.h: Likewise.
58039         * lib/memcpy.c: Likewise.
58040         * lib/memrchr.c: Likewise.
58041         * lib/mkancesdirs.c: Likewise.
58042         * lib/mkdir-p.c: Likewise.
58043         * lib/mkdir-p.h: Likewise.
58044         * lib/mkdir.c: Likewise.
58045         * lib/mkdirat.c: Likewise.
58046         * lib/mkdtemp.c: Likewise.
58047         * lib/mkstemp-safer.c: Likewise.
58048         * lib/mkstemp.c: Likewise.
58049         * lib/modechange.c: Likewise.
58050         * lib/modechange.h: Likewise.
58051         * lib/mountlist.c: Likewise.
58052         * lib/mountlist.h: Likewise.
58053         * lib/mpsort.c: Likewise.
58054         * lib/nanosleep.c: Likewise.
58055         * lib/obstack.c: Likewise.
58056         * lib/obstack.h: Likewise.
58057         * lib/open-safer.c: Likewise.
58058         * lib/open.c: Likewise.
58059         * lib/openat-die.c: Likewise.
58060         * lib/openat-priv.h: Likewise.
58061         * lib/openat-proc.c: Likewise.
58062         * lib/openat.c: Likewise.
58063         * lib/openat.h: Likewise.
58064         * lib/pagealign_alloc.c: Likewise.
58065         * lib/pagealign_alloc.h: Likewise.
58066         * lib/physmem.c: Likewise.
58067         * lib/physmem.h: Likewise.
58068         * lib/pipe-safer.c: Likewise.
58069         * lib/pipe.c: Likewise.
58070         * lib/pipe.h: Likewise.
58071         * lib/posixtm.c: Likewise.
58072         * lib/posixtm.h: Likewise.
58073         * lib/posixver.c: Likewise.
58074         * lib/printf-frexp.c: Likewise.
58075         * lib/printf-frexp.h: Likewise.
58076         * lib/printf-frexpl.c: Likewise.
58077         * lib/printf-frexpl.h: Likewise.
58078         * lib/printf.c: Likewise.
58079         * lib/progname.c: Likewise.
58080         * lib/progname.h: Likewise.
58081         * lib/progreloc.c: Likewise.
58082         * lib/putenv.c: Likewise.
58083         * lib/quote.c: Likewise.
58084         * lib/quote.h: Likewise.
58085         * lib/quotearg.c: Likewise.
58086         * lib/quotearg.h: Likewise.
58087         * lib/raise.c: Likewise.
58088         * lib/readline.c: Likewise.
58089         * lib/readline.h: Likewise.
58090         * lib/readlink.c: Likewise.
58091         * lib/readtokens.c: Likewise.
58092         * lib/readtokens.h: Likewise.
58093         * lib/readtokens0.c: Likewise.
58094         * lib/readtokens0.h: Likewise.
58095         * lib/readutmp.c: Likewise.
58096         * lib/readutmp.h: Likewise.
58097         * lib/realloc.c: Likewise.
58098         * lib/relocwrapper.c: Likewise.
58099         * lib/rename-dest-slash.c: Likewise.
58100         * lib/rename.c: Likewise.
58101         * lib/rmdir.c: Likewise.
58102         * lib/rpmatch.c: Likewise.
58103         * lib/safe-read.c: Likewise.
58104         * lib/safe-read.h: Likewise.
58105         * lib/safe-write.c: Likewise.
58106         * lib/safe-write.h: Likewise.
58107         * lib/same-inode.h: Likewise.
58108         * lib/same.c: Likewise.
58109         * lib/same.h: Likewise.
58110         * lib/save-cwd.c: Likewise.
58111         * lib/save-cwd.h: Likewise.
58112         * lib/savedir.c: Likewise.
58113         * lib/savedir.h: Likewise.
58114         * lib/savewd.c: Likewise.
58115         * lib/savewd.h: Likewise.
58116         * lib/search.in.h: Likewise.
58117         * lib/setenv.c: Likewise.
58118         * lib/setenv.h: Likewise.
58119         * lib/settime.c: Likewise.
58120         * lib/sh-quote.c: Likewise.
58121         * lib/sh-quote.h: Likewise.
58122         * lib/sig2str.c: Likewise.
58123         * lib/sig2str.h: Likewise.
58124         * lib/signal.in.h: Likewise.
58125         * lib/signbitd.c: Likewise.
58126         * lib/signbitf.c: Likewise.
58127         * lib/signbitl.c: Likewise.
58128         * lib/sigprocmask.c: Likewise.
58129         * lib/sincosl.c: Likewise.
58130         * lib/sleep.c: Likewise.
58131         * lib/sprintf.c: Likewise.
58132         * lib/sqrtl.c: Likewise.
58133         * lib/stat-time.h: Likewise.
58134         * lib/stdio--.h: Likewise.
58135         * lib/stdio-safer.h: Likewise.
58136         * lib/stdlib--.h: Likewise.
58137         * lib/stdlib-safer.h: Likewise.
58138         * lib/stdlib.in.h: Likewise.
58139         * lib/stpcpy.c: Likewise.
58140         * lib/stpncpy.c: Likewise.
58141         * lib/strchrnul.c: Likewise.
58142         * lib/strcspn.c: Likewise.
58143         * lib/strerror.c: Likewise.
58144         * lib/strftime.c: Likewise.
58145         * lib/strftime.h: Likewise.
58146         * lib/striconveh.c: Likewise.
58147         * lib/striconveh.h: Likewise.
58148         * lib/striconveha.c: Likewise.
58149         * lib/striconveha.h: Likewise.
58150         * lib/stripslash.c: Likewise.
58151         * lib/strnlen1.c: Likewise.
58152         * lib/strnlen1.h: Likewise.
58153         * lib/strtod.c: Likewise.
58154         * lib/strtoimax.c: Likewise.
58155         * lib/strtok_r.c: Likewise.
58156         * lib/strtol.c: Likewise.
58157         * lib/strtoll.c: Likewise.
58158         * lib/strtoul.c: Likewise.
58159         * lib/strtoull.c: Likewise.
58160         * lib/sysexits.in.h: Likewise.
58161         * lib/tempname.c: Likewise.
58162         * lib/tempname.h: Likewise.
58163         * lib/timespec.h: Likewise.
58164         * lib/tls.c: Likewise.
58165         * lib/tls.h: Likewise.
58166         * lib/tmpdir.c: Likewise.
58167         * lib/tmpdir.h: Likewise.
58168         * lib/tmpfile-safer.c: Likewise.
58169         * lib/tmpfile.c: Likewise.
58170         * lib/trigl.c: Likewise.
58171         * lib/trigl.h: Likewise.
58172         * lib/trim.c: Likewise.
58173         * lib/trim.h: Likewise.
58174         * lib/trunc.c: Likewise.
58175         * lib/truncf.c: Likewise.
58176         * lib/truncl.c: Likewise.
58177         * lib/tsearch.c: Likewise.
58178         * lib/unicodeio.c: Likewise.
58179         * lib/unicodeio.h: Likewise.
58180         * lib/unistd--.h: Likewise.
58181         * lib/unistd-safer.h: Likewise.
58182         * lib/unistdio/ulc-fprintf.c: Likewise.
58183         * lib/unistdio/ulc-vfprintf.c: Likewise.
58184         * lib/unlinkdir.c: Likewise.
58185         * lib/unlinkdir.h: Likewise.
58186         * lib/unlocked-io.h: Likewise.
58187         * lib/unsetenv.c: Likewise.
58188         * lib/userspec.c: Likewise.
58189         * lib/utime.c: Likewise.
58190         * lib/utimecmp.c: Likewise.
58191         * lib/utimecmp.h: Likewise.
58192         * lib/utimens.c: Likewise.
58193         * lib/verify.h: Likewise.
58194         * lib/verror.c: Likewise.
58195         * lib/verror.h: Likewise.
58196         * lib/version-etc-fsf.c: Likewise.
58197         * lib/version-etc.c: Likewise.
58198         * lib/version-etc.h: Likewise.
58199         * lib/vfprintf.c: Likewise.
58200         * lib/vprintf.c: Likewise.
58201         * lib/vsprintf.c: Likewise.
58202         * lib/w32spawn.h: Likewise.
58203         * lib/wait-process.c: Likewise.
58204         * lib/wait-process.h: Likewise.
58205         * lib/wcwidth.c: Likewise.
58206         * lib/write-any-file.c: Likewise.
58207         * lib/xalloc-die.c: Likewise.
58208         * lib/xalloc.h: Likewise.
58209         * lib/xasprintf.c: Likewise.
58210         * lib/xgetcwd.c: Likewise.
58211         * lib/xgetcwd.h: Likewise.
58212         * lib/xgetdomainname.c: Likewise.
58213         * lib/xgetdomainname.h: Likewise.
58214         * lib/xgethostname.c: Likewise.
58215         * lib/xmalloc.c: Likewise.
58216         * lib/xmalloca.c: Likewise.
58217         * lib/xmalloca.h: Likewise.
58218         * lib/xmemcoll.c: Likewise.
58219         * lib/xnanosleep.c: Likewise.
58220         * lib/xreadlink.c: Likewise.
58221         * lib/xreadlink.h: Likewise.
58222         * lib/xsetenv.c: Likewise.
58223         * lib/xsetenv.h: Likewise.
58224         * lib/xstriconv.c: Likewise.
58225         * lib/xstriconv.h: Likewise.
58226         * lib/xstrndup.c: Likewise.
58227         * lib/xstrndup.h: Likewise.
58228         * lib/xstrtod.c: Likewise.
58229         * lib/xstrtod.h: Likewise.
58230         * lib/xstrtol-error.c: Likewise.
58231         * lib/xstrtol.c: Likewise.
58232         * lib/xstrtol.h: Likewise.
58233         * lib/xtime.h: Likewise.
58234         * lib/xvasprintf.c: Likewise.
58235         * lib/xvasprintf.h: Likewise.
58236         * lib/yesno.c: Likewise.
58237         * lib/yesno.h: Likewise.
58238         * posix-modules: Likewise.
58239         * tests/test-alloca-opt.c: Likewise.
58240         * tests/test-arcfour.c: Likewise.
58241         * tests/test-arctwo.c: Likewise.
58242         * tests/test-argmatch.c: Likewise.
58243         * tests/test-argp-2.sh: Likewise.
58244         * tests/test-argp.c: Likewise.
58245         * tests/test-arpa_inet.c: Likewise.
58246         * tests/test-array_list.c: Likewise.
58247         * tests/test-array_oset.c: Likewise.
58248         * tests/test-atexit.c: Likewise.
58249         * tests/test-avltree_list.c: Likewise.
58250         * tests/test-avltree_oset.c: Likewise.
58251         * tests/test-avltreehash_list.c: Likewise.
58252         * tests/test-base64.c: Likewise.
58253         * tests/test-binary-io.c: Likewise.
58254         * tests/test-byteswap.c: Likewise.
58255         * tests/test-c-ctype.c: Likewise.
58256         * tests/test-c-strcasecmp.c: Likewise.
58257         * tests/test-c-strcasestr.c: Likewise.
58258         * tests/test-c-strncasecmp.c: Likewise.
58259         * tests/test-c-strstr.c: Likewise.
58260         * tests/test-canonicalize-lgpl.c: Likewise.
58261         * tests/test-canonicalize.c: Likewise.
58262         * tests/test-carray_list.c: Likewise.
58263         * tests/test-ceilf.c: Likewise.
58264         * tests/test-ceill.c: Likewise.
58265         * tests/test-count-one-bits.c: Likewise.
58266         * tests/test-crc.c: Likewise.
58267         * tests/test-dirname.c: Likewise.
58268         * tests/test-fbufmode.c: Likewise.
58269         * tests/test-fcntl.c: Likewise.
58270         * tests/test-fflush.c: Likewise.
58271         * tests/test-floorf.c: Likewise.
58272         * tests/test-floorl.c: Likewise.
58273         * tests/test-fopen.c: Likewise.
58274         * tests/test-fprintf-posix.c: Likewise.
58275         * tests/test-fprintf-posix.h: Likewise.
58276         * tests/test-fpurge.c: Likewise.
58277         * tests/test-freadable.c: Likewise.
58278         * tests/test-freadahead.c: Likewise.
58279         * tests/test-freading.c: Likewise.
58280         * tests/test-freopen.c: Likewise.
58281         * tests/test-frexp.c: Likewise.
58282         * tests/test-frexpl.c: Likewise.
58283         * tests/test-fseek.c: Likewise.
58284         * tests/test-fseeko.c: Likewise.
58285         * tests/test-fseterr.c: Likewise.
58286         * tests/test-fstrcmp.c: Likewise.
58287         * tests/test-ftell.c: Likewise.
58288         * tests/test-ftello.c: Likewise.
58289         * tests/test-fwritable.c: Likewise.
58290         * tests/test-fwriting.c: Likewise.
58291         * tests/test-getaddrinfo.c: Likewise.
58292         * tests/test-getpass.c: Likewise.
58293         * tests/test-gettimeofday.c: Likewise.
58294         * tests/test-hmac-md5.c: Likewise.
58295         * tests/test-hmac-sha1.c: Likewise.
58296         * tests/test-iconv.c: Likewise.
58297         * tests/test-iconvme.c: Likewise.
58298         * tests/test-inttypes.c: Likewise.
58299         * tests/test-isnan.c: Likewise.
58300         * tests/test-isnanf.c: Likewise.
58301         * tests/test-isnanl-nolibm.c: Likewise.
58302         * tests/test-isnanl.c: Likewise.
58303         * tests/test-isnanl.h: Likewise.
58304         * tests/test-ldexpl.c: Likewise.
58305         * tests/test-linked_list.c: Likewise.
58306         * tests/test-linkedhash_list.c: Likewise.
58307         * tests/test-locale.c: Likewise.
58308         * tests/test-localename.c: Likewise.
58309         * tests/test-lock.c: Likewise.
58310         * tests/test-lseek.c: Likewise.
58311         * tests/test-malloca.c: Likewise.
58312         * tests/test-math.c: Likewise.
58313         * tests/test-mbscasecmp.c: Likewise.
58314         * tests/test-mbscasestr1.c: Likewise.
58315         * tests/test-mbscasestr2.c: Likewise.
58316         * tests/test-mbscasestr3.c: Likewise.
58317         * tests/test-mbscasestr4.c: Likewise.
58318         * tests/test-mbschr.c: Likewise.
58319         * tests/test-mbscspn.c: Likewise.
58320         * tests/test-mbsncasecmp.c: Likewise.
58321         * tests/test-mbspbrk.c: Likewise.
58322         * tests/test-mbspcasecmp.c: Likewise.
58323         * tests/test-mbsrchr.c: Likewise.
58324         * tests/test-mbsspn.c: Likewise.
58325         * tests/test-mbsstr1.c: Likewise.
58326         * tests/test-mbsstr2.c: Likewise.
58327         * tests/test-mbsstr3.c: Likewise.
58328         * tests/test-md5.c: Likewise.
58329         * tests/test-memmem.c: Likewise.
58330         * tests/test-netinet_in.c: Likewise.
58331         * tests/test-open.c: Likewise.
58332         * tests/test-printf-frexp.c: Likewise.
58333         * tests/test-printf-frexpl.c: Likewise.
58334         * tests/test-printf-posix.c: Likewise.
58335         * tests/test-printf-posix.h: Likewise.
58336         * tests/test-rbtree_list.c: Likewise.
58337         * tests/test-rbtree_oset.c: Likewise.
58338         * tests/test-rbtreehash_list.c: Likewise.
58339         * tests/test-read-file.c: Likewise.
58340         * tests/test-rijndael.c: Likewise.
58341         * tests/test-search.c: Likewise.
58342         * tests/test-signbit.c: Likewise.
58343         * tests/test-sleep.c: Likewise.
58344         * tests/test-snprintf-posix.c: Likewise.
58345         * tests/test-snprintf-posix.h: Likewise.
58346         * tests/test-snprintf.c: Likewise.
58347         * tests/test-sprintf-posix.c: Likewise.
58348         * tests/test-sprintf-posix.h: Likewise.
58349         * tests/test-stat-time.c: Likewise.
58350         * tests/test-stdbool.c: Likewise.
58351         * tests/test-stdint.c: Likewise.
58352         * tests/test-stdio.c: Likewise.
58353         * tests/test-stdlib.c: Likewise.
58354         * tests/test-stpncpy.c: Likewise.
58355         * tests/test-strcasestr.c: Likewise.
58356         * tests/test-striconv.c: Likewise.
58357         * tests/test-striconveh.c: Likewise.
58358         * tests/test-striconveha.c: Likewise.
58359         * tests/test-string.c: Likewise.
58360         * tests/test-sys_select.c: Likewise.
58361         * tests/test-sys_socket.c: Likewise.
58362         * tests/test-sys_stat.c: Likewise.
58363         * tests/test-sys_time.c: Likewise.
58364         * tests/test-sysexits.c: Likewise.
58365         * tests/test-time.c: Likewise.
58366         * tests/test-tls.c: Likewise.
58367         * tests/test-trunc.c: Likewise.
58368         * tests/test-truncf.c: Likewise.
58369         * tests/test-truncl.c: Likewise.
58370         * tests/test-unistd.c: Likewise.
58371         * tests/test-vasnprintf-posix.c: Likewise.
58372         * tests/test-vasnprintf-posix2.c: Likewise.
58373         * tests/test-vasnprintf.c: Likewise.
58374         * tests/test-vasprintf-posix.c: Likewise.
58375         * tests/test-vasprintf.c: Likewise.
58376         * tests/test-verify.c: Likewise.
58377         * tests/test-vfprintf-posix.c: Likewise.
58378         * tests/test-vprintf-posix.c: Likewise.
58379         * tests/test-vsnprintf-posix.c: Likewise.
58380         * tests/test-vsnprintf.c: Likewise.
58381         * tests/test-vsprintf-posix.c: Likewise.
58382         * tests/test-wchar.c: Likewise.
58383         * tests/test-wctype.c: Likewise.
58384         * tests/test-wcwidth.c: Likewise.
58385         * tests/test-xstrtol.c: Likewise.
58386         * tests/test-xvasprintf.c: Likewise.
58387         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
58388         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
58389         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58390         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58391         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58392         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58393         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58394         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58395         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58396         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58397         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58398         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58399         * tests/uniname/test-uninames.c: Likewise.
58400         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58401         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
58402         * tests/unistdio/test-u16-printf1.h: Likewise.
58403         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58404         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58405         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58406         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58407         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58408         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58409         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58410         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
58411         * tests/unistdio/test-u32-printf1.h: Likewise.
58412         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58413         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58414         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58415         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58416         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58417         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58418         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58419         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
58420         * tests/unistdio/test-u8-printf1.h: Likewise.
58421         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58422         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58423         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58424         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58425         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58426         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58427         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58428         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
58429         * tests/unistdio/test-ulc-printf1.h: Likewise.
58430         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58431         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58432         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58433         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58434         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58435         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58436         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58437         * tests/uniwidth/test-u16-width.c: Likewise.
58438         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58439         * tests/uniwidth/test-u32-width.c: Likewise.
58440         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58441         * tests/uniwidth/test-u8-width.c: Likewise.
58442         * tests/uniwidth/test-uc_width.c: Likewise.
58443         * config/srclist-update: Likewise.
58444         (fixlicense): Update to GPLv3+.
58445
58446         Change copyright notice from LGPLv2.1+ to LGPLv3+.
58447         * tests/test-tsearch.c: Change copyright notice.
58448
58449         Change copyright notice from LGPLv2.0+ to LGPLv3+.
58450         * lib/c-strcaseeq.h: Change copyright notice.
58451         * lib/streq.h: Likewise.
58452         * lib/uniconv.h: Likewise.
58453         * lib/uniconv/u-conv-from-enc.h: Likewise.
58454         * lib/uniconv/u-conv-to-enc.h: Likewise.
58455         * lib/uniconv/u-strconv-from-enc.h: Likewise.
58456         * lib/uniconv/u-strconv-to-enc.h: Likewise.
58457         * lib/uniconv/u16-conv-from-enc.c: Likewise.
58458         * lib/uniconv/u16-conv-to-enc.c: Likewise.
58459         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
58460         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
58461         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
58462         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
58463         * lib/uniconv/u32-conv-from-enc.c: Likewise.
58464         * lib/uniconv/u32-conv-to-enc.c: Likewise.
58465         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
58466         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
58467         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
58468         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
58469         * lib/uniconv/u8-conv-from-enc.c: Likewise.
58470         * lib/uniconv/u8-conv-to-enc.c: Likewise.
58471         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
58472         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
58473         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
58474         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
58475         * lib/uniname.h: Likewise.
58476         * lib/uniname/uniname.c: Likewise.
58477         * lib/unistdio.h: Likewise.
58478         * lib/unistdio/u-asnprintf.h: Likewise.
58479         * lib/unistdio/u-asprintf.h: Likewise.
58480         * lib/unistdio/u-printf-args.c: Likewise.
58481         * lib/unistdio/u-printf-args.h: Likewise.
58482         * lib/unistdio/u-printf-parse.h: Likewise.
58483         * lib/unistdio/u-snprintf.h: Likewise.
58484         * lib/unistdio/u-sprintf.h: Likewise.
58485         * lib/unistdio/u-vasprintf.h: Likewise.
58486         * lib/unistdio/u-vsnprintf.h: Likewise.
58487         * lib/unistdio/u-vsprintf.h: Likewise.
58488         * lib/unistdio/u16-asnprintf.c: Likewise.
58489         * lib/unistdio/u16-asprintf.c: Likewise.
58490         * lib/unistdio/u16-printf-parse.c: Likewise.
58491         * lib/unistdio/u16-snprintf.c: Likewise.
58492         * lib/unistdio/u16-sprintf.c: Likewise.
58493         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
58494         * lib/unistdio/u16-u16-asprintf.c: Likewise.
58495         * lib/unistdio/u16-u16-snprintf.c: Likewise.
58496         * lib/unistdio/u16-u16-sprintf.c: Likewise.
58497         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
58498         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
58499         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
58500         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
58501         * lib/unistdio/u16-vasnprintf.c: Likewise.
58502         * lib/unistdio/u16-vasprintf.c: Likewise.
58503         * lib/unistdio/u16-vsnprintf.c: Likewise.
58504         * lib/unistdio/u16-vsprintf.c: Likewise.
58505         * lib/unistdio/u32-asnprintf.c: Likewise.
58506         * lib/unistdio/u32-asprintf.c: Likewise.
58507         * lib/unistdio/u32-printf-parse.c: Likewise.
58508         * lib/unistdio/u32-snprintf.c: Likewise.
58509         * lib/unistdio/u32-sprintf.c: Likewise.
58510         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
58511         * lib/unistdio/u32-u32-asprintf.c: Likewise.
58512         * lib/unistdio/u32-u32-snprintf.c: Likewise.
58513         * lib/unistdio/u32-u32-sprintf.c: Likewise.
58514         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
58515         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
58516         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
58517         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
58518         * lib/unistdio/u32-vasnprintf.c: Likewise.
58519         * lib/unistdio/u32-vasprintf.c: Likewise.
58520         * lib/unistdio/u32-vsnprintf.c: Likewise.
58521         * lib/unistdio/u32-vsprintf.c: Likewise.
58522         * lib/unistdio/u8-asnprintf.c: Likewise.
58523         * lib/unistdio/u8-asprintf.c: Likewise.
58524         * lib/unistdio/u8-printf-parse.c: Likewise.
58525         * lib/unistdio/u8-snprintf.c: Likewise.
58526         * lib/unistdio/u8-sprintf.c: Likewise.
58527         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
58528         * lib/unistdio/u8-u8-asprintf.c: Likewise.
58529         * lib/unistdio/u8-u8-snprintf.c: Likewise.
58530         * lib/unistdio/u8-u8-sprintf.c: Likewise.
58531         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
58532         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
58533         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
58534         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
58535         * lib/unistdio/u8-vasnprintf.c: Likewise.
58536         * lib/unistdio/u8-vasprintf.c: Likewise.
58537         * lib/unistdio/u8-vsnprintf.c: Likewise.
58538         * lib/unistdio/u8-vsprintf.c: Likewise.
58539         * lib/unistdio/ulc-asnprintf.c: Likewise.
58540         * lib/unistdio/ulc-asprintf.c: Likewise.
58541         * lib/unistdio/ulc-printf-parse.c: Likewise.
58542         * lib/unistdio/ulc-snprintf.c: Likewise.
58543         * lib/unistdio/ulc-sprintf.c: Likewise.
58544         * lib/unistdio/ulc-vasnprintf.c: Likewise.
58545         * lib/unistdio/ulc-vasprintf.c: Likewise.
58546         * lib/unistdio/ulc-vsnprintf.c: Likewise.
58547         * lib/unistdio/ulc-vsprintf.c: Likewise.
58548         * lib/unistr.h: Likewise.
58549         * lib/unistr/u-cpy-alloc.h: Likewise.
58550         * lib/unistr/u-cpy.h: Likewise.
58551         * lib/unistr/u-endswith.h: Likewise.
58552         * lib/unistr/u-move.h: Likewise.
58553         * lib/unistr/u-set.h: Likewise.
58554         * lib/unistr/u-startswith.h: Likewise.
58555         * lib/unistr/u-stpcpy.h: Likewise.
58556         * lib/unistr/u-stpncpy.h: Likewise.
58557         * lib/unistr/u-strcat.h: Likewise.
58558         * lib/unistr/u-strcpy.h: Likewise.
58559         * lib/unistr/u-strcspn.h: Likewise.
58560         * lib/unistr/u-strdup.h: Likewise.
58561         * lib/unistr/u-strlen.h: Likewise.
58562         * lib/unistr/u-strncat.h: Likewise.
58563         * lib/unistr/u-strncpy.h: Likewise.
58564         * lib/unistr/u-strnlen.h: Likewise.
58565         * lib/unistr/u-strpbrk.h: Likewise.
58566         * lib/unistr/u-strspn.h: Likewise.
58567         * lib/unistr/u-strstr.h: Likewise.
58568         * lib/unistr/u-strtok.h: Likewise.
58569         * lib/unistr/u16-check.c: Likewise.
58570         * lib/unistr/u16-chr.c: Likewise.
58571         * lib/unistr/u16-cmp.c: Likewise.
58572         * lib/unistr/u16-cpy-alloc.c: Likewise.
58573         * lib/unistr/u16-cpy.c: Likewise.
58574         * lib/unistr/u16-endswith.c: Likewise.
58575         * lib/unistr/u16-mblen.c: Likewise.
58576         * lib/unistr/u16-mbsnlen.c: Likewise.
58577         * lib/unistr/u16-mbtouc-aux.c: Likewise.
58578         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
58579         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
58580         * lib/unistr/u16-mbtouc.c: Likewise.
58581         * lib/unistr/u16-mbtoucr.c: Likewise.
58582         * lib/unistr/u16-move.c: Likewise.
58583         * lib/unistr/u16-next.c: Likewise.
58584         * lib/unistr/u16-prev.c: Likewise.
58585         * lib/unistr/u16-set.c: Likewise.
58586         * lib/unistr/u16-startswith.c: Likewise.
58587         * lib/unistr/u16-stpcpy.c: Likewise.
58588         * lib/unistr/u16-stpncpy.c: Likewise.
58589         * lib/unistr/u16-strcat.c: Likewise.
58590         * lib/unistr/u16-strchr.c: Likewise.
58591         * lib/unistr/u16-strcmp.c: Likewise.
58592         * lib/unistr/u16-strcpy.c: Likewise.
58593         * lib/unistr/u16-strcspn.c: Likewise.
58594         * lib/unistr/u16-strdup.c: Likewise.
58595         * lib/unistr/u16-strlen.c: Likewise.
58596         * lib/unistr/u16-strmblen.c: Likewise.
58597         * lib/unistr/u16-strmbtouc.c: Likewise.
58598         * lib/unistr/u16-strncat.c: Likewise.
58599         * lib/unistr/u16-strncmp.c: Likewise.
58600         * lib/unistr/u16-strncpy.c: Likewise.
58601         * lib/unistr/u16-strnlen.c: Likewise.
58602         * lib/unistr/u16-strpbrk.c: Likewise.
58603         * lib/unistr/u16-strrchr.c: Likewise.
58604         * lib/unistr/u16-strspn.c: Likewise.
58605         * lib/unistr/u16-strstr.c: Likewise.
58606         * lib/unistr/u16-strtok.c: Likewise.
58607         * lib/unistr/u16-to-u32.c: Likewise.
58608         * lib/unistr/u16-to-u8.c: Likewise.
58609         * lib/unistr/u16-uctomb-aux.c: Likewise.
58610         * lib/unistr/u16-uctomb.c: Likewise.
58611         * lib/unistr/u32-check.c: Likewise.
58612         * lib/unistr/u32-chr.c: Likewise.
58613         * lib/unistr/u32-cmp.c: Likewise.
58614         * lib/unistr/u32-cpy-alloc.c: Likewise.
58615         * lib/unistr/u32-cpy.c: Likewise.
58616         * lib/unistr/u32-endswith.c: Likewise.
58617         * lib/unistr/u32-mblen.c: Likewise.
58618         * lib/unistr/u32-mbsnlen.c: Likewise.
58619         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
58620         * lib/unistr/u32-mbtouc.c: Likewise.
58621         * lib/unistr/u32-mbtoucr.c: Likewise.
58622         * lib/unistr/u32-move.c: Likewise.
58623         * lib/unistr/u32-next.c: Likewise.
58624         * lib/unistr/u32-prev.c: Likewise.
58625         * lib/unistr/u32-set.c: Likewise.
58626         * lib/unistr/u32-startswith.c: Likewise.
58627         * lib/unistr/u32-stpcpy.c: Likewise.
58628         * lib/unistr/u32-stpncpy.c: Likewise.
58629         * lib/unistr/u32-strcat.c: Likewise.
58630         * lib/unistr/u32-strchr.c: Likewise.
58631         * lib/unistr/u32-strcmp.c: Likewise.
58632         * lib/unistr/u32-strcpy.c: Likewise.
58633         * lib/unistr/u32-strcspn.c: Likewise.
58634         * lib/unistr/u32-strdup.c: Likewise.
58635         * lib/unistr/u32-strlen.c: Likewise.
58636         * lib/unistr/u32-strmblen.c: Likewise.
58637         * lib/unistr/u32-strmbtouc.c: Likewise.
58638         * lib/unistr/u32-strncat.c: Likewise.
58639         * lib/unistr/u32-strncmp.c: Likewise.
58640         * lib/unistr/u32-strncpy.c: Likewise.
58641         * lib/unistr/u32-strnlen.c: Likewise.
58642         * lib/unistr/u32-strpbrk.c: Likewise.
58643         * lib/unistr/u32-strrchr.c: Likewise.
58644         * lib/unistr/u32-strspn.c: Likewise.
58645         * lib/unistr/u32-strstr.c: Likewise.
58646         * lib/unistr/u32-strtok.c: Likewise.
58647         * lib/unistr/u32-to-u16.c: Likewise.
58648         * lib/unistr/u32-to-u8.c: Likewise.
58649         * lib/unistr/u32-uctomb.c: Likewise.
58650         * lib/unistr/u8-check.c: Likewise.
58651         * lib/unistr/u8-chr.c: Likewise.
58652         * lib/unistr/u8-cmp.c: Likewise.
58653         * lib/unistr/u8-cpy-alloc.c: Likewise.
58654         * lib/unistr/u8-cpy.c: Likewise.
58655         * lib/unistr/u8-endswith.c: Likewise.
58656         * lib/unistr/u8-mblen.c: Likewise.
58657         * lib/unistr/u8-mbsnlen.c: Likewise.
58658         * lib/unistr/u8-mbtouc-aux.c: Likewise.
58659         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
58660         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
58661         * lib/unistr/u8-mbtouc.c: Likewise.
58662         * lib/unistr/u8-mbtoucr.c: Likewise.
58663         * lib/unistr/u8-move.c: Likewise.
58664         * lib/unistr/u8-next.c: Likewise.
58665         * lib/unistr/u8-prev.c: Likewise.
58666         * lib/unistr/u8-set.c: Likewise.
58667         * lib/unistr/u8-startswith.c: Likewise.
58668         * lib/unistr/u8-stpcpy.c: Likewise.
58669         * lib/unistr/u8-stpncpy.c: Likewise.
58670         * lib/unistr/u8-strcat.c: Likewise.
58671         * lib/unistr/u8-strchr.c: Likewise.
58672         * lib/unistr/u8-strcmp.c: Likewise.
58673         * lib/unistr/u8-strcpy.c: Likewise.
58674         * lib/unistr/u8-strcspn.c: Likewise.
58675         * lib/unistr/u8-strdup.c: Likewise.
58676         * lib/unistr/u8-strlen.c: Likewise.
58677         * lib/unistr/u8-strmblen.c: Likewise.
58678         * lib/unistr/u8-strmbtouc.c: Likewise.
58679         * lib/unistr/u8-strncat.c: Likewise.
58680         * lib/unistr/u8-strncmp.c: Likewise.
58681         * lib/unistr/u8-strncpy.c: Likewise.
58682         * lib/unistr/u8-strnlen.c: Likewise.
58683         * lib/unistr/u8-strpbrk.c: Likewise.
58684         * lib/unistr/u8-strrchr.c: Likewise.
58685         * lib/unistr/u8-strspn.c: Likewise.
58686         * lib/unistr/u8-strstr.c: Likewise.
58687         * lib/unistr/u8-strtok.c: Likewise.
58688         * lib/unistr/u8-to-u16.c: Likewise.
58689         * lib/unistr/u8-to-u32.c: Likewise.
58690         * lib/unistr/u8-uctomb-aux.c: Likewise.
58691         * lib/unistr/u8-uctomb.c: Likewise.
58692         * lib/unitypes.h: Likewise.
58693         * lib/uniwidth.h: Likewise.
58694         * lib/uniwidth/cjk.h: Likewise.
58695         * lib/uniwidth/u16-strwidth.c: Likewise.
58696         * lib/uniwidth/u16-width.c: Likewise.
58697         * lib/uniwidth/u32-strwidth.c: Likewise.
58698         * lib/uniwidth/u32-width.c: Likewise.
58699         * lib/uniwidth/u8-strwidth.c: Likewise.
58700         * lib/uniwidth/u8-width.c: Likewise.
58701         * lib/uniwidth/width.c: Likewise.
58702
58703 2007-10-07  Bruno Haible  <bruno@clisp.org>
58704
58705         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
58706         The file is still under LGPL (see modules/inttypes).
58707
58708 2007-10-06  Bruno Haible  <bruno@clisp.org>
58709
58710         * modules/trunc (Dependencies): Add 'extensions'.
58711         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
58712         Reported by Ben Pfaff <blp@gnu.org>.
58713
58714 2007-10-06  Bruno Haible  <bruno@clisp.org>
58715
58716         * modules/freopen-tests: New file.
58717         * tests/test-freopen.c: New file.
58718
58719         * modules/fopen-tests: New file.
58720         * tests/test-fopen.c: New file.
58721
58722         * modules/fopen: New file.
58723         * lib/fopen.c: New file.
58724         * m4/fopen.m4: New file.
58725         * modules/freopen: New file.
58726         * lib/freopen.c: New file.
58727         * m4/freopen.m4: New file.
58728         * lib/stdio.in.h (fopen, freopen): New declarations.
58729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
58730         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58731         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
58732         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58733         * doc/functions/fopen.texi: Mention the 'fopen' module.
58734         * doc/functions/freopen.texi: Mention the 'freopen' module.
58735
58736 2007-10-06  Bruno Haible  <bruno@clisp.org>
58737
58738         * modules/open-tests: New file.
58739         * tests/test-open.c: New file.
58740
58741         * modules/open: New file.
58742         * lib/open.c: New file.
58743         * m4/open.m4: New file.
58744         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
58745         lib/open.c does.
58746         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
58747         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
58748         macros.
58749         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
58750         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
58751         REPLACE_OPEN.
58752         * doc/functions/open.texi: Mention the 'open' module.
58753
58754 2007-10-04  Bruno Haible  <bruno@clisp.org>
58755
58756         * modules/ceill-tests: New file.
58757         * tests/test-ceill.c: New file.
58758
58759         * modules/ceill: New file.
58760         * lib/ceill.c: Replace entire file.
58761         * m4/ceill.m4: New file.
58762         * lib/math.in.h (ceill): Replace declaration.
58763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
58764         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
58765         * doc/functions/ceill.texi: Mention the 'ceill' module.
58766         * modules/mathl (Files): Remove lib/ceill.c.
58767         (Depends-on): Add ceill.
58768
58769 2007-10-04  Bruno Haible  <bruno@clisp.org>
58770
58771         * modules/ceilf-tests: New file.
58772         * tests/test-ceilf.c: New file.
58773
58774         * modules/ceilf: New file.
58775         * lib/ceil.c: New file.
58776         * lib/ceilf.c: New file.
58777         * m4/ceilf.m4: New file.
58778         * lib/math.in.h (ceilf): New declaration.
58779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
58780         HAVE_DECL_CEILF.
58781         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
58782         HAVE_DECL_CEILF.
58783         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
58784
58785 2007-10-04  Bruno Haible  <bruno@clisp.org>
58786
58787         * modules/floorl-tests: New file.
58788         * tests/test-floorl.c: New file.
58789
58790         * modules/floorl: New file.
58791         * lib/floorl.c: Replace entire file.
58792         * m4/floorl.m4: New file.
58793         * lib/math.in.h (floorl): Replace declaration.
58794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
58795         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
58796         * doc/functions/floorl.texi: Mention the 'floorl' module.
58797         * modules/mathl (Files): Remove lib/floorl.c.
58798         (Depends-on): Add floorl.
58799
58800 2007-10-04  Bruno Haible  <bruno@clisp.org>
58801
58802         * modules/floorf-tests: New file.
58803         * tests/test-floorf.c: New file.
58804
58805         * modules/floorf: New file.
58806         * lib/floor.c: New file.
58807         * lib/floorf.c: New file.
58808         * m4/floorf.m4: New file.
58809         * lib/math.in.h (floorf): New declaration.
58810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
58811         HAVE_DECL_FLOORF.
58812         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
58813         HAVE_DECL_FLOORF.
58814         * doc/functions/floorf.texi: Mention the 'floorf' module.
58815
58816 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
58817             Bruno Haible  <bruno@clisp.org>
58818
58819         Advertise for the Git server instead of the CVS server.
58820         * doc/gnulib-intro.texi (Steady Development): Mention the Git
58821         repository instead of the CVS one.
58822         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
58823         about all VCS systems generically.
58824         * doc/gnulib.texi (Introduction): Capitalize `Git'.
58825
58826 2007-10-04  Bruno Haible  <bruno@clisp.org>
58827
58828         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
58829         means.
58830         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
58831
58832 2007-10-04  Bruno Haible  <bruno@clisp.org>
58833
58834         * modules/truncl-tests: New file.
58835         * tests/test-truncl.c: New file.
58836
58837         * modules/truncl: New file.
58838         * lib/truncl.c: New file.
58839         * m4/truncl.m4: New file.
58840         * lib/math.in.h (truncl): New declaration.
58841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
58842         HAVE_DECL_TRUNCL.
58843         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
58844         HAVE_DECL_TRUNCL.
58845         * doc/functions/truncl.texi: Mention the 'truncl' module.
58846
58847 2007-10-04  Bruno Haible  <bruno@clisp.org>
58848
58849         * modules/truncf-tests: New file.
58850         * tests/test-truncf.c: New file.
58851
58852         * modules/truncf: New file.
58853         * lib/trunc.c: Make paramerizable through USE_* macros.
58854         * lib/truncf.c: New file.
58855         * m4/truncf.m4: New file.
58856         * lib/math.in.h (truncf): New declaration.
58857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
58858         HAVE_DECL_TRUNCF.
58859         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
58860         HAVE_DECL_TRUNCF.
58861         * doc/functions/truncf.texi: Mention the 'truncf' module.
58862
58863 2007-10-03  Bruno Haible  <bruno@clisp.org>
58864
58865         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58866         augmentation also for tests modules.
58867         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
58868         * modules/atexit-tests (Makefile.am): Likewise.
58869         * modules/binary-io-tests (Makefile.am): Likewise.
58870         * modules/c-strcase-tests (Makefile.am): Likewise.
58871         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
58872         * modules/canonicalize-tests (Makefile.am): Likewise.
58873         * modules/closein-tests (Makefile.am): Likewise.
58874         * modules/fprintf-posix-tests (Makefile.am): Likewise.
58875         * modules/freadahead-tests (Makefile.am): Likewise.
58876         * modules/fseek-tests (Makefile.am): Likewise.
58877         * modules/fseeko-tests (Makefile.am): Likewise.
58878         * modules/ftell-tests (Makefile.am): Likewise.
58879         * modules/ftello-tests (Makefile.am): Likewise.
58880         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
58881         * modules/isnanl-tests (Makefile.am): Likewise.
58882         * modules/lseek-tests (Makefile.am): Likewise.
58883         * modules/mbscasecmp-tests (Makefile.am): Likewise.
58884         * modules/mbscasestr-tests (Makefile.am): Likewise.
58885         * modules/mbschr-tests (Makefile.am): Likewise.
58886         * modules/mbscspn-tests (Makefile.am): Likewise.
58887         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
58888         * modules/mbspbrk-tests (Makefile.am): Likewise.
58889         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
58890         * modules/mbsrchr-tests (Makefile.am): Likewise.
58891         * modules/mbsspn-tests (Makefile.am): Likewise.
58892         * modules/mbsstr-tests (Makefile.am): Likewise.
58893         * modules/printf-posix-tests (Makefile.am): Likewise.
58894         * modules/snprintf-posix-tests (Makefile.am): Likewise.
58895         * modules/sprintf-posix-tests (Makefile.am): Likewise.
58896         * modules/tsearch-tests (Makefile.am): Likewise.
58897         * modules/uniname/uniname-tests (Makefile.am): Likewise.
58898         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
58899         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
58900         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
58901         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
58902         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
58903         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
58904         * modules/vprintf-posix-tests (Makefile.am): Likewise.
58905         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
58906         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
58907         * modules/xstrtoimax-tests (Makefile.am): Likewise.
58908         * modules/xstrtol-tests (Makefile.am): Likewise.
58909         * modules/xstrtoumax-tests (Makefile.am): Likewise.
58910         * modules/yesno-tests (Makefile.am): Likewise.
58911
58912 2007-10-03  Bruno Haible  <bruno@clisp.org>
58913
58914         * modules/trunc-tests: New file.
58915         * tests/test-trunc.c: New file.
58916
58917         * modules/trunc: New file.
58918         * lib/trunc.c: New file.
58919         * m4/trunc.m4: New file.
58920         * lib/math.in.h (trunc): New declaration.
58921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
58922         HAVE_DECL_TRUNC.
58923         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
58924         HAVE_DECL_TRUNC.
58925         * doc/functions/trunc.texi: Mention the 'trunc' module.
58926
58927 2007-10-03  Bruno Haible  <bruno@clisp.org>
58928
58929         * tests/test-fpending.c: New file, mostly copied
58930         from coreutils/lib/t-fpending.c.
58931         * modules/fpending-tests: New file.
58932
58933 2007-10-03  Bruno Haible  <bruno@clisp.org>
58934
58935         Port the stdio extensions to QNX (untested).
58936         * lib/fseterr.c (fseterr): Add support for QNX.
58937         * lib/fbufmode.c (fbufmode): Likewise.
58938         * lib/freadable.c (freadable): Likewise.
58939         * lib/fwritable.c (fwritable): Likewise.
58940         * lib/freading.c (freading): Likewise.
58941         * lib/fwriting.c (fwriting): Likewise.
58942         * lib/freadahead.c (freadahed): Likewise.
58943         * lib/fpurge.c (fpurge): Likewise.
58944         * lib/fseeko.c (rpl_fseeko): Likewise.
58945
58946 2007-10-03  Bruno Haible  <bruno@clisp.org>
58947             Jim Meyering  <jim@meyering.net>
58948             Eric Blake  <ebb9@byu.net>
58949
58950         * doc/relocatable.texi: Use @command instead of @program.
58951
58952 2007-10-02  Jim Meyering  <jim@meyering.net>
58953
58954         Perform one more "_.h" -> ".in.h" substitution.
58955         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
58956         instead of unistd_.h here, too.
58957
58958 2007-10-01  Bruno Haible  <bruno@clisp.org>
58959
58960         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
58961         Needed for the alloca-opt module.
58962
58963 2007-09-30  Bruno Haible  <bruno@clisp.org>
58964
58965         * lib/alloca.in.h: Renamed from lib/alloca_.h.
58966         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
58967         alloca_.h.
58968         * lib/argz.in.h: Renamed from lib/argz_.h.
58969         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
58970         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
58971         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
58972         byteswap_.h.
58973         * lib/dirent.in.h: Renamed from lib/dirent_.h.
58974         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
58975         dirent_.h.
58976         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
58977         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
58978         fcntl_.h.
58979         * lib/float.in.h: Renamed from lib/float_.h.
58980         * modules/float (Files, Makefile.am): Use float.in.h instead of
58981         float_.h.
58982         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
58983         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
58984         fnmatch_.h.
58985         * lib/getopt.in.h: Renamed from lib/getopt_.h.
58986         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
58987         getopt_.h.
58988         * lib/glob.in.h: Renamed from lib/glob_.h.
58989         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
58990         * lib/iconv.in.h: Renamed from lib/iconv_.h.
58991         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
58992         iconv_.h.
58993         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
58994         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
58995         inttypes_.h.
58996         * lib/locale.in.h: Renamed from lib/locale_.h.
58997         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
58998         locale_.h.
58999         * lib/math.in.h: Renamed from lib/math_.h.
59000         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
59001         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
59002         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
59003         of netinet_in_.h. Add dependency.
59004         * lib/poll.in.h: Renamed from lib/poll_.h.
59005         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
59006         * lib/search.in.h: Renamed from lib/search_.h.
59007         * modules/search (Files, Makefile.am): Use search.in.h instead of
59008         search_.h.
59009         * lib/signal.in.h: Renamed from lib/signal_.h.
59010         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
59011         _signal.h.
59012         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
59013         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
59014         stdbool_.h.
59015         * lib/stdint.in.h: Renamed from lib/stdint_.h.
59016         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
59017         stdint_.h.
59018         * lib/stdio.in.h: Renamed from lib/stdio_.h.
59019         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
59020         stdio_.h.
59021         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
59022         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
59023         stdlib_.h.
59024         * lib/string.in.h: Renamed from lib/string_.h.
59025         * modules/string (Files, Makefile.am): Use string.in.h instead of
59026         string_.h.
59027         * doc/gnulib-tool.texi (Initial import): Update.
59028         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
59029         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
59030         of sys_select_.h. Add dependency.
59031         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
59032         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
59033         of sys_socket_.h.
59034         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
59035         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
59036         sys_stat_.h.
59037         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
59038         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
59039         sys_time_.h.
59040         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
59041         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
59042         sysexits_.h.
59043         * lib/time.in.h: Renamed from lib/time_.h.
59044         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
59045         * lib/unistd.in.h: Renamed from lib/unistd_.h.
59046         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
59047         unistd_.h.
59048         * lib/wchar.in.h: Renamed from lib/wchar_.h.
59049         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
59050         wchar_.h.
59051         * lib/wctype.in.h: Renamed from lib/wctype_.h.
59052         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
59053         wctype_.h.
59054         * build-aux/bootstrap (slurp): Update.
59055         * lib/.cppi-disable: Update.
59056
59057 2007-09-30  Bruno Haible  <bruno@clisp.org>
59058
59059         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
59060         Needed on BeOS.
59061
59062 2007-09-30  Bruno Haible  <bruno@clisp.org>
59063
59064         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
59065
59066 2007-09-29  Bruno Haible  <bruno@clisp.org>
59067
59068         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
59069
59070 2007-09-29  Bruno Haible  <bruno@clisp.org>
59071
59072         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
59073         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
59074         * build-aux/install-reloc: Compile also areadlink.c.
59075         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
59076
59077 2007-09-29  Bruno Haible  <bruno@clisp.org>
59078
59079         * gnulib-tool (func_emit_initmacro_done): Indentation.
59080
59081 2007-09-29  Bruno Haible  <bruno@clisp.org>
59082
59083         * README: Add CVS checkout update instructions.
59084         Info from Bob Proulx <bob@proulx.com>.
59085
59086 2007-09-28  Eric Blake  <ebb9@byu.net>
59087
59088         Provide move-if-change.
59089         * build-aux/move-if-change: New file, based on best practice
59090         rather than any canonical upstream location.
59091
59092 2007-09-28  Jim Meyering  <jim@meyering.net>
59093
59094         Fix canonicalize loop-detection corner case.
59095         Do not attempt to stat the symlink values stored via seen_triple.
59096         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
59097         on linux-2.6.18, (but not 2.6.22).
59098         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
59099         triple_compare.  The former compares dev,ino,filename, while the latter
59100         would actually stat dirname(filename) when dev and ino were equal.
59101         * lib/hash-triple.c: Install <string.h>.
59102         (STREQ): Define.
59103         (triple_compare_ino_str): New function.
59104         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
59105
59106 2007-09-28  Eric Blake  <ebb9@byu.net>
59107
59108         Enforce that AC_REPLACE_FUNCS files exist.
59109         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
59110         override check for typos.
59111
59112         Fix test-closein on Solaris 10.
59113         * tests/test-closein.c (main): Don't assume stdin can be inherited
59114         closed on all systems.
59115         * tests/test-closein.sh: Likewise.
59116         Reported by Piotr Tarnowski.
59117
59118 2007-09-28  Jim Meyering  <jim@meyering.net>
59119
59120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
59121
59122 2007-09-27  Jim Meyering  <jim@meyering.net>
59123
59124         canonicalize: Avoid a false-positive cycle failure.
59125         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
59126         Sort.  Remove cycle-check.
59127         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
59128         not cycle-check.h.
59129         (seen_triple): New function.
59130         (canonicalize_filename_mode): Use it instead of cycle-check.
59131         * tests/test-canonicalize.c: Add a test for this bug.
59132         * tests/test-canonicalize.sh: Set up and run the test.
59133
59134         New module, file-set, from coreutils.
59135         * modules/file-set: Define it.
59136         * lib/file-set.c, lib/file-set.h: Implement.
59137
59138         New module, hash-triple, from coreutils.
59139         * modules/hash-triple: Define it.
59140         * lib/hash-triple.c, lib/hash-triple.h: Implement.
59141
59142 2007-09-25  Eric Blake  <ebb9@byu.net>
59143
59144         Fix strerror on Interix.
59145         * lib/string_.h (strerror): Declare replacement.
59146         * doc/functions/strerror.texi (strerror): Document the Interix
59147         shortcoming.
59148         * modules/string (Makefile.am): Support new hooks.
59149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
59150         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
59151         gl_FUNC_STRERROR_SEPARATE.
59152         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
59153         * lib/strerror.c (rpl_strerror): Provide replacement.
59154         * modules/strerror (Depends-on): Add string.
59155         (configure.ac): Detect use of module.
59156         * tests/test-strerror.c: New file.
59157         * modules/strerror-tests: New test module.
59158         * modules/argp (Depends-on): Add strerror.
59159         * modules/error (Depends-on): Likewise.
59160         Reported by Martin Koeppe.
59161
59162 2007-09-24  Bruno Haible  <bruno@clisp.org>
59163
59164         * README: Update git instructions.
59165
59166 2007-09-24  Eric Blake  <ebb9@byu.net>
59167
59168         Revert fpending breakage from 2007-09-08.
59169         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
59170         __fpending.c.
59171
59172 2007-09-24  Jim Meyering  <jim@meyering.net>
59173
59174         filenamecat.c: Add a test.
59175         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
59176         showing how the function works when DIR is the empty string.
59177
59178 2007-09-21  Simon Josefsson  <simon@josefsson.org>
59179
59180         * tests/test-canonicalize.sh: Turn on executable bit.
59181
59182 2007-09-19  Eric Blake  <ebb9@byu.net>
59183
59184         * README: Update CVS instructions.
59185
59186 2007-09-18  Bruno Haible  <bruno@clisp.org>
59187
59188         * modules/areadlink: New file.
59189         * lib/areadlink.h (areadlink): New declaration.
59190         * lib/areadlink.c: New file, based on lib/xreadlink.c.
59191
59192 2007-09-17  Jim Meyering  <jim@meyering.net>
59193
59194         * lib/savewd.c (ESTALE) [!defined]: Define.
59195         Reported to be required on Interix by Martin Koeppe.
59196
59197 2007-09-17  Bruno Haible  <bruno@clisp.org>
59198
59199         * gnulib-tool (func_version): Use $version.
59200
59201 2007-09-16  Bruno Haible  <bruno@clisp.org>
59202
59203         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
59204         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
59205         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
59206         Reported by Greg Schafer <gschafer@zip.com.au>.
59207
59208 2007-09-15  Bruno Haible  <bruno@clisp.org>
59209
59210         * gnulib-tool (sed): Try a little harder to make bash understand the
59211         alias.
59212         Reported by Bruce Korb <bruce.korb@gmail.com>.
59213
59214 2007-09-13  Eric Blake  <ebb9@byu.net>
59215
59216         * ChangeLog: Remove conflict markers.
59217
59218 2007-09-13  Simon Josefsson  <simon@josefsson.org>
59219
59220         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
59221         Reported by Bruno Haible <bruno@clisp.org>.
59222
59223 2007-09-12  Bruno Haible  <bruno@clisp.org>
59224
59225         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
59226         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
59227         is not defined.
59228
59229 2007-09-12  Eric Blake  <ebb9@byu.net>
59230
59231         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
59232         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
59233         Autoconf definition.
59234         * modules/euidaccess (Depends-on): Add extensions, for
59235         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
59236         * modules/fnmatch (Depends-on): Likewise.
59237         * modules/getaddrinfo (Depends-on): Likewise.
59238         * modules/getdelim (Depends-on): Likewise.
59239         * modules/getline (Depends-on): Likewise.
59240         * modules/getsubopt (Depends-on): Likewise.
59241         * modules/gettext (Depends-on): Likewise.
59242         * modules/group-member (Depends-on): Likewise.
59243         * modules/mbchar (Depends-on): Likewise.
59244         * modules/memmem (Depends-on): Likewise.
59245         * modules/mempcpy (Depends-on): Likewise.
59246         * modules/memrchr (Depends-on): Likewise.
59247         * modules/pagealign_alloc (Depends-on): Likewise.
59248         * modules/readutmp (Depends-on): Likewise.
59249         * modules/stpcpy (Depends-on): Likewise.
59250         * modules/stpncpy (Depends-on): Likewise.
59251         * modules/strchrnul (Depends-on): Likewise.
59252         * modules/strndup (Depends-on): Likewise.
59253         * modules/strsep (Depends-on): Likewise.
59254         * modules/strverscmp (Depends-on): Likewise.
59255         * modules/vasprintf (Depends-on): Likewise.
59256         * modules/wcwidth (Depends-on): Likewise.
59257         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
59258         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
59259         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
59260         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
59261         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59262         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59263         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
59264         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59265         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
59266         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
59267         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59268         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59269         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59270         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59271         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
59272         * m4/readutmp.m4 (gl_READUTMP): Likewise.
59273         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59274         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59275         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59276         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59277         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59278         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59279         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59280         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
59281         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
59282         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59283         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
59284         so that lock.m4 can be used in gettext without extensions module.
59285
59286 2007-09-11  Bruno Haible  <bruno@clisp.org>
59287
59288         * m4/isc-posix.m4: Remove file.
59289         Suggested by Eric Blake.
59290
59291 2007-09-11  Eric Blake  <ebb9@byu.net>
59292
59293         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
59294
59295 2007-09-10  Bruno Haible  <bruno@clisp.org>
59296
59297         * posix-modules: Fix typo in error message.
59298         Reported by Matt <mkraai@beckman.com>.
59299
59300 2007-09-09  Bruno Haible  <bruno@clisp.org>
59301
59302         * doc/functions/getdelim.texi: Update list of platforms lacking the
59303         function.
59304         * doc/functions/getline.texi: Likewise.
59305
59306 2007-09-09  Jim Meyering  <jim@meyering.net>
59307
59308         * lib/hash.c (hash_initialize): Detect calloc failure.
59309         Reported by Bruno Haible.
59310
59311 2007-09-09  Bruno Haible  <bruno@clisp.org>
59312
59313         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
59314         malloc or realloc fails.
59315
59316 2007-09-09  Bruno Haible  <bruno@clisp.org>
59317
59318         * modules/getcwd (Depends-on): Add malloc-posix.
59319         * modules/glob (Depends-on): Likewise.
59320         * modules/putenv (Depends-on): Likewise.
59321         * modules/strdup (Depends-on): Likewise.
59322         * modules/getdelim (Depends-on): Add realloc-posix.
59323         * modules/read-file (Depends-on): Likewise.
59324
59325 2007-09-09  Bruno Haible  <bruno@clisp.org>
59326
59327         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
59328         (gl_FUNC_MALLOC_POSIX): Require it.
59329         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
59330         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
59331         * modules/realloc (Files): Add m4/malloc.m4.
59332         * modules/calloc (Files): Likewise.
59333
59334 2007-09-09  Bruno Haible  <bruno@clisp.org>
59335
59336         * modules/malloc-posix: New file.
59337         * modules/malloc (Depends-on): Add malloc-posix.
59338         * lib/malloc.c: Include errno.h.
59339         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
59340         and a POSIX-compatible malloc into a single function. Set ENOMEM
59341         when returning NULL.
59342         * m4/malloc.m4: New file.
59343         * doc/functions/malloc.texi: Mention the malloc-posix module.
59344         * lib/stdlib_.h (malloc): New declaration.
59345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59346         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
59347         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
59348         and HAVE_MALLOC_POSIX.
59349
59350 2007-09-09  Bruno Haible  <bruno@clisp.org>
59351
59352         * modules/realloc-posix: New file.
59353         * modules/realloc (Depends-on): Add realloc-posix.
59354         * lib/realloc.c: Include errno.h.
59355         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
59356         and a POSIX-compatible realloc into a single function. Set ENOMEM
59357         when returning NULL.
59358         * m4/realloc.m4: New file.
59359         * doc/functions/realloc.texi: Mention the realloc-posix module.
59360         * lib/stdlib_.h (realloc): New declaration.
59361         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59362         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
59363         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
59364         and HAVE_REALLOC_POSIX.
59365
59366 2007-09-09  Bruno Haible  <bruno@clisp.org>
59367
59368         * modules/calloc-posix: New file.
59369         * modules/calloc (Depends-on): Add calloc-posix.
59370         * lib/calloc.c: Include errno.h.
59371         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
59372         and a POSIX-compatible calloc into a single function. Set ENOMEM
59373         when returning NULL.
59374         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
59375         * doc/functions/calloc.texi: Mention the calloc-posix module.
59376         * lib/stdlib_.h (calloc): New declaration.
59377         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59378         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
59379         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
59380         and HAVE_CALLOC_POSIX.
59381
59382 2007-09-09  Bruno Haible  <bruno@clisp.org>
59383
59384         Allow for modules to show an arbitrary notice.
59385         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
59386         * gnulib-tool: New option --extract-notice.
59387         (func_usage): Document it.
59388         (sed_extract_prog): Update.
59389         (func_get_notice): New function.
59390         (func_modules_notice): New function.
59391         (func_import, func_create_testdir): Invoke it.
59392         Suggested by Jim Meyering.
59393
59394 2007-09-09  Bruno Haible  <bruno@clisp.org>
59395
59396         * gnulib-tool: New options --verbose, --quiet.
59397         (func_usage): Document them.
59398         (verbose): New variable.
59399         (func_execute_command): New function.
59400         (func_import): Don't show the module list and the file list if
59401         $verbose < 0.
59402         (func_create_testdir): Likewise. Use func_execute_command.
59403         (func_create_megatestdir): Use func_execute_command.
59404
59405 2007-09-08  Bruno Haible  <bruno@clisp.org>
59406
59407         * gnulib-tool (func_import): Prefer rsync over wget when available,
59408         for fetching the PO files.
59409
59410 2007-09-08  Bruno Haible  <bruno@clisp.org>
59411
59412         * posix-modules: New file. Portions copied from gnulib-tool.
59413         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
59414
59415 2007-09-08  Jim Meyering  <jim@meyering.net>
59416
59417         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
59418         * lib/fpending.h: Rename from __fpending.h.
59419         * lib/fpending.c: Rename from __fpending.c.
59420         Include "fpending.h", not "__fpending.h".
59421         * lib/__fpending.h, lib/__fpending.c: Remove files.
59422         * modules/fpending (Files): Reflect new file names.
59423         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
59424
59425 2007-09-08  Bruno Haible  <bruno@clisp.org>
59426
59427         * m4/inttypes-h.m4: Remove stub file.
59428
59429 2007-09-07  Simon Josefsson  <simon@josefsson.org>
59430
59431         * doc/headers/stdint.texi: Discuss #include_next issue.
59432
59433 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59434
59435         * build-aux/bootstrap: Remove obsolete comment about wget --help.
59436
59437 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59438
59439         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
59440         in variable name.
59441
59442 2007-09-03  Jim Meyering  <jim@meyering.net>
59443
59444         New module: git-version-gen.
59445         * modules/git-version-gen: New file.
59446
59447         Import changes from coreutils for bootstrap script.
59448
59449         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
59450
59451         bootstrap: uses rsync to download the .po files
59452         * build-aux/bootstrap (po_download_command_format): New global.
59453         (download_po_files): Use rsync.
59454         (update_po_files): Don't remove .po files after download,
59455         so future rsync runs can take advantage of the copies.
59456
59457         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
59458
59459         Solve the unnecessary-.po-file-regeneration problem once and for all.
59460         * build-aux/bootstrap (download_po_files): New function, renamed from
59461         get_translations.  Now, downloads, but doesn't update LINGUAS.
59462         (update_po_files): New function.
59463
59464         bootstrap: Ignore more.
59465         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
59466         uniwidth to e.g., lib/.gitignore.
59467         (slurp): Handle the sys_stat_.h -> sys mapping, too.
59468
59469         * build-aux/bootstrap: New setting: vc_ignore.
59470         (insert_sorted_if_absent): Create $file if absent.
59471         Adapt to new, possibly empty, list: $vc_ignore.
59472
59473         bootstrap: generate more ignorable names
59474         * build-aux/bootstrap (slurp): When generating ignorable names,
59475         also map .sin to .sed, .gperf to .c, and .y to .c.
59476
59477 2007-09-03  Jim Meyering  <jim@meyering.net>
59478
59479         * build-aux/git-version-gen: New file, from coreutils.  For details, see
59480         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
59481
59482 2007-09-02  Bruno Haible  <bruno@clisp.org>
59483
59484         Fix mis-recognition of 'mcs' on QNX 6.
59485         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
59486         output contains the string "Mono".
59487         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
59488         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
59489
59490 2007-09-01  Bruno Haible  <bruno@clisp.org>
59491
59492         Fix collision between uniwidth/* and linebreak modules.
59493         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
59494         u32_width): Remove declarations.
59495         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
59496         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
59497         streq3, streq2, streq1, streq0): Remove functions.
59498         (STREQ): Remove macro.
59499         (is_cjk_encoding): Remove function.
59500         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
59501         (uc_width, u8_width, u16_width, u32_width): Remove functions.
59502         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
59503         * NEWS: Document the change.
59504
59505 2007-09-01  Bruno Haible  <bruno@clisp.org>
59506
59507         * lib/streq.h: Add double-inclusion guard.
59508
59509 2007-09-01  Karl Berry  <karl@gnu.org>
59510
59511         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
59512
59513 2007-08-28  Jim Meyering  <jim@meyering.net>
59514
59515         Rename mreadlink_with_size to areadlink_with_size.
59516         * NEWS: Document the change.
59517         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
59518         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
59519         * lib/mreadlink.h: Rename this to...
59520         * lib/areadlink.h: ...this.
59521         * modules/mreadlink-with-size: Rename this to...
59522         * modules/areadlink-with-size: ...this.
59523         * lib/canonicalize.c: Reflect the renaming.
59524         * modules/canonicalize: Likewise.
59525
59526 2007-08-26  Bruno Haible  <bruno@clisp.org>
59527
59528         * gnulib-tool (func_import): When deciding which files to remove,
59529         consider also dangling symbolic links.
59530         Reported by Eric Blake.
59531
59532 2007-08-26  Bruno Haible  <bruno@clisp.org>
59533
59534         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
59535
59536 2007-08-23  Simon Josefsson  <simon@josefsson.org>
59537
59538         * lib/readline.c: Don't include getline.h, the prototype is now
59539         found in stdio.h.
59540
59541 2007-08-23  Jim Meyering  <jim@meyering.net>
59542
59543         Getdelim touchup.
59544         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
59545         around the funlockfile call, since funlockfile never sets errno.
59546         Don't set errno upon failed realloc.
59547
59548 2007-08-22  Eric Blake  <ebb9@byu.net>
59549
59550         Getline touchups.
59551         * lib/getdelim.c (getdelim): Revert regression that required *n to
59552         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
59553         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
59554         getdelim, rather than whether implementation is missing.
59555         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
59556         * lib/stdio_.h (getline): Also declare if replacement is
59557         required.
59558         * doc/functions/getdelim.texi: New file.
59559         * doc/functions/getline.texi: Likewise.
59560         * doc/gnulib.texi (Function Substitutes): Add new files.
59561         Reported by Bruno Haible.
59562
59563 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
59564
59565         * users.txt: Add Guile.
59566
59567 2007-08-22  Eric Blake  <ebb9@byu.net>
59568
59569         * tests/test-getdelim.c (main): Use remove, not unlink.
59570         * tests/test-getline.c (main): Likewise.
59571
59572         Move getline and getdelim into stdio.h, per POSIX 200x.
59573         * modules/getline (Files): Remove getline.h.
59574         (Depends-on): Add stdio.
59575         (configure.ac): Add module indicator.
59576         * modules/getdelim (Files): Remove getdelim.h.
59577         (Depends-on): Add stdio.
59578         (configure.ac): Add module indicator.
59579         * modules/stdio (Makefile.am): Work with new indicators.
59580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
59581         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
59582         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59583         * lib/getdelim.h: Delete.
59584         * lib/getline.h: Delete.
59585         * lib/stdio_.h (getdelim, getline): Declare.
59586         * modules/getdelim-tests: New module.
59587         * modules/getline-tests: Likewise.
59588         * tests/test-getdelim.c: New file.
59589         * tests/test-getline.c: Likewise.
59590         * NEWS: Document the change.
59591         * lib/getline.c: Update choice of header.
59592         * lib/csharpcomp.c: Likewise.
59593         * lib/getpass.c: Likewise.
59594         * lib/javacomp.c: Likewise.
59595         * lib/javaversion.c: Likewise.
59596         * lib/yesno.c: Likewise.
59597         * lib/getdelim.c: Likewise.
59598         (getdelim): Set errno on failure, and avoid memory leak.
59599
59600 2007-08-19  Bruno Haible  <bruno@clisp.org>
59601
59602         * modules/closein (Depends-on): Add freadahead.
59603         * lib/closein.c: Include freadahead.h.
59604         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
59605         is zero.
59606
59607 2007-08-19  Bruno Haible  <bruno@clisp.org>
59608
59609         * modules/freadahead-tests: New file.
59610         * tests/test-freadahead.sh: New file.
59611         * tests/test-freadahead.c: New file.
59612
59613         * modules/freadahead: New file.
59614         * lib/freadahead.h: New file.
59615         * lib/freadahead.c: New file.
59616         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
59617         fbufmode, fpurge, freadable, fwritable.
59618
59619 2007-08-19  Eric Blake  <ebb9@byu.net>
59620
59621         Test yesno in combination with closein.
59622         * lib/yesno.c (yesno): Document use of stdin.
59623         * modules/yesno-tests (Files): New module.
59624         * tests/test-yesno.c (main): New file.
59625         * tests/test-yesno.sh: Likewise.
59626
59627 2007-08-19  Bruno Haible  <bruno@clisp.org>
59628
59629         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
59630         * lib/fseeko.c (rpl_fseeko): Likewise.
59631         * lib/fseterr.c (fseterr): Likewise.
59632
59633 2007-08-19  Bruno Haible  <bruno@clisp.org>
59634
59635         * tests/test-lseek.c (main): Disable a test for BeOS.
59636         * doc/functions/lseek.texi: Document the BeOS bug.
59637
59638 2007-08-19  Bruno Haible  <bruno@clisp.org>
59639             Eric Blake  <ebb9@byu.net>
59640
59641         * lib/lseek.c: Include <sys/stat.h>.
59642         (rpl_lseek): Add workaround code also for Unix platforms.
59643         Needed for BeOS.
59644         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
59645         * doc/functions/lseek.texi: Document BeOS definiency.
59646
59647 2007-08-18  Bruno Haible  <bruno@clisp.org>
59648
59649         * modules/fstrcmp-tests: New file.
59650         * tests/test-fstrcmp.c: New file.
59651
59652 2007-08-18  Bruno Haible  <bruno@clisp.org>
59653
59654         * modules/fstrcmp: New file, from GNU gettext with modifications.
59655         * lib/fstrcmp.h: New file, from GNU gettext.
59656         * lib/fstrcmp.c: New file, from GNU gettext.
59657         * MODULES.html.sh (String handling): Add fstrcmp.
59658
59659 2007-08-18  Bruno Haible  <bruno@clisp.org>
59660
59661         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
59662         'bool'.
59663         (diag, compareseq): Remove const from the ctxt argument.
59664         (USE_HEURISTIC): Undefine at the end.
59665
59666 2007-08-18  Jim Meyering  <jim@meyering.net>
59667
59668         New file: lib/idcache.h
59669         * NEWS: Mention the addition.
59670         * modules/idcache (Files): Add lib/idcache.h
59671         * lib/idcache.c: Include "idcache.h".
59672         Don't include <sys/types.h>.
59673         Add a FIXME comment.
59674         Move file-scoped "static" declarations to the top.
59675         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
59676
59677 2007-08-17  Bruno Haible  <bruno@clisp.org>
59678         and Paul Eggert  <eggert@cs.ucla.edu>
59679
59680         * MODULES.html.sh: Add diffseq.
59681         * modules/diffseq: New file.
59682         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
59683         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
59684
59685 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59686
59687         Import changes from coreutils for bootstrap script.
59688
59689         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
59690
59691         * build-aux/bootstrap (slurp): Work even in environments where
59692         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
59693         current code does not slurp files whose names start with ".", and
59694         this looks like it might be a troublesome area.
59695
59696         2007-07-11  Jim Meyering  <jim@meyering.net>
59697
59698         If there's a GPL vN copyright comment, require that N == 3.
59699
59700         2007-07-08  Jim Meyering  <jim@meyering.net>
59701
59702         Run the coreutils-specific code only if tests/Makefile.am.in exists.
59703         * build-aux/bootstrap (mam_template): Move definition out of loop.
59704
59705         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
59706
59707         * build-aux/bootstrap (symlink_to_dir): Rename function from
59708         symlink_to_gnulib.  Add a directory parameter.  Update all
59709         callers.
59710         (cp_mark_as_generated): Also check for -- and link to -- files in
59711         gl/.
59712
59713         2007-07-08  Jim Meyering  <jim@meyering.net>
59714
59715         Adapt to deeper hierarchy in gnulib.
59716         * build-aux/bootstrap (symlink_to_dir): If the destination
59717         directory doesn't exist, create it. This is required at least for
59718         "lib/uniwidth/cjk.h".
59719
59720         2007-05-15  Jim Meyering  <jim@meyering.net>
59721
59722         * build-aux/bootstrap: Now that generated Makefile.am files
59723         are no longer under version control, they must be created at
59724         bootstrap time.
59725
59726 2007-08-14  Ben Pfaff  <blp@gnu.org>
59727
59728         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
59729
59730 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59731
59732         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
59733         given the changes below.
59734         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
59735         even on hosts that have padding bits beyond the supported 64.
59736
59737 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59738
59739         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
59740         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
59741         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
59742         depends on it.
59743         (xstrtol_error): Remove.
59744         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
59745         but with a different signature.
59746         (ATTRIBUTE_NORETURN, __attribute__): New macros.
59747         * lib/xstrtol-error.c: Include exitfail.h.
59748         (xstrtol_fatal): New function, with a different signature from the
59749         old xstrtol_error, so that the caller need not worry about passing
59750         in an exit status, or about storage management of the option argument.
59751         (xstrtol_error): Now a static function.  Redo signature to
59752         implement xstrtol_fatal.  Output the correct number of hyphens in
59753         front of the option so that the caller need not worry about
59754         storage management.
59755         (N_): New macro.
59756         (_): Remove; not used now.
59757         * modules/xstrtol: Depend on getopt.
59758         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
59759         of old STRTOL_FATAL_ERROR macro.
59760         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
59761         of test program.
59762         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
59763         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
59764
59765 2007-08-08  Eric Blake  <ebb9@byu.net>
59766
59767         * lib/xstrtol-error.c: Add missing include.
59768
59769         Move xstrtol messages into gnulib domain, when --pobase is used.
59770         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
59771         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
59772         * modules/xstrtol (Files): Distribute new file.
59773         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
59774         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
59775         * tests/test-xstrtol.c: ...into new file.
59776         * tests/test-xstrtoul.c: Also test xstrtoul.
59777         * tests/test-xstrtoimax.c: Also test xstrtoimax.
59778         * tests/test-xstrtoumax.c: Also test xstrtoumax.
59779         * tests/test-xstrtol.sh: Drive the tests.
59780         * tests/test-xstrtoimax.sh: Likewise.
59781         * tests/test-xstrtoumax.sh: Likewise.
59782         * modules/xstrtol-tests: New module.
59783         * modules/xstrtoimax-tests: Likewise.
59784         * modules/xstrtoumax-tests: Likewise.
59785
59786 2007-08-08  Jim Meyering  <jim@meyering.net>
59787
59788         New function: mfile_name_concat.
59789         * lib/filenamecat.c (mfile_name_concat): New function, just like
59790         file_name_concat, but return NULL upon failure rather than exiting
59791         with a diagnostic.
59792         * lib/filenamecat.h: Declare it.
59793
59794 2007-08-07  Bruno Haible  <bruno@clisp.org>
59795
59796         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
59797         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
59798         warning from gcc.
59799         Reported by Eric Blake.
59800
59801 2007-08-07  Simon Josefsson  <simon@josefsson.org>
59802
59803         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
59804         * modules/crypto/arcfour (License): Likewise.
59805         * modules/crypto/des-tests (License): Likewise.
59806         * modules/crypto/gc-arctwo-tests (License): Likewise.
59807         * modules/crypto/gc-des-tests (License): Likewise.
59808         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
59809         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
59810         * modules/crypto/gc-md2-tests (License): Likewise.
59811         * modules/crypto/gc-md4-tests (License): Likewise.
59812         * modules/crypto/gc-md5-tests (License): Likewise.
59813         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
59814         * modules/crypto/gc-rijndael-tests (License): Likewise.
59815         * modules/crypto/gc-sha1-tests (License): Likewise.
59816         * modules/crypto/gc-tests (License): Likewise.
59817         * modules/crypto/hmac-md5 (License): Likewise.
59818         * modules/crypto/hmac-sha1 (License): Likewise.
59819         * modules/crypto/md2-tests (License): Likewise.
59820         * modules/crypto/md4-tests (License): Likewise.
59821         * modules/crypto/md5 (License): Likewise.
59822         * modules/crypto/rijndael (License): Likewise.
59823         * modules/crypto/sha1 (License): Likewise.
59824         * modules/memxor (License): Likewise.
59825
59826 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59827         and Bruno Haible  <bruno@clisp.org>
59828
59829         * NEWS: Describe interface changes to human, xstrtol.
59830         * lib/human.h: Include <xstrtol.h>.
59831         (human_options): Return enum strtol_error, not int.  Remove
59832         bool arg; take int * instead.
59833         * lib/human.c: Don't include "gettext.h".
59834         (_): Remove; no longer used.
59835         Don't include <xstrtol.h>, since human.h does it.
59836         (human_options): Adjust to abovementioned interface changes.
59837         Do not report error to stderr; that's now the caller's
59838         responsibility.
59839         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
59840         interface change.
59841         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
59842         Str, Argument_type_string.  All uses changed.  Put " argument"
59843         in diagnostics to make them clearer.  Change wording of suffix
59844         message for clarity.
59845         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
59846         Argument_type_string.
59847         (STRTOL_FATAL_WARN): Remove; no longer used.
59848         * modules/human (Depends-on): Remove gettext-h.
59849
59850 2007-08-06  Simon Josefsson  <simon@josefsson.org>
59851
59852         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
59853
59854 2007-07-31  Bruno Haible  <bruno@clisp.org>
59855
59856         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
59857         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
59858         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
59859
59860 2007-07-31  Bruno Haible  <bruno@clisp.org>
59861
59862         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
59863         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
59864
59865 2007-07-30  Bruno Haible  <bruno@clisp.org>
59866
59867         * modules/base64 (License): Use the synonymous term "LGPLv2+".
59868         * modules/c-ctype (License): Likewise.
59869         * modules/c-strcase (License): Likewise.
59870         * modules/check-version (License): Likewise.
59871         * modules/iconv (License): Likewise.
59872         * modules/iconv_open (License): Likewise.
59873         * modules/read-file (License): Likewise.
59874         * modules/striconv (License): Likewise.
59875         * modules/strverscmp (License): Likewise.
59876         * modules/vasprintf (License): Likewise.
59877         * modules/crypto/des (License): Likewise.
59878         * modules/crypto/gc (License): Likewise.
59879         * modules/crypto/gc-arcfour (License): Likewise.
59880         * modules/crypto/gc-arctwo (License): Likewise.
59881         * modules/crypto/gc-des (License): Likewise.
59882         * modules/crypto/gc-hmac-md5 (License): Likewise.
59883         * modules/crypto/gc-hmac-sha1 (License): Likewise.
59884         * modules/crypto/gc-md2 (License): Likewise.
59885         * modules/crypto/gc-md4 (License): Likewise.
59886         * modules/crypto/gc-md5 (License): Likewise.
59887         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
59888         * modules/crypto/gc-random (License): Likewise.
59889         * modules/crypto/gc-rijndael (License): Likewise.
59890         * modules/crypto/gc-sha1 (License): Likewise.
59891         * modules/crypto/md2 (License): Likewise.
59892         * modules/crypto/md4 (License): Likewise.
59893
59894 2007-07-30  Jim Meyering  <jim@meyering.net>
59895
59896         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
59897         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
59898         it has valid stat data.  This bug would cause du not to count the
59899         sizes of inaccessible directories.
59900         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
59901         in <http://bugzilla.redhat.com/250077>.
59902
59903 2007-07-25  Peter O'Gorman  <peter@pogma.com>
59904             Bruno Haible  <bruno@clisp.org>
59905
59906         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
59907         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
59908         #include_next, gives a diagnostic about it, but reports no error in
59909         the exit code.
59910         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
59911
59912 2007-07-24  Ben Pfaff  <blp@gnu.org>
59913
59914         Improve name: "count-one-bits" is better than "popcount".
59915         * MODULES.html.sh: Update name.
59916         * lib/popcount.h: Renamed lib/count-one-bits.h.
59917         (popcount): Renamed count_one_bits.
59918         (popcountl): Renamed count_one_bits_l.
59919         (popcountll): Renamed count_one_bits_ll.
59920         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
59921         * modules/popcount: Renamed module/count-one-bits.
59922         * modules/popcount-tests: Renamed module/count-one-bits-tests.
59923         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
59924
59925 2007-07-23  Ben Pfaff  <blp@gnu.org>
59926
59927         * lib/popcount.h (popcount32): Reduce size of constants, to allow
59928         better code generation, and add U to large constants to avoid
59929         warnings, in non-GCC case.
59930         Suggested by Bruno Haible.
59931
59932 2007-07-23  Ben Pfaff  <blp@gnu.org>
59933
59934         * lib/popcount.h: Use verify_true instead of if...abort.
59935         * modules/popcount: Depend on verify module.
59936         Suggested by Jim Meyering.
59937
59938 2007-07-23  Bruno Haible  <bruno@clisp.org>
59939
59940         * gnulib-tool (func_import): Create a .cvsignore file also when the
59941         directory is not yet in CVS but the toplevel directory is. When
59942         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
59943         Reported by Karl Berry.
59944
59945 2007-07-22  Ben Pfaff  <blp@gnu.org>
59946
59947         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
59948         case.
59949         Suggested by Eric Blake.
59950
59951 2007-07-22  Ben Pfaff  <blp@gnu.org>
59952
59953         New module: popcount.
59954         * MODULES.html.sh: Add popcount.
59955         * modules/popcount: New file.
59956         * modules/popcount-tests: New file.
59957         * tests/test-popcount.c: New file.
59958         * lib/popcount.h: New file.
59959         * m4/popcount.m4: New file.
59960
59961 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59962
59963         * build-aux/announce-gen: Update to GPLv3.
59964
59965         * build-aux/config.guess: Update from config.
59966
59967 2007-07-21  Bruno Haible  <bruno@clisp.org>
59968
59969         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
59970         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
59971
59972 2007-07-20  Jim Meyering  <jim@meyering.net>
59973
59974         * check-module: Diagnose a self-dependency.
59975
59976 2007-07-19  Bruno Haible  <bruno@clisp.org>
59977
59978         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
59979         empty.
59980         Reported by Eric Blake.
59981
59982 2007-07-18  Bruno Haible  <bruno@clisp.org>
59983
59984         * gnulib-tool: New options --po-base, --po-domain.
59985         (func_usage): Document them.
59986         (pobase, po_domain): New variables.
59987         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
59988         DEFAULT_TEXT_DOMAIN.
59989         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
59990         (func_import): Consider pobase and po_domain. Create a po/ directory.
59991         (func_create_testdir): Set pobase and po_domain to empty.
59992         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
59993         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
59994
59995 2007-07-18  Bruno Haible  <bruno@clisp.org>
59996
59997         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59998         EXTRA_DIST augmentation for files in build-aux/.
59999
60000 2007-07-16  Bruno Haible  <bruno@clisp.org>
60001
60002         * modules/lseek (License): Use the synonymous term "LGPLv2+".
60003         * modules/getdelim (License): Likewise.
60004
60005 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60006
60007         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
60008         * modules/d-type (License): Likewise.
60009         * modules/extensions (License): Likewise.
60010         * modules/fnmatch (License): Likewise.
60011         * modules/fseeko (License): Likewise.
60012         * modules/getaddrinfo (License): Likewise.
60013         * modules/getline (License): Likewise.
60014         * modules/getlogin_r (License): Likewise.
60015         * modules/getpass (License): Likewise.
60016         * modules/gettimeofday (License): Likewise.
60017         * modules/glob (License): Likewise.
60018         * modules/inet_ntop (License): Likewise.
60019         * modules/malloc (License): Likewise.
60020         * modules/malloca (License): Likewise.
60021         * modules/memmem (License): Likewise.
60022         * modules/mempcpy (License): Likewise.
60023         * modules/memset (License): Likewise.
60024         * modules/minmax (License): Likewise.
60025         * modules/mktime (License): Likewise.
60026         * modules/netinet_in (License): Likewise.
60027         * modules/pathmax (License): Likewise.
60028         * modules/poll (License): Likewise.
60029         * modules/regex (License): Likewise.
60030         * modules/snprintf (License): Likewise.
60031         * modules/stdbool (License): Likewise.
60032         * modules/stdint (License): Likewise.
60033         * modules/stdio (License): Likewise.
60034         * modules/strcase (License): Likewise.
60035         * modules/strcasestr (License): Likewise.
60036         * modules/strdup (License): Likewise.
60037         * modules/string (License): Likewise.
60038         * modules/strndup (License): Likewise.
60039         * modules/strnlen (License): Likewise.
60040         * modules/strpbrk (License): Likewise.
60041         * modules/strptime (License): Likewise.
60042         * modules/strsep (License): Likewise.
60043         * modules/sys_select (License): Likewise.
60044         * modules/sys_socket (License): Likewise.
60045         * modules/sys_stat (License): Likewise.
60046         * modules/sys_time (License): Likewise.
60047         * modules/time (License): Likewise.
60048         * modules/time_r (License): Likewise.
60049         * modules/timegm (License): Likewise.
60050         * modules/unistd (License): Likewise.
60051         * modules/vsnprintf (License): Likewise.
60052         * modules/wctype (License): Likewise.
60053
60054 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60055
60056         * modules/argz (License): LGPLv2+.
60057
60058 2007-07-15  Karl Berry  <karl@gnu.org>
60059
60060         * doc/gnulib.texi: revise node structure per new fdl.texi.
60061
60062 2007-07-14  Bruno Haible  <bruno@clisp.org>
60063
60064         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
60065         the output file.
60066         * lib/uniname/uninames.h: Regenerated.
60067
60068 2007-07-14  Karl Berry  <karl@gnu.org>
60069
60070         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
60071         omitting sectioning and index commands.
60072
60073 2007-07-13  Bruno Haible  <bruno@clisp.org>
60074
60075         New gnulib-tool option --more-symlinks.
60076         * gnulib-tool (func_usage): Document --more-symlinks.
60077         (do_copyrights): New variable.
60078         Recognize option --more-symlinks.
60079         (func_import): Don't add a copyright notice transform to
60080         sed_transform_lib_file if do_copyrights is empty.
60081
60082 2007-07-13  Bruno Haible  <bruno@clisp.org>
60083
60084         * lib/vasnprintf.c (decimal_point_char): Define also if
60085         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
60086         && !NEED_PRINTF_DIRECTIVE_A.
60087         Reported by Clemens Koller <clemens.koller@anagramm.de> via
60088         Gary V. Vaughan <gary@gnu.org>.
60089
60090 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
60091
60092         * lib/inttypes_.h: Undo previous change, since it was fixed
60093         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
60094
60095 2007-07-13  Bruno Haible  <bruno@clisp.org>
60096
60097         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
60098         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
60099
60100 2007-07-13  Jim Meyering  <jim@meyering.net>
60101
60102         df: Don't fail for Tru64's "file-on-file mount".
60103         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
60104         so we fall through and use statfs instead.  Details here:
60105         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
60106         Reported by Albert Chin.
60107
60108 2007-07-13  Bruno Haible  <bruno@clisp.org>
60109
60110         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
60111         * modules/configmake (License): Likewise.
60112         * modules/gettext (License): Likewise.
60113         * modules/gettext-h (License): Likewise.
60114         * modules/include_next (License): Likewise.
60115         * modules/link-warning (License): Likewise.
60116         * modules/localcharset (License): Likewise.
60117         * modules/localename (License): Likewise.
60118         * modules/lock (License): Likewise.
60119         * modules/relocatable-lib-lgpl (License): Likewise.
60120         * modules/size_max (License): Likewise.
60121         * modules/vasnprintf (License): Likewise.
60122         * modules/wchar (License): Likewise.
60123         * modules/xsize (License): Likewise.
60124
60125 2007-07-13  Bruno Haible  <bruno@clisp.org>
60126
60127         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
60128         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
60129
60130 2007-07-12  Bruno Haible  <bruno@clisp.org>
60131
60132         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
60133         in the modules files.
60134
60135 2007-07-11  Karl Berry  <karl@gnu.org>
60136
60137         * MODULES.html.sh (func_module): use
60138          sed -e '\|^'"${includefile}"'$|d'
60139          instead of /.../d, to avoid errors on $includefile's containing /.
60140
60141 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60142
60143         * gnulib-tool (func_import): Avoid duplication of --avoid
60144         statements
60145         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
60146         names to `_' in variable names.
60147
60148 2007-07-10  Eric Blake  <ebb9@byu.net>
60149
60150         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
60151         * NEWS: Document this change.
60152
60153 2007-07-08  Bruno Haible  <bruno@clisp.org>
60154
60155         Update to Unicode 5.0.
60156         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
60157         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
60158         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
60159         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
60160         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
60161         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
60162         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
60163         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
60164         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
60165         U+10A3F, U+1D242..U+1D244.
60166         (nonspacing_table_ind): Update.
60167         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
60168         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
60169
60170 2007-07-08  Bruno Haible  <bruno@clisp.org>
60171
60172         Update to Unicode 5.0.
60173         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
60174         code transform. Extend the name index field of unicode_name_to_code and
60175         unicode_code_to_name from 16 to 24 bits.
60176         * lib/uniname/uniname.c (unicode_character_name,
60177         unicode_name_character): Add the range 0x12xxx to the code transform.
60178         * lib/uniname/uninames.h: Regenerated.
60179         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
60180
60181 2007-07-07  Bruno Haible  <bruno@clisp.org>
60182
60183         * modules/wcwidth-tests: New file.
60184         * tests/test-wcwidth.c: New file.
60185
60186         Work around MacOS X wcwidth() bug.
60187         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
60188         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
60189         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
60190         original wcwidth in non-UTF-8 locales.
60191         * modules/wcwidth (Depends-on): Add localcharset, streq,
60192         uniwidth/width.
60193         * doc/functions/wcwidth.texi: Update.
60194
60195 2007-07-07  Bruno Haible  <bruno@clisp.org>
60196
60197         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
60198         (wcwidth): New declaration.
60199         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
60200         macros.
60201         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
60202         here. Prepare for creating <wchar.h> unconditionally.
60203         * modules/wchar (Depends-on): Add link-warning.
60204         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
60205         REPLACE_WCWIDTH, and GL_LINK_WARNING.
60206         * lib/wcwidth.h: Remove file.
60207         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
60208         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
60209         * modules/wcwidth (Files): Remove lib/wcwidth.h.
60210         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
60211         (Include): Replace wcwidth.h with <wchar.h>.
60212         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
60213         * lib/mbchar.h: Don't include wcwidth.h.
60214         * lib/mbswidth.c: Likewise.
60215         * NEWS: Mention the change.
60216
60217 2007-07-07  Bruno Haible  <bruno@clisp.org>
60218
60219         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
60220         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
60221         definition with an external declaration.
60222         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
60223         defined as a function. Remove AC_C_INLINE requirement.
60224         * modules/wcwidth (Files): Add lib/wcwidth.c.
60225         (Makefile.am): Remove redundant statement.
60226
60227 2007-07-07  Bruno Haible  <bruno@clisp.org>
60228
60229         * MODULES.html.sh (Unicode string functions): Add the new modules.
60230
60231         * tests/uniwidth/test-u32-strwidth.c: New file.
60232         * modules/uniwidth/u32-strwidth-tests: New file.
60233
60234         * lib/uniwidth/u32-strwidth.c: New file.
60235         * modules/uniwidth/u32-strwidth: New file.
60236
60237         * tests/uniwidth/test-u16-strwidth.c: New file.
60238         * modules/uniwidth/u16-strwidth-tests: New file.
60239
60240         * lib/uniwidth/u16-strwidth.c: New file.
60241         * modules/uniwidth/u16-strwidth: New file.
60242
60243         * tests/uniwidth/test-u8-strwidth.c: New file.
60244         * modules/uniwidth/u8-strwidth-tests: New file.
60245
60246         * lib/uniwidth/u8-strwidth.c: New file.
60247         * modules/uniwidth/u8-strwidth: New file.
60248
60249         * tests/uniwidth/test-u32-width.c: New file.
60250         * modules/uniwidth/u32-width-tests: New file.
60251
60252         * lib/uniwidth/u32-width.c: New file.
60253         * modules/uniwidth/u32-width: New file.
60254
60255         * tests/uniwidth/test-u16-width.c: New file.
60256         * modules/uniwidth/u16-width-tests: New file.
60257
60258         * lib/uniwidth/u16-width.c: New file.
60259         * modules/uniwidth/u16-width: New file.
60260
60261         * tests/uniwidth/test-u8-width.c: New file.
60262         * modules/uniwidth/u8-width-tests: New file.
60263
60264         * lib/uniwidth/u8-width.c: New file.
60265         * modules/uniwidth/u8-width: New file.
60266
60267         * tests/uniwidth/test-uc_width.c: New file.
60268         * modules/uniwidth/width-tests: New file.
60269
60270         * lib/uniwidth/width.c: New file, from GNU libiconv.
60271         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
60272         * modules/uniwidth/width: New file.
60273
60274         * lib/uniwidth.h: New file, from GNU libiconv.
60275         * modules/uniwidth/base: New file.
60276
60277 2007-07-07  Bruno Haible  <bruno@clisp.org>
60278
60279         * lib/uniname.h: New file, from GNU gettext.
60280         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
60281         * lib/uniname/uninames.h: New file, from GNU gettext.
60282         * lib/uniname/uniname.c: New file, from GNU gettext.
60283         * tests/uniname/test-uninames.sh: New file.
60284         * tests/uniname/test-uninames.c: New file, from GNU gettext.
60285         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
60286         * modules/uniname/base: New file.
60287         * modules/uniname/uniname: New file.
60288         * modules/uniname/uniname-tests: New file.
60289         * MODULES.html.sh (Unicode string functions): Add the new modules.
60290
60291 2007-07-06  Bruno Haible  <bruno@clisp.org>
60292
60293         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
60294
60295 2007-07-06  Bruno Haible  <bruno@clisp.org>
60296
60297         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
60298         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
60299         includes <cygwin/sys_time.h> which includes <sys/select.h> which
60300         include <sys/time.h>.
60301         Reported by Eric Blake.
60302
60303 2007-07-06  Eric Blake  <ebb9@byu.net>
60304
60305         Fix testing canonicalize on cygwin.
60306         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60307         Revert patch from 2007-06-19.
60308         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
60309         canonicalize module is also in use.
60310         * tests/test-canonicalize.c: New file.
60311         * tests/test-canonicalize.sh: Likewise.
60312         * modules/canonicalize-tests: Likewise.
60313
60314 2007-07-06  Jim Meyering  <jim@meyering.net>
60315
60316         * lib/getugroups.c (getugroups): Detect getgrent failure.
60317         Adjust comment to reflect reality: this function may return -1.
60318
60319 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
60320
60321         * build-aux/bootstrap (TP_URL,get_translations): Update to use
60322         the new TP address.
60323         (usage): Fix typo
60324         (gnulib_mk): New variable.
60325
60326 2007-07-05  Jim Meyering  <jim@meyering.net>
60327
60328         Don't let endgrent clobber errno, no matter how improbable.
60329         * lib/getugroups.c (getugroups): Save and restore errno around
60330         endgrent call.
60331
60332         Close the group DB even when failing with 2^31 or more members.
60333         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
60334
60335 2007-07-04  Jim Meyering  <jim@meyering.net>
60336
60337         * lib/getugroups.h: New file.
60338         * lib/getugroups.c: Include "getugroups.h".
60339         Remove uses of "register" keyword.
60340         Move local variable, "cp", down into scope where used.
60341         Give "username" parameter the "const" attribute.
60342         * modules/getugroups (Files): Add lib/getugroups.h
60343
60344 2007-07-04  Karl Berry  <karl@gnu.org>
60345
60346         * MODULES.html.sh (func_all_modules): Complete rename of
60347         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
60348
60349 2007-07-02  Bruno Haible  <bruno@clisp.org>
60350
60351         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
60352         mode, when inttypes.h comes from gnulib.
60353         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60354
60355 2007-07-02  Simon Josefsson  <simon@josefsson.org>
60356
60357         * NEWS: Mention lgpl module name change.
60358
60359         * modules/lgpl-2.1: Renamed from lgpl.
60360
60361         * NEWS: Mention gpl module name change.
60362
60363         * modules/gpl-3.0: New file, based on gpl-2.0.
60364
60365         * modules/gpl-2.0: Renamed from gpl.
60366
60367         * modules/gpl: Fix filename, doc/gpl.texi is now found at
60368         doc/gpl-2.0.texi.
60369
60370 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60371
60372         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
60373         #define __STDC_LIMIT_MACROS temporarily while including
60374         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
60375         Problem reported by Joel E. Denny in
60376         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
60377
60378 2007-07-01  Bruno Haible  <bruno@clisp.org>
60379
60380         * lib/unistdio.h: New file.
60381         * lib/unistdio/u-asnprintf.h: New file.
60382         * lib/unistdio/u-asprintf.h: New file.
60383         * lib/unistdio/u-printf-args.c: New file.
60384         * lib/unistdio/u-printf-args.h: New file.
60385         * lib/unistdio/u-printf-parse.h: New file.
60386         * lib/unistdio/u-snprintf.h: New file.
60387         * lib/unistdio/u-sprintf.h: New file.
60388         * lib/unistdio/u-vasprintf.h: New file.
60389         * lib/unistdio/u-vsnprintf.h: New file.
60390         * lib/unistdio/u-vsprintf.h: New file.
60391         * lib/unistdio/ulc-asnprintf.c: New file.
60392         * lib/unistdio/ulc-asprintf.c: New file.
60393         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
60394         * lib/unistdio/ulc-printf-parse.c: New file.
60395         * lib/unistdio/ulc-snprintf.c: New file.
60396         * lib/unistdio/ulc-sprintf.c: New file.
60397         * lib/unistdio/ulc-vasnprintf.c: New file.
60398         * lib/unistdio/ulc-vasprintf.c: New file.
60399         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
60400         * lib/unistdio/ulc-vsnprintf.c: New file.
60401         * lib/unistdio/ulc-vsprintf.c: New file.
60402         * lib/unistdio/u8-asnprintf.c: New file.
60403         * lib/unistdio/u8-asprintf.c: New file.
60404         * lib/unistdio/u8-printf-parse.c: New file.
60405         * lib/unistdio/u8-snprintf.c: New file.
60406         * lib/unistdio/u8-sprintf.c: New file.
60407         * lib/unistdio/u8-vasnprintf.c: New file.
60408         * lib/unistdio/u8-vasprintf.c: New file.
60409         * lib/unistdio/u8-vsnprintf.c: New file.
60410         * lib/unistdio/u8-vsprintf.c: New file.
60411         * lib/unistdio/u8-u8-asnprintf.c: New file.
60412         * lib/unistdio/u8-u8-asprintf.c: New file.
60413         * lib/unistdio/u8-u8-snprintf.c: New file.
60414         * lib/unistdio/u8-u8-sprintf.c: New file.
60415         * lib/unistdio/u8-u8-vasnprintf.c: New file.
60416         * lib/unistdio/u8-u8-vasprintf.c: New file.
60417         * lib/unistdio/u8-u8-vsnprintf.c: New file.
60418         * lib/unistdio/u8-u8-vsprintf.c: New file.
60419         * lib/unistdio/u16-asnprintf.c: New file.
60420         * lib/unistdio/u16-asprintf.c: New file.
60421         * lib/unistdio/u16-printf-parse.c: New file.
60422         * lib/unistdio/u16-snprintf.c: New file.
60423         * lib/unistdio/u16-sprintf.c: New file.
60424         * lib/unistdio/u16-vasnprintf.c: New file.
60425         * lib/unistdio/u16-vasprintf.c: New file.
60426         * lib/unistdio/u16-vsnprintf.c: New file.
60427         * lib/unistdio/u16-vsprintf.c: New file.
60428         * lib/unistdio/u16-u16-asnprintf.c: New file.
60429         * lib/unistdio/u16-u16-asprintf.c: New file.
60430         * lib/unistdio/u16-u16-snprintf.c: New file.
60431         * lib/unistdio/u16-u16-sprintf.c: New file.
60432         * lib/unistdio/u16-u16-vasnprintf.c: New file.
60433         * lib/unistdio/u16-u16-vasprintf.c: New file.
60434         * lib/unistdio/u16-u16-vsnprintf.c: New file.
60435         * lib/unistdio/u16-u16-vsprintf.c: New file.
60436         * lib/unistdio/u32-asnprintf.c: New file.
60437         * lib/unistdio/u32-asprintf.c: New file.
60438         * lib/unistdio/u32-printf-parse.c: New file.
60439         * lib/unistdio/u32-snprintf.c: New file.
60440         * lib/unistdio/u32-sprintf.c: New file.
60441         * lib/unistdio/u32-vasnprintf.c: New file.
60442         * lib/unistdio/u32-vasprintf.c: New file.
60443         * lib/unistdio/u32-vsnprintf.c: New file.
60444         * lib/unistdio/u32-vsprintf.c: New file.
60445         * lib/unistdio/u32-u32-asnprintf.c: New file.
60446         * lib/unistdio/u32-u32-asprintf.c: New file.
60447         * lib/unistdio/u32-u32-snprintf.c: New file.
60448         * lib/unistdio/u32-u32-sprintf.c: New file.
60449         * lib/unistdio/u32-u32-vasnprintf.c: New file.
60450         * lib/unistdio/u32-u32-vasprintf.c: New file.
60451         * lib/unistdio/u32-u32-vsnprintf.c: New file.
60452         * lib/unistdio/u32-u32-vsprintf.c: New file.
60453         * tests/unistdio/test-ulc-asnprintf1.c: New file.
60454         * tests/unistdio/test-ulc-asnprintf1.h: New file.
60455         * tests/unistdio/test-ulc-printf1.h: New file.
60456         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
60457         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
60458         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
60459         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
60460         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
60461         * tests/unistdio/test-ulc-vasprintf1.c: New file.
60462         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
60463         * tests/unistdio/test-ulc-vsprintf1.c: New file.
60464         * tests/unistdio/test-u8-asnprintf1.c: New file.
60465         * tests/unistdio/test-u8-asnprintf1.h: New file.
60466         * tests/unistdio/test-u8-printf1.h: New file.
60467         * tests/unistdio/test-u8-vasnprintf1.c: New file.
60468         * tests/unistdio/test-u8-vasnprintf2.c: New file.
60469         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
60470         * tests/unistdio/test-u8-vasnprintf3.c: New file.
60471         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
60472         * tests/unistdio/test-u8-vasprintf1.c: New file.
60473         * tests/unistdio/test-u8-vsnprintf1.c: New file.
60474         * tests/unistdio/test-u8-vsprintf1.c: New file.
60475         * tests/unistdio/test-u16-asnprintf1.c: New file.
60476         * tests/unistdio/test-u16-asnprintf1.h: New file.
60477         * tests/unistdio/test-u16-printf1.h: New file.
60478         * tests/unistdio/test-u16-vasnprintf1.c: New file.
60479         * tests/unistdio/test-u16-vasnprintf2.c: New file.
60480         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
60481         * tests/unistdio/test-u16-vasnprintf3.c: New file.
60482         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
60483         * tests/unistdio/test-u16-vasprintf1.c: New file.
60484         * tests/unistdio/test-u16-vsnprintf1.c: New file.
60485         * tests/unistdio/test-u16-vsprintf1.c: New file.
60486         * tests/unistdio/test-u32-asnprintf1.c: New file.
60487         * tests/unistdio/test-u32-asnprintf1.h: New file.
60488         * tests/unistdio/test-u32-printf1.h: New file.
60489         * tests/unistdio/test-u32-vasnprintf1.c: New file.
60490         * tests/unistdio/test-u32-vasnprintf2.c: New file.
60491         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
60492         * tests/unistdio/test-u32-vasnprintf3.c: New file.
60493         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
60494         * tests/unistdio/test-u32-vasprintf1.c: New file.
60495         * tests/unistdio/test-u32-vsnprintf1.c: New file.
60496         * tests/unistdio/test-u32-vsprintf1.c: New file.
60497         * modules/unistdio/base: New file.
60498         * modules/unistdio/u-printf-args: New file.
60499         * modules/unistdio/ulc-asnprintf: New file.
60500         * modules/unistdio/ulc-asprintf: New file.
60501         * modules/unistdio/ulc-fprintf: New file.
60502         * modules/unistdio/ulc-printf-parse: New file.
60503         * modules/unistdio/ulc-snprintf: New file.
60504         * modules/unistdio/ulc-sprintf: New file.
60505         * modules/unistdio/ulc-vasnprintf: New file.
60506         * modules/unistdio/ulc-vasprintf: New file.
60507         * modules/unistdio/ulc-vfprintf: New file.
60508         * modules/unistdio/ulc-vsnprintf: New file.
60509         * modules/unistdio/ulc-vsprintf: New file.
60510         * modules/unistdio/u8-asnprintf: New file.
60511         * modules/unistdio/u8-asprintf: New file.
60512         * modules/unistdio/u8-printf-parse: New file.
60513         * modules/unistdio/u8-snprintf: New file.
60514         * modules/unistdio/u8-sprintf: New file.
60515         * modules/unistdio/u8-vasnprintf: New file.
60516         * modules/unistdio/u8-vasprintf: New file.
60517         * modules/unistdio/u8-vsnprintf: New file.
60518         * modules/unistdio/u8-vsprintf: New file.
60519         * modules/unistdio/u8-u8-asnprintf: New file.
60520         * modules/unistdio/u8-u8-asprintf: New file.
60521         * modules/unistdio/u8-u8-snprintf: New file.
60522         * modules/unistdio/u8-u8-sprintf: New file.
60523         * modules/unistdio/u8-u8-vasnprintf: New file.
60524         * modules/unistdio/u8-u8-vasprintf: New file.
60525         * modules/unistdio/u8-u8-vsnprintf: New file.
60526         * modules/unistdio/u8-u8-vsprintf: New file.
60527         * modules/unistdio/u16-asnprintf: New file.
60528         * modules/unistdio/u16-asprintf: New file.
60529         * modules/unistdio/u16-printf-parse: New file.
60530         * modules/unistdio/u16-snprintf: New file.
60531         * modules/unistdio/u16-sprintf: New file.
60532         * modules/unistdio/u16-vasnprintf: New file.
60533         * modules/unistdio/u16-vasprintf: New file.
60534         * modules/unistdio/u16-vsnprintf: New file.
60535         * modules/unistdio/u16-vsprintf: New file.
60536         * modules/unistdio/u16-u16-asnprintf: New file.
60537         * modules/unistdio/u16-u16-asprintf: New file.
60538         * modules/unistdio/u16-u16-snprintf: New file.
60539         * modules/unistdio/u16-u16-sprintf: New file.
60540         * modules/unistdio/u16-u16-vasnprintf: New file.
60541         * modules/unistdio/u16-u16-vasprintf: New file.
60542         * modules/unistdio/u16-u16-vsnprintf: New file.
60543         * modules/unistdio/u16-u16-vsprintf: New file.
60544         * modules/unistdio/u32-asnprintf: New file.
60545         * modules/unistdio/u32-asprintf: New file.
60546         * modules/unistdio/u32-printf-parse: New file.
60547         * modules/unistdio/u32-snprintf: New file.
60548         * modules/unistdio/u32-sprintf: New file.
60549         * modules/unistdio/u32-vasnprintf: New file.
60550         * modules/unistdio/u32-vasprintf: New file.
60551         * modules/unistdio/u32-vsnprintf: New file.
60552         * modules/unistdio/u32-vsprintf: New file.
60553         * modules/unistdio/u32-u32-asnprintf: New file.
60554         * modules/unistdio/u32-u32-asprintf: New file.
60555         * modules/unistdio/u32-u32-snprintf: New file.
60556         * modules/unistdio/u32-u32-sprintf: New file.
60557         * modules/unistdio/u32-u32-vasnprintf: New file.
60558         * modules/unistdio/u32-u32-vasprintf: New file.
60559         * modules/unistdio/u32-u32-vsnprintf: New file.
60560         * modules/unistdio/u32-u32-vsprintf: New file.
60561         * modules/unistdio/ulc-asnprintf-tests: New file.
60562         * modules/unistdio/ulc-vasnprintf-tests: New file.
60563         * modules/unistdio/ulc-vasprintf-tests: New file.
60564         * modules/unistdio/ulc-vsnprintf-tests: New file.
60565         * modules/unistdio/ulc-vsprintf-tests: New file.
60566         * modules/unistdio/u8-asnprintf-tests: New file.
60567         * modules/unistdio/u8-vasnprintf-tests: New file.
60568         * modules/unistdio/u8-vasprintf-tests: New file.
60569         * modules/unistdio/u8-vsnprintf-tests: New file.
60570         * modules/unistdio/u8-vsprintf-tests: New file.
60571         * modules/unistdio/u16-asnprintf-tests: New file.
60572         * modules/unistdio/u16-vasnprintf-tests: New file.
60573         * modules/unistdio/u16-vasprintf-tests: New file.
60574         * modules/unistdio/u16-vsnprintf-tests: New file.
60575         * modules/unistdio/u16-vsprintf-tests: New file.
60576         * modules/unistdio/u32-asnprintf-tests: New file.
60577         * modules/unistdio/u32-vasnprintf-tests: New file.
60578         * modules/unistdio/u32-vasprintf-tests: New file.
60579         * modules/unistdio/u32-vsnprintf-tests: New file.
60580         * modules/unistdio/u32-vsprintf-tests: New file.
60581         * MODULES.html.sh (Unicode string functions): Add the new modules.
60582
60583 2007-07-01  Bruno Haible  <bruno@clisp.org>
60584
60585         * lib/sprintf.c (sprintf): Limit the available length estimation,
60586         to avoid address wraparound.
60587         * lib/vsprintf.c (vsprintf): Likewise.
60588         * modules/sprintf-posix (Dependencies): Add stdint.
60589         * modules/vsprintf-posix (Dependencies): Likewise.
60590
60591 2007-07-01  Bruno Haible  <bruno@clisp.org>
60592
60593         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
60594         Windows PATH as well. Conservative double-quoting. Comments.
60595
60596 2007-07-01  Bruno Haible  <bruno@clisp.org>
60597             Eric Blake  <ebb9@byu.net>
60598             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60599
60600         * gnulib-tool (self_abspathname): Fix algorithm to cope with
60601         empty components in $PATH, denoting '.'.
60602
60603 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60604
60605         * gnulib-tool: Fix indentation.
60606         (func_create_megatestdir): Likewise.
60607         Report by Bruno Haible.
60608
60609 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60610
60611         Sync from Automake.
60612         * build-aux/gnupload: Fix shell portability issues with for loops.
60613         Report by Karl Berry.
60614
60615 2007-06-29  Simon Josefsson  <simon@josefsson.org>
60616
60617         * build-aux/maint.mk (POURL): Use translationproject.org.
60618
60619 2007-06-27  Simon Josefsson  <simon@josefsson.org>
60620             Bruno Haible  <bruno@clisp.org>
60621
60622         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
60623         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
60624         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
60625         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
60626         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
60627
60628 2007-06-27  Bruno Haible  <bruno@clisp.org>
60629
60630         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
60631         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
60632
60633 2007-06-26  Karl Berry  <karl@gnu.org>
60634
60635         * MODULES.html.sh: remove xreadlink-with-size.
60636
60637 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60638
60639         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
60640         method that I hope also handles the double-include problem noted
60641         by Bruno Haible in
60642         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
60643
60644 2007-06-23  Bruno Haible  <bruno@clisp.org>
60645
60646         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60647         Don't let the 'mostlyclean' target fail if the last subdirectory could
60648         not be removed.
60649         Reported by Karl Berry.
60650
60651 2007-06-23  Bruno Haible  <bruno@clisp.org>
60652
60653         * gnulib-tool (echo): Add a speedier workaround for ksh.
60654         * tests/test-echo.sh: Likewise.
60655
60656 2007-06-23  Bruno Haible  <bruno@clisp.org>
60657
60658         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
60659         * tests/test-echo.sh: Likewise.
60660
60661 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60662
60663         * gnulib-tool (IFS): Initialize early, so we don't set it to
60664         empty later.
60665         (self_abspathname): Rewrite algorithm to set it, reindent.
60666         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
60667         (func_create_megatestdir): Merge some sed scripts.
60668
60669 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60670
60671         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
60672         exposed by Sun Studio 11 cc on Solaris 8.
60673
60674 2007-06-22  Bruno Haible  <bruno@clisp.org>
60675
60676         * gnulib-tool (echo): Ensure the echo primitive does not interpret
60677         backslashes.
60678         * tests/test-echo.sh: New file.
60679
60680 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60681
60682         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
60683         simplify `sed_replace_build_aux' scripts, they are portable but
60684         echoing them with `echo' is not.
60685         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
60686
60687 2007-06-21  Karl Berry  <karl@gnu.org>
60688
60689         * config/srclist.txt: guess we can't handle the licenses via
60690         srclist at the moment.
60691
60692 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60693
60694         * MODULES.html.sh: Add include_next.
60695         * modules/include_next: New file.
60696
60697 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60698
60699         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
60700         INCLUDE_NEXT.
60701         (gl_CHECK_NEXT_HEADERS): New macro.
60702         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
60703         the obsolescent gl_ABSOLUTE_HEADER.
60704         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
60705         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
60706         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
60707         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60708         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
60709         * m4/math_h.m4 (gl_MATH_H): Likewise.
60710         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60711         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60712         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
60713         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60714         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
60715         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
60716         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
60717         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60718         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60719         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
60720         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
60721         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60722         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
60723         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60724         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60725         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60726         * m4/inttypes.m4 (gl_INTTYPES_H): Define
60727         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
60728         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
60729         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
60730         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
60731         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
60732         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
60733         * lib/float_.h: Likewise.
60734         * lib/inttypes_.h: Likewise.
60735         * lib/math_.h: Likewise.
60736         * lib/search_.h: Likewise.
60737         * lib/signal_.h: Likewise.
60738         * lib/stdint_.h: Likewise.
60739         * lib/stdio_.h: Likewise.
60740         * lib/stdlib_.h: Likewise.
60741         * lib/string_.h: Likewise.
60742         * lib/sys_stat_.h: Likewise.
60743         * lib/sys_time_.h: Likewise.
60744         * lib/time_.h: Likewise.
60745         * lib/unistd_.h: Likewise.
60746         * lib/wchar_.h: Likewise.
60747         * lib/wctype_.h: Likewise.
60748         * lib/dirent_.h: Likewise.
60749         * lib/iconv_.h: Likewise.
60750         * lib/locale_.h: Likewise.
60751         * lib/netinet_in_.h: Likewise.
60752         * lib/sys_select_.h: Likewise.
60753         * lib/sys_socket_.h: Likewise.
60754         * lib/sysexits_.h: Likewise.
60755         * modules/fcntl (Depends-on): Depend on include_next, not
60756         absolute_header.
60757         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
60758         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
60759         * modules/fchdir: Likewise.
60760         * modules/float: Likewise.
60761         * modules/iconv_open: Likewise.
60762         * modules/inttypes: Likewise.
60763         * modules/locale: Likewise.
60764         * modules/math: Likewise.
60765         * modules/netinet_in: Likewise.
60766         * modules/search: Likewise.
60767         * modules/signal: Likewise.
60768         * modules/stdint: Likewise.
60769         * modules/stdio: Likewise.
60770         * modules/stdlib: Likewise.
60771         * modules/string: Likewise.
60772         * modules/sys_select: Likewise.
60773         * modules/sys_socket: Likewise.
60774         * modules/sys_stat: Likewise.
60775         * modules/sys_time: Likewise.
60776         * modules/sysexits: Likewise.
60777         * modules/time: Likewise.
60778         * modules/unistd: Likewise.
60779         * modules/wchar: Likewise.
60780         * modules/wctype: Likewise.
60781         * modules/sys_stat: Change maintainer to "all".
60782         * modules/unistd: Likewise.
60783
60784 2007-06-20  Karl Berry  <karl@gnu.org>
60785
60786         * config/srclist.txt: track www changes in license files.
60787
60788 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
60789
60790         * build-aux/bootstrap: Remove stray dot.
60791         Make sure build_aux settings are honored when linking
60792         gnulib_extra_files.
60793
60794 2007-06-19  Eric Blake  <ebb9@byu.net>
60795
60796         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60797         Allow compilation on cygwin.
60798
60799 2007-06-19  Jim Meyering  <jim@meyering.net>
60800
60801         xreadlink-with-size: Remove module.  No longer used.
60802         Ex-callers now use xreadlink or mreadlink-with-size.
60803         * modules/xreadlink-with-size: Remove module.
60804         * lib/xreadlink-with-size.c: Remove file.
60805         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
60806         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
60807         just before the function definition *is* accurate.
60808
60809         Eliminate one way canonicalize_filename_mode could exit.
60810         * lib/canonicalize.c (canonicalize_filename_mode):
60811         Use mreadlink_with_size, not xreadlink_with_size.
60812
60813 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
60814
60815         Detect porting problems to FreeBSD/arm, which has time_t wider than
60816         long int.  Original problem reported for GNU diff by Xin Li in
60817         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
60818         * modules/getdate (Depends-on): Add intprops, verify.
60819         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
60820         is an integer type no wider than long int.
60821
60822 2007-06-18  Jim Meyering  <jim@meyering.net>
60823
60824         New module: mreadlink-with-size.
60825         * MODULES.html.sh: Add mreadlink-with-size.
60826         * modules/mreadlink-with-size: New module
60827         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
60828         not xreadlink-with-size.
60829         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
60830
60831 2007-06-16  Bruno Haible  <bruno@clisp.org>
60832
60833         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
60834         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
60835         Reported by Gary V. Vaughan <gary@gnu.org>.
60836
60837 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
60838
60839         Revamp lchown so that it lives in unistd.h where it belongs.
60840         * lib/lchown.h: Remove.
60841         * lib/dirchownmod.c: Don't include lib/lchown.h.
60842         * lib/fchownat.c: Likewise.
60843         * lib/openat.c: Likewise.
60844         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
60845         does not follow symlinks.
60846         (EOPNOTSUPP): Define if not defined.
60847         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
60848         is defined to 0.
60849         (lchown): New decl.
60850         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
60851         Do not check for lchown decl.
60852         Set REPLACE_LCHOWN.
60853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
60854         REPLACE_LCHOWN.
60855         * modules/chown: Make it clear it follows symlinks.
60856         * modules/lchown: Make it clear it doesn't follow symlinks.
60857         (Files): Remove lib/lchown.h
60858         (Depends-on): Add unistd.
60859         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
60860         (Include): Include <unistd.h>, not "lchown.h".
60861         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
60862         REPLACE_LCHOWN.
60863
60864 2007-06-15  Jim Meyering  <jim@meyering.net>
60865
60866         Change license (GPL to LGPL) of fsusage and dependents.
60867         * modules/fsusage (License): Change to LGPL.
60868         * modules/full-read (License): Likewise.
60869         * modules/full-write (License): Likewise.
60870         * modules/safe-read (License): Likewise.
60871         * modules/safe-write (License): Likewise.
60872
60873 2007-06-14  Ben Pfaff  <blp@gnu.org>
60874
60875         Missing part of allocsa -> malloca transition.
60876         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
60877         gl_MALLOCA.
60878
60879 2007-06-12  Bruno Haible  <bruno@clisp.org>
60880
60881         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
60882         to ia64, x86_64, i386.
60883         Reported by Eric Blake.
60884
60885 2007-06-12  Bruno Haible  <bruno@clisp.org>
60886
60887         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
60888         cross-compiling to x86_64.
60889
60890 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
60891
60892         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
60893         glitch reported by Ralf Wildenhues in
60894         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
60895
60896         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
60897         Vin Shelton.
60898
60899 2007-06-11  Bruno Haible  <bruno@clisp.org>
60900
60901         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
60902         replacement string.
60903         Reported by Eric Blake.
60904
60905 2007-06-10  Bruno Haible  <bruno@clisp.org>
60906
60907         Prepare vasnprintf code for use with Unicode strings.
60908         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
60909         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
60910         TYPE_U32_STRING.
60911         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
60912         a_u32_string variants.
60913         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60914         * lib/printf-args.c: Don't include config.h and the specification
60915         header if PRINTF_FETCHARGS is already defined.
60916         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60917         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
60918         TYPE_U16_STRING, TYPE_U32_STRING.
60919         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
60920         u16_directive, u16_directives, u32_directive, u32_directives): New
60921         types.
60922         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
60923         New declarations.
60924         * lib/printf-parse.c: Don't include config.h and the specification
60925         header if PRINTF_PARSE is already defined. Eliminate the set of
60926         parameters for WIDE_CHAR_VERSION; the user of this file must provide
60927         them now. Include c-ctype.h.
60928         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
60929         directive and CHAR_T_ONLY_ASCII.
60930         * lib/vasnprintf.c: Don't include config.h and the specification header
60931         if VASNPRINTF is already defined.
60932         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
60933         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
60934         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
60935         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
60936         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
60937         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
60938         code accordingly.
60939         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
60940         pad_ourselves also in this case, with the 'c' and 's' directives, and
60941         with a different notion of "width".
60942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
60943
60944 2007-06-10  Bruno Haible  <bruno@clisp.org>
60945
60946         * modules/unistr/u32-mbsnlen: New file.
60947         * lib/unistr/u32-mbsnlen.c: New file.
60948
60949         * modules/unistr/u16-mbsnlen: New file.
60950         * lib/unistr/u16-mbsnlen.c: New file.
60951
60952         * modules/unistr/u8-mbsnlen: New file.
60953         * lib/unistr/u8-mbsnlen.c: New file.
60954
60955         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
60956         declarations.
60957
60958 2007-06-10  Bruno Haible  <bruno@clisp.org>
60959
60960         * lib/string_.h (mbsnlen): New declaration.
60961         * lib/mbsnlen.c: New file.
60962         * m4/mbsnlen.m4: New file.
60963         * modules/mbsnlen: New file.
60964         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
60965         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
60966         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
60967
60968 2007-06-10  Bruno Haible  <bruno@clisp.org>
60969
60970         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
60971
60972 2007-06-10  Bruno Haible  <bruno@clisp.org>
60973
60974         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
60975         * lib/mbuiter.h: Likewise.
60976
60977 2007-06-10  Bruno Haible  <bruno@clisp.org>
60978
60979         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
60980         declaration.
60981
60982 2007-06-10  Karl Berry  <karl@gnu.org>
60983
60984         * config/srclist.txt: remove gettext entries, Bruno prefers
60985         to update individually.
60986
60987 2007-06-10  Bruno Haible  <bruno@clisp.org>
60988
60989         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
60990         'maxlen'. Ensure only length + width bytes are allocated, not
60991         length + 1 + width.
60992
60993 2007-06-09  Bruno Haible  <bruno@clisp.org>
60994
60995         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
60996         (CHAR_T): Remove macro.
60997         (VASNPRINTF): Update.
60998
60999 2007-06-09  Bruno Haible  <bruno@clisp.org>
61000
61001         * MODULES.html.sh (Unicode string functions): Add the new modules.
61002
61003         * modules/uniconv/u32-conv-to-enc: New file.
61004         * lib/uniconv/u32-conv-to-enc.c: New file.
61005         * modules/uniconv/u32-conv-to-enc-tests: New file.
61006         * tests/uniconv/test-u32-conv-to-enc.c: New file.
61007
61008         * modules/uniconv/u16-conv-to-enc: New file.
61009         * lib/uniconv/u16-conv-to-enc.c: New file.
61010         * lib/uniconv/u-conv-to-enc.h: New file.
61011         * modules/uniconv/u16-conv-to-enc-tests: New file.
61012         * tests/uniconv/test-u16-conv-to-enc.c: New file.
61013
61014         * modules/uniconv/u8-conv-to-enc: New file.
61015         * lib/uniconv/u8-conv-to-enc.c: New file.
61016         * modules/uniconv/u8-conv-to-enc-tests: New file.
61017         * tests/uniconv/test-u8-conv-to-enc.c: New file.
61018
61019         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
61020         u32_conv_to_encoding): New declarations.
61021
61022 2007-06-09  Bruno Haible  <bruno@clisp.org>
61023
61024         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
61025
61026 2007-06-09  Bruno Haible  <bruno@clisp.org>
61027
61028         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
61029         * modules/malloca: Renamed from modules/allocsa, updated.
61030         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
61031         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
61032         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
61033         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
61034         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
61035         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
61036         * modules/xmalloca: Renamed from modules/xallocsa, updated.
61037         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
61038         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
61039         * modules/c-strcasestr (Depends-on): Update.
61040         * lib/c-strcasestr.c: Update.
61041         * modules/c-strstr (Depends-on): Update.
61042         * lib/c-strstr.c: Update.
61043         * modules/canonicalize-lgpl (Depends-on): Update.
61044         * lib/canonicalize-lgpl.c: Update.
61045         * modules/clean-temp (Depends-on): Update.
61046         * lib/clean-temp.c: Update.
61047         * modules/csharpcomp (Depends-on): Update.
61048         * lib/csharpcomp.c: Update.
61049         * modules/csharpexec (Depends-on): Update.
61050         * lib/csharpexec.c: Update.
61051         * modules/javacomp (Depends-on): Update.
61052         * lib/javacomp.c: Update.
61053         * modules/javaexec (Depends-on): Update.
61054         * lib/javaexec.c: Update.
61055         * modules/mbscasestr (Depends-on): Update.
61056         * lib/mbscasestr.c: Update.
61057         * modules/mbsstr (Depends-on): Update.
61058         * lib/mbsstr.c: Update.
61059         * modules/setenv (Depends-on): Update.
61060         * lib/setenv.c: Update.
61061         * modules/strcasestr (Depends-on): Update.
61062         * lib/strcasestr.c: Update.
61063         * modules/striconveha (Depends-on): Update.
61064         * lib/striconveha.c: Update.
61065         * modules/relocatable-prog-wrapper (Files): Update.
61066         * lib/relocwrapper.c: Update.
61067         * build-aux/install-reloc: Update.
61068         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
61069
61070 2007-06-08  Bruno Haible  <bruno@clisp.org>
61071
61072         Port to uClibc.
61073         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
61074         * lib/fpurge.c (fpurge): Likewise.
61075         * lib/freading.c (freading): Likewise.
61076         * lib/fseeko.c (rpl_fseeko): Likewise.
61077         * lib/fseterr.c (fseterr): Likewise.
61078         * lib/fwriting.c (fwriting): Likewise.
61079         * tests/test-fflush.c (main): Avoid a failure on uClibc.
61080
61081 2007-06-08  Bruno Haible  <bruno@clisp.org>
61082
61083         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
61084         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
61085         * modules/gettext (Files): Add m4/intlmacosx.m4.
61086
61087 2007-06-07  Bruno Haible  <bruno@clisp.org>
61088
61089         * modules/localename-tests: New file.
61090         * tests/test-localename.c: New file.
61091
61092         New module 'localename'.
61093         * lib/localename.h: New file.
61094         * lib/localename.c: New file, from GNU gettext.
61095         * m4/localename.m4: New file.
61096         * modules/localename: New file.
61097
61098 2007-06-07  Bruno Haible  <bruno@clisp.org>
61099
61100         Work around the lack of <wchar.h> on some builds of uClibc.
61101         * doc/headers/wchar.texi: Update.
61102         * lib/wchar_.h: Include <wchar.h> only if it exists.
61103         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
61104         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
61105         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
61106         doesn't exist.
61107         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
61108         * modules/mbfile (Depends-on): Add wchar.
61109         * modules/mbiter (Depends-on): Likewise.
61110         * modules/mbuiter (Depends-on): Likewise.
61111         Reported by Simon Josefsson.
61112
61113 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61114
61115         Work around problem reported by Steven M. Schweda in
61116         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
61117         Tru64 5.1B with the Compaq compiler environment installed declares
61118         an 'isblank' function but does not define it in the C library.
61119         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
61120         * lib/regex_internal.h (isblank): Likewise.
61121         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
61122         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61123
61124 2007-06-05  Bruno Haible  <bruno@clisp.org>
61125
61126         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
61127         ia64.
61128         * modules/printf-safe: New file.
61129         * modules/fprintf-posix (Depends-on): Add printf-safe.
61130         * modules/printf-posix (Depends-on): Likewise.
61131         * modules/snprintf-posix (Depends-on): Likewise.
61132         * modules/sprintf-posix (Depends-on): Likewise.
61133         * modules/vasnprintf-posix (Depends-on): Likewise.
61134         * modules/vasprintf-posix (Depends-on): Likewise.
61135         * modules/vfprintf-posix (Depends-on): Likewise.
61136         * modules/vprintf-posix (Depends-on): Likewise.
61137         * modules/vsnprintf-posix (Depends-on): Likewise.
61138         * modules/vsprintf-posix (Depends-on): Likewise.
61139         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
61140         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
61141         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
61142         "no" on i386, x86_64, ia64.
61143         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
61144         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61145         on i386, x86_64, ia64.
61146         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
61147         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61148         on i386, x86_64, ia64.
61149         * tests/test-vasnprintf-posix.c: Include float.h.
61150         (LDBL80_WORDS): New macro.
61151         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61152         on i386, x86_64, ia64.
61153         * tests/test-vasprintf-posix.c: Include float.h.
61154         (LDBL80_WORDS): New macro.
61155         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61156         on i386, x86_64, ia64.
61157         * tests/test-snprintf-posix.c: Include float.h.
61158         * tests/test-sprintf-posix.c: Likewise.
61159         * tests/test-vsnprintf-posix.c: Likewise.
61160         * tests/test-vsprintf-posix.c: Likewise.
61161
61162 2007-06-05  Bruno Haible  <bruno@clisp.org>
61163
61164         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
61165         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
61166         non-IEEE numbers on i386, x86_64, ia64.
61167         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
61168         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
61169         * tests/test-isnanl.h: Include float.h.
61170         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
61171
61172 2007-06-05  Bruno Haible  <bruno@clisp.org>
61173
61174         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
61175         also the %a / %A. Handle the %a / %A code before this extra handling.
61176
61177 2007-06-05  Bruno Haible  <bruno@clisp.org>
61178
61179         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
61180         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
61181
61182 2007-06-05  Bruno Haible  <bruno@clisp.org>
61183
61184         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
61185         typo in variable name.
61186
61187 2007-06-05  Eric Blake  <ebb9@byu.net>
61188
61189         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
61190         Reported by Simon Josefsson.
61191
61192 2007-06-04  Bruno Haible  <bruno@clisp.org>
61193
61194         Avoid test failures on some PowerPC platforms.
61195         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
61196         Define differently for PowerPC.
61197         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
61198         Reported by Gary V. Vaughan <gary@gnu.org>.
61199
61200 2007-06-02  Bruno Haible  <bruno@clisp.org>
61201
61202         Fix test-stdint failure on FreeBSD/ia64.
61203         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
61204         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
61205         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
61206         * doc/headers/stdint.texi: Update.
61207
61208 2007-06-01  Bruno Haible  <bruno@clisp.org>
61209
61210         * tests/test-binary-io.c (main): Pass a third argument to open().
61211         Reported by Gary V. Vaughan <gary@gnu.org>.
61212
61213 2007-06-01  Bruno Haible  <bruno@clisp.org>
61214
61215         * doc/functions/frexpl.texi: Update for mingw.
61216
61217 2007-06-01  Bruno Haible  <bruno@clisp.org>
61218
61219         * tests/test-lseek.c (main): Disable test of errno for invalid third
61220         argument.
61221         * doc/functions/lseek.texi: Update.
61222         Reported by Gary V. Vaughan <gary@gnu.org>.
61223
61224 2007-05-28  Bruno Haible  <bruno@clisp.org>
61225
61226         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
61227
61228 2007-05-31  Eric Blake  <ebb9@byu.net>
61229
61230         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
61231         cross compiling.
61232
61233 2007-05-30  Eric Blake  <ebb9@byu.net>
61234         and Bruno Haible  <bruno@clisp.org>
61235
61236         Work around mingw test failures exposed by m4-1.4.9b.
61237         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
61238         * tests/test-unistd.c: Disable uid_t and git_t tests for the
61239         moment.
61240
61241 2007-05-30  Bruno Haible  <bruno@clisp.org>
61242
61243         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
61244         assuming that they are closed. Needed on HP-UX 11.
61245
61246 2007-05-29  Bruno Haible  <bruno@clisp.org>
61247
61248         Fix a problem with #include_next.
61249         * lib/dirent_.h: Split the double-inclusion guard.
61250         * lib/fcntl_.h: Likewise.
61251         * lib/float_.h: Likewise.
61252         * lib/iconv_.h: Likewise.
61253         * lib/inttypes_.h: Likewise.
61254         * lib/locale_.h: Likewise.
61255         * lib/math_.h: Likewise.
61256         * lib/netinet_in_.h: Likewise.
61257         * lib/search_.h: Likewise.
61258         * lib/signal_.h: Likewise.
61259         * lib/stdint_.h: Likewise.
61260         * lib/stdio_.h: Likewise.
61261         * lib/stdlib_.h: Likewise.
61262         * lib/string_.h: Likewise.
61263         * lib/sys_select_.h: Likewise.
61264         * lib/sys_socket_.h: Likewise.
61265         * lib/sys_stat_.h: Likewise.
61266         * lib/sys_time_.h: Likewise.
61267         * lib/sysexits_.h: Likewise.
61268         * lib/time_.h: Likewise.
61269         * lib/unistd_.h: Likewise.
61270         * lib/wchar_.h: Likewise.
61271         * lib/wctype_.h: Likewise.
61272
61273 2007-05-29  Bruno Haible  <bruno@clisp.org>
61274
61275         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
61276         for the moment.
61277
61278 2007-05-29  Bruno Haible  <bruno@clisp.org>
61279
61280         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
61281         invocation.
61282         Reported by Eric Blake.
61283
61284 2007-05-29  Bruno Haible  <bruno@clisp.org>
61285
61286         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
61287         compiling case.
61288
61289 2007-05-29  Eric Blake  <ebb9@byu.net>
61290             Bruno Haible  <bruno@clisp.org>
61291
61292         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
61293         cross compiles.
61294
61295 2007-05-28  Eric Blake  <ebb9@byu.net>
61296
61297         * modules/closein-tests (test_closein_LDADD): Support test on
61298         cygwin with libtool.
61299
61300 2007-05-28  Bruno Haible  <bruno@clisp.org>
61301
61302         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
61303         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61304         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61305         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61306         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61307         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61308         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61309         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61310         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61311
61312 2007-05-28  Eric Blake  <ebb9@byu.net>
61313
61314         Unconditionally include <config.h> in unit tests.
61315         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
61316         * tests/test-allocsa.c, tests/test-arcfour.c,
61317         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
61318         tests/test-array_list.c, tests/test-array_oset.c,
61319         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
61320         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
61321         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
61322         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
61323         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
61324         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
61325         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
61326         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
61327         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
61328         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
61329         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
61330         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
61331         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
61332         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
61333         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
61334         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
61335         test-md5.c, test-memmem.c, test-printf-posix.c,
61336         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
61337         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
61338         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
61339         test-strcasestr.c, test-striconv.c, test-striconveh.c,
61340         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
61341         test-vasnprintf-posix2.c, test-vasnprintf.c,
61342         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
61343         test-vfprintf-posix.c, test-vprintf-posix.c,
61344         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
61345         test-xvasprintf.c: Likewise.
61346
61347 2007-05-28  Bruno Haible  <bruno@clisp.org>
61348
61349         * gnulib-tool (func_import): Remember the --with-tests command-line
61350         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
61351         Reported by Eric Blake.
61352
61353 2007-05-28  Bruno Haible  <bruno@clisp.org>
61354
61355         * modules/ftell-tests: New file.
61356         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
61357         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
61358
61359         * lib/ftell.c: New file.
61360         * modules/ftell: New file.
61361         * m4/ftell.m4: New file.
61362         * doc/functions/ftell.texi: Update.
61363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
61364         REPLACE_FTELL.
61365         * lib/stdio_.h (rpl_ftell): New declaration.
61366         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
61367         REPLACE_FTELL.
61368
61369 2007-05-28  Eric Blake  <ebb9@byu.net>
61370
61371         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
61372
61373 2007-05-28  Bruno Haible  <bruno@clisp.org>
61374
61375         * modules/fseek-tests: New file.
61376         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
61377         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
61378
61379         * lib/fseek.c: New file.
61380         * modules/fseek: New file.
61381         * m4/fseek.m4: New file.
61382         * doc/functions/fseek.texi: Update.
61383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
61384         REPLACE_FSEEK.
61385         * lib/stdio_.h (rpl_fseek): New declaration.
61386         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
61387         REPLACE_FSEEK.
61388
61389 2007-05-28  Bruno Haible  <bruno@clisp.org>
61390
61391         * lib/stdio_.h (fflush): More comments.
61392
61393 2007-05-28  Bruno Haible  <bruno@clisp.org>
61394
61395         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
61396         runtime test.
61397
61398 2007-05-28  Eric Blake  <ebb9@byu.net>
61399
61400         Improve lseek module.
61401         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
61402         * lib/unistd_.h (lseek): Scale back link warning message.
61403         * tests/test-lseek.c: Beef up test.
61404         * tests/test-lseek.sh: Exercise more facets of lseek.
61405         Reported by Bruno Haible.
61406
61407 2007-05-28  Bruno Haible  <bruno@clisp.org>
61408
61409         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
61410         to define.
61411
61412 2007-05-27  Bruno Haible  <bruno@clisp.org>
61413
61414         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
61415
61416 2007-05-27  Bruno Haible  <bruno@clisp.org>
61417
61418         * modules/openmp: New file.
61419         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
61420         Noah Misch.
61421
61422 2007-05-26  Bruno Haible  <bruno@clisp.org>
61423
61424         * modules/chdir-long (Depends-on): Add fchdir.
61425         * modules/chdir-safer (Depends-on): Likewise.
61426         * modules/fts (Depends-on): Likewise.
61427         * modules/fts-lgpl (Depends-on): Likewise.
61428         * modules/openat (Depends-on): Likewise.
61429         * modules/savewd (Depends-on): Likewise.
61430
61431 2007-05-24  Eric Blake  <ebb9@byu.net>
61432
61433         Fix lseek on mingw.
61434         * modules/lseek: New module.
61435         * m4/lseek.m4: New file.
61436         * lib/lseek.c: New file.
61437         * modules/lseek-tests: New file.
61438         * tests/test-lseek.c: New file.
61439         * tests/test-lseek.sh: New file.
61440         * MODULES.html.sh: Document lseek module.
61441         * modules/fflush (Depends-on): Add lseek, fseeko.
61442         * modules/fseeko (Depends-on): Likewise.
61443         * modules/ftello (Depends-on): Likewise.
61444         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
61445         broken.
61446         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
61447         broken.
61448         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
61449         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
61450         * lib/ftello.c (rpl_ftello): Likewise.
61451         * tests/test-fseeko.c (main): Test this.
61452         * tests/test-fseeko.sh: Likewise.
61453         * tests/test-ftello.c (main): Likewise.
61454         * tests/test-ftello.sh: Likewise.
61455         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
61456         implies replacing fseek.
61457         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
61458         HAVE_FTELLO.
61459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
61460         * modules/unistd (Makefile.am): Likewise.
61461         * lib/unistd_.h (lseek): Declare a replacement.
61462         * doc/functions/lseek.texi (lseek): Document this fix.
61463         * doc/functions/fseek.texi (fseek): Likewise.
61464         * doc/functions/ftell.texi (ftell): Likewise.
61465
61466 2007-05-24  Bruno Haible  <bruno@clisp.org>
61467
61468         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
61469         in the printed representation of a NaN.
61470         * tests/test-vasprintf-posix.c (test_function): Likewise.
61471         * tests/test-snprintf-posix.h (test_function): Likewise.
61472         * tests/test-sprintf-posix.h (test_function): Likewise.
61473         Reported by Eric Blake.
61474
61475 2007-05-23  Eric Blake  <ebb9@byu.net>
61476
61477         Fix fseeko/ftello on cygwin 1.5.24.
61478         * doc/functions/fseeko.texi (fseeko): Document the fix.
61479         * doc/functions/ftello.texi (ftello): Document the fix.
61480         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
61481         * doc/functions/stdout.text (stdout): New file.
61482         * doc/functions/stderr.text (stderr): New file.
61483         * doc/gnulib.texi (Function Substitutes): Use new files.
61484         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
61485         prior to 1.7.0.
61486         * tests/test-ftello.c (main): Likewise for ftello.
61487         * tests/test-fseeko.sh: New file.
61488         * tests/test-ftello.sh: New file.
61489         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
61490         with seekable stdin.
61491         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
61492         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
61493         (gl_REPLACE_FSEEKO): New macro.
61494         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
61495         * modules/fseeko (Files): Distribute fseeko.c.
61496         * modules/ftello (Files): Distribute ftello.c.
61497         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
61498         mode.
61499         * lib/ftello.c (rpl_ftello): New file.
61500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
61501         fseeko, ftello.
61502         (gl_STDIN_LARGE_OFFSET): New macro.
61503         * modules/stdio (Makefile.am): Perform the replacement.
61504         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
61505
61506 2007-05-23  Bruno Haible  <bruno@clisp.org>
61507
61508         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
61509         GNULIB_POSIXCHECK is defined.
61510
61511 2007-05-21  Bruno Haible  <bruno@clisp.org>
61512
61513         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
61514         Check also the output for NaN arguments. When cross-compiling, guess
61515         no on IRIX.
61516         * lib/vasnprintf.c: Update comments.
61517         * tests/test-vasnprintf-posix.c (strisnan): New function.
61518         (test_function): Use it.
61519         * tests/test-vasprintf-posix.c (strisnan): New function.
61520         (test_function): Use it.
61521         * tests/test-snprintf-posix.h (strisnan): New function.
61522         (test_function): Use it.
61523         * tests/test-sprintf-posix.h (strisnan): New function.
61524         (test_function): Use it.
61525         Reported by Eric Blake.
61526
61527 2007-05-20  Bruno Haible  <bruno@clisp.org>
61528
61529         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
61530         numbers that fails on BeOS.
61531         * doc/functions/frexpl.texi: Update.
61532
61533 2007-05-20  Jim Meyering  <jim@meyering.net>
61534
61535         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
61536         forced upon us by glibc-2.6.
61537
61538 2007-05-20  Bruno Haible  <bruno@clisp.org>
61539
61540         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
61541         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
61542         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
61543         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
61544         NEED_PRINTF_INFINITE.
61545         (is_infinitel): New function.
61546         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
61547         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
61548         gl_PREREQ_VASNPRINTF_INFINITE.
61549         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
61550         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61551         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
61552         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
61553         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
61554         gl_PREREQ_VASNPRINTF_INFINITE.
61555         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61556         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61557         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61558         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61559         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61560         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61561         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61562         * doc/functions/fprintf.texi: Update.
61563         * doc/functions/printf.texi: Update.
61564         * doc/functions/snprintf.texi: Update.
61565         * doc/functions/sprintf.texi: Update.
61566         * doc/functions/vfprintf.texi: Update.
61567         * doc/functions/vprintf.texi: Update.
61568         * doc/functions/vsnprintf.texi: Update.
61569         * doc/functions/vsprintf.texi: Update.
61570
61571 2007-05-20  Bruno Haible  <bruno@clisp.org>
61572
61573         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
61574         was not found in libc.
61575         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
61576
61577 2007-05-20  Bruno Haible  <bruno@clisp.org>
61578
61579         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61580         printed as "-nan" instead of "nan".
61581         * tests/test-vasprintf-posix.c (test_function): Likewise.
61582         * tests/test-snprintf-posix.h (test_function): Likewise.
61583         * tests/test-sprintf-posix.h (test_function): Likewise.
61584         Needed for HP-UX 11.
61585
61586 2007-05-20  Jim Meyering  <jim@meyering.net>
61587
61588         Fix buggy test for the fchownat-deref bug.
61589         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
61590         symlink required for the run-test.  Without it, this test would
61591         always declare that fchownat doesn't work, and client code would
61592         unnecessarily use the replacement function with fixed libc.
61593         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
61594         Reported by Greg Schafer.
61595
61596 2007-05-19  Bruno Haible  <bruno@clisp.org>
61597
61598         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
61599         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
61600         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
61601         Needed for IRIX 6.5 and Solaris 2.5.1.
61602
61603 2007-05-19  Bruno Haible  <bruno@clisp.org>
61604
61605         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
61606         (test_function): Skip tests involving -0.0 on platforms where
61607         -0.0 = 0.0.
61608         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
61609         (test_function): Skip tests involving -0.0 on platforms where
61610         -0.0 = 0.0.
61611         * tests/test-snprintf-posix.h (have_minus_zero): New function.
61612         (test_function): Skip tests involving -0.0 on platforms where
61613         -0.0 = 0.0.
61614         * tests/test-sprintf-posix.h (have_minus_zero): New function.
61615         (test_function): Skip tests involving -0.0 on platforms where
61616         -0.0 = 0.0.
61617         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
61618         tests.
61619         * tests/test-printf-posix.h (test_function): Likewise.
61620         * tests/test-printf-posix.output: Remove all -0.0 related results.
61621         Needed for IRIX 6.5.
61622
61623 2007-05-19  Bruno Haible  <bruno@clisp.org>
61624
61625         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61626         printed as "nan0x7fffffff" instead of "nan".
61627         * tests/test-vasprintf-posix.c (test_function): Likewise.
61628         * tests/test-snprintf-posix.h (test_function): Likewise.
61629         * tests/test-sprintf-posix.h (test_function): Likewise.
61630         * tests/test-fprintf-posix.h (NaN): Remove macro.
61631         (test_function): Remove all NaN related tests.
61632         * tests/test-printf-posix.h (NaN): Remove macro.
61633         (test_function): Remove all NaN related tests.
61634         * tests/test-printf-posix.output: Remove all NaN related results.
61635         Needed for IRIX 6.5.
61636
61637 2007-05-19  Bruno Haible  <bruno@clisp.org>
61638
61639         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
61640         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61641
61642 2007-05-19  Bruno Haible  <bruno@clisp.org>
61643
61644         * lib/float_.h: New file.
61645         * m4/float_h.m4: New file.
61646         * modules/float: New file.
61647         * modules/isnanl (Dependencies): Add float.
61648         * modules/isnanl-nolibm (Dependencies): Likewise.
61649         * modules/mathl (Dependencies): Likewise.
61650         * modules/printf-frexpl (Dependencies): Likewise.
61651         * modules/signbit (Dependencies): Likewise.
61652         * modules/vasnprintf (Dependencies): Likewise.
61653         * doc/headers/float.texi: Update.
61654
61655 2007-05-19  Jim Meyering  <jim@meyering.net>
61656
61657         * lib/utimens.c (gl_futimens): Rename from futimens,
61658         now that glibc-2.6 declares futimens.
61659         * lib/utimens.h: Likewise.
61660
61661 2007-05-19  Bruno Haible  <bruno@clisp.org>
61662
61663         Avoid test failures on mingw.
61664         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
61665         * tests/test-printf-posix.sh: Likewise.
61666         * tests/test-vfprintf-posix.sh: Likewise.
61667         * tests/test-vprintf-posix.sh: Likewise.
61668
61669 2007-05-19  Bruno Haible  <bruno@clisp.org>
61670
61671         Fix *printf result for NaN, Inf, -0.0 on mingw.
61672         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
61673         * lib/vasnprintf.c: Include math.h and isnan.h.
61674         (is_infinite_or_zero): New function.
61675         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
61676         values in the %f, %F, %e, %E, %g, %G directives.
61677         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
61678         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61679         gl_PRINTF_INFINITE and test its result. Invoke
61680         gl_PREREQ_VASNPRINTF_INFINITE.
61681         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61682         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61683         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61684         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61685         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61686         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61687         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61688         * doc/functions/fprintf.texi: Update.
61689         * doc/functions/printf.texi: Update.
61690         * doc/functions/snprintf.texi: Update.
61691         * doc/functions/sprintf.texi: Update.
61692         * doc/functions/vfprintf.texi: Update.
61693         * doc/functions/vprintf.texi: Update.
61694         * doc/functions/vsnprintf.texi: Update.
61695         * doc/functions/vsprintf.texi: Update.
61696
61697 2007-05-19  Bruno Haible  <bruno@clisp.org>
61698
61699         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
61700         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
61701         Instead of multiplying with 10^k, set extra_zeroes to k.
61702         (scale10_round_long_double): Remove function.
61703
61704 2007-05-18  Bruno Haible  <bruno@clisp.org>
61705
61706         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
61707         introduced on 2007-05-06.
61708
61709 2007-05-18  Bruno Haible  <bruno@clisp.org>
61710
61711         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
61712         %g directives.
61713         * tests/test-vasprintf-posix.c (test_function): Likewise.
61714         * tests/test-snprintf-posix.h (test_function): Likewise.
61715         * tests/test-sprintf-posix.h (test_function): Likewise.
61716
61717 2007-05-18  Bruno Haible  <bruno@clisp.org>
61718
61719         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
61720         (strmatch): New function.
61721         (test_function): Test the %f directive on numbers of various exponents.
61722         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
61723         (strmatch): New function.
61724         (test_function): Test the %f directive on numbers of various exponents.
61725         * tests/test-snprintf-posix.h (strmatch): New function.
61726         (test_function): Test the %f directive on numbers of various exponents.
61727         * tests/test-sprintf-posix.h (strmatch): New function.
61728         (test_function): Test the %f directive on numbers of various exponents.
61729         * tests/test-snprintf-posix.c (SIZEOF): New macro.
61730         * tests/test-sprintf-posix.c (SIZEOF): New macro.
61731         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
61732         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
61733
61734 2007-05-18  Bruno Haible  <bruno@clisp.org>
61735
61736         Add support for 'long double' number output.
61737         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
61738         * lib/vasnprintf.c: Include math.h and float+.h.
61739         (mp_limb_t): New type.
61740         (GMP_LIMB_BITS): New macro.
61741         (mp_twolimb_t): New type.
61742         (GMP_TWOLIMB_BITS): New macro.
61743         (mpn_t): New type.
61744         (multiply, divide, convert_to_decimal, decode_long_double,
61745         scale10_round_long_double, scale10_round_decimal_long_double,
61746         floorlog10l): New functions.
61747         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
61748         for the %f, %F, %e, %E, %g, %G directives.
61749         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
61750         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61751         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
61752         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
61753         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61754         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61755         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61756         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61757         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61758         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61759         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61760         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
61761         * modules/snprintf-posix (Depends-on): Likewise.
61762         * modules/sprintf-posix (Depends-on): Likewise.
61763         * modules/vasnprintf-posix (Depends-on): Likewise.
61764         * modules/vasprintf-posix (Depends-on): Likewise.
61765         * modules/vfprintf-posix (Depends-on): Likewise.
61766         * modules/vsnprintf-posix (Depends-on): Likewise.
61767         * modules/vsprintf-posix (Depends-on): Likewise.
61768         * modules/vasnprintf (Files): Add lib/float+.h.
61769         * doc/functions/fprintf.texi: Update.
61770         * doc/functions/printf.texi: Update.
61771         * doc/functions/snprintf.texi: Update.
61772         * doc/functions/sprintf.texi: Update.
61773         * doc/functions/vfprintf.texi: Update.
61774         * doc/functions/vprintf.texi: Update.
61775         * doc/functions/vsnprintf.texi: Update.
61776         * doc/functions/vsprintf.texi: Update.
61777
61778 2007-05-18  Bruno Haible  <bruno@clisp.org>
61779
61780         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
61781
61782 2007-05-18  Bruno Haible  <bruno@clisp.org>
61783
61784         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
61785         for printing 64-bit integers. Needed for mingw.
61786
61787 2007-05-18  Bruno Haible  <bruno@clisp.org>
61788
61789         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61790         gl_FUNC_FREXPL_WORKS.
61791         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
61792
61793 2007-05-18  Bruno Haible  <bruno@clisp.org>
61794
61795         * modules/frexpl-nolibm-tests: New file.
61796
61797         * modules/frexpl-nolibm: New file.
61798         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
61799
61800 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61801
61802         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
61803         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61804         GCC 4.2, which otherwise issues a lot of warnings.
61805         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
61806         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
61807         Likewise.
61808         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
61809         * modules/iconv_open (iconv.h): Likewise.
61810         * modules/locale (locale.h): Likewise.
61811         * modules/netinet_in (netinet/in.h): Likewise.
61812         * modules/sys_select (sys_select.h): Likewise.
61813         * modules/sys_socket (sys/socket.h): Likewise.
61814         * modules/sys_stat (sys/stat.h): Likewise.
61815         * modules/sysexits (sysexits.h): Likewise.
61816         * modules/unistd (unistd.h): Likewise.
61817
61818 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61819
61820         * modules/closein-tests (Makefile.am): Distribute
61821         `test-closein.sh'.
61822
61823 2007-05-17  Bruno Haible  <bruno@clisp.org>
61824
61825         * tests/test-printf-posix.output: Renamed from
61826         tests/test-fprintf-posix.out.
61827         * modules/fprintf-posix-tests: Update.
61828         * modules/printf-posix-tests: Update.
61829         * modules/vfprintf-posix-tests: Update.
61830         * modules/vprintf-posix-tests: Update.
61831         * tests/test-fprintf-posix.sh: Update.
61832         * tests/test-printf-posix.sh: Update.
61833         * tests/test-vfprintf-posix.sh: Update.
61834         * tests/test-vprintf-posix.sh: Update.
61835         Reported by Ralf Wildenhues.
61836
61837 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61838
61839         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
61840         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61841         GCC 4.2, which otherwise issues a lot of warnings.
61842         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
61843         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
61844         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
61845         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
61846         it should no longer be needed.
61847         * lib/string_.h: Likewise.
61848         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
61849         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
61850         * modules/inttypes (inttypes.h): Likewise.
61851         * modules/math (math.h): Likewise.
61852         * modules/search (search.h): Likewise.
61853         * modules/signal (signal.h): Likewise.
61854         * modules/stdint (stdint.h): Likewise.
61855         * modules/stdio (stdio.h): Likewise.
61856         * modules/stdlib (stdlib.h): Likewise.
61857         * modules/string (string.h): Likewise.
61858         * modules/sys_time (sys/time.h): Likewise.
61859         * modules/time (time.h): Likewise.
61860         * modules/wchar (wchar.h): Likewise.
61861         * modules/wctype (wtype.h): Likewise.
61862
61863 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61864
61865         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
61866
61867 2007-05-13  Bruno Haible  <bruno@clisp.org>
61868
61869         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
61870         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61871         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
61872         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61873         (gl_PREREQ_STRTOK_R): Don't require it here.
61874
61875 2007-05-13  Bruno Haible  <bruno@clisp.org>
61876
61877         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
61878         when used in C++ mode.
61879
61880 2007-05-12  Bruno Haible  <bruno@clisp.org>
61881
61882         * lib/linebuffer.h: Tweak doc.
61883         * lib/linebuffer.c: Likewise.
61884
61885 2007-05-12  James Youngman  <jay@gnu.org>
61886
61887         * lib/linebuffer.c (readlinebuffer_delim): New function,
61888         like readlinebuffer, but use a caller-specified delimiter.
61889         (readlinebuffer): Just call readlinebuffer_delim with '\n'
61890         as the delimiter.
61891         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
61892
61893 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61894
61895         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
61896         * modules/openat (Files): Remove openat-die.c.
61897         (Depends-on): Add openat-die.
61898         * modules/openat-die: New module.
61899
61900 2007-05-06  Bruno Haible  <bruno@clisp.org>
61901
61902         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
61903         Update with info about Cygwin.
61904         * doc/functions/fprintf.texi: Update.
61905         * doc/functions/printf.texi: Update.
61906         * doc/functions/snprintf.texi: Update.
61907         * doc/functions/sprintf.texi: Update.
61908         * doc/functions/vfprintf.texi: Update.
61909         * doc/functions/vprintf.texi: Update.
61910         * doc/functions/vsnprintf.texi: Update.
61911         * doc/functions/vsprintf.texi: Update.
61912         Reported by Eric Blake.
61913
61914 2007-05-06  Bruno Haible  <bruno@clisp.org>
61915
61916         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
61917         padding ourselves for the floating-point directives.
61918         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
61919         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
61920         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61921         gl_PRINTF_FLAG_ZERO and test its result. Invoke
61922         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
61923         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61924         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61925         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61926         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61927         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61928         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61929         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61930         * tests/test-snprintf-posix.h (test_function): Also check the width
61931         and some flags in the %f directive.
61932         * tests/test-sprintf-posix.h (test_function): Likewise.
61933         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61934         * tests/test-vasprintf-posix.c (test_function): Likewise.
61935         * doc/functions/fprintf.texi: Update.
61936         * doc/functions/printf.texi: Update.
61937         * doc/functions/snprintf.texi: Update.
61938         * doc/functions/sprintf.texi: Update.
61939         * doc/functions/vfprintf.texi: Update.
61940         * doc/functions/vprintf.texi: Update.
61941         * doc/functions/vsnprintf.texi: Update.
61942         * doc/functions/vsprintf.texi: Update.
61943
61944 2007-05-06  Bruno Haible  <bruno@clisp.org>
61945
61946         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
61947         pass the ' flag character to sprintf or snprintf.
61948         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
61949         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
61950         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61951         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
61952         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
61953         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61954         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61955         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61956         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61957         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61958         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61959         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61960         * tests/test-snprintf-posix.h (test_function): Also check the grouping
61961         flag.
61962         * tests/test-sprintf-posix.h (test_function): Likewise.
61963         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61964         * tests/test-vasprintf-posix.c (test_function): Likewise.
61965         * doc/functions/fprintf.texi: Update.
61966         * doc/functions/printf.texi: Update.
61967         * doc/functions/snprintf.texi: Update.
61968         * doc/functions/sprintf.texi: Update.
61969         * doc/functions/vfprintf.texi: Update.
61970         * doc/functions/vprintf.texi: Update.
61971         * doc/functions/vsnprintf.texi: Update.
61972         * doc/functions/vsprintf.texi: Update.
61973
61974 2007-05-01  Bruno Haible  <bruno@clisp.org>
61975
61976         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
61977
61978 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
61979
61980         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
61981         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
61982
61983 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61984
61985         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
61986         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
61987         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
61988
61989 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
61990
61991         * lib/argp-help.c (struct hol_entry): New member `ord'.
61992         (HOL_ENTRY_PTRCMP): Use ord for comparison
61993         (hol_sort): Initialize ord.
61994
61995 2007-05-01  Bruno Haible  <bruno@clisp.org>
61996
61997         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
61998         Reported by Eric Blake.
61999         * doc/gnulib.texi (Function Substitutes): Update.
62000
62001 2007-05-01  Bruno Haible  <bruno@clisp.org>
62002
62003         * doc/functions.texi: Remove file, now redundant through
62004         doc/functions/*.texi.
62005
62006 2007-05-01  Bruno Haible  <bruno@clisp.org>
62007
62008         * modules/argp (Depends-on): Add sleep.
62009
62010 2007-05-01  Bruno Haible  <bruno@clisp.org>
62011
62012         * modules/sleep-tests: New file.
62013         * tests/test-sleep.c: New file.
62014
62015         * modules/sleep: New file.
62016         * lib/sleep.c: New file.
62017         * m4/sleep.m4: New file.
62018         * lib/unistd_.h (sleep): New declaration.
62019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
62020         HAVE_SLEEP.
62021         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
62022         * doc/functions/sleep.texi: Document the sleep module.
62023
62024 2007-05-01  Bruno Haible  <bruno@clisp.org>
62025
62026         * lib/sigprocmask.h: Remove file.
62027         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
62028         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
62029         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
62030         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
62031         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
62032         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
62033         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
62034         HAVE_SIGSET_T as a shell variable.
62035         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
62036         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
62037         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
62038         (Depends-on): Add signal. Remove verify.
62039         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
62040         (Include): Mention <signal.h> instead of sigprocmask.h.
62041         * NEWS: Mention the change.
62042         * lib/fatal-signal.c: Don't include sigprocmask.h.
62043
62044 2007-05-01  Bruno Haible  <bruno@clisp.org>
62045
62046         * modules/signal: New file.
62047         * lib/signal_.h: New file.
62048         * m4/signal_h.m4: New file.
62049
62050 2007-05-01  Bruno Haible  <bruno@clisp.org>
62051
62052         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
62053         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
62054         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
62055         HAVE_WCTYPE_CTMP_BUG into wctype.h.
62056
62057 2007-05-01  Bruno Haible  <bruno@clisp.org>
62058
62059         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
62060         configure time.
62061         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
62062         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
62063         * modules/sys_stat (Makefile.am): Substitute their values into
62064         sys/stat.h.
62065
62066 2007-05-01  Bruno Haible  <bruno@clisp.org>
62067
62068         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
62069         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
62070         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
62071
62072 2007-05-01  Bruno Haible  <bruno@clisp.org>
62073
62074         * doc/header/assert.texi: Undo last change: don't mention the gnulib
62075         'assert' module here.
62076
62077 2007-05-01  Bruno Haible  <bruno@clisp.org>
62078
62079         * doc/functions/*.texi: New files.
62080         * doc/functions/google-ranking.txt: New file.
62081         * doc/gnulib.texi (Function Substitutes): New chapter.
62082         (ctime, inet_ntoa): Remove sections.
62083         * doc/ctime.texi: Remove file.
62084         * doc/inet_ntoa.texi: Remove file.
62085         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
62086         dependencies.
62087         (%.info): New rule, specifying a --reference-limit.
62088
62089 2007-05-01  Bruno Haible  <bruno@clisp.org>
62090
62091         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
62092
62093 2007-05-01  Bruno Haible  <bruno@clisp.org>
62094
62095         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
62096         the portability of 'mkdir' to mingw systems.
62097
62098 2007-05-01  Bruno Haible  <bruno@clisp.org>
62099
62100         * doc/headers/google-ranking.txt: New file.
62101
62102 2007-04-30  Eric Blake  <ebb9@byu.net>
62103
62104         Prefer fseeko to fseek.
62105         * modules/getpass (Depends-on): Add fseeko.
62106         * lib/getpass.c (getpass): Use fseeko, not fseek.
62107
62108 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
62109
62110         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
62111         assumes the sorting is stable, while most qsort implementations
62112         are not.  Use argument addresses to ensure they never compare as
62113         equal.
62114
62115         * tests/test-argp-2.sh (usage-indent test): Fix output
62116         (func_compare): Restore diff options
62117         * tests/test-argp.c: Restore #include "progname.h"
62118
62119 2007-04-29  Bruno Haible  <bruno@clisp.org>
62120
62121         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
62122         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62123         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
62124         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62125         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
62126         (configure.ac): Define CHECK_SNPRINTF_POSIX.
62127         (TESTS, check_PROGRAMS): Add test-snprintf.
62128         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
62129         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
62130         (TESTS, check_PROGRAMS): Add test-vsnprintf.
62131         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
62132         assertions that fail on HP-UX, OSF/1, or IRIX.
62133         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
62134
62135 2007-04-29  Bruno Haible  <bruno@clisp.org>
62136
62137         * MODULES.html.sh (posix_functions): Remove 'contents'.
62138
62139 2007-04-29  Karl Berry  <karl@gnu.org>
62140
62141         * config/srclist.txt (gendocs_template_min): new entry.
62142
62143 2007-04-29  Bruno Haible  <bruno@clisp.org>
62144
62145         Work around fpurge bug on BSD systems.
62146         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
62147         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
62148         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
62149         fpurge to rpl_fpurge if the system already has this function.
62150         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
62151         the case where the system already has this function. Correct invariants
62152         on BSD systems.
62153         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
62154         BSD systems.
62155
62156 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62157
62158         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
62159         proposed by Sven Verdoolaege.
62160
62161         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
62162         options.
62163         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
62164         (usage and help tests): Update
62165
62166 2007-04-29  Bruno Haible  <bruno@clisp.org>
62167
62168         * tests/test-fflush.c (main): Use a file of size 17, not 10.
62169         Print more information in case of failure. Disable a test on BeOS.
62170
62171 2007-04-29  Bruno Haible  <bruno@clisp.org>
62172
62173         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
62174         This helps debugging on systems on which no gdb is available.
62175
62176 2007-04-29  Bruno Haible  <bruno@clisp.org>
62177
62178         * lib/freading.h: Improve comments.
62179         * lib/fwriting.h: Likewise.
62180         * tests/test-freading.c (main): Don't check freading immediately after
62181         repositioning. Needed for glibc.
62182
62183 2007-04-29  Bruno Haible  <bruno@clisp.org>
62184
62185         * lib/freading.c (freading): Trivial simplification.
62186
62187 2007-04-28  Bruno Haible  <bruno@clisp.org>
62188
62189         * tests/test-fwriting.c (main): Also test the interaction between
62190         fflush and fwriting.
62191         * modules/fwriting-tests (Depends-on): Add fflush.
62192
62193         * tests/test-freading.c (main): Also test the interaction between
62194         fflush and freading.
62195         * modules/freading-tests (Depends-on): Add fflush.
62196
62197 2007-04-28  Bruno Haible  <bruno@clisp.org>
62198
62199         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
62200         fseeko and ftello.
62201         Suggested by Eric Blake.
62202
62203 2007-04-28  Jim Meyering  <jim@meyering.net>
62204
62205         Avoid false-negative in gl_STDINT_H's C99 conformance test.
62206         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
62207         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
62208
62209 2007-04-27  Eric Blake  <ebb9@byu.net>
62210
62211         * doc/headers/assert.texi (assert.h): Document assert module use.
62212
62213 2007-04-27  Bruno Haible  <bruno@clisp.org>
62214
62215         * doc/headers/*.texi: New files.
62216         * doc/gnulib.texi (Header File Substitutes): New chapter.
62217         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
62218         dependencies.
62219         (standards.info ,standards.html, standards.dvi): Update dependencies.
62220         (mostlyclean, clean): New targets.
62221
62222 2007-04-27  Bruno Haible  <bruno@clisp.org>
62223
62224         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
62225         * modules/sysexits (Files, Makefile.am): Update.
62226
62227         * lib/sys_socket_.h: Renamed from lib/socket_.h.
62228         * modules/sys_socket (Files, Makefile.am): Update.
62229
62230         * lib/sys_stat_.h: Renamed from lib/stat_.h.
62231         * modules/sys_stat (Files, Makefile.am): Update.
62232
62233 2007-04-27  Eric Blake  <ebb9@byu.net>
62234
62235         * lib/freading.h: Improve comments.
62236         * lib/fwriting.h: Likewise.
62237         * lib/fflush.c: Likewise.
62238
62239         Fix closein for mingw.
62240         * modules/closein-tests: Add tests for closein.
62241         * tests/test-closein.c: New file.
62242         * tests/test-closein.sh: Likewise.
62243         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
62244         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
62245
62246 2007-04-27  Bruno Haible  <bruno@clisp.org>
62247
62248         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
62249         version is < 6.
62250         * lib/math_.h [__DECC]: Likewise.
62251         * lib/stdio_.h [__DECC]: Likewise.
62252         * lib/stdlib_.h [__DECC]: Likewise.
62253         * lib/string_.h [__DECC]: Likewise.
62254         * lib/time_.h [__DECC]: Likewise.
62255         * lib/wchar_.h [__DECC]: Likewise.
62256         * lib/wctype_.h [__DECC]: Likewise.
62257
62258 2007-04-27  Bruno Haible  <bruno@clisp.org>
62259
62260         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
62261
62262 2007-04-27  Bruno Haible  <bruno@clisp.org>
62263
62264         * lib/fflush.c: Add comments.
62265         * modules/fpurge-tests (Depends-on): Add fflush.
62266         * modules/freadable-tests (Depends-on): Likewise.
62267         * modules/fwritable-tests (Depends-on): Likewise.
62268
62269 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
62270
62271         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
62272         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
62273         Report by Bruno Haible <bruno@clisp.org>.
62274
62275 2007-04-26  Eric Blake  <ebb9@byu.net>
62276
62277         Fix fflush on mingw.
62278         * modules/fflush (Depends-on): Add freading.
62279         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
62280         but unread data.
62281
62282 2007-04-26  Eric Blake  <ebb9@byu.net>
62283         and Bruno Haible  <bruno@clisp.org>
62284
62285         Implement freading and fwriting.
62286         * lib/freading.c: New file.
62287         * lib/freading.h: Likewise.
62288         * m4/freading.m4: Likewise.
62289         * modules/freading: Likewise.
62290         * modules/freading-tests: Likewise.
62291         * tests/test-freading.c: Likewise.
62292         * lib/fwriting.c: New file.
62293         * lib/fwriting.h: Likewise.
62294         * m4/fwriting.m4: Likewise.
62295         * modules/fwriting: Likewise.
62296         * modules/fwriting-tests: Likewise.
62297         * tests/test-fwriting.c: Likewise.
62298         * MODULES.html.sh (File stream based Input/Output): Mention them.
62299
62300 2007-04-26  Bruno Haible  <bruno@clisp.org>
62301
62302         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
62303         'long' when we assume it.
62304         Suggested by Eric Blake.
62305
62306 2007-04-26  Bruno Haible  <bruno@clisp.org>
62307
62308         Ensure fseeko, ftello are declared on glibc systems.
62309         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
62310         * modules/fseeko (configure.ac-early): Likewise.
62311         * modules/ftello (configure.ac-early): Likewise.
62312         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
62313         AC_FUNC_FSEEKO for this.
62314         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
62315         (gl_CHECK_FSEEKO): Remove macro.
62316
62317 2007-04-26  Bruno Haible  <bruno@clisp.org>
62318
62319         * tests/test-fflush.c (main): Also check the ftell result after
62320         fflush and fseek/fseeko.
62321         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
62322         file descriptor position cache in the stream.
62323         * lib/fseeko.c (rpl_fseeko): Likewise.
62324
62325 2007-04-26  Bruno Haible  <bruno@clisp.org>
62326
62327         * modules/fflush-tests (Depends-on): Add fseeko.
62328
62329 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
62330             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62331
62332         * lib/argz_.h: ensure error_t definition is obtained in same
62333         mechanism system argz.h would have.
62334         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
62335         argz facilities are known bad.  Err on the side of caution if
62336         cross-compiling.
62337
62338 2007-04-25  Eric Blake  <ebb9@byu.net>
62339
62340         * lib/fpurge.c (includes): Use stdlib.h for free.
62341         * tests/test-fflush.c (main): Also test fflush-fseeko.
62342
62343 2007-04-25  Bruno Haible  <bruno@clisp.org>
62344
62345         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
62346         * lib/fseeko.c: New file.
62347         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
62348         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
62349         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
62350         gl_FUNC_FSEEKO.
62351         (gl_FUNC_FSEEKO): Invoke it.
62352         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
62353         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
62354         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
62355
62356 2007-04-25  Bruno Haible  <bruno@clisp.org>
62357
62358         * modules/fflush (Depends-on): Add ftello.
62359
62360 2007-04-25  Bruno Haible  <bruno@clisp.org>
62361
62362         * modules/ftello-tests: New file.
62363         * tests/test-ftello.c: New file.
62364
62365         * modules/ftello: New file.
62366         * m4/ftello.m4: New file.
62367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
62368         HAVE_FTELLO.
62369         * lib/stdio_.h (ftello): New declaration.
62370         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
62371         HAVE_FTELLO.
62372
62373 2007-04-25  Bruno Haible  <bruno@clisp.org>
62374
62375         * modules/fseeko-tests: New file.
62376         * tests/test-fseeko.c: New file.
62377
62378         * modules/fseeko: New file.
62379         * m4/fseeko.m4: New file.
62380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
62381         HAVE_FSEEKO.
62382         * lib/stdio_.h (fseeko): New declaration.
62383         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
62384         HAVE_FSEEKO.
62385
62386 2007-04-25  Bruno Haible  <bruno@clisp.org>
62387
62388         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
62389
62390 2007-04-25  Bruno Haible  <bruno@clisp.org>
62391
62392         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
62393         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
62394         * tests/test-unistd.c: Likewise.
62395         * tests/test-fcntl.c: Likewise.
62396
62397 2007-04-23  Eric Blake  <ebb9@byu.net>
62398
62399         * lib/fflush.c: Fix missing include.
62400         Reported by Bruno Haible.
62401
62402 2007-04-23  Bruno Haible  <bruno@clisp.org>
62403
62404         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
62405         Reported by Eric Blake.
62406
62407 2007-04-23  Bruno Haible  <bruno@clisp.org>
62408
62409         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
62410
62411 2007-04-23  Bruno Haible  <bruno@clisp.org>
62412
62413         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
62414
62415 2007-04-23  Bruno Haible  <bruno@clisp.org>
62416
62417         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
62418         Needed on HP-UX 11.
62419
62420 2007-04-16  Eric Blake  <ebb9@byu.net>
62421
62422         Make fflush rely on fpurge.
62423         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
62424         open coding all variants.
62425         * modules/fflush (Depends-on): Add fpurge and unistd.
62426         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
62427         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
62428
62429         Fix --with-tests compilation on cygwin.
62430         * modules/argmatch-tests (Makefile.am): List gnulib library first
62431         in LDADD.
62432         * modules/argp-tests (Makefile.am): Likewise.
62433         * modules/array-list-tests (Makefile.am): Likewise.
62434         * modules/array-oset-tests (Makefile.am): Likewise.
62435         * modules/avltree-list-tests (Makefile.am): Likewise.
62436         * modules/avltree-oset-tests (Makefile.am): Likewise.
62437         * modules/avltreehash-list-tests (Makefile.am): Likewise.
62438         * modules/carray-list-tests (Makefile.am): Likewise.
62439         * modules/dirname-tests (Makefile.am): Likewise.
62440         * modules/frexp-tests (Makefile.am): Likewise.
62441         * modules/isnanl-tests (Makefile.am): Likewise.
62442         * modules/linked-list-tests (Makefile.am): Likewise.
62443         * modules/linkedhash-list-tests (Makefile.am): Likewise.
62444         * modules/lock-tests (Makefile.am): Likewise.
62445         * modules/rbtree-list-tests (Makefile.am): Likewise.
62446         * modules/rbtree-oset-tests (Makefile.am): Likewise.
62447         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
62448         * modules/tls-tests (Makefile.am): Likewise.
62449         * modules/tsearch-tests (Makefile.am): Likewise.
62450         * modules/xvasprintf-tests (Makefile.am): Likewise.
62451
62452         Fix fpurge for cygwin.
62453         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
62454         value.
62455         * modules/fpurge-tests (Depends-on): Clean up trash.
62456
62457 2007-04-16  Simon Josefsson  <simon@josefsson.org>
62458
62459         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
62460
62461         * m4/autobuild.m4: Re-indent.
62462
62463 2007-04-13  Bruno Haible  <bruno@clisp.org>
62464
62465         * modules/fpurge-tests: New file.
62466         * tests/test-fpurge.c: New file.
62467
62468         * modules/fpurge: New file.
62469         * lib/fpurge.h: New file.
62470         * lib/fpurge.c: New file.
62471         * m4/fpurge.m4: New file.
62472
62473 2007-04-13  Bruno Haible  <bruno@clisp.org>
62474
62475         * modules/fbufmode-tests: New file.
62476         * tests/test-fbufmode.c: New file.
62477
62478         * modules/fbufmode: New file.
62479         * lib/fbufmode.h: New file.
62480         * lib/fbufmode.c: New file.
62481         * m4/fbufmode.m4: New file.
62482
62483 2007-04-13  Bruno Haible  <bruno@clisp.org>
62484
62485         * modules/fwritable-tests: New file.
62486         * tests/test-fwritable.c: New file.
62487
62488         * modules/fwritable: New file.
62489         * lib/fwritable.h: New file.
62490         * lib/fwritable.c: New file.
62491         * m4/fwritable.m4: New file.
62492
62493 2007-04-13  Bruno Haible  <bruno@clisp.org>
62494
62495         * modules/freadable-tests: New file.
62496         * tests/test-freadable.c: New file.
62497
62498         * modules/freadable: New file.
62499         * lib/freadable.h: New file.
62500         * lib/freadable.c: New file.
62501         * m4/freadable.m4: New file.
62502
62503 2007-04-13  Bruno Haible  <bruno@clisp.org>
62504
62505         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
62506         MOSTLYCLEANFILES.
62507
62508 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62509
62510         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
62511         gzip bootstrap.conf to avoid dragging in i18n machinery.
62512         (gnulib_tool_option): Use it.
62513
62514 2007-04-13  Bruno Haible  <bruno@clisp.org>
62515
62516         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
62517         %F directives.
62518         * tests/test-vasprintf-posix.c (test_function): Likewise.
62519         * tests/test-snprintf-posix.h (test_function): Likewise.
62520         * tests/test-sprintf-posix.h (test_function): Likewise.
62521         * tests/test-fprintf-posix.h (test_function): Likewise.
62522         * tests/test-printf-posix.h (test_function): Likewise.
62523         * tests/test-fprintf-posix.out: Likewise.
62524
62525 2007-04-13  Bruno Haible  <bruno@clisp.org>
62526
62527         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
62528         * modules/tls-tests (configure.ac): Likewise.
62529         Reported by Arto C. Nirkko <anirkko@insel.ch>.
62530
62531 2007-04-13  Bruno Haible  <bruno@clisp.org>
62532
62533         * lib/tls.c (glthread_tls_get): Fix return type.
62534         Patch by Arto C. Nirkko <anirkko@insel.ch>.
62535
62536 2007-04-12  Eric Blake  <ebb9@byu.net>
62537
62538         * modules/gettime (Depends-on): Remove gettime.
62539         Reported by Dmitry V. Levin.
62540
62541 2007-04-12  Bruno Haible  <bruno@clisp.org>
62542
62543         * modules/fflush (Include): Mention <stdio.h>.
62544         * modules/strtoimax (Include): Mention <inttypes.h>.
62545         * modules/strtoumax (Include): Likewise.
62546
62547 2007-04-12  Eric Blake  <ebb9@byu.net>
62548
62549         * .cvsignore: New file.
62550         * .gitignore: Likewise.
62551
62552 2007-04-12  Bruno Haible  <bruno@clisp.org>
62553
62554         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
62555         not before, since $(LDADD) often contains libgnu.a.
62556         * modules/striconv-tests (test_striconv_LDADD): Likewise.
62557         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
62558         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
62559         Needed on Cygwin.
62560
62561 2007-04-12  Eric Blake  <ebb9@byu.net>
62562
62563         Work around glibc's failure to flush stdin on fclose.
62564         * lib/closein.c (close_stdin): Flush stdin before closing.
62565
62566         Work around glibc's failure to reset seekable stdin on exit.
62567         * modules/closein: New module.
62568         * lib/closein.c: New file.
62569         * lib/closein.h: Likewise.
62570         * m4/closein.m4: Likewise.
62571         * MODULES.html.sh (File stream based Input/Output): Document it.
62572
62573 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62574
62575         * gnulib-tool: Rename generated 'autobuild' script to
62576         'do-autobuild' in --create-megatestdir output.
62577
62578         * doc/gnulib.texi (Build robot for gnulib): Fix.
62579
62580 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62581
62582         * modules/sysexits (Depends-on): Add absolute-header.
62583
62584 2007-04-12  Eric Blake  <ebb9@byu.net>
62585
62586         No need to preserve errno on success.
62587         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
62588         Reported by Bruno Haible.
62589
62590 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62591
62592         * MODULES.html.sh (Support for maintaining and releasing
62593         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
62594
62595 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62596
62597         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
62598
62599 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62600
62601         * modules/autobuild: New module.
62602
62603         * m4/autobuild.m4: New file.
62604
62605 2007-04-11  Bruno Haible  <bruno@clisp.org>
62606
62607         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
62608         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
62609         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
62610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
62611         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62612         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62613         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62614         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62615         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62616         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62617         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
62618         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62619         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62620         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
62621         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62622         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62623         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
62624         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62625         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62626         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
62627         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62628         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62629         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
62630         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62631         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62632         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
62633         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62634         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62635         Reported by Eric Blake.
62636
62637 2007-04-11  Bruno Haible  <bruno@clisp.org>
62638
62639         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
62640
62641 2007-04-10  Bruno Haible  <bruno@clisp.org>
62642
62643         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
62644         for NaN and Infinity. Needed on FreeBSD 6.1.
62645         * tests/test-vasnprintf-posix.c (test_function): Undo last change
62646         regarding results for "%010a" of Infinity and NaN.
62647         * tests/test-vasprintf-posix.c (test_function): Likewise.
62648         * tests/test-snprintf-posix.h (test_function): Likewise.
62649         * tests/test-sprintf-posix.h (test_function): Likewise.
62650         * tests/test-fprintf-posix.h (test_function): Likewise.
62651         * tests/test-printf-posix.h (test_function): Likewise.
62652         * tests/test-fprintf-posix.out: Likewise.
62653
62654 2007-04-10  Bruno Haible  <bruno@clisp.org>
62655
62656         * modules/locale-tests: New file.
62657         * tests/test-locale.c: New file.
62658
62659         * modules/locale: New file.
62660         * lib/locale_.h: New file.
62661         * m4/locale_h.m4: New file.
62662
62663 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
62664             Bruno Haible  <bruno@clisp.org>
62665
62666         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
62667         be determined, test for availability of the copysignf, copysign,
62668         copysignl functions.
62669         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
62670         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
62671         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
62672
62673 2007-04-09  Eric Blake  <ebb9@byu.net>
62674
62675         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
62676         * modules/stdio (Makefile.am): Support fflush.
62677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62678         * modules/fflush: New file.
62679         * lib/fflush.c: Likewise.
62680         * m4/fflush.m4: Likewise.
62681         * modules/fflush-tests: New test.
62682         * tests/test-fflush.c: Likewise.
62683         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
62684
62685 2007-04-06  Bruno Haible  <bruno@clisp.org>
62686
62687         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
62688         (VASNPRINTF): Use signbit for faster determination whether to print a
62689         minus sign.
62690         * modules/vasnprintf (Files): Remove lib/float+.h.
62691         * modules/fprintf-posix (Depends-on): Add signbit.
62692         * modules/snprintf-posix (Depends-on): Likewise.
62693         * modules/sprintf-posix (Depends-on): Likewise.
62694         * modules/vasnprintf-posix (Depends-on): Likewise.
62695         * modules/vasprintf-posix (Depends-on): Likewise.
62696         * modules/vfprintf-posix (Depends-on): Likewise.
62697         * modules/vsnprintf-posix (Depends-on): Likewise.
62698         * modules/vsprintf-posix (Depends-on): Likewise.
62699
62700 2007-04-06  Bruno Haible  <bruno@clisp.org>
62701
62702         * tests/test-frexp.c (main): Test also the sign bit of zero results.
62703         * tests/test-frexpl.c (main): Likewise.
62704         * tests/test-ldexpl.c (main): Likewise.
62705         * modules/frexp-tests (Depends-on): Add signbit.
62706         * modules/frexpl-tests (Depdends-on): Likewise.
62707         * modules/ldexpl-tests (Depdends-on): Likewise.
62708
62709 2007-04-06  Bruno Haible  <bruno@clisp.org>
62710
62711         * modules/signbit-tests: New file.
62712         * tests/test-signbit.c: New file.
62713
62714         * modules/signbit: New file.
62715         * lib/signbitf.c: New file.
62716         * lib/signbitd.c: New file.
62717         * lib/signbitl.c: New file.
62718         * m4/signbit.m4: New file.
62719         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
62720         (signbit): New macro.
62721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
62722         REPLACE_SIGNBIT.
62723         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
62724         REPLACE_FREXPL into math.h.
62725
62726 2007-04-06  Bruno Haible  <bruno@clisp.org>
62727
62728         * modules/isnanf-nolibm-tests: New file.
62729         * tests/test-isnanf.c: New file.
62730
62731         * modules/isnanf-nolibm: New file.
62732         * lib/isnanf.h: New file.
62733         * lib/isnanf.c: New file.
62734         * lib/isnan.c: Consider the USE_FLOAT macro.
62735         * m4/isnanf.m4: New file.
62736
62737 2007-04-06  Bruno Haible  <bruno@clisp.org>
62738
62739         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
62740         (Link): New section.
62741
62742         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
62743
62744 2007-04-06  Bruno Haible  <bruno@clisp.org>
62745
62746         Assume the 'long double' type.
62747         * m4/longdouble.m4: Remove file.
62748         * config/srclist.txt: Don't mention longdouble.m4.
62749         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
62750         * lib/float+.h: Likewise.
62751         * lib/frexp.c: Likewise.
62752         * lib/printf-args.h: Likewise.
62753         * lib/printf-args.c: Likewise.
62754         * lib/printf-frexp.c: Likewise.
62755         * lib/printf-parse.c: Likewise.
62756         * lib/vasnprintf.c: Likewise.
62757         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
62758         * m4/intl.m4: Likewise.
62759         * m4/isnanl.m4: Likewise.
62760         * m4/printf.m4: Likewise.
62761         * m4/printf-frexpl.m4: Likewise.
62762         * m4/vasnprintf.m4: Likewise.
62763         * modules/allocsa (Files): Remove m4/longdouble.m4.
62764         * modules/gettext (Files): Likewise.
62765         * modules/relocatable-prog-wrapper (Files): Likewise.
62766         * modules/vasnprintf (Files): Likewise.
62767         * modules/isnanl (Files): Likewise.
62768         (Include): Simplify.
62769         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
62770         (Include): Simplify.
62771         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
62772         (Include): Simplify.
62773         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
62774         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62775         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
62776         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62777         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62778         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62779         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
62780         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62781         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62782         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62783         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
62784         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62785         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
62786         * tests/test-isnanl.c: Likewise.
62787         * tests/test-snprintf-posix.h: Likewise.
62788         * tests/test-sprintf-posix.h: Likewise.
62789         * tests/test-vasnprintf-posix.c: Likewise.
62790         * tests/test-vasnprintf-posix2.c: Likewise.
62791         * tests/test-vasprintf-posix.c: Likewise.
62792
62793 2007-04-06  Bruno Haible  <bruno@clisp.org>
62794
62795         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
62796         * lib/math_.h [__DECC]: Include the overridden include file through
62797         #include_next, outside the double-inclusion guard.
62798         * lib/stdio_.h [__DECC]: Likewise.
62799         * lib/stdlib_.h [__DECC]: Likewise.
62800         * lib/string_.h [__DECC]: Likewise.
62801         * lib/time_.h [__DECC]: Likewise.
62802         * lib/wchar_.h [__DECC]: Likewise.
62803         * lib/wctype_.h [__DECC]: Likewise.
62804         * lib/inttypes_.h [__DECC]: Likewise.
62805         Reported by Albert Chin <china@thewrittenword.com> in
62806         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
62807
62808 2007-04-04  Eric Blake  <ebb9@byu.net>
62809
62810         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
62811         1.5.x.
62812
62813 2007-04-04  Bruno Haible  <bruno@clisp.org>
62814
62815         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
62816         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
62817
62818 2007-04-04  Bruno Haible  <bruno@clisp.org>
62819
62820         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
62821         results for "%010a" of Infinity and NaN.
62822         * tests/test-vasprintf-posix.c (test_function): Likewise.
62823         * tests/test-snprintf-posix.h (test_function): Likewise.
62824         * tests/test-sprintf-posix.h (test_function): Likewise.
62825         * tests/test-fprintf-posix.h (test_function): Remove these tests.
62826         * tests/test-printf-posix.h (test_function): Likewise.
62827         * tests/test-fprintf-posix.out: Update.
62828         Needed for FreeBSD 6.1.
62829
62830 2007-04-04  Bruno Haible  <bruno@clisp.org>
62831
62832         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
62833         directly used by the gnulib modules nor by gnulib-tool.
62834
62835 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62836
62837         * DEPENDENCIES: Give overall description of version dependency
62838         desirability.  Use more-typical names for apps.
62839         Add shell, coreutils, diffutils, grep, tar, gzip.
62840
62841 2007-04-04  Simon Josefsson  <simon@josefsson.org>
62842
62843         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
62844
62845 2007-04-04  Karl Berry  <karl@gnu.org>
62846
62847         * MODULES.html.sh (func_module): missing '.
62848
62849 2007-04-03  Bruno Haible  <bruno@clisp.org>
62850
62851         * modules/argmatch-tests (Makefile.am): New variable
62852         test_argmatch_LDADD.
62853         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
62854         * modules/array-list-tests (Makefile.am): New variable
62855         test_array_list_LDADD.
62856         * modules/array-oset-tests (Makefile.am): New variable
62857         test_array_oset_LDADD.
62858         * modules/avltree-list-tests (Makefile.am): New variable
62859         test_avltree_list_LDADD.
62860         * modules/avltree-oset-tests (Makefile.am): New variable
62861         test_avltree_oset_LDADD.
62862         * modules/avltreehash-list-tests (Makefile.am): New variable
62863         test_avltreehash_list_LDADD.
62864         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
62865         test_canonicalize_lgpl_LDADD.
62866         * modules/carray-list-tests (Makefile.am): New variable
62867         test_carray_list_LDADD.
62868         * modules/dirname-tests (Makefile.am): New variable
62869         test_dirname_LDADD.
62870         * modules/linked-list-tests (Makefile.am): New variable
62871         test_linked_list_LDADD.
62872         * modules/linkedhash-list-tests (Makefile.am): New variable
62873         test_linkedhash_list_LDADD.
62874         * modules/rbtree-list-tests (Makefile.am): New variable
62875         test_rbtree_list_LDADD.
62876         * modules/rbtree-oset-tests (Makefile.am): New variable
62877         test_rbtree_oset_LDADD.
62878         * modules/rbtreehash-list-tests (Makefile.am): New variable
62879         test_rbtreehash_list_LDADD.
62880         * modules/xvasprintf-tests (Makefile.am): New variable
62881         test_xvasprintf_LDADD.
62882         Reported by Eric Blake.
62883
62884 2007-04-03  Eric Blake  <ebb9@byu.net>
62885
62886         * DEPENDENCIES: Weaken m4 requirements.
62887
62888 2007-04-03  Bruno Haible  <bruno@clisp.org>
62889
62890         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
62891         * modules/isnanl-tests (configure.ac): Likewise.
62892
62893 2007-04-03  Ben Pfaff  <blp@gnu.org>
62894
62895         * modules/iconv_open: Add $(srcdir)/ to source directory
62896         references in Makefile fragments that call gperf, to fix VPATH
62897         builds.
62898
62899 2007-04-03  Bruno Haible  <bruno@clisp.org>
62900
62901         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
62902         * lib/ldexpl.c: Undo last change.
62903
62904 2007-04-03  Bruno Haible  <bruno@clisp.org>
62905
62906         * modules/printf-frexpl (Depends-on): Undo last change.
62907         (Files): Add m4/ldexpl.m4.
62908
62909 2007-04-03  Bruno Haible  <bruno@clisp.org>
62910
62911         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
62912         * modules/isnanl (Link): New section.
62913
62914         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
62915         * modules/frexp (Link): New section.
62916
62917         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
62918         * modules/frexpl (Link): New section.
62919
62920         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
62921         * modules/ldexpl (Link): New section.
62922
62923 2007-04-03  Bruno Haible  <bruno@clisp.org>
62924
62925         * modules/TEMPLATE-EXTENDED: New file.
62926         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
62927
62928 2007-04-03  Bruno Haible  <bruno@clisp.org>
62929
62930         * DEPENDENCIES: New file.
62931         Suggested by Simon Josefsson.
62932
62933 2007-04-03  Bruno Haible  <bruno@clisp.org>
62934
62935         * doc/gnulib.texi: Escape @.
62936
62937 2007-04-03  James Youngman  <jay@gnu.org>
62938         and Paul Eggert  <eggert@cs.ucla.edu>
62939
62940         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
62941         birthtime on all systems that have birthtime, not just those which
62942         use st_birthtimensec rather than st_birthtim.  Putting zero in
62943         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
62944         that the birth time is not available for files on an NFS mount.
62945
62946 2007-04-03  Simon Josefsson  <simon@josefsson.org>
62947
62948         * modules/memxor: Move back from crypto/, suggested by Bruno.
62949         * modules/crypto/hmac-sha1: Fix memxor dependency.
62950
62951         * modules/crypto/gc: Moved from ../.
62952
62953 2007-04-02  Eric Blake  <ebb9@byu.net>
62954
62955         * lib/ldexpl.c (includes): Avoid libm.
62956
62957         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
62958
62959 2007-04-02  Bruno Haible  <bruno@clisp.org>
62960
62961         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
62962         on IRIX.
62963
62964 2007-04-02  Bruno Haible  <bruno@clisp.org>
62965
62966         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
62967         x86 or x86_64 platforms running MacOS X.
62968         Reported by Ryan Schmidt <@ryandesign.com>.
62969
62970 2007-04-02  Bruno Haible  <bruno@clisp.org>
62971
62972         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
62973         i386.
62974
62975 2007-04-01  Simon Josefsson  <simon@josefsson.org>
62976
62977         * modules/crypto/arcfour: Moved from ../.
62978         * modules/crypto/arcfour-tests: Moved from ../.
62979         * modules/crypto/arctwo: Moved from ../.
62980         * modules/crypto/arctwo-tests: Moved from ../.
62981         * modules/crypto/des: Moved from ../.
62982         * modules/crypto/des-tests: Moved from ../.
62983         * modules/crypto/gc-arcfour: Moved from ../.
62984         * modules/crypto/gc-arcfour-tests: Moved from ../.
62985         * modules/crypto/gc-arctwo: Moved from ../.
62986         * modules/crypto/gc-arctwo-tests: Moved from ../.
62987         * modules/crypto/gc-des: Moved from ../.
62988         * modules/crypto/gc-des-tests: Moved from ../.
62989         * modules/crypto/gc-hmac-md5: Moved from ../.
62990         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
62991         * modules/crypto/gc-hmac-sha1: Moved from ../.
62992         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
62993         * modules/crypto/gc-md2: Moved from ../.
62994         * modules/crypto/gc-md2-tests: Moved from ../.
62995         * modules/crypto/gc-md4: Moved from ../.
62996         * modules/crypto/gc-md4-tests: Moved from ../.
62997         * modules/crypto/gc-md5: Moved from ../.
62998         * modules/crypto/gc-md5-tests: Moved from ../.
62999         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
63000         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
63001         * modules/crypto/gc-random: Moved from ../.
63002         * modules/crypto/gc-rijndael: Moved from ../.
63003         * modules/crypto/gc-rijndael-tests: Moved from ../.
63004         * modules/crypto/gc-sha1: Moved from ../.
63005         * modules/crypto/gc-sha1-tests: Moved from ../.
63006         * modules/crypto/gc-tests: Moved from ../.
63007         * modules/crypto/hmac-md5: Moved from ../.
63008         * modules/crypto/hmac-md5-tests: Moved from ../.
63009         * modules/crypto/hmac-sha1: Moved from ../.
63010         * modules/crypto/hmac-sha1-tests: Moved from ../.
63011         * modules/crypto/md2: Moved from ../.
63012         * modules/crypto/md2-tests: Moved from ../.
63013         * modules/crypto/md4: Moved from ../.
63014         * modules/crypto/md4-tests: Moved from ../.
63015         * modules/crypto/md5: Moved from ../.
63016         * modules/crypto/md5-tests: Moved from ../.
63017         * modules/crypto/memxor: Moved from ../.
63018         * modules/crypto/rijndael: Moved from ../.
63019         * modules/crypto/rijndael-tests: Moved from ../.
63020         * modules/crypto/sha1: Moved from ../.
63021
63022 2007-03-30  James Youngman  <jay@gnu.org>
63023
63024         * tests/test-stat-time.c (prepare_test): use chmod() rather than
63025         rename() to change the ctime of a file (because ctime is unaffected
63026         by rename on jfs2 on AIX 5.1).
63027         (main): Start by doing cleanup, in case a previous run failed leaving
63028         test files behind.
63029
63030 2007-03-31  Bruno Haible  <bruno@clisp.org>
63031
63032         Support old proprietary implementations of iconv.
63033         * modules/iconv_open: New file.
63034         * lib/iconv_.h: New file.
63035         * m4/iconv_h.m4: New file.
63036         * lib/iconv_open.c: New file.
63037         * lib/iconv_open-aix.gperf: New file.
63038         * lib/iconv_open-hpux.gperf: New file.
63039         * lib/iconv_open-irix.gperf: New file.
63040         * lib/iconv_open-osf.gperf: New file.
63041         * m4/iconv_open.m4: New file.
63042         * modules/linebreak (Depends-on): Add iconv_open.
63043         * modules/striconv (Depends-on): Likewise.
63044         * modules/striconveh (Depends-on): Likewise.
63045         * modules/unicodeio (Depends-on): Likewise.
63046         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
63047         (iconv_t)(-1).
63048         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
63049         conversion if cd is (iconv_t)(-1).
63050         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
63051         is not possible.
63052
63053 2007-03-31  Bruno Haible  <bruno@clisp.org>
63054
63055         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63056         work on Solaris either. Protect also second use of "autodetect_jp".
63057
63058 2007-03-31  Bruno Haible  <bruno@clisp.org>
63059
63060         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
63061         the function is not present.
63062
63063 2007-03-31  Bruno Haible  <bruno@clisp.org>
63064
63065         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
63066         the function is not present.
63067
63068 2007-03-31  Bruno Haible  <bruno@clisp.org>
63069
63070         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
63071         a bug in HP-UX iconv_open().
63072
63073 2007-03-31  Bruno Haible  <bruno@clisp.org>
63074
63075         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
63076         (Mathematics <math.h>): New section, add fpieee.
63077         (Input/output <stdio.h>): Add fseterr.
63078         (Mathematics <math.h>): New section, add printf-frexp.
63079         (Container data structures): Add sublist.
63080         (Core language properties): Add fpucw, inline.
63081         (Functions for greatest-width integer types <inttypes.h>): Add
63082         imaxabs, imaxdiv, inttypes.
63083         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
63084         isnanl-nolibm, ldexp.
63085         (Mathematics <math.h>): New section, add printf-frexpl.
63086         (Support for systems lacking POSIX:2001): Add fprintf-posix,
63087         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
63088         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
63089         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
63090         (Unicode string functions): Add unistr/u*-mbtoucr.
63091         (Java): Add javacomp-script, javaexec-script.
63092         (C#): Add csharpcomp-script, csharpexec-script.
63093         (Support for building libraries and executables): Add havelib,
63094         relocatable-*.
63095         (Support for maintaining and releasing projects): Renamed from
63096         'Support for maintaining and release projects'. Add announce-gen.
63097
63098 2007-03-31  Bruno Haible  <bruno@clisp.org>
63099
63100         * README: Talk primarily about git.
63101         (git and CVS): Renamed from CVS.
63102         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
63103         gnulib is available through git.
63104         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
63105
63106 2007-03-30  Bruno Haible  <bruno@clisp.org>
63107
63108         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
63109         * lib/poll_.h: Likewise.
63110         * lib/stat_.h: Likewise.
63111         * lib/sys_time_.h: Likewise.
63112         * lib/sysexit_.h: Likewise.
63113         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
63114         * lib/stdbool_.h: Likewise.
63115         * lib/byteswap_.h: Add double-inclusion guard.
63116
63117 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
63118
63119         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
63120
63121 2007-03-30  Karl Berry  <karl@gnu.org>
63122
63123         * config/srclist-update: double space after USA in the license
63124         substitution, since that's how it's usually (?) written.
63125
63126 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
63127
63128         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
63129         reported by Bruno Haible.
63130
63131 2007-03-29  Bruno Haible  <bruno@clisp.org>
63132
63133         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
63134         a bug in AIX iconv().
63135
63136 2007-03-29  Bruno Haible  <bruno@clisp.org>
63137
63138         * modules/ldexpl-tests: New file.
63139         * tests/test-ldexpl.c: New file.
63140
63141 2007-03-29  Bruno Haible  <bruno@clisp.org>
63142
63143         * lib/ldexpl.c: Include fpucw.h.
63144         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
63145         multiplication.
63146         * modules/ldexpl (Depends-on): Add fpucw.
63147
63148 2007-03-29  Bruno Haible  <bruno@clisp.org>
63149
63150         * modules/ldexpl: New file.
63151         * m4/ldexpl.m4: New file.
63152         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
63153         set.
63154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
63155         REPLACE_LDEXPL.
63156         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
63157         REPLACE_LDEXPL.
63158         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63159         gl_FUNC_LDEXPL_WORKS.
63160         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
63161         * modules/mathl (Files): Remove lib/ldexpl.c.
63162         (Depends-on): Add ldexpl.
63163
63164 2007-03-29  Bruno Haible  <bruno@clisp.org>
63165
63166         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
63167
63168 2007-03-29  Bruno Haible  <bruno@clisp.org>
63169
63170         * tests/test-striconveh.c (main): Don't assume that a direct conversion
63171         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
63172         and possibly also HP-UX.
63173         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63174         work on AIX, IRIX, HP-UX, OSF/1.
63175         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63176         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63177         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63178         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63179         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
63180         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63181
63182 2007-03-29  Bruno Haible  <bruno@clisp.org>
63183
63184         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
63185
63186 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63187
63188         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
63189         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
63190
63191 2007-03-29  Eric Blake  <ebb9@byu.net>
63192
63193         * lib/acl-internal.h: Remove redundant include.
63194         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
63195         Cygwin when a file is locked.
63196
63197 2007-03-29  Bruno Haible  <bruno@clisp.org>
63198
63199         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
63200         file.
63201         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
63202
63203 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63204
63205         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
63206         try to remove a parent directory if the child couldn't be removed
63207         (except for the first rmdir, which could fail because the child
63208         doesn't exist).  Problem reported by Jeff Blaine in
63209         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
63210
63211 2007-03-28  Bruno Haible  <bruno@clisp.org>
63212
63213         * lib/striconveh.c (utf8conv_carefully): New function.
63214         (mem_cd_iconveh_internal): Invoke it.
63215
63216 2007-03-28  Bruno Haible  <bruno@clisp.org>
63217
63218         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
63219         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
63220         input.
63221         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
63222         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
63223         unistr/u8-uctomb.
63224
63225 2007-03-28  Bruno Haible  <bruno@clisp.org>
63226
63227         * modules/unistr/u8-mbtoucr: New file.
63228         * lib/unistr/u8-mbtoucr.c: New file.
63229         * modules/unistr/u16-mbtoucr: New file.
63230         * lib/unistr/u16-mbtoucr.c: New file.
63231         * modules/unistr/u16-mbtoucr: New file.
63232         * lib/unistr/u16-mbtoucr.c: New file.
63233         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
63234
63235 2007-03-27  Simon Josefsson  <simon@josefsson.org>
63236             Bruno Haible  <bruno@clisp.org>
63237
63238         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
63239         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
63240         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
63241
63242         * m4/stdio_h.m4: Add stubs for vasprintf too.
63243
63244         * modules/stdio: Support vasprintf in sed command.
63245
63246         * modules/vasprintf: Depend on stdio for prototypes.  Remove
63247         vasprintf.h.  Add stdio module indicator.
63248
63249         * lib/stdio_.h: Declare asprintf and vasprintf, based on
63250         vasprintf.h.
63251
63252         * lib/vasprintf.h: File removed.
63253
63254         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
63255         * lib/vasprintf.c: Ditto.
63256         * lib/xvasprintf.c: Ditto.
63257         * tests/test-vasprintf-posix.c: Ditto.
63258         * tests/test-vasprintf.c: Ditto.
63259
63260 2007-03-27  Bruno Haible  <bruno@clisp.org>
63261
63262         Make vasnprintf multithread-safe.
63263         * lib/vasnprintf.c (decimal_point_char): New function.
63264         (VASNPRINTF): Use it.
63265         Suggested by Simon Josefsson.
63266
63267 2007-03-27  Eric Blake  <ebb9@byu.net>
63268
63269         Support sub-second birthtime on cygwin.
63270         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
63271         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
63272         (get_stat_birthtime): Also work with st_birthtim.
63273
63274 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
63275
63276         * lib/stat-time.h (USE_BIRTHTIME): Remove.
63277         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
63278         (get_stat_birthtime_ns): Do not try to use "spare" fields.
63279         (get_stat_birthtime_ns): Simplify compile-time tests.
63280         (get_stat_birthtime): Change the API to look like
63281         get_stat_mtime etc., except return a negative tv_nsec on error.
63282         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
63283         Don't check for "spare" fields.
63284         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
63285         or for struct stat.st_birthtime, as these tests aren't used.
63286         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
63287
63288 2007-03-27  Bruno Haible  <bruno@clisp.org>
63289
63290         * lib/stat-time.h: Include <sys/stat.h>.
63291
63292 2007-03-27  James Youngman  <jay@gnu.org>
63293
63294         * lib/stat-time.h (get_stat_birthtime): New function for
63295           retrieving st_birthtime as provided by UFS2 (hence *BSD).
63296         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
63297           and its variants.
63298         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
63299         * modules/stat-time-test: New file.
63300         * tests/test-stat-time.c: New test, devised by Bruno Haible.
63301
63302 2007-03-26  Bruno Haible  <bruno@clisp.org>
63303
63304         Better support of signalling NaNs.
63305         * lib/atanl.c: Include isnanl.h.
63306         (atanl): Perform test for NaN at the beginning of the function and
63307         through a call to isnanl.
63308         * lib/cosl.c: Include isnanl.h.
63309         (cosl): Perform test for NaN at the beginning of the function and
63310         through a call to isnanl.
63311         * lib/ldexpl.c: Include isnanl.h.
63312         (ldexpl): Perform test for NaN through a call to isnanl.
63313         * lib/logl.c: Include isnanl.h.
63314         (logl): Perform test for NaN at the beginning of the function and
63315         through a call to isnanl.
63316         * lib/sinl.c: Include isnanl.h.
63317         (sinl): Perform test for NaN at the beginning of the function and
63318         through a call to isnanl.
63319         * lib/sqrtl.c: Include isnanl.h.
63320         (sqrtl): Perform test for NaN at the beginning of the function and
63321         through a call to isnanl.
63322         * lib/tanl.c: Include isnanl.h.
63323         (tanl): Perform test for NaN at the beginning of the function and
63324         through a call to isnanl.
63325         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
63326         * modules/mathl (Depends-on): Add isnanl.
63327
63328 2007-03-26  Eric Blake  <ebb9@byu.net>
63329
63330         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
63331         regression in logic sense of previous patch.
63332
63333 2007-03-26  Bruno Haible  <bruno@clisp.org>
63334
63335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
63336         unportable shell command "if ! ...".
63337         Reported by Ralf Wildenhues.
63338
63339 2007-03-25  Bruno Haible  <bruno@clisp.org>
63340
63341         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
63342         <sysexits.h> file, and only add EX_CONFIG.
63343         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
63344         absolute file name and whether it is sufficient. Substitute also
63345         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
63346         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
63347         ABSOLUTE_SYSEXITS_H into sysexits.h.
63348
63349 2007-03-25  Bruno Haible  <bruno@clisp.org>
63350
63351         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
63352         hints is NULL.
63353
63354 2007-03-25  Bruno Haible  <bruno@clisp.org>
63355
63356         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
63357         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
63358
63359 2007-03-25  Bruno Haible  <bruno@clisp.org>
63360
63361         * lib/vasnprintf.c: Include langinfo.h.
63362         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
63363         multithread-safe.
63364         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
63365         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
63366         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63367         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63368         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63369         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63370         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63371         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
63372         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63373         Reported by Simon Josefsson.
63374
63375 2007-03-25  Bruno Haible  <bruno@clisp.org>
63376
63377         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
63378         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
63379         * modules/vasnprintf (Depends-on): Add stdint.
63380
63381 2007-03-25  Bruno Haible  <bruno@clisp.org>
63382
63383         * modules/fpieee: New file.
63384         * m4/fpieee.m4: New file.
63385         * modules/isnan-nolibm (Depends-on): Add fpieee.
63386         * modules/isnanl-nolibm (Depends-on): Add fpieee.
63387         * modules/isnanl (Depends-on): Add fpieee.
63388
63389 2007-03-25  Bruno Haible  <bruno@clisp.org>
63390
63391         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
63392
63393 2007-03-25  Bruno Haible  <bruno@clisp.org>
63394
63395         Avoid test failures on IRIX 6.5.
63396         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
63397         (main): Use it.
63398         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
63399         macros.
63400         (main): Use them.
63401
63402 2007-03-25  Bruno Haible  <bruno@clisp.org>
63403
63404         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
63405         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
63406         exists but doesn't work.
63407         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
63408         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
63409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
63410         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
63411         math.h.
63412
63413 2007-03-25  Bruno Haible  <bruno@clisp.org>
63414
63415         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
63416         returns inf. Needed on IRIX 6.5.
63417
63418 2007-03-25  Bruno Haible  <bruno@clisp.org>
63419
63420         * tests/test-frexpl.c: Include isnanl-nolibm.h.
63421         (main): Use isnanl instead of x != x idiom.
63422         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
63423
63424         * tests/test-frexp.c: Include isnan.h.
63425         (main): Use isnan instead of x != x idiom.
63426         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
63427
63428 2007-03-25  Bruno Haible  <bruno@clisp.org>
63429
63430         * tests/test-frexp.c (NaN): New function/macro.
63431         (main): Use it instead of 0.0 / 0.0.
63432         * tests/test-isnan.c (NaN): New function/macro.
63433         (main): Use it instead of 0.0 / 0.0.
63434         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
63435         (test_function): Use it instead of 0.0 / 0.0.
63436         * tests/test-vasprintf-posix.c (NaN): New function/macro.
63437         (test_function): Use it instead of 0.0 / 0.0.
63438         * tests/test-snprintf-posix.h (NaN): New function/macro.
63439         (test_function): Use it instead of 0.0 / 0.0.
63440         * tests/test-sprintf-posix.h (NaN): New function/macro.
63441         (test_function): Use it instead of 0.0 / 0.0.
63442         * tests/test-fprintf-posix.h (NaN): New function/macro.
63443         (test_function): Use it instead of 0.0 / 0.0.
63444         * tests/test-printf-posix.h (NaN): New function/macro.
63445         (test_function): Use it instead of 0.0 / 0.0.
63446
63447         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
63448
63449 2007-03-25  Bruno Haible  <bruno@clisp.org>
63450
63451         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
63452
63453 2007-03-25  Bruno Haible  <bruno@clisp.org>
63454
63455         * lib/regexec.c (merge_state_with_log): Make static.
63456
63457 2007-03-25  Bruno Haible  <bruno@clisp.org>
63458
63459         * lib/trigl.c (kernel_rem_pio2): Make static.
63460
63461 2007-03-25  Bruno Haible  <bruno@clisp.org>
63462
63463         * lib/sincosl.c (sincosl_table): Make static.
63464
63465 2007-03-25  Bruno Haible  <bruno@clisp.org>
63466
63467         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
63468         if the compiler does not support C99.
63469
63470 2007-03-25  Bruno Haible  <bruno@clisp.org>
63471
63472         * modules/time (Makefile.am): Ensure all rule action lines start with a
63473         tab.
63474
63475 2007-03-24  Bruno Haible  <bruno@clisp.org>
63476
63477         * modules/tsearch-tests: New file.
63478         * tests/test-tsearch.sh: New file.
63479         * tests/test-tsearch.c: New file, mostly copied from glibc.
63480
63481         * modules/search-tests: New file.
63482         * tests/test-search.c: New file.
63483
63484         * modules/search: New file.
63485         * lib/search_.h: New file, incorporating lib/tsearch.h.
63486         * m4/search_h.m4: New file.
63487         * lib/tsearch.h: Remove file.
63488         * lib/tsearch.c: Include search.h instead of tsearch.h.
63489         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
63490         HAVE_TSEARCH.
63491         * modules/tsearch (Files): Remove lib/tsearch.h.
63492         (Depends-on): Add search.
63493         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
63494         (Include): Change tsearch.h into search.h.
63495
63496 2007-03-24  Bruno Haible  <bruno@clisp.org>
63497
63498         * modules/fpucw: New file.
63499         * lib/fpucw.h: New file.
63500         * lib/frexp.c: Include fpucw.h.
63501         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63502         (FUNC): Use them.
63503         * lib/printf-frexp.c: Include fpucw.h.
63504         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63505         (FUNC): Use them.
63506         * lib/vasnprintf.c: Include fpucw.h.
63507         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
63508         'long double' calculations.
63509         * tests/test-frexpl.c: Include fpucw.h.
63510         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63511         * tests/test-printf-frexpl.c: Include fpucw.h.
63512         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63513         * modules/frexpl (Depends-on): Add fpucw.
63514         * modules/printf-frexpl (Depends-on): Likewise.
63515         * modules/fprintf-posix (Depends-on): Likewise.
63516         * modules/snprintf-posix (Depends-on): Likewise.
63517         * modules/sprintf-posix (Depends-on): Likewise.
63518         * modules/vasnprintf-posix (Depends-on): Likewise.
63519         * modules/vasprintf-posix (Depends-on): Likewise.
63520         * modules/vfprintf-posix (Depends-on): Likewise.
63521         * modules/vsnprintf-posix (Depends-on): Likewise.
63522         * modules/vsprintf-posix (Depends-on): Likewise.
63523         * modules/frexpl-tests (Depends-on): Likewise.
63524         * modules/printf-frexpl-tests (Depends-on): Likewise.
63525
63526 2007-03-24  Bruno Haible  <bruno@clisp.org>
63527
63528         * lib/float+.h: New file.
63529         * lib/isnan.c: Include float+.h.
63530         (SIZE): New macro.
63531         (FUNC): Compare only SIZE bytes of the value.
63532         * lib/vasnprintf.c: Include float+.h.
63533         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
63534         SIZEOF_LDBL or SIZEOF_DBL bytes.
63535         * modules/isnan-nolibm (Files): Add lib/float+.h.
63536         * modules/isnanl-nolibm (Files): Add lib/float+.h.
63537         * modules/isnanl (Files): Add lib/float+.h.
63538         * modules/vasnprintf (Files): Add lib/float+.h.
63539
63540 2007-03-24  Bruno Haible  <bruno@clisp.org>
63541
63542         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
63543         include isnanl-nolibm.h.
63544
63545 2007-03-24  Bruno Haible  <bruno@clisp.org>
63546
63547         * tests/test-read-file.c (main): Don't produce spurious output for
63548         expected situations. Make the test fail if it encountered unexpected
63549         results.
63550
63551 2007-03-24  Bruno Haible  <bruno@clisp.org>
63552
63553         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
63554         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
63555
63556 2007-03-24  Bruno Haible  <bruno@clisp.org>
63557
63558         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
63559
63560 2007-03-24  Bruno Haible  <bruno@clisp.org>
63561
63562         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
63563         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
63564
63565         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
63566         * modules/utf8-ucs4: Turn into a symbolic link to module
63567         unistr/u8-mbtouc.
63568
63569         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
63570         utf8-ucs4-unsafe.
63571         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
63572         unistr/u8-mbtouc-unsafe.
63573
63574         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
63575         * modules/utf16-ucs4: Turn into a symbolic link to module
63576         unistr/u16-mbtouc.
63577
63578         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
63579         utf16-ucs4-unsafe.
63580         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
63581         unistr/u16-mbtouc-unsafe.
63582
63583         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
63584         * modules/ucs4-utf8: Turn into a symbolic link to module
63585         unistr/u8-ubtomb.
63586
63587         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
63588         * modules/ucs4-utf16: Turn into a symbolic link to module
63589         unistr/u16-ubtomb.
63590
63591 2007-03-24  Bruno Haible  <bruno@clisp.org>
63592
63593         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
63594         Enable the function only if HAVE_INLINE.
63595         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
63596         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63597         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
63598         Enable the function only if HAVE_INLINE.
63599         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
63600         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63601         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
63602         Enable the function only if HAVE_INLINE.
63603         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
63604         Enable the function only if HAVE_INLINE.
63605         * modules/utf8-ucs4: Update.
63606         * modules/utf8-ucs4-unsafe: Update.
63607         * modules/utf16-ucs4: Update.
63608         * modules/utf16-ucs4-unsafe: Update.
63609         * modules/ucs4-utf8: Update.
63610         * modules/ucs4-utf16: Update.
63611
63612 2007-03-24  Bruno Haible  <bruno@clisp.org>
63613
63614         * lib/utf8-ucs4.h: Remove file.
63615         * lib/utf8-ucs4-unsafe.h: Remove file.
63616         * lib/utf16-ucs4.h: Remove file.
63617         * lib/utf16-ucs4-unsafe.h: Remove file.
63618         * lib/ucs4-utf8.h: Remove file.
63619         * lib/ucs4-utf16.h: Remove file.
63620         * lib/unistr.h: Include their previous contents.
63621         * m4/utf-ucs4.m4: Remove file.
63622         * m4/ucs4-utf.m4: Remove file.
63623         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
63624         (Depends-on): Add unistr/base.
63625         (configure.ac): Remove gl_UTF_UCS4.
63626         (Makefile.am): Update.
63627         (Include): Change to unistr.h.
63628         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
63629         (Depends-on): Add unistr/base.
63630         (configure.ac): Remove gl_UTF_UCS4.
63631         (Makefile.am): Update.
63632         (Include): Change to unistr.h.
63633         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
63634         (Depends-on): Add unistr/base.
63635         (configure.ac): Remove gl_UTF_UCS4.
63636         (Makefile.am): Update.
63637         (Include): Change to unistr.h.
63638         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
63639         (Depends-on): Add unistr/base.
63640         (configure.ac): Remove gl_UTF_UCS4.
63641         (Makefile.am): Update.
63642         (Include): Change to unistr.h.
63643         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
63644         (Depends-on): Add unistr/base.
63645         (configure.ac): Remove gl_UCS4_UTF.
63646         (Makefile.am): Update.
63647         (Include): Change to unistr.h.
63648         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
63649         (Depends-on): Add unistr/base.
63650         (configure.ac): Remove gl_UCS4_UTF.
63651         (Makefile.am): Update.
63652         (Include): Change to unistr.h.
63653         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
63654         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
63655         utf8-ucs4-unsafe.h.
63656         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
63657         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
63658         utf16-ucs4-unsafe.h.
63659         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
63660         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
63661         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
63662         * lib/unistr/u8-strchr.c: Likewise.
63663         * lib/unistr/u8-strrchr.c: Likewise.
63664         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
63665         * lib/unistr/u16-strchr.c: Likewise.
63666         * lib/unistr/u16-strrchr.c: Likewise.
63667         * lib/striconveh.c: Update.
63668         * lib/linebreak.c: Update.
63669
63670 2007-03-24  Bruno Haible  <bruno@clisp.org>
63671
63672         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
63673         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
63674
63675 2007-03-22  Bruno Haible  <bruno@clisp.org>
63676
63677         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
63678
63679 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63680
63681         * MODULES.html.sh (File system functions): New module write-any-file.
63682         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
63683         * m4/write-any-file.m4: New files.
63684
63685 2007-03-23  Eric Blake  <ebb9@byu.net>
63686
63687         * gnulib-tool: Rearrange space-tab sequences, since some editors
63688         like to eat them.
63689
63690 2007-03-23  Eric Blake  <ebb9@byu.net>
63691
63692         * lib/version-etc.c (version_etc_va): Update license wording to
63693         be more concise.  Recommended by Richard Stallman.
63694
63695 2007-03-22  Bruno Haible  <bruno@clisp.org>
63696
63697         * lib/poll.c (MSG_PEEK): New fallback definition.
63698
63699 2007-03-22  Bruno Haible  <bruno@clisp.org>
63700
63701         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
63702         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
63703         (main): Update.
63704         Fixes a compilation error on BeOS.
63705
63706 2007-03-22  Bruno Haible  <bruno@clisp.org>
63707
63708         * modules/frexpl-tests: New file.
63709         * tests/test-frexpl.c: New file.
63710
63711         * modules/frexpl: New file.
63712         * m4/frexpl.m4: New file.
63713         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
63714         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
63715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
63716         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
63717         (Depends-on): Add frexpl. Remove isnanl-nolibm.
63718         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
63719
63720 2007-03-22  Bruno Haible  <bruno@clisp.org>
63721
63722         * lib/frexpl.c: Share code with lib/frexp.c.
63723         * modules/mathl (Files): Add lib/frexp.c.
63724         (Depends-on): Add isnanl-nolibm.
63725
63726 2007-03-22  Bruno Haible  <bruno@clisp.org>
63727
63728         * modules/printf-frexp (Files): Add m4/frexp.m4.
63729         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
63730         only if the found frexp function actually works.
63731
63732 2007-03-22  Bruno Haible  <bruno@clisp.org>
63733
63734         * lib/frexp.c: Remove older implementation that uses divisions.
63735
63736 2007-03-21  Bruno Haible  <bruno@clisp.org>
63737
63738         * modules/frexp-tests: New file.
63739         * tests/test-frexp.c: New file.
63740
63741         * modules/frexp: New file.
63742         * lib/frexp.c: New file.
63743         * m4/frexp.m4: New file.
63744         * lib/math_.h (frexp): New declaration.
63745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
63746         REPLACE_FREXP.
63747         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
63748
63749 2007-03-21  Bruno Haible  <bruno@clisp.org>
63750
63751         * modules/isnanl-tests: New file.
63752         * tests/test-isnanl.c: New file.
63753
63754         * modules/isnanl: New file.
63755         * lib/isnanl.h: New file.
63756         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
63757         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
63758         gl_FUNC_ISNANL_WORKS.
63759         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
63760         New macros.
63761
63762 2007-03-21  Bruno Haible  <bruno@clisp.org>
63763
63764         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
63765         lib/isnanl.h.
63766         (Include): Update.
63767         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
63768         * lib/vasnprintf.c: Update.
63769         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
63770         tests/test-isnanl.h, remove tests/test-isnanl.c.
63771         (Makefile.am): Update.
63772         * tests/test-isnanl-nolibm.c: New file.
63773         * tests/test-isnanl.h: New file.
63774         * tests/test-isnanl.c: Remove file.
63775
63776 2007-03-21  Jim Meyering  <jim@meyering.net>
63777
63778         When trying to open ".", treat ESTALE like EACCES.
63779         * lib/savewd.c (savewd_save): Resort to forking not just upon
63780         failure with EACCES, but also when errno is ESTALE.
63781
63782 2007-03-20  Bruno Haible  <bruno@clisp.org>
63783
63784         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
63785         Needed on AIX 5.1. Reported by Matthew Woehlke.
63786
63787 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63788
63789         Suggestions by Bruno Haible:
63790         * lib/acl-internal.h: Include "gettext.h" rather than rolling
63791         our own.
63792         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
63793         * modules/acl (Depends-on): Add gettext.
63794
63795 2007-03-19  Bruno Haible  <bruno@clisp.org>
63796
63797         * modules/iconvme: Remove file.
63798         * lib/iconvme.h: Remove file.
63799         * lib/iconvme.c: Remove file.
63800         * m4/iconvme.m4: Remove file.
63801
63802 2007-03-19  Bruno Haible  <bruno@clisp.org>
63803
63804         * doc/relocatable-maint.texi: Break long shell script line.
63805         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63806
63807 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63808
63809         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
63810         handle file_has_acl.
63811         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
63812         * lib/acl.c: Move header inclusions and related macro defns into
63813         lib/acl-internal.h.
63814         (S_ISLNK): Remove defn, since that's now done for us.
63815         (file_has_acl): Move to lib/file-has-acl.c.
63816         Call acl_trivial if available.  This is the crucial part of the fix.
63817         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
63818         shared within the library.  Rewrite a bit, partly to make it compatible
63819         with the GNU coding style.
63820         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
63821         Remove unnecessary double-quotes.
63822         Don't test for acl_to_text; the build will catch that.
63823         Replace acl_entries if it doesn't exist and it is needed.
63824         Check for -lsec and acl_trivial (as used on Solaris 10).
63825         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
63826         lib/file-has-acl.c.
63827         (Depends-on): Add sys_stat, for S_ISLNK.
63828
63829 2007-03-19  Ben Pfaff  <blp@gnu.org>
63830
63831         * doc/gnulib.texi: Fix typos.
63832         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63833
63834 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63835
63836         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
63837         If size is zero here, buf must be zero.
63838
63839 2007-03-19  Simon Josefsson  <simon@josefsson.org>
63840
63841         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
63842         <bruno@clisp.org>.
63843
63844 2007-03-18  Bruno Haible  <bruno@clisp.org>
63845
63846         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
63847         Suggested by Eric Blake.
63848
63849 2007-03-18  Ben Pfaff  <blp@gnu.org>
63850
63851         * doc/relocatable.texi: Recommend using as prefix a directory
63852         that does not exist and will never be created.  Based on
63853         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
63854         and others.
63855
63856 2007-03-17  Bruno Haible  <bruno@clisp.org>
63857
63858         * lib/fchownat.c: Include lchown.h.
63859
63860 2007-03-17  Bruno Haible  <bruno@clisp.org>
63861
63862         Fix endless loop when the given allocated size was > INT_MAX.
63863         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
63864         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
63865         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
63866         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
63867         * lib/sprintf.c (sprintf): Likewise.
63868
63869 2007-03-17  Bruno Haible  <bruno@clisp.org>
63870
63871         * tests/test-argp-2.sh (func_compare): Output a context diff.
63872
63873 2007-03-17  Bruno Haible  <bruno@clisp.org>
63874
63875         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
63876         locale's decimal-point character.
63877
63878 2007-03-17  Bruno Haible  <bruno@clisp.org>
63879
63880         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
63881         before comparing it. Needed because on some platforms (e.g. x86) a
63882         'long double' occupies less bytes than sizeof (long double).
63883
63884 2007-03-17  Bruno Haible  <bruno@clisp.org>
63885
63886         * tests/test-crc.c (main): Make printf statements 64-bit clean.
63887         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
63888         * tests/test-getaddrinfo.c (simple): Likewise.
63889         * tests/test-read-file.c (main): Likewise.
63890
63891 2007-03-17  Bruno Haible  <bruno@clisp.org>
63892
63893         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
63894
63895 2007-03-17  Bruno Haible  <bruno@clisp.org>
63896
63897         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
63898         unused variable.
63899
63900 2007-03-17  Bruno Haible  <bruno@clisp.org>
63901
63902         * tests/test-c-strcasecmp.c: Include c-strcase.h.
63903         * tests/test-c-strncasecmp.c: Likewise.
63904
63905 2007-03-17  Bruno Haible  <bruno@clisp.org>
63906
63907         * modules/stdlib (Depends-on): Add unistd.
63908         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
63909         Needed for MacOS X 10.3.
63910
63911 2007-03-17  Bruno Haible  <bruno@clisp.org>
63912
63913         * lib/unistr/u-strdup.h: Include <stdlib.h>.
63914
63915 2007-03-17  Bruno Haible  <bruno@clisp.org>
63916
63917         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
63918
63919 2007-03-17  Bruno Haible  <bruno@clisp.org>
63920
63921         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
63922         to reflect files copied from gnulib (with or without modifications).
63923         Suggested by Jim Meyering.
63924
63925 2007-03-17  Eric Blake  <ebb9@byu.net>
63926
63927         * NEWS: Document stdlib change from 2007-02-18.
63928
63929 2007-03-17  Jim Meyering  <jim@meyering.net>
63930
63931         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
63932         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
63933         someone uses a name containing shell meta-characters.
63934         Reported by Alfred M. Szmidt.
63935
63936         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
63937
63938 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63939
63940         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
63941         and copy gettext configuration files only if configure.ac contains
63942         a use of AM_GNU_GETTEXT_VERSION.
63943
63944 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63945
63946         * build-aux/bootstrap (gnulib_name): New variable.
63947         (gnulib_tool_options): Use it.
63948
63949 2007-03-13  Simon Josefsson  <simon@josefsson.org>
63950
63951         * tests/test-des.c: Use new namespace.
63952
63953 2007-03-15  Bruno Haible  <bruno@clisp.org>
63954
63955         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
63956         Reported by James Youngman <jay@gnu.org>.
63957
63958 2007-03-15  Bruno Haible  <bruno@clisp.org>
63959
63960         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
63961         declared prototype. Needed with cc on OSF/1 5.1.
63962
63963 2007-03-15  Bruno Haible  <bruno@clisp.org>
63964
63965         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
63966         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
63967         (struct gl_list_implementation): Add dispose_fn argument to the
63968         'create_empty', 'create' methods.
63969         (struct gl_list_impl_base): Add field 'dispose_fn'.
63970         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
63971         argument.
63972         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
63973         dispose_fn argument.
63974         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
63975         dispose_fn on the dropped values.
63976         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
63977         dispose_fn argument.
63978         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
63979         dropped values.
63980         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
63981         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63982         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
63983         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63984         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
63985         argument.
63986         (gl_tree_list_free): Call dispose_fn on the dropped values.
63987         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
63988         the dropped values.
63989         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63990         Add dispose_fn argument.
63991         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
63992         Call dispose_fn on the dropped values.
63993         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
63994         Add dispose_fn argument.
63995         (gl_sublist_create): Initialize the 'dispose_fn' field.
63996         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
63997         * tests/test-array_list.c (main): Update.
63998         * tests/test-carray_list.c (main): Update.
63999         * tests/test-avltree_list.c (main): Update.
64000         * tests/test-rbtree_list.c (main): Update.
64001         * tests/test-avltreehash_list.c (main): Update.
64002         * tests/test-rbtreehash_list.c (main): Update.
64003         * tests/test-linked_list.c (main): Update.
64004         * tests/test-linkedhash_list.c (main): Update.
64005         * tests/test-array_oset.c (main): Update.
64006
64007 2007-03-15  Bruno Haible  <bruno@clisp.org>
64008
64009         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
64010         (gl_oset_create_empty): Add dispose_fn argument.
64011         (struct gl_oset_implementation): Add dispose_fn argument to
64012         'create_empty' method.
64013         (struct gl_oset_impl_base): Add dispose_fn field.
64014         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
64015         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
64016         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
64017         values.
64018         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
64019         (gl_tree_oset_free): Call dispose_fn on the dropped values.
64020         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64021         dropped value.
64022         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64023         dropped value.
64024         * tests/test-array_oset.c (main): Update.
64025         * tests/test-avltree_oset.c (main): Update.
64026         * tests/test-rbtree_oset.c (main): Update.
64027         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
64028
64029 2007-03-13  Bruno Haible  <bruno@clisp.org>
64030
64031         * tests/test-stdbool.c (i): Update after last patch.
64032
64033 2007-03-12  Bruno Haible  <bruno@clisp.org>
64034
64035         * lib/quotearg.c: Include <wctype.h> early, before the definition of
64036         the iswprint macro. Needed on Solaris 2.5.1.
64037
64038 2007-03-12  Bruno Haible  <bruno@clisp.org>
64039
64040         * tests/test-printf-frexp.c (main): Declare x as volatile.
64041
64042 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64043
64044         * doc/gnulib.texi (Build robot for gnulib): New section.
64045
64046 2007-03-12  Jim Meyering  <jim@meyering.net>
64047
64048         * build-aux/bootstrap: New file.
64049         * build-aux/bootstrap.conf: New file, from coreutils.
64050
64051 2007-03-11  Bruno Haible  <bruno@clisp.org>
64052
64053         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
64054
64055 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64056
64057         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
64058         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
64059         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
64060
64061 2007-03-11  Bruno Haible  <bruno@clisp.org>
64062
64063         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
64064         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
64065
64066 2007-03-11  Bruno Haible  <bruno@clisp.org>
64067
64068         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
64069         formula. Needed for SunPRO C 5.0.
64070
64071 2007-03-11  Bruno Haible  <bruno@clisp.org>
64072
64073         * modules/long-options (Depends-on): Add getopt.
64074
64075 2007-03-11  Bruno Haible  <bruno@clisp.org>
64076
64077         * modules/modechange (Depends-on): Add stdbool.
64078
64079 2007-03-11  Bruno Haible  <bruno@clisp.org>
64080
64081         * modules/i-ring (Depends-on): Add stdbool.
64082
64083 2007-03-11  Bruno Haible  <bruno@clisp.org>
64084
64085         * modules/gc-des (Depends-on): Add stdbool.
64086
64087 2007-03-11  Bruno Haible  <bruno@clisp.org>
64088
64089         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
64090
64091 2007-03-11  Bruno Haible  <bruno@clisp.org>
64092
64093         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
64094
64095 2007-03-11  Bruno Haible  <bruno@clisp.org>
64096
64097         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
64098
64099 2007-03-11  Bruno Haible  <bruno@clisp.org>
64100
64101         * lib/vasnprintf.c (sprintf): Undefine.
64102
64103 2007-03-11  Bruno Haible  <bruno@clisp.org>
64104
64105         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
64106         initializers in SunPRO C and Compaq C compilers.
64107
64108 2007-03-11  Bruno Haible  <bruno@clisp.org>
64109
64110         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
64111         decrementing code ANSI C compliant.
64112
64113 2007-03-11  Bruno Haible  <bruno@clisp.org>
64114
64115         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
64116         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
64117
64118 2007-03-11  Bruno Haible  <bruno@clisp.org>
64119
64120         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
64121         <stdbool.h> substitute doesn't pass.
64122
64123 2007-03-11  Bruno Haible  <bruno@clisp.org>
64124
64125         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
64126
64127 2007-03-11  Bruno Haible  <bruno@clisp.org>
64128
64129         * gnulib-tool (func_create_megatestdir): Create also an autobuild
64130         script, for submission to autobuild.josefsson.org.
64131
64132 2007-03-10  Bruno Haible  <bruno@clisp.org>
64133
64134         * modules/canonicalize-lgpl-tests: New file.
64135         * tests/test-canonicalize-lgpl.sh: New file.
64136         * tests/test-canonicalize-lgpl.c: New file.
64137
64138         * modules/c-strcase-tests: New file.
64139         * tests/test-c-strcase.sh: New file.
64140         * tests/test-c-strcasecmp.c: New file.
64141         * tests/test-c-strncasecmp.c: New file.
64142
64143         * modules/atexit-tests: New file.
64144         * tests/test-atexit.sh: New file.
64145         * tests/test-atexit.c: New file.
64146
64147 2007-03-10  Bruno Haible  <bruno@clisp.org>
64148
64149         * tests/test-binary-io.sh: Use temporary filenames that are not so
64150         likely to clash with those of other tests (in a parallel make).
64151         * tests/test-binary-io.c: Likewise.
64152
64153 2007-03-10  Bruno Haible  <bruno@clisp.org>
64154
64155         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
64156         fallback; use #error instead.
64157         Suggested by Simon Josefsson.
64158
64159 2007-03-10  Bruno Haible  <bruno@clisp.org>
64160
64161         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
64162         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
64163         first and the last.
64164
64165 2007-03-10  Bruno Haible  <bruno@clisp.org>
64166
64167         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
64168
64169 2007-03-10  Bruno Haible  <bruno@clisp.org>
64170
64171         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
64172         "make distcheck".
64173         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
64174         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
64175         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
64176
64177 2007-03-10  Bruno Haible  <bruno@clisp.org>
64178
64179         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
64180         variable.
64181         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
64182         variable.
64183
64184 2007-03-09  Eric Blake  <ebb9@byu.net>
64185         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
64186
64187         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
64188         types are not being provided by gnulib.
64189         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
64190         types are supported.
64191
64192 2007-03-10  Bruno Haible  <bruno@clisp.org>
64193
64194         * lib/stdio_.h (__attribute__): New macro.
64195         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
64196         vsprintf): Specify __attribute__ __format__ for GCC.
64197         Suggested by Eric Blake.
64198
64199 2007-03-09  Bruno Haible  <bruno@clisp.org>
64200
64201         * modules/printf-posix-tests: New file.
64202         * tests/test-printf-posix.sh: New file.
64203         * tests/test-printf-posix.c: New file.
64204
64205         * modules/printf-posix: New file.
64206         * lib/printf.c: New file.
64207         * m4/printf-posix-rpl.m4: New file.
64208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
64209         REPLACE_PRINTF.
64210         * lib/stdio_.h (printf): New declaration.
64211         (format, __format__, ____printf____, ____scanf____, ____strftime____,
64212         ____strfmon____): New macros.
64213         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
64214         REPLACE_PRINTF.
64215
64216 2007-03-09  Bruno Haible  <bruno@clisp.org>
64217
64218         * tests/test-vasnprintf-posix2.sh: New file.
64219         * tests/test-vasnprintf-posix2.c: New file.
64220         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
64221         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64222         (Makefile.am): Activate test-vasnprintf-posix2.sh.
64223
64224         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
64225         a locale dependent decimal point, rather than always '.'.
64226
64227 2007-03-09  Eric Blake  <ebb9@byu.net>
64228
64229         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
64230         spite of platforms like Tandem/NSK that define it to -1.
64231
64232 2007-03-08  Bruno Haible  <bruno@clisp.org>
64233
64234         * modules/vprintf-posix-tests: New file.
64235         * tests/test-vprintf-posix.sh: New file.
64236         * tests/test-vprintf-posix.c: New file.
64237         * tests/test-printf-posix.h: New file.
64238
64239         * modules/vprintf-posix: New file.
64240         * lib/vprintf.c: New file.
64241         * m4/vprintf-posix.m4: New file.
64242         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
64243         REPLACE_VPRINTF.
64244         * lib/stdio_.h (vprintf): New declaration.
64245         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
64246         REPLACE_VPRINTF.
64247
64248 2007-03-08  Bruno Haible  <bruno@clisp.org>
64249
64250         * modules/fprintf-posix-tests: New file.
64251         * tests/test-fprintf-posix.sh: New file.
64252         * tests/test-fprintf-posix.c: New file.
64253
64254         * modules/fprintf-posix: New file.
64255         * lib/fprintf.c: New file.
64256         * m4/fprintf-posix.m4: New file.
64257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
64258         REPLACE_FPRINTF.
64259         * lib/stdio_.h (fprintf): New declaration.
64260         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
64261         REPLACE_FPRINTF.
64262
64263 2007-03-08  Bruno Haible  <bruno@clisp.org>
64264
64265         * modules/vfprintf-posix-tests: New file.
64266         * tests/test-vfprintf-posix.sh: New file.
64267         * tests/test-vfprintf-posix.c: New file.
64268         * tests/test-fprintf-posix.h: New file.
64269         * tests/test-fprintf-posix.out: New file.
64270
64271         * modules/vfprintf-posix: New file.
64272         * lib/vfprintf.c: New file.
64273         * m4/vfprintf-posix.m4: New file.
64274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
64275         REPLACE_VFPRINTF.
64276         * lib/stdio_.h (vfprintf): New declaration.
64277         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
64278         REPLACE_VFPRINTF.
64279
64280 2007-03-08  Bruno Haible  <bruno@clisp.org>
64281
64282         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
64283
64284 2007-03-08  Bruno Haible  <bruno@clisp.org>
64285
64286         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
64287         instead of 'expr' invocations.
64288         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64289         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64290         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64291         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64292         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64293         Suggested by Paul Eggert.
64294
64295 2007-03-08  Bruno Haible  <bruno@clisp.org>
64296
64297         * modules/fseterr-tests: New file.
64298         * tests/test-fseterr.c: New file.
64299
64300         * modules/fseterr: New file.
64301         * lib/fseterr.h: New file.
64302         * lib/fseterr.c: New file.
64303
64304 2007-03-08  Bruno Haible  <bruno@clisp.org>
64305
64306         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
64307         * lib/getopt_.h: Likewise.
64308         * lib/mbswidth.h: Likewise.
64309         * lib/setenv.h: Likewise.
64310         * lib/vasnprintf.h: Likewise.
64311         * lib/vasprintf.h: Likewise.
64312         * lib/verror.h: Likewise.
64313         * lib/xsetenv.h: Likewise.
64314         * lib/xvasprintf.h: Likewise.
64315
64316 2007-03-08  Jim Meyering  <jim@meyering.net>
64317
64318         * users.txt: Add parted.
64319
64320         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
64321
64322 2007-03-07  Bruno Haible  <bruno@clisp.org>
64323
64324         * m4/printf.m4: Make the shell script snippets copy&pastable.
64325
64326 2007-03-02  Bruno Haible  <bruno@clisp.org>
64327
64328         * lib/netinet_in_.h: New file.
64329         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
64330         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
64331         * modules/netinet_in (Files): Add lib/netinet_in_.h.
64332         (Depends-on): Add absolute-header.
64333         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
64334         into netinet/in.h.
64335
64336 2007-03-03  Bruno Haible  <bruno@clisp.org>
64337
64338         * lib/sys_select_.h: New file.
64339         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
64340         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
64341         * modules/sys_select (Files): Add lib/sys_select_.h.
64342         (Depends-on): Add absolute-header.
64343         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
64344         into sys/select.h.
64345
64346 2007-03-02  Bruno Haible  <bruno@clisp.org>
64347
64348         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
64349         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
64350         values.
64351         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
64352         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
64353         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
64354         * modules/sys_socket (Depends-on): Add absolute-header.
64355         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
64356         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
64357         (Include): Remove requirement of inclusion of <sys/types.h>.
64358
64359 2007-03-02  Bruno Haible  <bruno@clisp.org>
64360
64361         * lib/byteswap_.h (bswap_32): Fix formula.
64362
64363 2007-03-06  Bruno Haible  <bruno@clisp.org>
64364
64365         * modules/sprintf-posix-tests: New file.
64366         * tests/test-sprintf-posix.c: New file.
64367
64368         * modules/sprintf-posix: New file.
64369         * lib/sprintf.c: New file.
64370         * m4/sprintf-posix.m4: New file.
64371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
64372         REPLACE_SPRINTF.
64373         * lib/stdio_.h (sprintf): New declaration.
64374         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
64375         REPLACE_SPRINTF.
64376
64377 2007-03-06  Bruno Haible  <bruno@clisp.org>
64378
64379         * modules/vsprintf-posix-tests: New file.
64380         * tests/test-vsprintf-posix.c: New file.
64381         * tests/test-sprintf-posix.h: New file.
64382
64383         * modules/vsprintf-posix: New file.
64384         * lib/vsprintf.c: New file.
64385         * m4/vsprintf-posix.m4: New file.
64386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
64387         REPLACE_VSPRINTF.
64388         * lib/stdio_.h (vsprintf): New declaration.
64389         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
64390         REPLACE_VSPRINTF.
64391
64392 2007-03-06  Bruno Haible  <bruno@clisp.org>
64393
64394         * modules/vsnprintf (Depend-on): Remove minmax.
64395
64396 2007-03-06  Bruno Haible  <bruno@clisp.org>
64397
64398         * modules/snprintf-posix-tests: New file.
64399         * tests/test-snprintf-posix.c: New file.
64400
64401         * modules/snprintf-posix: New file.
64402         * m4/snprintf-posix.m4: New file.
64403         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
64404         gl_FUNC_SNPRINTF.
64405         (gl_FUNC_SNPRINTF): Invoke it.
64406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
64407         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
64408         is set.
64409         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
64410
64411 2007-03-06  Bruno Haible  <bruno@clisp.org>
64412
64413         * modules/vsnprintf-posix-tests: New file.
64414         * tests/test-vsnprintf-posix.c: New file.
64415         * tests/test-snprintf-posix.h: New file.
64416
64417         * modules/vsnprintf-posix: New file.
64418         * m4/vsnprintf-posix.m4: New file.
64419         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
64420         gl_FUNC_VSNPRINTF.
64421         (gl_FUNC_VSNPRINTF): Invoke it.
64422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
64423         * lib/stdio_.h (vsnprintf): Define as a replacement if
64424         REPLACE_VSNPRINTF is set.
64425         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
64426
64427 2007-03-06  Bruno Haible  <bruno@clisp.org>
64428
64429         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
64430         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
64431
64432 2007-03-06  Bruno Haible  <bruno@clisp.org>
64433
64434         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
64435         (asinl): Declare also if HAVE_DECL_ASINL is set.
64436         (atanl): Declare also if HAVE_DECL_ATANL is set.
64437         (ceill): Declare also if HAVE_DECL_CEILL is set.
64438         (cosl): Declare also if HAVE_DECL_COSL is set.
64439         (expl): Declare also if HAVE_DECL_EXPL is set.
64440         (floorl): Declare also if HAVE_DECL_FLOORL is set.
64441         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
64442         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
64443         (logl): Declare also if HAVE_DECL_LOGL is set.
64444         (sinl): Declare also if HAVE_DECL_SINL is set.
64445         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
64446         (tanl): Declare also if HAVE_DECL_TANL is set.
64447         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
64448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
64449         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
64450         declaration of frexpl, ldexpl.
64451         * modules/printf-frexpl (Depends-on): Add math.
64452         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
64453
64454 2007-03-05  Bruno Haible  <bruno@clisp.org>
64455
64456         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
64457         frexpl and ldexpl are declared.
64458         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
64459
64460 2007-03-05  Bruno Haible  <bruno@clisp.org>
64461
64462         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
64463         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
64464
64465 2007-03-05  Bruno Haible  <bruno@clisp.org>
64466
64467         * lib/stdio_.h: Include <stddef.h>.
64468
64469 2007-03-05  Bruno Haible  <bruno@clisp.org>
64470
64471         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
64472
64473 2007-03-05  Bruno Haible  <bruno@clisp.org>
64474
64475         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
64476         NetBSD 4, from Ralf Wildenhues.
64477
64478 2007-03-04  Bruno Haible  <bruno@clisp.org>
64479
64480         * lib/vasprintf.h: Update #if logic for the case when the functions
64481         exist but are overridden.
64482
64483 2007-03-04  Bruno Haible  <bruno@clisp.org>
64484
64485         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
64486         implementations: glibc-2.4 and MacOS X 10.3.
64487         * tests/test-vasnprintf-posix.c (test_function): Test also the case
64488         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
64489         * tests/test-vasprintf-posix.c (test_function): Likewise.
64490
64491 2007-03-04  Bruno Haible  <bruno@clisp.org>
64492
64493         * modules/vasprintf-posix-tests: New file.
64494         * tests/test-vasprintf-posix.c: New file.
64495
64496         * modules/vasprintf-posix: New file.
64497         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
64498         defined.
64499         * m4/vasprintf-posix.m4: New file.
64500         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
64501         gl_FUNC_VASPRINTF.
64502         (gl_FUNC_VASPRINTF): Invoke it.
64503         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
64504         here.
64505         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
64506
64507 2007-03-04  Bruno Haible  <bruno@clisp.org>
64508
64509         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
64510         REPLACE_GETTIMEOFDAY.
64511         * modules/sys_time (Makefile.am): Likewise.
64512         * m4/sys_time_h.m4: Likewise.
64513         * m4/gettimeofday.m4: Likewise.
64514
64515 2007-03-04  Bruno Haible  <bruno@clisp.org>
64516
64517         * modules/vasnprintf-posix-tests: New file.
64518         * tests/test-vasnprintf-posix.c: New file.
64519
64520         * modules/vasnprintf-posix: New file.
64521         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
64522         printf-frexpl.h.
64523         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
64524         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
64525         REPLACE_VASNPRINTF is defined.
64526         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
64527         gl_FUNC_VASNPRINTF.
64528         (gl_FUNC_VASNPRINTF): Invoke it.
64529         * m4/vasnprintf-posix.m4: New file.
64530         * m4/printf.m4: New file.
64531
64532 2007-03-04  Bruno Haible  <bruno@clisp.org>
64533
64534         Compile progreloc.c only if --enable-relocatable is specified.
64535         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
64536         if --enable-relocatable was specified.
64537         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
64538         lib_SOURCES.
64539
64540 2007-03-04  Jim Meyering  <jim@meyering.net>
64541
64542         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
64543         Use it consistently, rather than enumerating errno constants.
64544
64545 2007-03-04  Bruno Haible  <bruno@clisp.org>
64546
64547         * modules/xvasprintf-tests: New file.
64548         * tests/test-xvasprintf.c: New file.
64549
64550         * modules/vasprintf-tests: New file.
64551         * tests/test-vasprintf.c: New file.
64552
64553         * modules/vasnprintf-tests: New file.
64554         * tests/test-vasnprintf.c: New file.
64555
64556         * modules/vsnprintf-tests: New file.
64557         * tests/test-vsnprintf.c: New file.
64558
64559         * modules/snprintf-tests: New file.
64560         * tests/test-snprintf.c: New file.
64561
64562 2007-03-04  Bruno Haible  <bruno@clisp.org>
64563
64564         Compile relocatable.c only if --enable-relocatable is specified.
64565         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
64566         gl_RELOCATABLE_LIBRARY.
64567         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
64568         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
64569         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
64570         gl_RELOCATABLE_LIBRARY.
64571         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
64572         (Makefile.am): Remove lib_SOURCES.
64573         * modules/relocatable-lib-lgpl (configure.ac): Invoke
64574         gl_RELOCATABLE_LIBRARY.
64575         (Makefile.am): Remove lib_SOURCES.
64576         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
64577         always.
64578         * modules/relocatable-prog-wrapper (configure.ac): Invoke
64579         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
64580
64581 2007-03-04  Bruno Haible  <bruno@clisp.org>
64582
64583         * modules/argmatch-tests: New file.
64584         * tests/test-argmatch.c: New file.
64585
64586         * tests/test-allocsa.c (main): Halve the number of loop runs.
64587
64588         * modules/alloca-opt-tests: New file.
64589         * tests/test-alloca-opt.c: New file.
64590
64591 2007-03-04  Jim Meyering  <jim@meyering.net>
64592
64593         Work around difference between Linux ACLs and Solaris 10 ZFS.
64594         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
64595         for EINVAL.
64596
64597 2007-03-03  Bruno Haible  <bruno@clisp.org>
64598
64599         * modules/relocatable-prog (Depends-on): Add back progreloc's
64600         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
64601
64602 2007-03-03  Bruno Haible  <bruno@clisp.org>
64603
64604         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
64605         * modules/relocatable-lib: New file.
64606
64607 2007-03-03  Bruno Haible  <bruno@clisp.org>
64608
64609         * modules/relocatable-prog: Renamed from modules/relocatable.
64610         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
64611
64612 2007-03-03  Bruno Haible  <bruno@clisp.org>
64613
64614         * modules/relocatable-script (Files): Add doc/relocatable.texi,
64615         m4/relocatable-lib.m4.
64616         (Depends-on): Remove 'relocatable'.
64617         (configure.ac): Add gl_RELOCATABLE_NOP.
64618
64619 2007-03-03  Bruno Haible  <bruno@clisp.org>
64620
64621         * modules/relocatable-prog-wrapper: New file.
64622         * modules/relocatable (Depends-on): Add it. Remove all other
64623         dependencies except progname.
64624         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
64625
64626         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
64627         (gl_FUNC_STRERROR): Nop.
64628         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
64629
64630         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
64631         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
64632
64633         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
64634         (gl_FUNC_READLINK): Update.
64635
64636         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
64637
64638 2007-03-03  Bruno Haible  <bruno@clisp.org>
64639
64640         * lib/xreadlink.c: Include <unistd.h> unconditionally.
64641         * modules/xreadlink (Depends-on): Add unistd.
64642         * modules/xreadlink-with-size (Depends-on): Likewise.
64643
64644 2007-03-03  Bruno Haible  <bruno@clisp.org>
64645
64646         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
64647         extracted from gt_FUNC_SETENV.
64648         (gt_FUNC_SETENV): Remove macro.
64649         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
64650         remove gt_FUNC_SETENV.
64651
64652 2007-03-03  Bruno Haible  <bruno@clisp.org>
64653
64654         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
64655         ENABLE_RELOCATABLE here.
64656         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
64657
64658 2007-03-03  Bruno Haible  <bruno@clisp.org>
64659
64660         * modules/rbtreehash-list-tests (Depends-on): Add progname.
64661         * tests/test-rbtreehash_list.c: Include progname.h.
64662         (main): Call set_program_name.
64663
64664         * modules/rbtree-oset-tests (Depends-on): Add progname.
64665         * tests/test-rbtree_oset.c: Include progname.h.
64666         (main): Call set_program_name.
64667
64668         * modules/rbtree-list-tests (Depends-on): Add progname.
64669         * tests/test-rbtree_list.c: Include progname.h.
64670         (main): Call set_program_name.
64671
64672         * modules/linked-list-tests (Depends-on): Add progname.
64673         * tests/test-linked_list.c: Include progname.h.
64674         (main): Call set_program_name.
64675
64676 2007-03-03  Bruno Haible  <bruno@clisp.org>
64677
64678         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
64679         All uses of __restrict changed to _Restrict_.
64680         * lib/glob_.h (__restrict): Remove macro.
64681
64682 2007-03-02  Bruno Haible  <bruno@clisp.org>
64683
64684         * modules/gettext (configure.ac): Require gettext infrastructure
64685         from version 0.16.1.
64686
64687 2007-03-02  Bruno Haible  <bruno@clisp.org>
64688
64689         * modules/linkedhash-list-tests (Depends-on): Add progname.
64690         * tests/test-linkedhash_list.c: Include progname.h.
64691         (main): Call set_program_name.
64692
64693         * modules/carray-list-tests (Depends-on): Add progname.
64694         * tests/test-carray_list.c: Include progname.h.
64695         (main): Call set_program_name.
64696
64697         * modules/avltreehash-list-tests (Depends-on): Add progname.
64698         * tests/test-avltreehash_list.c: Include progname.h.
64699         (main): Call set_program_name.
64700
64701         * modules/avltree-oset-tests (Depends-on): Add progname.
64702         * tests/test-avltree_oset.c: Include progname.h.
64703         (main): Call set_program_name.
64704
64705         * modules/avltree-list-tests (Depends-on): Add progname.
64706         * tests/test-avltree_list.c: Include progname.h.
64707         (main): Call set_program_name.
64708
64709         * modules/array-oset-tests (Depends-on): Add progname.
64710         * tests/test-array_oset.c: Include progname.h.
64711         (main): Call set_program_name.
64712
64713         * modules/array-list-tests (Depends-on): Add progname.
64714         * tests/test-array_list.c: Include progname.h.
64715         (main): Call set_program_name.
64716
64717         * modules/argp-tests (Depends-on): Add progname.
64718         * tests/test-argp.c: Include argp.h first. Include progname.h.
64719         (main): Call set_program_name.
64720
64721 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
64722
64723         * doc/gnulib-tool.texi (Initial import): Reword description of
64724         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
64725         limited effect even if defined after the first system include.
64726
64727 2007-03-01  Bruno Haible  <bruno@clisp.org>
64728
64729         * build-aux/config.libpath: Update to libtool-1.5.22.
64730         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64731
64732 2007-03-01  Bruno Haible  <bruno@clisp.org>
64733
64734         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
64735         foo_CFLAGS.
64736         Reported by Ralf Wildenhues.
64737
64738 2007-03-01  Bruno Haible  <bruno@clisp.org>
64739
64740         * build-aux/install-reloc: Remove object files left over by some
64741         compilers.
64742         Reported by Ralf Wildenhues.
64743
64744 2007-03-01  Bruno Haible  <bruno@clisp.org>
64745
64746         * build-aux/install-reloc: Break long lines.
64747
64748 2007-03-01  Bruno Haible  <bruno@clisp.org>
64749
64750         * doc/relocatable.texi: Document that it may not work on OpenBSD.
64751         Reported by Ralf Wildenhues.
64752
64753 2007-03-01  Bruno Haible  <bruno@clisp.org>
64754
64755         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
64756         include ordering constraints.
64757
64758 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64759
64760         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
64761         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
64762         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
64763         as another example.
64764         * lib/time_.h: Fix misspelling.
64765         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64766         Require gl_HEADER_TIME_H_DEFAULTS.
64767         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
64768         * m4/time_r.m4 (gl_TIME_R): Likewise.
64769         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
64770
64771 2007-03-01  Bruno Haible  <bruno@clisp.org>
64772
64773         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
64774         * m4/utimens.m4 (gl_UTIMENS): Likewise.
64775
64776 2007-03-01  Jim Meyering  <jim@meyering.net>
64777
64778         * modules/xreadlink (Maintainer): Add my name.
64779         * modules/xreadlink-with-size (Depends-on): Alphabetize.
64780
64781 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
64782             Bruno Haible  <bruno@clisp.org>
64783
64784         * build-aux/install-reloc: Compile also c-ctype.c.
64785         * build-aux/relocatable.sh.in: New file.
64786         * doc/relocatable.texi: New file.
64787         * doc/relocatable-maint.texi: New file.
64788         * doc/gnulib.texi: Include relocatable-maint.texi.
64789         * lib/progreloc.c: Include unistd.h unconditionally.
64790         * lib/relocwrapper.c: Include unistd.h unconditionally.
64791         Include c-ctype.h.
64792         (add_dotbin): Use c_tolower.
64793         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
64794         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
64795         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
64796         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
64797         to m4/relocatable-lib.m4.
64798         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
64799         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
64800         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
64801         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
64802         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
64803         * modules/relocatable: New file.
64804         * modules/relocatable-lib: New file.
64805         * modules/relocatable-script: New file.
64806
64807 2007-02-28  Bruno Haible  <bruno@clisp.org>
64808
64809         Import --enable-relocatable infrastructure.
64810         * build-aux/config.libpath: New file, from GNU gettext.
64811         * build-aux/install-reloc: New file, from GNU gettext.
64812         * build-aux/reloc-ldflags: New file, from GNU gettext.
64813         * lib/relocatable.h: New file, from GNU gettext.
64814         * lib/relocatable.c: New file, from GNU gettext.
64815         * lib/relocwrapper.c: New file, from GNU gettext.
64816         * m4/relocatable.m4: New file, from GNU gettext.
64817
64818 2007-02-28  Bruno Haible  <bruno@clisp.org>
64819
64820         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
64821
64822         * modules/xreadlink: New file, from GNU gettext with modifications.
64823         * lib/xreadlink.c: New file, from GNU gettext.
64824         * lib/xreadlink.h: Add comments.
64825         (xreadlink): New declaration.
64826
64827         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
64828         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
64829         lib/xreadlink-with-size.c.
64830         (configure.ac): Remove gl_XREADLINK invocation.
64831         (Makefile.am): Augment lib_SOURCES.
64832         * m4/xreadlink.m4: Remove file.
64833         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
64834         (xreadlink_with_size): Renamed from xreadink.
64835         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
64836         * modules/canonicalize (Depends-on): Replace xreadlink with
64837         xreadlink-with-size.
64838         * lib/canonicalize.c (canonicalize_filename_mode): Update.
64839
64840 2007-02-25  Jim Meyering  <jim@meyering.net>
64841
64842         * build-aux/announce-gen: When complaining about excess arguments,
64843         list them.
64844
64845 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64846
64847         * README: Document signed integer overflow situation more
64848         accurately.
64849
64850 2007-02-25  Bruno Haible  <bruno@clisp.org>
64851
64852         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
64853         'a' or 'A' conversion.
64854
64855 2007-02-25  Bruno Haible  <bruno@clisp.org>
64856
64857         * modules/filename: Renamed from modules/pathname.
64858         (Files): Replace lib/pathname.h with lib/filename.h. Replace
64859         lib/concatpath.c with lib/concat-filename.c.
64860         (Makefile.am): Update.
64861         (Include): Replace pathname.h with filename.h.
64862         * lib/filename.h: Renamed from lib/pathname.h.
64863         (concatenated_filename): Renamed from concatenated_pathname.
64864         * lib/concat-filename.c: Renamed from lib/concatpath.c.
64865         (concatenated_filename): Renamed from concatenated_pathname.
64866         * lib/findprog.c: Include filename.h instead of pathname.h.
64867         (find_in_path): Update.
64868         * lib/javacomp.c: Include filename.h instead of pathname.h.
64869         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
64870         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
64871         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
64872         is_oldgcj_14_13_usable, is_javac_usable): Update.
64873         * lib/javaexec.c: Include filename.h instead of pathname.h.
64874         (execute_java_class): Update.
64875         * modules/findprog: Update.
64876         * modules/javacomp: Update.
64877         * modules/javaexec: Update.
64878         * MODULES.html.sh (File system functions): Add 'filename', remove
64879         'pathname'.
64880
64881 2007-02-25  Bruno Haible  <bruno@clisp.org>
64882
64883         * modules/printf-frexpl-tests: New file.
64884         * tests/test-printf-frexpl.c: New file.
64885
64886         * modules/printf-frexpl: New file.
64887         * lib/printf-frexpl.h: New file.
64888         * lib/printf-frexpl.c: New file.
64889         * m4/printf-frexpl.m4: New file.
64890
64891 2007-02-25  Bruno Haible  <bruno@clisp.org>
64892
64893         * modules/printf-frexp-tests: New file.
64894         * tests/test-printf-frexp.c: New file.
64895
64896         * modules/printf-frexp: New file.
64897         * lib/printf-frexp.h: New file.
64898         * lib/printf-frexp.c: New file.
64899         * m4/printf-frexp.m4: New file.
64900
64901 2007-02-25  Bruno Haible  <bruno@clisp.org>
64902
64903         Assume automake >= 1.10 for the tests.
64904         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
64905         * modules/arctwo-tests: Likewise.
64906         * modules/argp-tests: Likewise.
64907         * modules/avltree-list-tests: Likewise.
64908         * modules/avltree-oset-tests: Likewise.
64909         * modules/avltreehash-list-tests: Likewise.
64910         * modules/carray-list-tests: Likewise.
64911         * modules/crc-tests: Likewise.
64912         * modules/des-tests: Likewise.
64913         * modules/gc-arcfour-tests: Likewise.
64914         * modules/gc-arctwo-tests: Likewise.
64915         * modules/gc-des-tests: Likewise.
64916         * modules/gc-hmac-md5-tests: Likewise.
64917         * modules/gc-hmac-sha1-tests: Likewise.
64918         * modules/gc-md2-tests: Likewise.
64919         * modules/gc-md4-tests: Likewise.
64920         * modules/gc-md5-tests: Likewise.
64921         * modules/gc-pbkdf2-sha1-tests: Likewise.
64922         * modules/gc-rijndael-tests: Likewise.
64923         * modules/gc-sha1-tests: Likewise.
64924         * modules/gc-tests: Likewise.
64925         * modules/getaddrinfo-tests: Likewise.
64926         * modules/hmac-md5-tests: Likewise.
64927         * modules/hmac-sha1-tests: Likewise.
64928         * modules/linked-list-tests: Likewise.
64929         * modules/linkedhash-list-tests: Likewise.
64930         * modules/lock-tests: Likewise.
64931         * modules/md2-tests: Likewise.
64932         * modules/md4-tests: Likewise.
64933         * modules/md5-tests: Likewise.
64934         * modules/rbtree-list-tests: Likewise.
64935         * modules/rbtree-oset-tests: Likewise.
64936         * modules/rbtreehash-list-tests: Likewise.
64937         * modules/read-file-tests: Likewise.
64938         * modules/rijndael-tests: Likewise.
64939         * modules/stdint-tests: Likewise.
64940         * modules/tls-tests: Likewise.
64941
64942 2007-02-24  Bruno Haible  <bruno@clisp.org>
64943
64944         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
64945         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
64946         function; instead check whether isnan with a double argument links.
64947         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
64948         function; instead check whether isnan with a 'long double' argument
64949         links.
64950         Reported by Eric Blake <ebb9@byu.net>.
64951
64952 2007-02-24  Bruno Haible  <bruno@clisp.org>
64953
64954         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
64955         defined.
64956         * lib/isnanl.c: Remove all code. Just include isnan.c.
64957         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
64958
64959 2007-02-25  Jim Meyering  <jim@meyering.net>
64960
64961         Avoid conflicting types for 'unsetenv' on FreeBSD.
64962         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
64963         conflicting with FreeBSD's (5.0 and 6.1) function declaration
64964         in stdlib.h.
64965
64966 2007-02-24  Bruno Haible  <bruno@clisp.org>
64967
64968         * modules/isnanl-nolibm-tests: New file.
64969         * tests/test-isnanl.c: New file.
64970
64971         * modules/isnanl-nolibm: New file.
64972         * lib/isnanl.h: New file.
64973         * lib/isnanl.c: New file.
64974         * m4/isnanl.m4: New file.
64975
64976 2007-02-24  Bruno Haible  <bruno@clisp.org>
64977
64978         * modules/isnan-nolibm-tests: New file.
64979         * tests/test-isnan.c: New file.
64980
64981         * modules/isnan-nolibm: New file.
64982         * lib/isnan.h: New file.
64983         * lib/isnan.c: New file.
64984         * m4/isnan.m4: New file.
64985
64986 2007-02-24  Bruno Haible  <bruno@clisp.org>
64987
64988         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
64989         assume that an exponent fits in 20 bits.
64990
64991 2007-02-24  Jim Meyering  <jim@meyering.net>
64992
64993         * m4/regex.m4: Update the description of the configure-time option,
64994         --without-included-regex, to state accurately what the defaults are,
64995         and perhaps to give people an idea why using this option is risky.
64996
64997 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64998
64999         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
65000         loops on small arguments.  This attempts to avoid the problem
65001         Bruno Haible reported for AIX 4.3.2 in
65002         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
65003
65004 2007-02-23  Bruno Haible  <bruno@clisp.org>
65005
65006         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
65007         Needed for help2man.
65008
65009 2007-02-23  Karl Berry  <karl@gnu.org>
65010
65011         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
65012         exists, foo.h should be cvs-ignored, not committed.
65013
65014 2007-02-23  Eric Blake  <ebb9@byu.net>
65015
65016         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
65017         * lib/stat-time.h (includes): Likewise.
65018         * lib/utimecmp.c (includes): Likewise.
65019         * lib/utimens.h (includes): Likewise.
65020         * lib/getdate.y (includes): Also include "timespec.h" for use
65021         internal to the module.
65022         * modules/utimens (Depends-on): Revert yesterday's patch.
65023         * modules/nanosleep (Depends-on): Add missing dependency.
65024
65025 2007-02-22  Bruno Haible  <bruno@clisp.org>
65026
65027         * lib/glob.c: Don't include getlogin_r.h.
65028
65029 2007-02-22  Jim Meyering  <jim@meyering.net>
65030
65031         * modules/utimens (Depends-on): Add timespec, required for
65032         utimens.h's inclusion of timespec.h.
65033
65034 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
65035
65036         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
65037         long unreadable paths in GNU/Linux.  Problem reported by Andreas
65038         Schwab in
65039         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
65040         I'll try to think of a better way to fix the Solaris problem.
65041
65042         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
65043         like glibc; on Solaris 10, it fails with errno == EINVAL.
65044         POSIX says the behavior is unspecified if the first argument is NULL,
65045         so play it safe and never pass NULL to the system getcwd.
65046
65047 2007-02-21  Jim Meyering  <jim@meyering.net>
65048
65049         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
65050         of gettimeofday.  It would conflict with the one now always
65051         provided via sys_time_.h.  Reported by Matthew Woehlke, as
65052         an IRIX 6.5 build failure.
65053
65054 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65055
65056         Minor fixups to port to Solaris 10 with Sun C 5.8.
65057         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
65058         * modules/getcwd (Depends-on): Add dirfd.
65059         * lib/putenv.c (putenv): #undef it.
65060         (rpl_putenv): New decl.
65061         (malloc, free): Include <stdlib.h> rather than prototyping separately.
65062
65063 2007-02-20  Bruno Haible  <bruno@clisp.org>
65064
65065         * modules/stdio-tests: New file.
65066         * tests/test-stdio.c: New file.
65067
65068         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
65069         (Depends-on): Add stdio.
65070         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65071         (Include): Use <stdio.h> instead of vsnprintf.h.
65072         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65073         HAVE_DECL_VSNPRINTF.
65074         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
65075
65076         * modules/snprintf (Files): Remove lib/snprintf.h.
65077         (Depends-on): Add stdio.
65078         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65079         (Include): Use <stdio.h> instead of snprintf.h.
65080         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65081         HAVE_DECL_SNPRINTF.
65082         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
65083         * lib/getaddrinfo.c: Likewise.
65084
65085         * modules/stdio: New file.
65086         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
65087         * lib/snprintf.h: Remove file.
65088         * lib/vsnprintf.h: Remove file.
65089         * lib/.cppi-disable: Remove snprintf.h.
65090         * m4/stdio_h.m4: New file.
65091         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
65092
65093 2007-02-20  Jim Meyering  <jim@meyering.net>
65094
65095         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
65096         used by e.g., mingw.  From Bruno Haible.
65097
65098 2007-02-19  Bruno Haible  <bruno@clisp.org>
65099
65100         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
65101         warnings.
65102         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65103
65104 2007-02-19  Bruno Haible  <bruno@clisp.org>
65105
65106         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
65107         from mingw users.
65108
65109 2007-02-19  Bruno Haible  <bruno@clisp.org>
65110
65111         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
65112         warnings.
65113         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
65114
65115 2007-02-19  Jim Meyering  <jim@meyering.net>
65116
65117         Don't use FD after a successful "fdopendir (fd)".
65118         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
65119         Reset it by calling dirfd on the just-obtained DIR*.
65120
65121         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
65122         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
65123
65124 2007-02-18  Bruno Haible  <bruno@clisp.org>
65125
65126         * lib/readlink.c: Include <unistd.h>.
65127         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
65128         HAVE_READLINK.
65129         * modules/readlink (Depends-on): Add unistd.
65130         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65131         (Include): Add <unistd.h>.
65132
65133         * lib/getlogin_r.h: Remove file.
65134         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
65135         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
65136         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
65137         HAVE_DECL_GETLOGIN_R.
65138         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
65139         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65140         (Include): Use <unistd.h> instead of getlogin_r.h.
65141
65142         * lib/getcwd.h: Remove file.
65143         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
65144         * lib/xgetcwd.c: Likewise.
65145         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
65146         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
65147         * modules/getcwd (Files): Remove lib/getcwd.h.
65148         (Depends-on): Add unistd.
65149         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65150         (Include): Use <unistd.h> instad of getcwd.h.
65151
65152         * lib/ftruncate.c: Include <unistd.h> first.
65153         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
65154         Set HAVE_FTRUNCATE.
65155         * modules/ftruncate (Depends-on): Add unistd.
65156         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65157
65158         * lib/fchdir.c: Include <unistd.h> first.
65159         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
65160         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
65161         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
65162         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65163         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
65164
65165         * lib/dup2.c: Include <unistd.h> first.
65166         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
65167         HAVE_DUP2.
65168         * modules/dup2 (Depends-on): Add unistd.
65169         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65170
65171         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
65172         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
65173         REPLACE_CHOWN. Don't define chown as a macro here.
65174         * modules/chown (Depends-on): Add unistd.
65175         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65176
65177         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
65178         Add definition for GL_LINK_WARNING.
65179         (chown, dup2): New declarations.
65180         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
65181         link warning.
65182         (ftruncate): New declaration.
65183         (getcwd): New declaration, taken from old getcwd.h.
65184         (getlogin_r): New declaration, taken from old getlogin_r.h.
65185         (readlink): New declaration.
65186         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
65187         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
65188         (gl_PREREQ_UNISTD): Remove macro.
65189         (gl_UNISTD_MODULE_INDICATOR): New macro.
65190         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
65191         many new variables. Don't set UNISTD_H.
65192         * modules/unistd (Description): Change.
65193         (Depends-on): Add link-warning.
65194         (configure.ac): Update.
65195         (Makefile.am): Create unistd.h always. Substitute many new variables
65196         into it.
65197
65198 2007-02-18  Bruno Haible  <bruno@clisp.org>
65199
65200         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
65201         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
65202         HAVE_GETSUBOPT.
65203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
65204         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
65205         * lib/getsubopt.h: Remove file.
65206         * modules/getsubopt (Files): Remove lib/getsubopt.h.
65207         (Depends-on): Add stdlib.
65208         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65209         (Includes): Use <stdlib.h> instead of getsubopt.h.
65210         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
65211         Set HAVE_GETSUBOPT.
65212         * lib/getsubopt.c: Don't include getsubopt.h.
65213
65214 2007-02-18  Bruno Haible  <bruno@clisp.org>
65215
65216         * modules/fchdir (Depends-on): Add dup2.
65217
65218 2007-02-18  Bruno Haible  <bruno@clisp.org>
65219
65220         * lib/stdlib_.h: Handle glibc's special invocation convention
65221         specially.
65222
65223 2007-02-18  Bruno Haible  <bruno@clisp.org>
65224
65225         * modules/stdlib-tests: New file.
65226         * tests/test-stdlib.c: New file.
65227
65228         * modules/mkstemp (Files): Remove lib/mkstemp.h.
65229         (Depends-on): Add stdlib.
65230         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65231         (Includes): Use <stdlib.h> instead of mkstemp.h.
65232         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65233         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
65234         * lib/mkstemp.c: Don't include mkstemp.h.
65235         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
65236         * lib/stdlib--.h: Don't include mkstemp.h.
65237
65238         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
65239         (Depends-on): Add stdlib.
65240         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65241         (Includes): Use <stdlib.h> instead of mkdtemp.h.
65242         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65243         HAVE_MKDTEMP.
65244         * lib/mkdtemp.c: Don't include mkdtemp.h.
65245         * lib/clean-temp.c: Don't include mkdtemp.h.
65246
65247         * modules/exit (Files): Remove lib/exit.h.
65248         (Depends-on): Add stdlib.
65249         (Makefile.am): Remove lib_SOURCES.
65250         (Include): Use <stdlib.h> instead of exit.h.
65251         * lib/argmatch.c: Don't include exit.h.
65252         * lib/execute.c: Likewise.
65253         * lib/pagealign_alloc.c: Likewise.
65254         * lib/pipe.c: Likewise.
65255         * lib/wait-process.c: Likewise.
65256         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
65257         * lib/exitfail.c: Likewise.
65258         * lib/savewd.c: Likewise.
65259         * lib/xsetenv.c: Likewise.
65260
65261         * modules/stdlib: New file.
65262         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
65263         and extra comments about mkstemp().
65264         * lib/exit.h: Remove file.
65265         * lib/mkdtemp.h: Remove file.
65266         * lib/mkstemp.h: Remove file.
65267         * m4/stdlib_h.m4: New file.
65268         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
65269
65270 2007-02-18  Bruno Haible  <bruno@clisp.org>
65271
65272         * modules/math-tests: New file.
65273         * tests/test-math.c: New file.
65274
65275         * modules/math: New file.
65276         * modules/mathl (Files): Remove lib/mathl.h.
65277         (Depends-on): Add math.
65278         (Makefile.am): Don't mention mathl.h.
65279         (Include): Use <math.h> instead of mathl.h.
65280         * lib/math_.h: New file.
65281         * lib/mathl.h: Remove file.
65282         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
65283         mathl.h.
65284         * lib/asinl.c: Likewise.
65285         * lib/atanl.c: Likewise.
65286         * lib/ceill.c: Likewise.
65287         * lib/cosl.c: Likewise.
65288         * lib/expl.c: Likewise.
65289         * lib/floorl.c: Likewise.
65290         * lib/frexpl.c: Likewise.
65291         * lib/ldexpl.c: Likewise.
65292         * lib/logl.c: Likewise.
65293         * lib/sincosl.c: Likewise.
65294         * lib/sinl.c: Likewise.
65295         * lib/sqrtl.c: Likewise.
65296         * lib/tanl.c: Likewise.
65297         * lib/trigl.c: Likewise.
65298         * m4/math_h.m4: New file.
65299         * MODULES.html.sh (Mathematics): Add math.
65300
65301 2007-02-17  Bruno Haible  <bruno@clisp.org>
65302
65303         * modules/wctype-tests: New file.
65304         * tests/test-wctype.c: New file.
65305
65306         * modules/wchar-tests: New file.
65307         * tests/test-wchar.c: New file.
65308
65309         * modules/unistd-tests: New file.
65310         * tests/test-unistd.c: New file.
65311
65312         * modules/time-tests: New file.
65313         * tests/test-time.c: New file.
65314
65315         * modules/sysexits-tests: New file.
65316         * tests/test-sysexits.c: New file.
65317
65318         * modules/sys_time-tests: New file.
65319         * tests/test-sys_time.c: New file.
65320
65321         * modules/sys_stat-tests: New file.
65322         * tests/test-sys_stat.c: New file.
65323
65324         * modules/sys_socket-tests: New file.
65325         * tests/test-sys_socket.c: New file.
65326
65327         * modules/sys_select-tests: New file.
65328         * tests/test-sys_select.c: New file.
65329
65330         * modules/string-tests: New file.
65331         * tests/test-string.c: New file.
65332
65333         * modules/stdbool-tests: New file.
65334         * tests/test-stdbool.c: New file.
65335
65336         * modules/netinet_in-tests: New file.
65337         * tests/test-netinet_in.c: New file.
65338
65339         * modules/inttypes-tests: New file.
65340         * tests/test-inttypes.c: New file.
65341
65342         * modules/fcntl-tests: New file.
65343         * tests/test-fcntl.c: New file.
65344
65345         * modules/byteswap-tests: New file.
65346         * tests/test-byteswap.c: New file.
65347
65348         * modules/arpa_inet-tests: New file.
65349         * tests/test-arpa_inet.c: New file.
65350
65351 2007-02-17  Bruno Haible  <bruno@clisp.org>
65352
65353         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
65354         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
65355         if the corresponding module is not enabled. Emit link warnings if
65356         the function is used nevertheless.
65357         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
65358         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
65359         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
65360         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
65361         * modules/inttypes (Depends-on): Add link-warning.
65362         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65363         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
65364         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
65365         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
65366         * modules/imaxdiv (configure.ac): Likewise.
65367         * modules/strtoimax (configure.ac): Likewise.
65368         * modules/strtoumax (configure.ac): Likewise.
65369
65370 2007-02-17  Bruno Haible  <bruno@clisp.org>
65371
65372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
65373         gl_STRING_MODULE_INDICATOR_DEFAULTS.
65374         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
65375         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
65376
65377 2007-02-17  Bruno Haible  <bruno@clisp.org>
65378
65379         * modules/link-warning: New file.
65380         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
65381         * lib/string_.h (GL_LINK_WARNING): Remove definition.
65382         * modules/string (Depends-on): Add link-warning.
65383         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65384         string.h.
65385         * MODULES.html.sh (Support for building libraries and executables): Add
65386         link-warning.
65387
65388 2007-02-17  Bruno Haible  <bruno@clisp.org>
65389
65390         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
65391         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
65392         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
65393         long lines.
65394
65395 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
65396             Bruno Haible  <bruno@clisp.org>
65397
65398         * modules/tmpfile: New file.
65399         * lib/tmpfile.c: New file.
65400         * m4/tmpfile.m4: New file.
65401         * MODULES.html.sh (func_all_modules): New section "Input/output".
65402
65403 2007-02-15  Bruno Haible  <bruno@clisp.org>
65404
65405         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
65406         (supports_delete_on_close): New function.
65407         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
65408
65409 2007-02-14  Bruno Haible  <bruno@clisp.org>
65410
65411         * modules/mbspcasecmp-tests: New file.
65412         * tests/test-mbspcasecmp.sh: New file.
65413         * tests/test-mbspcasecmp.c: New file.
65414
65415         New module mbspcasecmp.
65416         * modules/mbspcasecmp: New file.
65417         * lib/mbspcasecmp.c: New file.
65418         * lib/string_.h (strncasecmp): Change warning message.
65419         (mbspcasecmp): New declaration.
65420         * m4/mbspcasecmp.m4: New file.
65421         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65422         GNULIB_MBSPCASECMP.
65423         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
65424         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
65425
65426 2007-02-14  Bruno Haible  <bruno@clisp.org>
65427
65428         * modules/mbsncasecmp-tests: New file.
65429         * tests/test-mbsncasecmp.sh: New file.
65430         * tests/test-mbsncasecmp.c: New file.
65431
65432         New module mbsncasecmp.
65433         * modules/mbsncasecmp: New file.
65434         * lib/mbsncasecmp.c: New file.
65435         * lib/string_.h (mbsncasecmp): New declaration.
65436         * m4/mbsncasecmp.m4: New file.
65437         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65438         GNULIB_MBSNCASECMP.
65439         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
65440         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
65441
65442 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65443
65444         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
65445         Verify that it doesn't overlap with our flags.
65446         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
65447         do not have the desired effect in multibyte locales; instead, use
65448         mbscasecmp.
65449         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
65450         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
65451         we don't require GNU fnmatch ourselves (if our users require it, they
65452         should do so explicitly).
65453
65454         Fix regex code so it doesn't rely on strcasecmp.
65455         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
65456         Otherwise, include gnulib's langinfo.h.
65457         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
65458         undesirable behavior in non-C locales.  Instead, rely on localecharset.
65459         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
65460         * modules/regex (FILES): Remove m4/codeset.m4.
65461         (Depends-on): Add localcharset.  Remove strcase.
65462
65463 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65464
65465         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
65466         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
65467
65468 2007-02-13  Bruno Haible  <bruno@clisp.org>
65469
65470         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
65471         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65472
65473 2007-02-12  Bruno Haible  <bruno@clisp.org>
65474
65475         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65476         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
65477         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
65478         time warning rather than a link error.
65479
65480 2007-02-12  Bruno Haible  <bruno@clisp.org>
65481
65482         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
65483         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65484         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65485
65486 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65487
65488         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
65489         args, not 2.
65490
65491 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65492
65493         New module 'time', so that apps can include <time.h> as per
65494         POSIX and GNU instead of separate include files like time_r.h
65495         and timegm.h.  This implementation tries out a simpler approach
65496         for replacing decls in standard include files (as compared to
65497         the string module), somewhat as an experiment.
65498
65499         * config/srclist.txt: Comment out mktime.c for now.
65500         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
65501         since it doesn't apply any more.  Use generic wording instead.
65502         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
65503         'time'.
65504         * lib/time_.h, m4/time_h.m4, modules/time: New files.
65505         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
65506         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
65507         Don't include <sys/types.h>; no longer needed since we assume C89.
65508         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
65509         * lib/strftime.c: Likewise.
65510         * lib/time_r.c: Likewise.
65511         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
65512         * lib/nanosleep.c: Include <time.h> first, to check interface.
65513         * lib/strptime.c: Likewise.
65514         * lib/time_r.c: Likewise.
65515         * lib/timegm.c: Likewise.
65516         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
65517         needed.
65518         * lib/timegm.c: Don't include timegm.h; no longer needed.
65519         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
65520         time.h now handles any problems in that area.
65521         (struct timespec, nanosleep): Remove; time.h now arranges for these.
65522         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
65523         that time.h defines struct timespec.
65524         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
65525         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
65526         handles that.
65527         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
65528         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
65529         needed.  Set REPLACE_LOCALTIME.
65530         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
65531         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
65532         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
65533         nanosleep; time_h.m4 now does that.  Don't require
65534         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
65535         module handles this now.
65536         * modules/getdate (Depends-on): Remove timespec.  Add time.
65537         * modules/nanosleep (Depends-on): Likewise.
65538         * modules/stat-time (Depends-on): Likewise.
65539         * modules/nanosleep (Include): Include time.h, not timespec.h.
65540         * modules/strptime (Files): Remove lib/strptime.h.
65541         (Depends-on): Add extensions, time.
65542         (Include): Include time.h, not strptime.h.
65543         * modules/time_r (Files): Remove lib/time_r.h.
65544         (Depends-on): Add time.
65545         (Include): Include time.h, not time_r.h.
65546         * modules/timegm: Likewise.
65547         * modules/timespec (Description): Now does timespec-related decls
65548         of our own, instead of struct timespec itself.
65549         (Depends-on): Add time; remove extensions.
65550         (Maintainer): Add self.
65551         * modules/utimecmp (Depends-on): Add time; remove timespec.
65552         * modules/utimens (Depends-on): Likewise.
65553         * modules/xnanosleep (Depends-on): Likewise.
65554
65555 2007-02-11  Bruno Haible  <bruno@clisp.org>
65556
65557         * lib/c-strstr.c: Include allocsa.h.
65558         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65559         * lib/c-strcasestr.c: Include allocsa.h.
65560         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65561         * lib/strcasestr.c: Include allocsa.h.
65562         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65563         * lib/mbsstr.c: Include allocsa.h.
65564         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65565         allocsa/freesa instead of malloc/free.
65566         * lib/mbscasestr.c: Include allocsa.h.
65567         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65568         allocsa/freesa instead of malloc/free.
65569         * modules/c-strstr (Depends-on): Add allocsa.
65570         * modules/c-strcasestr (Depends-on): Likewise.
65571         * modules/strcasestr (Depends-on): Likewise.
65572         * modules/mbsstr (Depends-on): Likewise.
65573         * modules/mbscasestr (Depends-on): Likewise.
65574
65575 2007-02-11  Bruno Haible  <bruno@clisp.org>
65576
65577         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
65578
65579         * modules/mbsspn-tests: New file.
65580         * tests/test-mbsspn.sh: New file.
65581         * tests/test-mbsspn.c: New file.
65582
65583 2007-02-11  Bruno Haible  <bruno@clisp.org>
65584
65585         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
65586
65587         * modules/mbspbrk-tests: New file.
65588         * tests/test-mbspbrk.sh: New file.
65589         * tests/test-mbspbrk.c: New file.
65590
65591 2007-02-11  Bruno Haible  <bruno@clisp.org>
65592
65593         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
65594         unneeded cast.
65595
65596         * modules/mbscspn-tests: New file.
65597         * tests/test-mbscspn.sh: New file.
65598         * tests/test-mbscspn.c: New file.
65599
65600 2007-02-11  Bruno Haible  <bruno@clisp.org>
65601
65602         * modules/mbscasecmp-tests: New file.
65603         * tests/test-mbscasecmp.sh: New file.
65604         * tests/test-mbscasecmp.c: New file.
65605
65606 2007-02-11  Bruno Haible  <bruno@clisp.org>
65607
65608         Ensure O(n) worst-case complexity of mbscasestr.
65609         * lib/mbscasestr.c: Include stdbool.h.
65610         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65611         functions.
65612         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
65613         the bookkeeping indicates that it's worth it.
65614         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
65615
65616         * modules/mbscasestr-tests: New file.
65617         * tests/test-mbscasestr1.c: New file.
65618         * tests/test-mbscasestr2.sh: New file.
65619         * tests/test-mbscasestr2.c: New file.
65620         * tests/test-mbscasestr3.sh: New file.
65621         * tests/test-mbscasestr3.c: New file.
65622         * tests/test-mbscasestr4.sh: New file.
65623         * tests/test-mbscasestr4.c: New file.
65624         * m4/locale-tr.m4: New file.
65625
65626 2007-02-11  Bruno Haible  <bruno@clisp.org>
65627
65628         Ensure O(n) worst-case complexity of mbsstr.
65629         * lib/mbsstr.c: Include stdbool.h.
65630         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65631         functions.
65632         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
65633         bookkeeping indicates that it's worth it.
65634         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
65635
65636         * modules/mbsstr-tests: New file.
65637         * tests/test-mbsstr1.c: New file.
65638         * tests/test-mbsstr2.sh: New file.
65639         * tests/test-mbsstr2.c: New file.
65640         * tests/test-mbsstr3.sh: New file.
65641         * tests/test-mbsstr3.c: New file.
65642         * m4/locale-fr.m4: New file.
65643
65644 2007-02-11  Bruno Haible  <bruno@clisp.org>
65645
65646         * lib/mbsrchr.c (mbsrchr): Fix bug.
65647
65648         * modules/mbsrchr-tests: New file.
65649         * tests/test-mbsrchr.sh: New file.
65650         * tests/test-mbsrchr.c: New file.
65651
65652 2007-02-11  Bruno Haible  <bruno@clisp.org>
65653
65654         * lib/mbschr.c (mbschr): Fix bug.
65655
65656         * modules/mbschr-tests: New file.
65657         * tests/test-mbschr.sh: New file.
65658         * tests/test-mbschr.c: New file.
65659         * m4/locale-zh.m4: New file.
65660
65661 2007-02-11  Bruno Haible  <bruno@clisp.org>
65662
65663         Support for copying multibyte string iterators.
65664         * lib/mbiter.h: Include <string.h>.
65665         (mbiter_multi_copy): New function.
65666         (mbi_copy): New macro.
65667         * lib/mbuiter.h: Include <string.h>.
65668         (mbuiter_multi_copy): New function.
65669         (mbui_copy): New macro.
65670
65671 2007-02-11  Bruno Haible  <bruno@clisp.org>
65672
65673         New module mbslen.
65674         * modules/mbslen: New file.
65675         * lib/mbslen.c: New file.
65676         * lib/string_.h (mbslen): New declaration.
65677         * m4/mbslen.m4: New file.
65678         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65679         GNULIB_MBSLEN.
65680         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
65681         * MODULES.html.sh (Internationalization functions): Add mbslen.
65682
65683 2007-02-11  Bruno Haible  <bruno@clisp.org>
65684
65685         Ensure O(n) worst-case complexity of strcasestr substitute.
65686         * lib/strcasestr.c: Include stdbool.h.
65687         (knuth_morris_pratt): New function.
65688         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65689         bookkeeping indicates that it's worth it.
65690         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
65691
65692         * modules/strcasestr-tests: New file.
65693         * tests/test-strcasestr.c: New file.
65694
65695 2007-02-11  Bruno Haible  <bruno@clisp.org>
65696
65697         Ensure O(n) worst-case complexity of c_strcasestr.
65698         * lib/c-strcasestr.c: Include stdbool.h, string.h.
65699         (knuth_morris_pratt): New function.
65700         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
65701         the bookkeeping indicates that it's worth it.
65702         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
65703
65704         * modules/c-strcasestr-tests: New file.
65705         * tests/test-c-strcasestr.c: New file.
65706
65707 2007-02-11  Bruno Haible  <bruno@clisp.org>
65708
65709         Ensure O(n) worst-case complexity of c_strstr.
65710         * lib/c-strstr.c: Include stdbool.h, string.h.
65711         (knuth_morris_pratt): New function.
65712         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65713         bookkeeping indicates that it's worth it.
65714         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
65715
65716         * lib/c-strstr.c: Complete rewrite for maintainability.
65717
65718         * modules/c-strstr-tests: New file.
65719         * tests/test-c-strstr.c: New file.
65720
65721 2007-02-11  Bruno Haible  <bruno@clisp.org>
65722
65723         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
65724         5.2.1 and earlier, whereby \055 was treated just like the range
65725         delimiter '-'.
65726         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65727
65728 2007-02-08  Bruno Haible  <bruno@clisp.org>
65729
65730         * modules/regex (Depends-on): Add stdbool.
65731         Reported by Dalibor Topic <robilad@kaffe.org>.
65732
65733 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65734
65735         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
65736         Prefer returning from main to exiting from it.
65737         Remove unnecessary parens after sizeof.
65738
65739 2007-02-05  Bruno Haible  <bruno@clisp.org>
65740
65741         New module mbssep.
65742         * modules/mbssep: New file.
65743         * lib/mbssep.c: New file.
65744         * lib/string_.h (strsep): Add a conditional link warning.
65745         (mbssep): New declaration.
65746         * m4/mbssep.m4: New file.
65747         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65748         GNULIB_MBSSEP.
65749         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
65750         * MODULES.html.sh (Internationalization functions): Add mbssep.
65751
65752 2007-02-05  Bruno Haible  <bruno@clisp.org>
65753
65754         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
65755         Optimize search in case of 1 delimiter.
65756
65757 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65758
65759         * lib/acl.h: Include sys/types.h before sys/acl.h.
65760
65761 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65762
65763         Merge upstream fix for glibc bugzilla #3957:
65764
65765         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
65766
65767         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
65768         bit for RE_HAT_LISTS_NOT_NEWLINE.
65769         (build_charclass_op): Remove bogus comment.
65770
65771 2007-02-05  Simon Josefsson  <simon@josefsson.org>
65772
65773         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
65774
65775 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65776
65777         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
65778         * lib/memmem.c [!defined _LIBC]: Include config.h.
65779
65780 2007-02-04  Bruno Haible  <bruno@clisp.org>
65781
65782         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
65783         warning message.
65784
65785 2007-02-04  Bruno Haible  <bruno@clisp.org>
65786
65787         New module mbstok_r.
65788         * modules/mbstok_r: New file.
65789         * lib/mbstok_r.c: New file.
65790         * lib/string_.h (strtok_r): Change argument names to match the
65791         comments. Add a conditional link warning.
65792         (mbstok_r): New declaration.
65793         * m4/mbstok_r.m4: New file.
65794         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65795         GNULIB_MBSTOK_R.
65796         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
65797         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
65798
65799 2007-02-04  Bruno Haible  <bruno@clisp.org>
65800
65801         New module mbsspn.
65802         * modules/mbsspn: New file.
65803         * lib/mbsspn.c: New file.
65804         * lib/string_.h (strspn): Add a conditional link warning.
65805         (mbsspn): New declaration.
65806         * m4/mbsspn.m4: New file.
65807         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65808         GNULIB_MBSSPN.
65809         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
65810         * MODULES.html.sh (Internationalization functions): Add mbsspn.
65811
65812 2007-02-04  Bruno Haible  <bruno@clisp.org>
65813
65814         New module mbspbrk.
65815         * modules/mbspbrk: New file.
65816         * lib/mbspbrk.c: New file.
65817         * lib/string_.h (strpbrk): Add a conditional link warning.
65818         (mbspbrk): New declaration.
65819         * m4/mbspbrk.m4: New file.
65820         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65821         GNULIB_MBSPBRK.
65822         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
65823         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
65824
65825 2007-02-04  Bruno Haible  <bruno@clisp.org>
65826
65827         New module mbscspn.
65828         * modules/mbscspn: New file.
65829         * lib/mbscspn.c: New file.
65830         * lib/string_.h (strcspn): Add a conditional link warning.
65831         (mbscspn): New declaration.
65832         * m4/mbscspn.m4: New file.
65833         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65834         GNULIB_MBSCSPN.
65835         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
65836         * MODULES.html.sh (Internationalization functions): Add mbscspn.
65837
65838 2007-02-04  Bruno Haible  <bruno@clisp.org>
65839
65840         New module mbscasestr, reduced goal of strcasestr.
65841         * modules/mbscasestr: New file.
65842         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
65843         (mbscasestr): Renamed from strcasestr.
65844         * lib/strcasestr.c: Don't include mbuiter.h.
65845         (strcasestr): Remove support for multibyte locales.
65846         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
65847         Change the conditional link warning.
65848         (mbscasestr): New declaration.
65849         * m4/mbscasestr.m4: New file.
65850         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
65851         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
65852         REPLACE_STRCASESTR.
65853         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
65854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65855         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65856         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
65857         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
65858         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65859         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
65860         (Depends-on): Remove mbuiter.
65861         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
65862
65863 2007-02-04  Bruno Haible  <bruno@clisp.org>
65864
65865         Simplify handling of strncasecmp.
65866         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
65867         the conditional link warning.
65868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65869         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
65870         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
65871         * modules/strcase (configure.ac): Don't invoke
65872         gl_STRING_MODULE_INDICATOR.
65873         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
65874
65875 2007-02-04  Bruno Haible  <bruno@clisp.org>
65876
65877         New module mbscasecmp, reduced goal of strcasecmp.
65878         * modules/mbscasecmp: New file.
65879         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
65880         (mbscasecmp): Renamed from strcasecmp.
65881         * lib/strcasecmp.c: Don't include mbuiter.h.
65882         (strcasecmp): Remove support for multibyte locales.
65883         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
65884         Change the conditional link warning.
65885         (mbscasecmp): New declaration.
65886         * m4/mbscasecmp.m4: New file.
65887         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
65888         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
65889         REPLACE_STRCASECMP.
65890         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
65891         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65892         GNULIB_MBSCASECMP.
65893         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
65894         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
65895         * modules/strcase (Files): Remove m4/mbrtowc.m4.
65896         (Depends-on): Remove mbuiter.
65897         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
65898
65899 2007-02-04  Bruno Haible  <bruno@clisp.org>
65900
65901         New module mbsstr. Remove module strstr.
65902         * modules/mbsstr: New file.
65903         * modules/strstr: Remove file.
65904         * lib/mbsstr.c: Renamed from lib/strstr.c.
65905         (mbsstr): Renamed from strstr.
65906         * lib/string_.h (strstr): Remove declaration. Change the conditional
65907         link warning.
65908         (mbsstr): New declaration.
65909         * m4/mbsstr.m4: New file.
65910         * m4/strstr.m4: Remove file.
65911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65912         REPLACE_STRSTR.
65913         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
65914         Don't initialize GNULIB_STRSTR.
65915         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
65916         substitute GNULIB_STRSTR and REPLACE_STRSTR.
65917         * MODULES.html.sh (Internationalization functions): Add mbsstr.
65918         (Support for systems lacking ANSI C 89): Remove strstr.
65919
65920 2007-02-04  Bruno Haible  <bruno@clisp.org>
65921
65922         New module mbsrchr.
65923         * modules/mbsrchr: New file.
65924         * lib/mbsrchr.c: New file.
65925         * lib/string_.h (strrchr): Add a conditional link warning.
65926         (mbsrchr): New declaration.
65927         * m4/mbsrchr.m4: New file.
65928         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65929         GNULIB_MBSRCHR.
65930         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
65931         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
65932
65933 2007-02-04  Bruno Haible  <bruno@clisp.org>
65934
65935         New module mbschr.
65936         * modules/mbschr: New file.
65937         * lib/mbschr.c: New file.
65938         * lib/string_.h (strchr): Add a conditional link warning.
65939         (mbschr): New declaration.
65940         * m4/mbschr.m4: New file.
65941         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65942         GNULIB_MBSCHR.
65943         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
65944         * MODULES.html.sh (Internationalization functions): Add mbschr.
65945
65946 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65947
65948         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
65949
65950         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
65951
65952 2007-02-04  Bruno Haible  <bruno@clisp.org>
65953
65954         New module description section 'configure.ac-early'.
65955         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
65956         (func_get_autoconf_early_snippet): New function.
65957         (func_import, func_create_testdir): Use it. Remove special cases for
65958         modules 'extensions' and 'lock'.
65959         * modules/extensions (configure.ac-early): Require
65960         gl_USE_SYSTEM_EXTENSIONS.
65961         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
65962
65963 2007-02-04  Bruno Haible  <bruno@clisp.org>
65964
65965         Make use of gcj-4.3's -fsource and -ftarget option.
65966         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
65967         and if so try the options -fsource and -ftarget.
65968         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
65969         source_version, ftarget_option, target_version arguments.
65970         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
65971         (is_envjavac_oldgcj_14_14_usable): Renamed from
65972         is_envjavac_gcj_14_14_usable.
65973         (is_envjavac_oldgcj_14_13_usable): Renamed from
65974         is_envjavac_gcj_14_13_usable.
65975         (is_gcj_present): Update.
65976         (is_gcj_43, is_gcj43_usable): New functions.
65977         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
65978         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
65979         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
65980         try the options -fsource and -ftarget.
65981
65982 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65983
65984         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
65985         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
65986         larger value.
65987
65988 2007-02-03  Jim Meyering  <jim@meyering.net>
65989
65990         Give tools a better chance to allocate space for very large buffers.
65991         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
65992
65993         Make pwd and readlink work also when run with an unreadable parent dir
65994         on systems with openat support.
65995         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
65996         provided getcwd function, even when we have openat support.
65997         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
65998
65999 2007-02-02  Bruno Haible  <bruno@clisp.org>
66000
66001         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66002         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
66003         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
66004         portability problems if one of these functions is only used on specific
66005         platforms.
66006         Reported by Paul Eggert.
66007
66008 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
66009
66010         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
66011         is causing more trouble than it's curing.
66012         * lib/regex_internal.h (__mempcpy): Remove.
66013         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
66014         (and make the code a tad smaller to boot).
66015         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
66016
66017 2007-02-02  Jim Meyering  <jim@meyering.net>
66018
66019         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
66020         section, not in the Makefile.am: one.
66021
66022 2007-02-02  Eric Blake  <ebb9@byu.net>
66023
66024         * lib/strchrnul.c: Always include config.h first.
66025
66026         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
66027         gnulib strstr is not necessary here.
66028
66029 2007-02-02  Simon Josefsson  <simon@josefsson.org>
66030
66031         * m4/socklen.m4: Fix typo.
66032
66033 2007-02-02  Eric Blake  <ebb9@byu.net>
66034
66035         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
66036         * modules/netinet_in (Makefile.am): Likewise.
66037
66038 2007-02-01  Bruno Haible  <bruno@clisp.org>
66039
66040         * lib/string_.h (GL_LINK_WARNING): New macro.
66041         (strcasecmp, strstr, strcasestr): If provided by the system,
66042         conditionally define as a macro that leads to a warning instead of to
66043         an error.
66044         (strncasecmp): Conditionally define as a macro that leads to a warning.
66045
66046 2007-02-01  Karl Berry  <karl@gnu.org>
66047
66048         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
66049
66050 2007-02-01  Bruno Haible  <bruno@clisp.org>
66051
66052         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
66053         renamings.
66054
66055 2007-02-01  Eric Blake  <ebb9@byu.net>
66056
66057         * modules/regex (Depends-on): Revert dependence on mempcpy.
66058         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
66059         module's definition of mempcpy.
66060         Reported by Paul Eggert.
66061
66062 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66063
66064         * lib/string_.h: If the gnulib module XYZ is not present, undefine
66065         the symbol XYZ before redefining it.  This fixes a problem with
66066         programs that don't use XYZ, when compiled on systems that define
66067         XYZ to something else.
66068
66069 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
66070
66071         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
66072         occurs when "mkdir -m foo" creates a setgid directory that is (1)
66073         writeable to group or other and (2) is intended to have a special
66074         mode bit that is set or cleared.  In such a case, the directory
66075         should be neither group- nor other-writeable until the special
66076         mode bits are right.
66077
66078 2007-01-31  Eric Blake  <ebb9@byu.net>
66079
66080         * modules/mountlist (Depends-on): Add strstr.
66081
66082         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
66083         bug.
66084         * modules/string (Makefile.am): Remove redundant replacement.
66085         * modules/regex (Depends-on): Add mempcpy.
66086
66087 2007-01-31  Bruno Haible  <bruno@clisp.org>
66088
66089         New module description field 'Link'.
66090         * gnulib-tool (func_usage): Document --extract-link-directive.
66091         (sed_extract_prog): Recognize 'Link' directive.
66092         (func_get_link_directive): New function.
66093         (func_import): Show summary of link directives.
66094         Handle --extract-link-directive option.
66095         * modules/acl (Link): New section.
66096         * modules/clock-time (Link): New section.
66097         * modules/euidaccess (Link): New section.
66098         * modules/gettext (Link): New section.
66099         * modules/iconv (Link): New section.
66100         * modules/lock (Link): New section.
66101         * modules/nanosleep (Link): New section.
66102         * modules/readline (Link): New section.
66103
66104 2007-01-27  Bruno Haible  <bruno@clisp.org>
66105
66106         Enforce the use of gnulib modules for unportable <string.h> functions.
66107         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
66108         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
66109         (gl_HEADER_STRING_H_BODY): Require it.
66110         * lib/string_.h: If the gnulib module XYZ is not present, redefine
66111         the symbol XYZ to one that gives a link error.
66112         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
66113         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
66114         * modules/mempcpy (configure.ac): Likewise.
66115         * modules/memrchr (configure.ac): Likewise.
66116         * modules/stpcpy (configure.ac): Likewise.
66117         * modules/stpncpy (configure.ac): Likewise.
66118         * modules/strcase (configure.ac): Likewise.
66119         * modules/strcasestr (configure.ac): Likewise.
66120         * modules/strchrnul (configure.ac): Likewise.
66121         * modules/strdup (configure.ac): Likewise.
66122         * modules/strndup (configure.ac): Likewise.
66123         * modules/strnlen (configure.ac): Likewise.
66124         * modules/strpbrk (configure.ac): Likewise.
66125         * modules/strsep (configure.ac): Likewise.
66126         * modules/strstr (configure.ac): Likewise.
66127         * modules/strtok_r (configure.ac): Likewise.
66128
66129 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
66130
66131         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
66132
66133 2007-01-30  Jim Meyering  <jim@meyering.net>
66134
66135         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
66136
66137 2007-01-29  Bruno Haible  <bruno@clisp.org>
66138
66139         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
66140         * lib/execute.c: Likewise.
66141         * lib/pipe.c: Likewise.
66142         * lib/printf-args.h: Likewise.
66143         * lib/printf-args.c: Likewise.
66144         * lib/printf-parse.c: Likewise.
66145         * lib/vasnprintf.c: Likewise.
66146
66147 2007-01-29  Eric Blake  <ebb9@byu.net>
66148
66149         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
66150         declaration.
66151
66152 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
66153
66154         * lib/strptime.h (strptime): Use 'restrict' for args where
66155         POSIX requires this.
66156         * lib/strptime.c (strptime): Likewise.
66157         Change license notice from LGPL to GPL, since gnulib-tool will
66158         change this as needed.
66159         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
66160         defined.
66161         Include "strptime.h" first, to check interface.
66162         Do not #undef _LIBC and _NL_CURRENT.
66163         Do not include <stdlib.h>; no longer needed.
66164         Include "time_r.h" and declare ptime_locale_status
66165         only if _LIBC is not defined.
66166         (__P): Remove unused macro.
66167         (match_string): Bring back glibc version, but use it only if _LIBC
66168         is defined.
66169         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
66170         Remove unnecessary assertion and abort() call.
66171         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
66172         * m4/strptime.m4: Fix serial number comment.
66173         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
66174         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
66175         (Depends-on): Add time_r.
66176
66177 2007-01-29  Bruno Haible  <bruno@clisp.org>
66178
66179         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66180         strptime.
66181         * modules/strptime (Depends-on): Add stdbool.
66182         * lib/strptime.h: Include <time.h> always. Add comments.
66183
66184 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66185
66186         * modules/strptime: New file.
66187         * lib/strptime.h: New file.
66188         * lib/strptime.c: New file.
66189         * m4/strptime.m4: New file.
66190
66191 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66192
66193         * MODULES.html.sh: New module mpsort.
66194         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
66195
66196         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
66197         a circularity problem with HP-UX ia64 reported by Bob Proulx in
66198         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
66199         All uses changed.
66200         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
66201         All uses changed.
66202         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
66203         to _Restrict_.
66204         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
66205         the parameter matches the prototype.
66206
66207 2007-01-28  Jim Meyering  <jim@meyering.net>
66208
66209         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
66210         sys/time.h here, reverting that part of the previous patch:
66211         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
66212
66213 2007-01-28  Bruno Haible  <bruno@clisp.org>
66214
66215         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
66216         value of $(SYS_TIME_H).
66217         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
66218         remove it conditionally, too. [added by Jim Meyering]
66219         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
66220         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66221         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
66222         GETTIMEOFDAY_REPLACEMENT to 1.
66223
66224 2007-01-28  Bruno Haible  <bruno@clisp.org>
66225
66226         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
66227         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
66228         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
66229         Set UNISTD_H instead of UNISTD_H2.
66230         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
66231
66232 2007-01-28  Bruno Haible  <bruno@clisp.org>
66233
66234         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
66235         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
66236
66237 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66238
66239         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
66240         (func_create_testdir): Ensure C locale for `grep' and `tr'
66241         character ranges.
66242         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
66243         ACLOCAL_AMFLAGS parsing state machine.
66244
66245 2007-01-27  Bruno Haible  <bruno@clisp.org>
66246
66247         * modules/unistr/base: Update.
66248
66249 2007-01-27  Bruno Haible  <bruno@clisp.org>
66250
66251         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
66252         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
66253         * modules/unistr/u32-mbtouc-unsafe: Renamed from
66254         modules/unistr/u32-mbtouc.
66255         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
66256         * lib/unistr.h: Update.
66257         * lib/linebreak.c: Update.
66258         * modules/unistr/u32-mbtouc: Renamed from
66259         modules/unistr/u32-mbtouc-safe.
66260         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
66261         * lib/unistr.h: Update.
66262         * lib/unistr/u32-to-u8.c: Update.
66263         * lib/unistr/u32-to-u16.c: Update.
66264
66265 2007-01-27  Bruno Haible  <bruno@clisp.org>
66266
66267         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
66268         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
66269         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
66270         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
66271         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
66272         * modules/unistr/u16-mbtouc-unsafe: Renamed from
66273         modules/unistr/u16-mbtouc.
66274         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
66275         * lib/unistr.h: Update.
66276         * lib/linebreak.c: Update.
66277         * modules/linebreak: Update.
66278         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
66279         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
66280         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
66281         * modules/unistr/u16-mbtouc: Renamed from
66282         modules/unistr/u16-mbtouc-safe.
66283         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
66284         * lib/unistr.h: Update.
66285         * lib/unistr/u16-to-u8.c: Update.
66286         * modules/unistr/u16-to-u8: Update.
66287         * lib/unistr/u16-to-u32.c: Update.
66288         * modules/unistr/u16-to-u32: Update.
66289
66290 2007-01-27  Bruno Haible  <bruno@clisp.org>
66291
66292         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
66293         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
66294         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
66295         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
66296         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
66297         * modules/unistr/u8-mbtouc-unsafe: Renamed from
66298         modules/unistr/u8-mbtouc.
66299         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
66300         * lib/unistr.h: Update.
66301         * lib/striconveh.c: Update.
66302         * modules/striconveh: Update.
66303         * lib/linebreak.c: Update.
66304         * modules/linebreak: Update.
66305         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
66306         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
66307         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
66308         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
66309         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
66310         * lib/unistr.h: Update.
66311         * lib/striconveh.c: Update.
66312         * modules/striconveh: Update.
66313         * lib/unistr/u8-to-u16.c: Update.
66314         * modules/unistr/u8-to-u16: Update.
66315         * lib/unistr/u8-to-u32.c: Update.
66316         * modules/unistr/u8-to-u32: Update.
66317
66318 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66319
66320         Sync from Libtool.
66321         * lib/argz.c: Do not include strings.h nor memory.h, include
66322         string.h unconditionally.  Patch by Simon Josefsson.
66323
66324 2007-01-27  Bruno Haible  <bruno@clisp.org>
66325
66326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
66327         from gl_HEADER_STRING_H_BODY.
66328         (gl_HEADER_STRING_H_BODY): Require it.
66329         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
66330         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66331         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66332         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66333         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66334         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
66335         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66336         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66337         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
66338         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66339         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66340         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
66341         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66342         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
66343         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66344
66345 2007-01-27  Bruno Haible  <bruno@clisp.org>
66346
66347         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
66348         check_PROGRAMS into noinst_PROGRAMS.
66349         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
66350         check_PROGRAMS in this case.
66351         (func_import): Set for_test to false.
66352         (func_create_testdir): Set for_test to true.
66353
66354 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66355             Bruno Haible  <bruno@clisp.org>
66356
66357         * modules/strcasestr (Files): Remove lib/strcasestr.h.
66358         (Depends-on): Add string.
66359         (Includes): Use <string.h> instead of strcasestr.h.
66360         * modules/string (Makefile.am): Also substitute the value of
66361         REPLACE_STRCASESTR.
66362         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
66363         assume strcasestr is declared in <string.h> not <strings.h>. Also
66364         set REPLACE_STRCASESTR.
66365         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
66366         REPLACE_STRCASESTR.
66367         * lib/strcasestr.h: Remove file.
66368         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
66369         * lib/string_.h (strcasestr): New declaration.
66370
66371 2007-01-27  Bruno Haible  <bruno@clisp.org>
66372
66373         * lib/string_.h: Use 'extern'.
66374
66375 2007-01-27  Jim Meyering  <jim@meyering.net>
66376
66377         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
66378         of set-but-not-used local, "q".
66379
66380         * lib/mempcpy.c: Include <config.h> before <string.h>.
66381         This fixes a compilation error on HP-UX, due to the system's
66382         "restrict"-using mempcpy prototype.
66383
66384 2007-01-26  Bruno Haible  <bruno@clisp.org>
66385
66386         Small optimization.
66387         * lib/javacomp.c: Include c-strstr.h.
66388          (is_envjavac_gcj): Use c_strstr instead of strstr.
66389         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
66390
66391 2007-01-26  Bruno Haible  <bruno@clisp.org>
66392
66393         * MODULES.html.sh (Unicode string functions): Add the new modules.
66394
66395         * modules/uniconv/u32-strconv-to-locale: New file.
66396         * lib/uniconv/u32-strconv-to-locale.c: New file.
66397
66398         * modules/uniconv/u16-strconv-to-locale: New file.
66399         * lib/uniconv/u16-strconv-to-locale.c: New file.
66400
66401         * modules/uniconv/u8-strconv-to-locale: New file.
66402         * lib/uniconv/u8-strconv-to-locale.c: New file.
66403
66404         * modules/uniconv/u32-strconv-from-locale: New file.
66405         * lib/uniconv/u32-strconv-from-locale.c: New file.
66406
66407         * modules/uniconv/u16-strconv-from-locale: New file.
66408         * lib/uniconv/u16-strconv-from-locale.c: New file.
66409
66410         * modules/uniconv/u8-strconv-from-locale: New file.
66411         * lib/uniconv/u8-strconv-from-locale.c: New file.
66412
66413         * modules/uniconv/u32-strconv-to-enc: New file.
66414         * lib/uniconv/u32-strconv-to-enc.c: New file.
66415         * modules/uniconv/u32-strconv-to-enc-tests: New file.
66416         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
66417
66418         * modules/uniconv/u16-strconv-to-enc: New file.
66419         * lib/uniconv/u16-strconv-to-enc.c: New file.
66420         * lib/uniconv/u-strconv-to-enc.h: New file.
66421         * modules/uniconv/u16-strconv-to-enc-tests: New file.
66422         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
66423
66424         * modules/uniconv/u8-strconv-to-enc: New file.
66425         * lib/uniconv/u8-strconv-to-enc.c: New file.
66426         * modules/uniconv/u8-strconv-to-enc-tests: New file.
66427         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
66428
66429         * modules/uniconv/u32-strconv-from-enc: New file.
66430         * lib/uniconv/u32-strconv-from-enc.c: New file.
66431         * modules/uniconv/u32-strconv-from-enc-tests: New file.
66432         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
66433
66434         * modules/uniconv/u16-strconv-from-enc: New file.
66435         * lib/uniconv/u16-strconv-from-enc.c: New file.
66436         * modules/uniconv/u16-strconv-from-enc-tests: New file.
66437         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
66438
66439         * modules/uniconv/u8-strconv-from-enc: New file.
66440         * lib/uniconv/u8-strconv-from-enc.c: New file.
66441         * lib/uniconv/u-strconv-from-enc.h: New file.
66442         * modules/uniconv/u8-strconv-from-enc-tests: New file.
66443         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
66444
66445         * modules/uniconv/u32-conv-from-enc: New file.
66446         * lib/uniconv/u32-conv-from-enc.c: New file.
66447         * modules/uniconv/u32-conv-from-enc-tests: New file.
66448         * tests/uniconv/test-u32-conv-from-enc.c: New file.
66449
66450         * modules/uniconv/u16-conv-from-enc: New file.
66451         * lib/uniconv/u16-conv-from-enc.c: New file.
66452         * lib/uniconv/u-conv-from-enc.h: New file.
66453         * modules/uniconv/u16-conv-from-enc-tests: New file.
66454         * tests/uniconv/test-u16-conv-from-enc.c: New file.
66455
66456         * modules/uniconv/u8-conv-from-enc: New file.
66457         * lib/uniconv/u8-conv-from-enc.c: New file.
66458         * modules/uniconv/u8-conv-from-enc-tests: New file.
66459         * tests/uniconv/test-u8-conv-from-enc.c: New file.
66460
66461         * modules/uniconv/base: New file.
66462         * lib/uniconv.h: New file.
66463
66464 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66465
66466         * doc/gnulib-tool.texi (Initial import): Update to match current
66467         behavior with strdup module.
66468         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
66469         * lib/memmem.h: Remove; all uses removed.  This is now done
66470         by <string.h>.
66471         * lib/mempcpy.h: Likewise.
66472         * lib/memrchr.h: Likewise.
66473         * lib/stpcpy.h: Likewise.
66474         * lib/stpncpy.h: Likewise.
66475         * lib/strcase.h: Likewise.
66476         * lib/strchrnul.h: Likewise.
66477         * lib/strdup.h: Likewise.
66478         * lib/strndup.h: Likewise.
66479         * lib/strnlen.h: Likewise.
66480         * lib/strpbrk.h: Likewise.
66481         * lib/strsep.h: Likewise.
66482         * lib/strstr.h: Likewise.
66483         * lib/strtok_r.h: Likewise.
66484         * lib/string_.h: New file.
66485         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
66486         Rely on <string.h> instead.
66487         * lib/canon-host.c: Likewise.
66488         * lib/chdir-long.c: Likewise.
66489         * lib/concatpath.c: Likewise.
66490         * lib/exclude.c: Likewise.
66491         * lib/fchdir.c: Likewise.
66492         * lib/getaddrinfo.c: Likewise.
66493         * lib/getcwd.c: Likewise.
66494         * lib/getsubopt.c: Likewise.
66495         * lib/glob.c: Likewise.
66496         * lib/hard-locale.c: Likewise.
66497         * lib/iconvme.c: Likewise.
66498         * lib/javacomp.c: Likewise.
66499         * lib/mempcpy.c: Likewise.
66500         * lib/memrchr.c: Likewise.
66501         * lib/regex_internal.h: Likewise.
66502         * lib/stpncpy.c: Likewise.
66503         * lib/strcasecmp.c: Likewise.
66504         * lib/strchrnul.c: Likewise.
66505         * lib/strdup.c: Likewise.
66506         * lib/striconv.c: Likewise.
66507         * lib/striconveh.c: Likewise.
66508         * lib/striconveha.c: Likewise.
66509         * lib/strncasecmp.c: Likewise.
66510         * lib/strndup.c: Likewise.
66511         * lib/strnlen.c: Likewise.
66512         * lib/strsep.c: Likewise.
66513         * lib/strstr.c: Likewise.
66514         * lib/strtok_r.c: Likewise.
66515         * lib/userspec.c: Likewise.
66516         * lib/w32spawn.h: Likewise.
66517         * lib/xstrndup.c: Likewise.
66518         * lib/mountlist.c (strstr): Remove decl.
66519         * m4/string_h.m4: New file.
66520         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
66521         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
66522         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
66523         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
66524         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
66525         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
66526         Set REPLACE_STRCASECMP if necessary.
66527         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
66528         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
66529         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
66530         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
66531         HAVE_DECL_STRDUP if necessary.
66532         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
66533         since gl_FUNC_STRNDUP does that now.
66534         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
66535         Check for decl here...
66536         (gl_PREREQ_STRNLEN): ... not here.
66537         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
66538         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
66539         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
66540         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
66541         necessary.
66542         * modules/string: New file.
66543         * modules/memmem (Files): Remove special-purpose include file.
66544         (Depends-on): Add string.
66545         (Include): Include <string.h>, not the removed file.
66546         * modules/mempcpy: Likewise.
66547         * modules/memrchr: Likewise.
66548         * modules/stpcpy: Likewise.
66549         * modules/stpncpy: Likewise.
66550         * modules/strcase: Likewise.
66551         * modules/strchrnul: Likewise.
66552         * modules/strdup: Likewise.
66553         * modules/strndup: Likewise.
66554         * modules/strnlen: Likewise.
66555         * modules/strpbrk: Likewise.
66556         * modules/strsep: Likewise.
66557         * modules/strstr: Likewise.
66558         * modules/strtok_r: Likewise.
66559         * tests/test-dirname.c: Don't include "strdup.h", since
66560         <string.h> now suffices.
66561         * tests/test-memmem.c: Don't include "memmem.h", since
66562         <string.h> now suffices.
66563
66564 2007-01-25  Bruno Haible  <bruno@clisp.org>
66565
66566         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
66567         *resultp is 0.
66568
66569         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
66570         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
66571         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
66572         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
66573
66574         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
66575         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
66576         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
66577         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
66578         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
66579         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
66580
66581 2007-01-24  Bruno Haible  <bruno@clisp.org>
66582
66583         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
66584         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
66585         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
66586         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
66587         gl_FUNC_FTS_CORE.
66588         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
66589         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
66590         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66591         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
66592         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
66593         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
66594         gl_FUNC_FCHOWNAT.
66595         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
66596         gl_FUNC_STRFTIME.
66597         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
66598         Reported by Ralf Wildenhues.
66599
66600 2007-01-24  Bruno Haible  <bruno@clisp.org>
66601
66602         Drop AC_REQUIRE calls that are redundant with the module dependencies.
66603         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
66604         gl_GETADDRINFO.
66605         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
66606         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
66607         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
66608
66609 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
66610
66611         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
66612         Don't use 'exit'; just return from 'main'.
66613         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
66614
66615         * lib/fnmatch_.h: Readjust white space and comments to match
66616         glibc, to avoid spurious diffs.
66617
66618 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66619
66620         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
66621         2004-12-01 change by Jakub Jelinek, since this code won't compile
66622         if !LIBC.  Problem reported by Bob Proulx.
66623
66624 2007-01-23  Bruno Haible  <bruno@clisp.org>
66625
66626         * lib/striconveh.c: Include c-strcaseeq.h.
66627         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
66628         * modules/striconveh (Depends-on): Add c-strcaseeq.
66629
66630 2007-01-23  Bruno Haible  <bruno@clisp.org>
66631
66632         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
66633
66634         * modules/c-strcaseeq: New file.
66635         * lib/c-strcaseeq.h: New file.
66636
66637         * modules/streq: New file.
66638         * lib/streq.h: New file.
66639
66640 2007-01-23  Bruno Haible  <bruno@clisp.org>
66641
66642         * modules/striconveha-tests: New file.
66643         * tests/test-striconveha.c: New file.
66644
66645         * lib/striconveha.h: Include <stdbool.h>.
66646         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
66647         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
66648         (mem_iconveha_notranslit): Renamed from mem_iconveha.
66649         (mem_iconveha): New function.
66650         (str_iconveha_notranslit): Renamed from str_iconveha.
66651         (str_iconveha): New function.
66652         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
66653         c-strcase.
66654
66655 2007-01-23  Bruno Haible  <bruno@clisp.org>
66656
66657         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
66658         encodings without forgiving before trying any encoding with handler.
66659         (str_iconveha): Try all encodings without forgiving before trying any
66660         encoding with handler.
66661
66662 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66663
66664         Import the following changes from libc.
66665
66666         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66667
66668         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
66669
66670         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66671
66672         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
66673         normal_bracket label.
66674
66675         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
66676
66677         [BZ #361]
66678         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
66679         to normal_bracket after fetching the next character.
66680
66681 2007-01-22  Bruno Haible  <bruno@clisp.org>
66682
66683         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
66684         argument.
66685         * lib/striconveh.c (iconv_carefully_1): New function.
66686         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
66687         argument.
66688         (str_cd_iconveh): Update.
66689         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
66690         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
66691         * tests/test-striconveh.c (MAGIC): New macro.
66692         (new_offsets): New function.
66693         (main): Test call with and without offsets.
66694
66695 2007-01-22  Bruno Haible  <bruno@clisp.org>
66696
66697         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
66698         * modules/sys_select (Makefile.am): Likewise.
66699         * modules/sys_socket (Makefile.am): Likewise.
66700         * modules/sys_time (Makefile.am): Likewise.
66701
66702 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66703
66704         * modules/gettimeofday (License): Change from GPL to LGPL, since
66705         gettimeofday is a library function.
66706
66707 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66708
66709         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
66710
66711 2007-01-21  Bruno Haible  <bruno@clisp.org>
66712
66713         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
66714
66715 2007-01-21  Bruno Haible  <bruno@clisp.org>
66716
66717         * modules/striconveha: New file.
66718         * lib/striconveha.h: New file.
66719         * lib/striconveha.c: New file.
66720         * MODULES.html.sh (Internationalization functions): Add striconveha.
66721         * lib/striconv.c (str_iconv): Optimize the case of an empty input
66722         string.
66723         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
66724
66725 2007-01-21  Bruno Haible  <bruno@clisp.org>
66726
66727         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
66728         * lib/striconveh.c (str_iconveh): Likewise.
66729
66730 2007-01-21  Bruno Haible  <bruno@clisp.org>
66731
66732         * lib/striconveh.h (mem_iconveh): New declaration.
66733         * lib/striconveh.c (mem_iconveh): New function.
66734         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
66735
66736 2007-01-21  Bruno Haible  <bruno@clisp.org>
66737
66738         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
66739
66740         * lib/striconveh.h (mem_cd_iconveh): Change specification.
66741         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
66742         original result buffer.
66743         (str_cd_iconveh): Update.
66744         * tests/test-striconveh.c (main): Update.
66745
66746         * lib/striconv.h (mem_cd_iconv): Change specification.
66747         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
66748         result buffer.
66749         (str_cd_iconv): Update.
66750         * tests/test-striconv.c (main): Update.
66751
66752 2007-01-21  Bruno Haible  <bruno@clisp.org>
66753
66754         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
66755
66756 2007-01-20  Jim Meyering  <jim@meyering.net>
66757
66758         * lib/userspec.c (parse_with_separator): If a user or group string
66759         starts with "+", skip the corresponding name-to-ID look-up, since
66760         such a look-up must fail: user and group names may not include "+".
66761
66762 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66763
66764         * lib/poll.c: Include sys/time.h and time.h unconditionally,
66765         since we now assume the sys_time module.
66766         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
66767         check for sys/time.h; no longer needed.
66768         * modules/poll (Depends-on): Depend on sys_time.
66769
66770 2007-01-18  Bruno Haible  <bruno@clisp.org>
66771
66772         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
66773         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66774
66775         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
66776         gettimeofday.
66777
66778         * tests/test-gettimeofday.c: Include <time.h>.
66779         (dummy): Remove variable.
66780
66781         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
66782         gl_HEADER_SYS_TIME_H.
66783         (gl_HEADER_SYS_TIME_H): New macro.
66784
66785         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
66786         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66787         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
66788         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
66789         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66790         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
66791         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
66792         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66793         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
66794         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
66795         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66796
66797         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
66798         last change; it caused a compilation error when cross-compiling to
66799         Cygwin.
66800
66801 2007-01-18  Jim Meyering  <jim@meyering.net>
66802
66803         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
66804         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
66805         than the race-prone "test -d sys || mkdir sys".
66806         (configure.ac): Use AC_PROG_MKDIR_P.
66807         * modules/sys_select: Likewise.
66808         * modules/sys_socket: Likewise.
66809         * modules/sys_time: Likewise.
66810
66811 2007-01-18  Eric Blake  <ebb9@byu.net>
66812
66813         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
66814         replace gettimeofday.
66815         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
66816         name, to avoid infinite recursion.
66817
66818 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
66819
66820         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
66821         module sys_time.
66822         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
66823         assume timespec.h defines struct timeval.
66824         * lib/settime.c: Likewise.
66825         * lib/utimens.c: Likewise.
66826         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
66827         since we now assume the gettimeofday module.
66828         * lib/tempname.c (__gen_tempname): Likewise.
66829         * lib/gettimeofday.h: Remove.
66830         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
66831         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
66832         Include <time.h>, for 'time()'.
66833         (localtime_buffer_addr): Also use this workaround if
66834         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
66835         to simplify the uses.  All uses changed.
66836         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
66837         that #undef is inside {}, and 'const' follows type name consistently.
66838         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
66839         (gettimeofday): Do not use the maximum possible value for
66840         tv->tv_usec, since that might break usages other than ls.c.
66841         Instead, we'll leave ls.c alone.  This undoes today's patch
66842         by Bruno.  Add a compile-time warning for 1s-clock resolution;
66843         we've never observed the problem but might as well keep the
66844         canary.
66845         * lib/nanosleep.c: Include timespec.h first, for interface check.
66846         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
66847         now assume the sys_time module.
66848         * lib/tempname.c: Likewise.
66849         * lib/timespec.h: Likewise.
66850         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
66851         needed.
66852         * lib/strftime.c: Likewise.
66853         * lib/timespec.h: Likewise.
66854         * lib/posixtm.c: Include posixtm.h first, for interface check.
66855         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
66856         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
66857         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
66858         * lib/sys_time_.h: New file.
66859         * lib/timespec.h (struct timespec): Use long int, not long.
66860         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66861         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
66862         Remove obsolescent call to AC_HEADER_TIME.
66863         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
66864         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66865         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66866         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
66867         Likewise.
66868         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
66869         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
66870         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
66871         into the sys_time module.  Check for gettimeofday just once.
66872         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
66873         for gettimeofday signature to just check the signature.  Merely
66874         compile it, since linking doesn't test signature.  Improve test for
66875         whether gettimeofday.o is actually needed.
66876         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
66877         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
66878         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
66879         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66880         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
66881         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
66882         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
66883         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
66884         than worrying about sys/time.h.
66885         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66886         Don't bother worrying about TIME_WITH_SYS_TIME.
66887         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
66888         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
66889         * m4/sys_time_h.m4: New file.
66890         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
66891         Don't include sys/time.h.  Return from main rather than exiting.
66892         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
66893         all uses changed.
66894         * modules/gethrxtime (Depends-on): Add sys_time.
66895         * modules/gettime (Depends-on): Likewise.
66896         * modules/gettimeofday (Depends-on): Likewise.
66897         * modules/nanosleep (Depends-on): Likewise.
66898         * modules/settime (Depends-on): Likewise.
66899         * modules/tempname (Depends-on): Likewise.
66900         * modules/utimens (Depends-on): Likewise.
66901         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
66902         (Include): Change back to <sys/time.h>.
66903         (Maintainer): Add self.
66904         * modules/sys_time: New file.
66905         * modules/tempname (Depends-on): Add gettimeofday.
66906         * tests/test-gettimeofday.c: Include <sys/time.h>
66907         rather than gettimeofday.h.
66908
66909 2007-01-17  Bruno Haible  <bruno@clisp.org>
66910
66911         * gnulib-tool (func_get_license): Revert last patch. Instead, let
66912         the license default to GPL.
66913         (func_create_testdir): Don't complain if a module is LGPL and its
66914         tests module depends on GPLed modules.
66915
66916 2007-01-17  Bruno Haible  <bruno@clisp.org>
66917
66918         * lib/gettimeofday.c (gettimeofday): Add code for the case
66919         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
66920         maximum possible value for tv->tv_usec, rather than the minimum one.
66921
66922 2005-10-08  Martin Lambers  <marlam@marlam.de>
66923 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66924 2007-01-16  Bruno Haible  <bruno@clisp.org>
66925
66926         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
66927         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
66928         gl_FUNC_GETTIMEOFDAY.
66929         (Include): Add gettimeofday.h.
66930         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
66931         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
66932         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
66933         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
66934         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
66935         * lib/gettimeofday.h: New file.
66936         * lib/gettimeofday.c: Include <sys/timeb.h>.
66937         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
66938         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66939         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
66940         fall back on time().
66941
66942         * tests/test-gettimeofday.c: New file.
66943         * modules/gettimeofday-tests: New file.
66944
66945 2007-01-16  Eric Blake  <ebb9@byu.net>
66946
66947         * modules/fnmatch (Depends-on): Depend on wchar.
66948         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
66949         * m4/fnmatch.m4: Likewise.
66950         * modules/mbchar (Makefile.am): Assume <wchar.h>.
66951         * m4/mbchar.m4: Likewise.
66952         * modules/mbswidth (Depends-on): Depend on wchar.
66953         * lib/mbswidth.c: Assume <wchar.h>.
66954         * m4/mbswidth.m4: Likewise.
66955         * modules/quotearg (Depends-on): Depend on wchar.
66956         * lib/quotearg.c: Assume <wchar.h>.
66957         * m4/quotearg.m4: Likewise.
66958         * modules/regex (Depends-on): Depend on wchar.
66959         * lib/regex_internal.h: Assume <wchar.h>.
66960         * m4/regex.m4: Likewise.
66961         * modules/stdint (Depends-on): Depend on wchar.
66962         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
66963         * m4/stdint.m4: Likewise.
66964         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
66965         * modules/strftime (Depends-on): Depend on wchar.
66966         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
66967         * modules/strtol (Depends-on): Depend on wchar.
66968         * lib/strtol.c: Assume <wchar.h>.
66969         * modules/wcwidth (Depends-on): Depend on wchar.
66970         * lib/wcwidth.h: Assume <wchar.h>.
66971         * m4/wcwidth.m4: Likewise.
66972
66973 2007-01-16  Bruno Haible  <bruno@clisp.org>
66974
66975         * modules/csharpexec-script: New, created from...
66976         * modules/csharpexec: ... this.
66977
66978 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
66979
66980         * modules/javaexec-script: New, created from...
66981         * modules/javaexec: ... this.
66982
66983 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66984
66985         * modules/poll (Dependencies): Add sys_select.
66986
66987 2007-01-15  Jim Meyering  <jim@meyering.net>
66988
66989         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
66990         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
66991         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
66992         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
66993
66994 2007-01-15  Bruno Haible  <bruno@clisp.org>
66995
66996         * modules/striconveh: New file.
66997         * lib/striconveh.h: New file.
66998         * lib/striconveh.c: New file.
66999         * MODULES.html.sh (Internationalization functions): Add striconveh.
67000
67001         * modules/striconveh-tests: New file.
67002         * tests/test-striconveh.c: New file.
67003
67004 2007-01-15  Bruno Haible  <bruno@clisp.org>
67005
67006         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
67007         not from GNU libiconv or GNU libc.
67008
67009 2007-01-15  Bruno Haible  <bruno@clisp.org>
67010
67011         * doc/gnulib-intro.texi (Copyright): Explain the different license
67012         terms for module descriptions, autoconf macros, tests, documentation.
67013
67014 2007-01-14  Bruno Haible  <bruno@clisp.org>
67015
67016         * modules/striconv-tests: New file.
67017         * tests/test-striconv.c: New file.
67018
67019 2007-01-14  Bruno Haible  <bruno@clisp.org>
67020
67021         * modules/iconv-tests: New file.
67022         * tests/test-iconv.c: New file.
67023
67024 2007-01-14  Bruno Haible  <bruno@clisp.org>
67025
67026         * gnulib-tool (func_get_license): For test modules, use the license of
67027         the main module.
67028
67029 2007-01-14  Bruno Haible  <bruno@clisp.org>
67030
67031         * modules/iconv (Include): Clarify that <iconv.h> can only be included
67032         if iconv is found to exist.
67033
67034 2007-01-14  Bruno Haible  <bruno@clisp.org>
67035
67036         * modules/c-ctype-tests: New file.
67037         * tests/test-c-ctype.c: New file.
67038
67039 2007-01-14  Bruno Haible  <bruno@clisp.org>
67040
67041         * modules/binary-io-tests: New file.
67042         * tests/test-binary-io.sh: New file.
67043         * tests/test-binary-io.c: New file.
67044
67045 2007-01-14  Bruno Haible  <bruno@clisp.org>
67046
67047         * modules/array-oset-tests: New file.
67048         * tests/test-array_oset.c: New file.
67049
67050 2007-01-14  Bruno Haible  <bruno@clisp.org>
67051
67052         * modules/array-list-tests: New file.
67053         * tests/test-array_list.c: New file.
67054
67055 2007-01-14  Bruno Haible  <bruno@clisp.org>
67056
67057         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
67058         and make.
67059         Reported by Simon Josefsson in
67060         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
67061
67062 2007-01-14  Bruno Haible  <bruno@clisp.org>
67063
67064         * modules/allocsa-tests: New file.
67065         * tests/test-allocsa.c: New file.
67066
67067 2007-01-14  Bruno Haible  <bruno@clisp.org>
67068
67069         * modules/fchdir (Depends-on): Add absolute-header.
67070         * modules/unistd (Depends-on): Likewise.
67071
67072 2006-12-30  Bruno Haible  <bruno@clisp.org>
67073
67074         * modules/fchdir: New file.
67075         * modules/unistd (Files): Add lib/unistd_.h.
67076         (Makefile.am): Generate unistd.h from unistd_.h.
67077         * lib/fchdir.c: New file.
67078         * lib/dirent_.h: New file.
67079         * lib/unistd_.h: New file.
67080         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
67081         * m4/fchdir.m4: New file.
67082         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
67083         (gl_HEADER_UNISTD): Invoke it.
67084         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
67085         function.
67086         * lib/backupfile.c (opendir, closedir): Undefine.
67087         * lib/chown.c (open, close): Undefine.
67088         * lib/clean-temp.c (open, close): Undefine.
67089         * lib/copy-file.c (open, close): Undefine.
67090         * lib/execute.c (open, close): Undefine.
67091         * lib/fsusage.c (open, close): Undefine.
67092         * lib/gc-gnulib.c (open, close): Undefine.
67093         * lib/getcwd.c (opendir, closedir): Undefine.
67094         * lib/glob.c (opendir, closedir): Undefine.
67095         * lib/javacomp.c (open, close): Undefine.
67096         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
67097         * lib/openat-proc.c (open, close): Undefine.
67098         * lib/pagealign_alloc.c (open, close): Undefine.
67099         * lib/pipe.c (open, close): Undefine.
67100         * lib/progreloc.c (open, close): Undefine.
67101         * lib/savedir.c (opendir, closedir): Undefine.
67102         * lib/utime.c (open, close): Undefine.
67103         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
67104
67105 2007-01-10  Bruno Haible  <bruno@clisp.org>
67106
67107         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
67108
67109 2007-01-12  Eric Blake  <ebb9@byu.net>
67110
67111         Provide a robust <wchar.h>.  Further simplifications are now
67112         possible in other modules, but not included here.
67113         * modules/wchar: New module.
67114         * m4/wchar.m4: New file.
67115         * lib/wchar_.h: Likewise.
67116         * modules/mbchar (Depends-on): Depend on wchar, as the first use
67117         of the new module.
67118         * MODULES.html.sh (Extended multibyte and wide character utilities):
67119         New section.
67120
67121 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
67122
67123         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
67124         to a reasonable default for memory allocation.
67125         (xreadlink): Don't allocate a huge buffer, to work around a buggy
67126         file system that reports garbage st_size values for symlinks.
67127         Problem reported by Liyang Hu.
67128
67129 2007-01-11  Simon Josefsson  <simon@josefsson.org>
67130
67131         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
67132         Emacs .#* auto-save files).
67133
67134 2007-01-11  Bruno Haible  <bruno@clisp.org>
67135
67136         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
67137         directory.
67138
67139 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67140
67141         Use @...@ consistently in lib/wctype_.h.
67142         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
67143         on it being set to 1 or 0.
67144         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
67145         go back to AC_SUBSTing it.
67146         * modules/wctype (Makefile.am): Undo previous change.
67147
67148 2007-01-10  Eric Blake  <ebb9@byu.net>
67149
67150         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
67151         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
67152         * modules/wctype (Makefile.am): Likewise.
67153         Reported by Chris McGuire.
67154
67155 2007-01-10  Jim Meyering  <jim@meyering.net>
67156
67157         fts.c: a small readability/maintainability improvement
67158         * lib/fts.c (fts_read): Make this code slightly more readable and
67159         maintainable by hoisting the "sp->fts_cur = p" assignments to
67160         immediately follow the statements that set P.  Derived from
67161         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
67162
67163 2007-01-10  Eric Blake  <ebb9@byu.net>
67164
67165         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
67166         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
67167         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67168         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67169         Reported by Chris McGuire.
67170
67171 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67172
67173         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
67174         in sed script.
67175
67176 2007-01-09  Bruno Haible  <bruno@clisp.org>
67177
67178         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
67179         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
67180         variables.
67181         (func_module): Use them.
67182
67183 2007-01-09  Bruno Haible  <bruno@clisp.org>
67184
67185         * modules/unistr/base: New file.
67186         * lib/unistr.h: New file.
67187
67188         * modules/unistr/u8-to-u16: New file.
67189         * lib/unistr/u8-to-u16.c: New file.
67190
67191         * modules/unistr/u8-to-u32: New file.
67192         * lib/unistr/u8-to-u32.c: New file.
67193
67194         * modules/unistr/u16-to-u8: New file.
67195         * lib/unistr/u16-to-u8.c: New file.
67196
67197         * modules/unistr/u16-to-u32: New file.
67198         * lib/unistr/u16-to-u32.c: New file.
67199
67200         * modules/unistr/u32-to-u8: New file.
67201         * lib/unistr/u32-to-u8.c: New file.
67202
67203         * modules/unistr/u32-to-u16: New file.
67204         * lib/unistr/u32-to-u16.c: New file.
67205
67206         * modules/unistr/u8-check: New file.
67207         * modules/unistr/u16-check: New file.
67208         * modules/unistr/u32-check: New file.
67209         * lib/unistr/u8-check.c: New file.
67210         * lib/unistr/u16-check.c: New file.
67211         * lib/unistr/u32-check.c: New file.
67212
67213         * modules/unistr/u8-chr: New file.
67214         * modules/unistr/u16-chr: New file.
67215         * modules/unistr/u32-chr: New file.
67216         * lib/unistr/u8-chr.c: New file.
67217         * lib/unistr/u16-chr.c: New file.
67218         * lib/unistr/u32-chr.c: New file.
67219
67220         * modules/unistr/u8-cmp: New file.
67221         * modules/unistr/u16-cmp: New file.
67222         * modules/unistr/u32-cmp: New file.
67223         * lib/unistr/u8-cmp.c: New file.
67224         * lib/unistr/u16-cmp.c: New file.
67225         * lib/unistr/u32-cmp.c: New file.
67226
67227         * modules/unistr/u8-cpy: New file.
67228         * modules/unistr/u16-cpy: New file.
67229         * modules/unistr/u32-cpy: New file.
67230         * lib/unistr/u8-cpy.c: New file.
67231         * lib/unistr/u16-cpy.c: New file.
67232         * lib/unistr/u32-cpy.c: New file.
67233         * lib/unistr/u-cpy.h: New file.
67234
67235         * modules/unistr/u8-cpy-alloc: New file.
67236         * modules/unistr/u16-cpy-alloc: New file.
67237         * modules/unistr/u32-cpy-alloc: New file.
67238         * lib/unistr/u8-cpy-alloc.c: New file.
67239         * lib/unistr/u16-cpy-alloc.c: New file.
67240         * lib/unistr/u32-cpy-alloc.c: New file.
67241         * lib/unistr/u-cpy-alloc.h: New file.
67242
67243         * modules/unistr/u8-endswith: New file.
67244         * modules/unistr/u16-endswith: New file.
67245         * modules/unistr/u32-endswith: New file.
67246         * lib/unistr/u8-endswith.c: New file.
67247         * lib/unistr/u16-endswith.c: New file.
67248         * lib/unistr/u32-endswith.c: New file.
67249         * lib/unistr/u-endswith.h: New file.
67250
67251         * modules/unistr/u8-mblen: New file.
67252         * modules/unistr/u16-mblen: New file.
67253         * modules/unistr/u32-mblen: New file.
67254         * lib/unistr/u8-mblen.c: New file.
67255         * lib/unistr/u16-mblen.c: New file.
67256         * lib/unistr/u32-mblen.c: New file.
67257
67258         * modules/unistr/u8-mbtouc: New file.
67259         * modules/unistr/u16-mbtouc: New file.
67260         * modules/unistr/u32-mbtouc: New file.
67261         * lib/unistr/u8-mbtouc.c: New file.
67262         * lib/unistr/u16-mbtouc.c: New file.
67263         * lib/unistr/u32-mbtouc.c: New file.
67264
67265         * modules/unistr/u8-mbtouc-safe: New file.
67266         * modules/unistr/u16-mbtouc-safe: New file.
67267         * modules/unistr/u32-mbtouc-safe: New file.
67268         * lib/unistr/u8-mbtouc-safe.c: New file.
67269         * lib/unistr/u16-mbtouc-safe.c: New file.
67270         * lib/unistr/u32-mbtouc-safe.c: New file.
67271
67272         * modules/unistr/u8-move: New file.
67273         * modules/unistr/u16-move: New file.
67274         * modules/unistr/u32-move: New file.
67275         * lib/unistr/u8-move.c: New file.
67276         * lib/unistr/u16-move.c: New file.
67277         * lib/unistr/u32-move.c: New file.
67278         * lib/unistr/u-move.h: New file.
67279
67280         * modules/unistr/u8-next: New file.
67281         * modules/unistr/u16-next: New file.
67282         * modules/unistr/u32-next: New file.
67283         * lib/unistr/u8-next.c: New file.
67284         * lib/unistr/u16-next.c: New file.
67285         * lib/unistr/u32-next.c: New file.
67286
67287         * modules/unistr/u8-prev: New file.
67288         * modules/unistr/u16-prev: New file.
67289         * modules/unistr/u32-prev: New file.
67290         * lib/unistr/u8-prev.c: New file.
67291         * lib/unistr/u16-prev.c: New file.
67292         * lib/unistr/u32-prev.c: New file.
67293
67294         * modules/unistr/u8-set: New file.
67295         * modules/unistr/u16-set: New file.
67296         * modules/unistr/u32-set: New file.
67297         * lib/unistr/u8-set.c: New file.
67298         * lib/unistr/u16-set.c: New file.
67299         * lib/unistr/u32-set.c: New file.
67300         * lib/unistr/u-set.h: New file.
67301
67302         * modules/unistr/u8-startswith: New file.
67303         * modules/unistr/u16-startswith: New file.
67304         * modules/unistr/u32-startswith: New file.
67305         * lib/unistr/u8-startswith.c: New file.
67306         * lib/unistr/u16-startswith.c: New file.
67307         * lib/unistr/u32-startswith.c: New file.
67308         * lib/unistr/u-startswith.h: New file.
67309
67310         * modules/unistr/u8-stpcpy: New file.
67311         * modules/unistr/u16-stpcpy: New file.
67312         * modules/unistr/u32-stpcpy: New file.
67313         * lib/unistr/u8-stpcpy.c: New file.
67314         * lib/unistr/u16-stpcpy.c: New file.
67315         * lib/unistr/u32-stpcpy.c: New file.
67316         * lib/unistr/u-stpcpy.h: New file.
67317
67318         * modules/unistr/u8-stpncpy: New file.
67319         * modules/unistr/u16-stpncpy: New file.
67320         * modules/unistr/u32-stpncpy: New file.
67321         * lib/unistr/u8-stpncpy.c: New file.
67322         * lib/unistr/u16-stpncpy.c: New file.
67323         * lib/unistr/u32-stpncpy.c: New file.
67324         * lib/unistr/u-stpncpy.h: New file.
67325
67326         * modules/unistr/u8-strcat: New file.
67327         * modules/unistr/u16-strcat: New file.
67328         * modules/unistr/u32-strcat: New file.
67329         * lib/unistr/u8-strcat.c: New file.
67330         * lib/unistr/u16-strcat.c: New file.
67331         * lib/unistr/u32-strcat.c: New file.
67332         * lib/unistr/u-strcat.h: New file.
67333
67334         * modules/unistr/u8-strchr: New file.
67335         * modules/unistr/u16-strchr: New file.
67336         * modules/unistr/u32-strchr: New file.
67337         * lib/unistr/u8-strchr.c: New file.
67338         * lib/unistr/u16-strchr.c: New file.
67339         * lib/unistr/u32-strchr.c: New file.
67340
67341         * modules/unistr/u8-strcmp: New file.
67342         * modules/unistr/u16-strcmp: New file.
67343         * modules/unistr/u32-strcmp: New file.
67344         * lib/unistr/u8-strcmp.c: New file.
67345         * lib/unistr/u16-strcmp.c: New file.
67346         * lib/unistr/u32-strcmp.c: New file.
67347
67348         * modules/unistr/u8-strcpy: New file.
67349         * modules/unistr/u16-strcpy: New file.
67350         * modules/unistr/u32-strcpy: New file.
67351         * lib/unistr/u8-strcpy.c: New file.
67352         * lib/unistr/u16-strcpy.c: New file.
67353         * lib/unistr/u32-strcpy.c: New file.
67354         * lib/unistr/u-strcpy.h: New file.
67355
67356         * modules/unistr/u8-strcspn: New file.
67357         * modules/unistr/u16-strcspn: New file.
67358         * modules/unistr/u32-strcspn: New file.
67359         * lib/unistr/u8-strcspn.c: New file.
67360         * lib/unistr/u16-strcspn.c: New file.
67361         * lib/unistr/u32-strcspn.c: New file.
67362         * lib/unistr/u-strcspn.h: New file.
67363
67364         * modules/unistr/u8-strdup: New file.
67365         * modules/unistr/u16-strdup: New file.
67366         * modules/unistr/u32-strdup: New file.
67367         * lib/unistr/u8-strdup.c: New file.
67368         * lib/unistr/u16-strdup.c: New file.
67369         * lib/unistr/u32-strdup.c: New file.
67370         * lib/unistr/u-strdup.h: New file.
67371
67372         * modules/unistr/u8-strlen: New file.
67373         * modules/unistr/u16-strlen: New file.
67374         * modules/unistr/u32-strlen: New file.
67375         * lib/unistr/u8-strlen.c: New file.
67376         * lib/unistr/u16-strlen.c: New file.
67377         * lib/unistr/u32-strlen.c: New file.
67378         * lib/unistr/u-strlen.h: New file.
67379
67380         * modules/unistr/u8-strmblen: New file.
67381         * modules/unistr/u16-strmblen: New file.
67382         * modules/unistr/u32-strmblen: New file.
67383         * lib/unistr/u8-strmblen.c: New file.
67384         * lib/unistr/u16-strmblen.c: New file.
67385         * lib/unistr/u32-strmblen.c: New file.
67386
67387         * modules/unistr/u8-strmbtouc: New file.
67388         * modules/unistr/u16-strmbtouc: New file.
67389         * modules/unistr/u32-strmbtouc: New file.
67390         * lib/unistr/u8-strmbtouc.c: New file.
67391         * lib/unistr/u16-strmbtouc.c: New file.
67392         * lib/unistr/u32-strmbtouc.c: New file.
67393
67394         * modules/unistr/u8-strncat: New file.
67395         * modules/unistr/u16-strncat: New file.
67396         * modules/unistr/u32-strncat: New file.
67397         * lib/unistr/u8-strncat.c: New file.
67398         * lib/unistr/u16-strncat.c: New file.
67399         * lib/unistr/u32-strncat.c: New file.
67400         * lib/unistr/u-strncat.h: New file.
67401
67402         * modules/unistr/u8-strncmp: New file.
67403         * modules/unistr/u16-strncmp: New file.
67404         * modules/unistr/u32-strncmp: New file.
67405         * lib/unistr/u8-strncmp.c: New file.
67406         * lib/unistr/u16-strncmp.c: New file.
67407         * lib/unistr/u32-strncmp.c: New file.
67408
67409         * modules/unistr/u8-strncpy: New file.
67410         * modules/unistr/u16-strncpy: New file.
67411         * modules/unistr/u32-strncpy: New file.
67412         * lib/unistr/u8-strncpy.c: New file.
67413         * lib/unistr/u16-strncpy.c: New file.
67414         * lib/unistr/u32-strncpy.c: New file.
67415         * lib/unistr/u-strncpy.h: New file.
67416
67417         * modules/unistr/u8-strnlen: New file.
67418         * modules/unistr/u16-strnlen: New file.
67419         * modules/unistr/u32-strnlen: New file.
67420         * lib/unistr/u8-strnlen.c: New file.
67421         * lib/unistr/u16-strnlen.c: New file.
67422         * lib/unistr/u32-strnlen.c: New file.
67423         * lib/unistr/u-strnlen.h: New file.
67424
67425         * modules/unistr/u8-strpbrk: New file.
67426         * modules/unistr/u16-strpbrk: New file.
67427         * modules/unistr/u32-strpbrk: New file.
67428         * lib/unistr/u8-strpbrk.c: New file.
67429         * lib/unistr/u16-strpbrk.c: New file.
67430         * lib/unistr/u32-strpbrk.c: New file.
67431         * lib/unistr/u-strpbrk.h: New file.
67432
67433         * modules/unistr/u8-strrchr: New file.
67434         * modules/unistr/u16-strrchr: New file.
67435         * modules/unistr/u32-strrchr: New file.
67436         * lib/unistr/u8-strrchr.c: New file.
67437         * lib/unistr/u16-strrchr.c: New file.
67438         * lib/unistr/u32-strrchr.c: New file.
67439
67440         * modules/unistr/u8-strspn: New file.
67441         * modules/unistr/u16-strspn: New file.
67442         * modules/unistr/u32-strspn: New file.
67443         * lib/unistr/u8-strspn.c: New file.
67444         * lib/unistr/u16-strspn.c: New file.
67445         * lib/unistr/u32-strspn.c: New file.
67446         * lib/unistr/u-strspn.h: New file.
67447
67448         * modules/unistr/u8-strstr: New file.
67449         * modules/unistr/u16-strstr: New file.
67450         * modules/unistr/u32-strstr: New file.
67451         * lib/unistr/u8-strstr.c: New file.
67452         * lib/unistr/u16-strstr.c: New file.
67453         * lib/unistr/u32-strstr.c: New file.
67454         * lib/unistr/u-strstr.h: New file.
67455
67456         * modules/unistr/u8-strtok: New file.
67457         * modules/unistr/u16-strtok: New file.
67458         * modules/unistr/u32-strtok: New file.
67459         * lib/unistr/u8-strtok.c: New file.
67460         * lib/unistr/u16-strtok.c: New file.
67461         * lib/unistr/u32-strtok.c: New file.
67462         * lib/unistr/u-strtok.h: New file.
67463
67464         * modules/unistr/u8-uctomb: New file.
67465         * modules/unistr/u16-uctomb: New file.
67466         * modules/unistr/u32-uctomb: New file.
67467         * lib/unistr/u8-uctomb.c: New file.
67468         * lib/unistr/u16-uctomb.c: New file.
67469         * lib/unistr/u32-uctomb.c: New file.
67470
67471         * MODULES.html.sh (Unicode string functions): Add the new modules.
67472
67473 2007-01-08  Bruno Haible  <bruno@clisp.org>
67474
67475         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
67476         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
67477         subdirectories.
67478
67479 2007-01-08  Karl Berry  <karl@gnu.org>
67480
67481         * doc/error.texi: mention that main() fns must set program_name
67482         when progname is used.
67483
67484 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
67485
67486         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
67487         WCTYPE_H is empty, for the benefit of builds from non-distclean
67488         directories.  Problem reported by Eric Blake in
67489         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
67490
67491 2007-01-08  Bruno Haible  <bruno@clisp.org>
67492
67493         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
67494         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
67495         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
67496         PROVIDE_CANONICALIZE_FILENAME_MODE.
67497         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
67498
67499 2007-01-08  Bruno Haible  <bruno@clisp.org>
67500
67501         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
67502         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
67503         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
67504         * lib/fts.c: Likewise.
67505         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
67506
67507 2006-12-25  Bruno Haible  <bruno@clisp.org>
67508
67509         * modules/utf8-ucs4-safe: New file.
67510         * lib/utf8-ucs4-safe.h: New file.
67511         * lib/unistr/utf8-ucs4-safe.c: New file.
67512
67513         * modules/utf16-ucs4-safe: New file.
67514         * lib/utf16-ucs4-safe.h: New file.
67515         * lib/unistr/utf16-ucs4-safe.c: New file.
67516
67517         * MODULES.html.sh (Unicode string functions): Add the new modules.
67518
67519 2007-01-08  Bruno Haible  <bruno@clisp.org>
67520
67521         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
67522         (Depends-on): Add unitypes.
67523         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67524         (u8_mbtouc_aux): Move out to separate file.
67525         (u8_mbtouc): Use ucs4_t, uint8_t types.
67526         * lib/unistr/utf8-ucs4.c: New file.
67527
67528         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
67529         (Depends-on): Add unitypes.
67530         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67531         (u16_mbtouc_aux): Move out to separate file.
67532         (u16_mbtouc): Use ucs4_t, uint16_t types.
67533         * lib/unistr/utf16-ucs4.c: New file.
67534
67535         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
67536         (Depends-on): Add unitypes.
67537         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
67538         (u8_uctomb_aux): Move out to separate file.
67539         (u8_uctomb): Use ucs4_t, uint8_t types.
67540         * lib/unistr/ucs4-utf8.c: New file.
67541
67542         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
67543         (Depends-on): Add unitypes.
67544         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
67545         (u16_uctomb_aux): Move out to separate file.
67546         (u16_uctomb): Use ucs4_t, uint16_t types.
67547         * lib/unistr/ucs4-utf16.c: New file.
67548
67549 2006-12-25  Bruno Haible  <bruno@clisp.org>
67550
67551         * modules/unitypes: New file.
67552         * lib/unitypes.h: New file.
67553         * MODULES.html.sh (func_all_modules): New section "Unicode string
67554         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
67555         this section. Add unitypes.
67556
67557 2007-01-08  Bruno Haible  <bruno@clisp.org>
67558
67559         Avoid variable names that conflict with those from libtool.
67560         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
67561         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
67562         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
67563         library_names_spec to acl_library_names_spec, hardcode_* to
67564         acl_hardcode_*.
67565         Reported by Ralf Wildenhues.
67566
67567 2007-01-08  Bruno Haible  <bruno@clisp.org>
67568
67569         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
67570         definition.
67571         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
67572         definition.
67573         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
67574         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
67575         definition.
67576         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
67577         definition.
67578         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
67579         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
67580         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
67581         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
67582         definition.
67583         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
67584         definition.
67585         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
67586         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
67587         GC_USE_<algorithm>.
67588         * lib/gc-libgcrypt.c: Likewise.
67589         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
67590         * modules/gc-arctwo (configure.ac): Likewise.
67591         * modules/gc-des (configure.ac): Likewise.
67592         * modules/gc-hmac-md5 (configure.ac): Likewise.
67593         * modules/gc-hmac-sha1 (configure.ac): Likewise.
67594         * modules/gc-md2 (configure.ac): Likewise.
67595         * modules/gc-md4 (configure.ac): Likewise.
67596         * modules/gc-md5 (configure.ac): Likewise.
67597         * modules/gc-random (configure.ac): Likewise.
67598         * modules/gc-rijndael (configure.ac): Likewise.
67599         * modules/gc-sha1 (configure.ac): Likewise.
67600
67601 2007-01-08  Bruno Haible  <bruno@clisp.org>
67602
67603         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
67604         macro definition.
67605         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
67606         definition.
67607         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
67608         definition.
67609         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
67610         * modules/fcntl-safer (configure.ac): Likewise.
67611         * modules/fopen-safer (configure.ac): Likewise.
67612         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
67613         GNULIB_FWRITEERROR macro definition.
67614
67615 2007-01-08  Bruno Haible  <bruno@clisp.org>
67616
67617         * m4/gnulib-common.m4: New file.
67618         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
67619         (func_get_filelist): Add m4/gnulib-common.m4.
67620
67621 2007-01-08  Bruno Haible  <bruno@clisp.org>
67622
67623         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
67624         command.
67625
67626 2007-01-08  Jim Meyering  <jim@meyering.net>
67627
67628         Use a more robust test for a "can't happen" condition.
67629         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
67630         narrowed the st_size value.  Presuming the "can't happen" condition
67631         is true, that narrowing could conceivably convert an invalid st_size
67632         value into a valid one.  Instead, use a change based on Matthew
67633         Woehlke's original patch.
67634
67635         Slight readability improvement: use an assert-like macro
67636         in place of literal "abort ()" uses.
67637         * lib/fts.c (fts_assert): Define.
67638         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
67639         Use this macro instead of a bare 'abort'.
67640
67641 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
67642
67643         Don't worry about using IRIX 5.3's wctype.h broken definitions;
67644         simply work around them.
67645         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
67646         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
67647         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
67648         declaring.
67649         Don't bother to define as macros, since the standard doesn't require it.
67650         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
67651         longer worry about IRIX 5.3.
67652         (HAVE_WCTYPE_CTMP_BUG): Remove.
67653
67654 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67655
67656         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
67657         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
67658         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67659         Problems reported by Georg Schwarz for IRIX 5.3.
67660
67661         * gnulib-tool (autoconf_minversion): Take the maximum version number
67662         found, not the minimum.  Problem reported by James Youngman.
67663
67664 2007-01-03  Karl Berry  <karl@gnu.org>
67665
67666         * doc/error.texi: new file, explaining interaction with progname.
67667         * doc/gnulib.texi: include it.  Update copyright.
67668
67669 2007-01-03  Simon Josefsson  <simon@josefsson.org>
67670
67671         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
67672         AC_CANONICAL_HOST, to improve autobuild outputs.
67673
67674 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
67675             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67676
67677         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
67678         sockets, server sockets, and other file descriptors.  Count errors
67679         to compute the return value.  Reorder the code a bit to be easier
67680         to follow.  Don't set event bits that were not requested (except
67681         POLLERR and POLLHUP).
67682
67683 2007-01-01  Bruno Haible  <bruno@clisp.org>
67684
67685         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
67686
67687 2007-01-03  Jim Meyering  <jim@meyering.net>
67688
67689         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
67690
67691 2007-01-02  Bruno Haible  <bruno@clisp.org>
67692
67693         * modules/settime (Include): Require timespec.h.
67694         * modules/nanosleep (Include): Likewise.
67695
67696 2007-01-01  Bruno Haible  <bruno@clisp.org>
67697
67698         * gnulib-tool (func_emit_copyright_notice): Bump year.
67699         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
67700
67701 2007-01-01  Bruno Haible  <bruno@clisp.org>
67702
67703         Improve support for OpenBSD.
67704         * build-aux/config.rpath (libname_spec): Export.
67705         (library_names_spec): New variable. Export.
67706         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
67707         library_names_spec from the config.rpath output. Locate shared library
67708         through the name pattern in library_names_spec.
67709
67710 2007-01-01  Eric Blake  <ebb9@byu.net>
67711
67712         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
67713
67714 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
67715
67716         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
67717         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
67718         assume the C locale, and avoid an "eval" that could cause trouble.
67719         Problem with SORT reported by Bob Proulx.
67720
67721         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
67722         Define.  Trivial patch from Henning Nielsen Lund, originally
67723         sent to bug-grep@gnu.org today.
67724
67725 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
67726
67727         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
67728         struct stat.  Problem reported by Henning Nielsen Lund.
67729         * lib/acl.c: Include acl.h first, to check interface.  Don't
67730         bother to include sys/types.h and sys/stat.h again.
67731
67732 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67733
67734         Import the following change from libc; problem reported by
67735         Sven Verdoolaege.
67736
67737         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
67738
67739         [BZ #1373]
67740         * lib/argp.h: Remove __NTH for __argp_usage inline function.
67741
67742 2006-12-28  Jim Meyering  <jim@meyering.net>
67743
67744         * build-aux/announce-gen: Do not assume that the package
67745         builds any of tar.gz, tar.bz2, and .xdelta files.
67746         Suggestion from Simon Josefsson.
67747
67748 2006-12-28  Simon Josefsson  <simon@josefsson.org>
67749
67750         * modules/announce-gen: New file.
67751
67752 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
67753
67754         * lib/mbchar.h: Just include <wctype.h>; the wctype module
67755         handles its gotchas now.
67756         * lib/mbswidth.c: Likewise.
67757         * lib/wcwidth.h: Likewise.
67758         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
67759         and iswcntrl; the wctype module does this stuff now.
67760         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67762         * modules/mbchar (Depends-on): Add wctype.
67763         * modules/mbswidth (Depends-on): Likewise.
67764         * modules/wcwidth (Depends-on): Likewise.
67765
67766 2006-12-27  Eric Blake  <ebb9@byu.net>
67767
67768         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
67769         module uses more than what <wctype.h> is required to provide.
67770
67771 2006-12-26  Eric Blake  <ebb9@byu.net>
67772
67773         * gnulib-tool (sed_extract_prog): Avoid space-tab.
67774
67775 2006-12-26  Eric Blake  <ebb9@byu.net>
67776
67777         * modules/absolute-header: New module.
67778         * modules/fcntl (Depends-on): Depend on it.
67779         * modules/inttypes (Depends-on): Likewise.
67780         * modules/stdint (Depends-on): Likewise.
67781         * modules/sys_stat (Depends-on): Likewise.
67782         * modules/wctype (Depends-on): Likewise.
67783         * MODULES.html.sh (Support for building libraries and
67784         executables): Document it.
67785
67786 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
67787
67788         * gnulib-tool (SED): Remove, undoing previous change.
67789         The problem was that it broke coreutils on Solaris, because
67790         "sed --posix" leaked into a makefile.
67791         (sed): New alias, if 'alias' and GNU sed.
67792
67793 2006-12-24  Jim Meyering  <jim@meyering.net>
67794
67795         Work around an fchownat bug in glibc-2.4:
67796         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
67797         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
67798         in spite of the -P option.
67799         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
67800         New macros.
67801         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
67802         * modules/openat (Files): Add lib/fchownat.c.
67803         * lib/openat.c (fchownat): Don't define here.  Move to...
67804         * lib/fchownat.c: ...this new file.
67805
67806 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67807
67808         Fix bug reported by Bruno Haible in
67809         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
67810         where quotearg.c didn't compile on Mac OS X 10.2 because it
67811         lacks <wchar.h> and wint_t.
67812         * lib/wctype_.h (__wctype_wint_t): New type.
67813         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
67814         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
67815         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
67816         Arg is now of type __wctype_wint_t, not wint_t.
67817         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
67818         substitute HAVE_WINT_T.
67819         * modules/wctype (Files): Add m4/wint_t.m4.
67820         (wctype.h): Substitute HAVE_WINT_T.
67821
67822 2006-12-23  Bruno Haible  <bruno@clisp.org>
67823
67824         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
67825
67826 2006-12-23  Bruno Haible  <bruno@clisp.org>
67827
67828         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
67829         S_ISLNK.
67830         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
67831         mingw.
67832
67833 2006-12-22  Bruno Haible  <bruno@clisp.org>
67834
67835         * lib/copy-file.c: Include acl.h.
67836         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
67837         Close the file descriptors only after being done with copy_acl.
67838         * modules/copy-file (Depends-on): Add acl.
67839
67840 2006-12-22  Bruno Haible  <bruno@clisp.org>
67841
67842         * gnulib-tool (SED): New variable.
67843         Use $SED instead of sed everywhere.
67844
67845 2006-12-22  Bruno Haible  <bruno@clisp.org>
67846
67847         * modules/no-c++: New file.
67848         * m4/no-c++.m4: New file.
67849         * MODULES.html.sh (Support for building libraries and executables):
67850         Add no-c++.
67851
67852 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
67853
67854         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67855         Include <limits.h>, and use its INT_MAX to rewrite the
67856         j loop so that it does not overflow 'int'.  Problem reported by
67857         Ralf Wildenhues in
67858         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
67859         Play it safe by shifting left by 1 rather than multiplying by 2,
67860         as GCC is less likely to optimize this away when the value
67861         is signed (when it assumes overflow leads to undefined behavior).
67862         Also, don't assume time_t uses two's complement.
67863
67864 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
67865
67866         * MODULES.html.sh: New module wctype.
67867         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
67868         * lib/fnmatch.c: Don't bother to include <wchar.h> before
67869         <wctype.h>, since the new wctype module should fix this.
67870         * lib/quotearg.c: Include <wctype.h> unconditionally, since
67871         the wctype module should arrange for it.
67872         * lib/regex_internal.h: Likewise.
67873         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
67874         since the wctype module should handle this now.
67875         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
67876         * modules/fnmatch (Depends-on): Add wctype.
67877         * modules/quotearg (Depends-on): Likewise.
67878         * modules/regex (Depends-on): Likewise.
67879
67880 2006-12-19  Bruno Haible  <bruno@clisp.org>
67881
67882         * lib/strdup.h [C++]: Wrap definitions in extern "C".
67883         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
67884
67885 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67886
67887         * modules/savewd (Depends-on): Fix dependency on fcntl.
67888
67889 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67890
67891         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
67892         conforms to C99, rather than relying on the user's environment
67893         setting of STDINT_H.
67894
67895 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67896         and Eric Blake  <ebb9@byu.net>
67897
67898         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
67899         This is more consistent with the other defines here.
67900         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
67901         Port to z/OS.  Problem reported by Paul Gilmartin.
67902         Change local vars to use gl_ prefix rather than ac_.
67903         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
67904         with other defines.
67905         * modules/double-slash-root: New module.
67906         * modules/dirname (Files): Remove m4/double-slash-root.m4.
67907         (Depends-on): Add double-slash-root.
67908         * MODULES.html.sh (File system functions): Mention new module.
67909
67910 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
67911
67912         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
67913         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
67914         This is for the benefit of gzip, which doesn't do i18n.
67915
67916 2006-12-12  Jim Meyering  <jim@meyering.net>
67917
67918         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
67919         Reported by Andreas Schwab <schwab@suse.de>.
67920
67921 2006-12-12  Bruno Haible  <bruno@clisp.org>
67922
67923         Merge these changes.
67924         2006-09-05  Bruno Haible  <bruno@clisp.org>
67925         * lib/iconvme.c (iconv_string): No need to save and restore errno when
67926         iconv_alloc succeeded.
67927         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
67928         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
67929         test for " && dest " at the end - dest is always != NULL there. Call
67930         iconv with 4xNULL arguments initially, to reset the state. Call iconv
67931         with 2xNULL arguments, also to flush the state storage. Handle the
67932         IRIX iconv behaviour. Realloc the final result, to throw away unused
67933         memory.
67934
67935 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
67936
67937         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
67938         and fchmodat unconditionally, since glibc 2.4 has them.
67939         Problem reported by Arkadiusz Miskiewicz.
67940
67941 2006-12-10  Bruno Haible  <bruno@clisp.org>
67942
67943         * gnulib-tool (func_import): Show the include files only for those
67944         modules that are copied and specified.
67945         Reported by Karl Berry.
67946
67947 2006-12-08  Jim Meyering  <jim@meyering.net>
67948
67949         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
67950         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
67951
67952         * build-aux/announce-gen: Add two new options, both optional:
67953         --bootstrap-tools=TOOL_LIST
67954               a comma-separated list of tools, e.g.,
67955               autoconf,automake,bison,gnulib
67956         --gnulib-snapshot-date=DATE
67957               if gnulib is in the bootstrap tool list,
67958               then report this as the snapshot date.
67959               If not specified, use the current date/time.
67960               If you specify a date here, be sure it's UTC.
67961
67962 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67963
67964         * tests/test-argp-2.sh: Fix test to match actual output.
67965         (func_compare): Fix sed script to be portable.
67966
67967 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
67968
67969         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
67970         workaround for this case.  It is not autoconfigured now; offhand
67971         it's hard to see how to autoconfigure it.
67972
67973 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
67974
67975         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
67976         a directory that is about to be chowned.  Such a directory's
67977         initial file permissions should permit the owner only and this
67978         should not be changed until after the chown, since the group and
67979         other bits would be incorrect if they granted permission before
67980         the chown.
67981
67982         Fix porting problem for iswctype reported by Georg Schwarz in:
67983         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
67984         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
67985         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
67986         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
67987         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67988
67989 2006-12-03  Jim Meyering  <jim@meyering.net>
67990
67991         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
67992         p->fts_statp may not yet be defined.
67993         (fts_read): Instead, set it in the caller, once p->fts_statp is
67994         sure to be defined, and corresponds to a top-level directory.
67995         This bug made du -x fail.  Here's the coreutils test case:
67996         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
67997         Reported by Mike Frysinger.
67998
67999 2006-12-01  Jim Meyering  <jim@meyering.net>
68000
68001         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
68002         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
68003         Reported by Simon Josefsson.
68004
68005 2006-11-30  Jim Meyering  <jim@meyering.net>
68006
68007         * m4/warning.m4: Use the all-permissive copyright notice
68008         recommended by RMS (rather than LGPL).
68009         * m4/vararrays.m4: Likewise.
68010         * m4/flexmember.m4: Likewise.
68011
68012 2006-11-29  Bruno Haible  <bruno@clisp.org>
68013
68014         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68015         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
68016         using +=.
68017         Reported by Simon Josefsson <simon@josefsson.org>.
68018
68019 2006-11-28  James Youngman <jay@gnu.org>
68020
68021         * README: Advise users that they might find the bug-gnulib@gnu.org
68022         and autotools-announce@gnu.org mailing lists useful.
68023
68024 2006-11-28  Bruno Haible  <bruno@clisp.org>
68025
68026         * m4/ptrdiff_max.m4: Remove file.
68027
68028 2006-11-21  Bruno Haible  <bruno@clisp.org>
68029
68030         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
68031         _AC_COMPUTE_INT.
68032         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68033         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
68034         _AC_COMPUTE_INT.
68035         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68036         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
68037         _AC_COMPUTE_INT.
68038         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68039
68040 2006-11-28  Jim Meyering  <jim@meyering.net>
68041
68042         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
68043         warning from "gcc -Wshadow" about shadowing the builtin.
68044
68045 2006-11-27  Bruno Haible  <bruno@clisp.org>
68046
68047         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
68048         _AC_COMPUTE_INT.
68049         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68050
68051 2006-11-27  Bruno Haible  <bruno@clisp.org>
68052             Paul Eggert  <eggert@cs.ucla.edu>
68053
68054         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
68055
68056 2006-11-26  Bruno Haible  <bruno@clisp.org>
68057
68058         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68059         noinst_LTLIBRARIES.
68060
68061 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68062             Bruno Haible  <bruno@clisp.org>
68063
68064         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
68065         if compiling with "gcc -ansi".
68066
68067 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68068
68069         Fix some incompatibilities with gcc -ansi -pedantic.
68070         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
68071         if compiling pedantically with GCC, unless it's C99 or later.
68072         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
68073         it mishandles gcc -ansi -pedantic as well.
68074         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
68075         if gcc -pedantic.
68076         * lib/regexec.c (check_node_accept_bytes): Don't use auto
68077         initializers for struct if -pedantic, unless it's C99 or later.
68078
68079 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
68080
68081         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
68082         Don't close an fd more than once. Identical atimes indicate
68083         success, not failure.
68084
68085 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
68086
68087         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
68088
68089 2006-11-23  Jim Meyering  <jim@meyering.net>
68090
68091         * build-aux/announce-gen: New file.  From coreutils.
68092
68093 2006-11-22  Jim Meyering  <jim@meyering.net>
68094
68095         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
68096         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
68097         (fts_read): Use a temporary to narrow the overused st_size member
68098         before using it in a switch statement.  Reported by Matthew Woehlke.
68099
68100         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
68101         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68102
68103 2006-11-20  Bruno Haible  <bruno@clisp.org>
68104
68105         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
68106         changequote instead of pairs of brackets.
68107         Reported by Andreas Schwab <schwab@suse.de>.
68108
68109 2006-11-21  Jim Meyering  <jim@meyering.net>
68110
68111         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
68112         so as to remain compatible with older compilers.
68113         Patch from Michael Deutschmann.
68114
68115 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68116
68117         * MODULES.html.sh (File system functions): Add openat.
68118
68119         * lib/openat.h (rpl_fstatat): New macro, if
68120         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
68121         (fstatat): Define to rpl_fstatat under the same conditions,
68122         unless COMPILING_FSTATAT.
68123         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
68124         seems to have the bug.
68125         * lib/fstatat.c: New file.
68126         * modules/openat (Files): Add it.
68127
68128 2006-11-20  Bruno Haible  <bruno@clisp.org>
68129
68130         * Makefile: New file.
68131
68132 2006-11-20  Jim Meyering  <jim@meyering.net>
68133
68134         The beginnings of syntax-related checks for gnulib.
68135         * lib/Makefile: New file.
68136         * lib/t-idcache: New script.  Ensure that the two halves of
68137         idcache.c stay in sync.
68138
68139         * lib/idcache.c: Adjust comments in user- and group- portions to
68140         be more accurate, and to be consistent with one another.
68141
68142 2006-11-20  Jim Meyering  <jim@meyering.net>
68143
68144         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
68145         continue using the flexible array member (thus, this module performs
68146         half as many malloc calls), with the addition that...
68147         (getgroup, getuser): Consistently record a non-match via an empty
68148         "name" string, and map an empty string match to a NULL return value.
68149         * modules/idcache (Depends-on): Re-add flexmember.
68150
68151         * lib/idcache.c (getuser): Remove all uses of the register keyword.
68152         (getuidbyname, getgroup, getgidbyname): Likewise.
68153
68154         Use cleaner syntax: NULL rather than 0.
68155         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
68156
68157 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68158
68159         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
68160         It mishandled the case where the group was missing.
68161         Problem reported by Greg Schafer.
68162         * modules/idcache: Likewise.
68163
68164 2006-11-18  Jim Meyering  <jim@meyering.net>
68165
68166         * check-module (%exempt_header): Add exception for some
68167         conditionally-included headers.
68168
68169         * modules/i-ring (Depends-on): Add verify.
68170         (License): Change to LGPL.
68171
68172 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68173
68174         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
68175         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
68176         and inttostr.h.  Use snprintf rather than uinttostr, so that
68177         LGPLed code doesn't depend on GPLed.
68178
68179 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68180
68181         * modules/inline (License): Change from GPL to LGPL.
68182
68183 2006-11-17  Jim Meyering  <jim@meyering.net>
68184
68185         * modules/d-type (License): Switch to LGPL.
68186
68187 2006-11-15  Bruno Haible  <bruno@clisp.org>
68188
68189         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
68190
68191 2006-11-15  Eric Blake  <ebb9@byu.net>
68192
68193         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
68194         the module dependency.
68195
68196 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68197             Bruno Haible  <bruno@clisp.org>
68198
68199         * gnulib-tool (func_create_testdir): Add license consistency check.
68200
68201 2006-11-15  Eric Blake  <ebb9@byu.net>
68202
68203         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
68204         random "(cached)" in configure output.
68205
68206 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68207
68208         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
68209         test for conforming inttypes.h is both announced and cached.
68210
68211         * MODULES.html.sh (seen_modules, seen_files): New variables.
68212         (func_module): Rewrite to use a few less gnulib-tool and sed
68213         invocations.  Avoid a couple of quadratic algorithms for ...
68214         (missed_modules, missed_files): ... these, with ...
68215         (func_append, func_tmpdir): ... these new functions, from
68216         gnulib-tool.  Analogously, install traps for cleanup.
68217
68218         * tests/test-gc.c (main): Remove unused variables.
68219         * tests/test-read-file.c: Include stdlib.h, for 'free'.
68220
68221 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
68222
68223         * modules/inttostr (License): Change to LGPL.
68224
68225 2006-11-14  Eric Blake  <ebb9@byu.net>
68226
68227         * modules/tempname (License): Change to LGPL.
68228
68229 2006-11-14  Eric Blake  <ebb9@byu.net>
68230
68231         * doc/functions.texi (Function Portability): *printf functions on
68232         Cygwin now understand all POSIX size specifiers.
68233
68234 2006-11-14  Bruno Haible  <bruno@clisp.org>
68235
68236         * modules/c-ctype (License): Change to LGPL.
68237
68238 2006-11-12  Bruno Haible  <bruno@clisp.org>
68239
68240         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
68241         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
68242         for GNOME libraries, for which the include files are installed in
68243         subdirectories of $prefix/include.
68244
68245 2006-11-12  Bruno Haible  <bruno@clisp.org>
68246
68247         * m4/lib-link.m4: Require at least autoconf-2.54.
68248         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
68249         name to underscores for the --with option.
68250
68251 2006-11-13  Bruno Haible  <bruno@clisp.org>
68252
68253         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
68254         the tests directory.
68255         Reported by Ralf Wildenhues.
68256
68257 2006-11-13  Bruno Haible  <bruno@clisp.org>
68258
68259         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
68260         (func_emit_initmacro_end): Undo the override here.
68261         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
68262         Works around the famous automake error in coreutils.
68263
68264 2006-11-13  Eric Blake  <ebb9@byu.net>
68265
68266         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
68267         element, not its node.
68268
68269 2006-11-12  Bruno Haible  <bruno@clisp.org>
68270
68271         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
68272         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
68273
68274 2006-11-12  Bruno Haible  <bruno@clisp.org>
68275
68276         * gnulib-tool: New option --local-symlink.
68277         (func_usage): Document it.
68278         (lsymbolic): New variable.
68279         (func_import, func_create_testdir): If --symlink was not specified,
68280         test whether --local-symlink was specified and the file comes from
68281         the local_gnulib_dir.
68282
68283 2006-11-12  Bruno Haible  <bruno@clisp.org>
68284
68285         * gnulib-tool (func_ln): New function.
68286         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
68287
68288 2006-11-12  Bruno Haible  <bruno@clisp.org>
68289
68290         Finish support for source files in subdirectories.
68291         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
68292         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
68293         AUTOMAKE_OPTIONS.
68294         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
68295
68296 2006-11-12  Bruno Haible  <bruno@clisp.org>
68297
68298         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68299         EXTRA_lib_SOURCES augmentation.
68300         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
68301
68302 2006-11-12  Jim Meyering  <jim@meyering.net>
68303
68304         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
68305         file descriptors.  This also averts a failure on systems with
68306         native openat support when a traversed directory lacks "x" access.
68307         * lib/fts_.h: Include "i-ring.h"
68308         (struct FTS) [fts_fd_ring]: New member.
68309         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
68310         (FCHDIR): Add parentheses.
68311         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
68312         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
68313         When descending, rather than simply closing the previous
68314         fts_cwd_fd value, push that file descriptor onto the ring.
68315         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
68316         (fts_open): Initialize the new fd_ring member.
68317         (fts_close): Clear the ring.
68318         (fts_safe_changedir): When possible, use our new fd_ring to skip
68319         the diropen and fstat and dev/ino comparison that would normally
68320         accompany a virtual `chdir ("..")'.
68321
68322         * modules/fts (Depends-on): Add i-ring.
68323         * modules/i-ring: New module.
68324         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
68325         * m4/i-ring.m4: New file.
68326
68327 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68328
68329         * gnulib-tool (func_create_testdir): Fix replacement of
68330         `build-aux' in configure.ac.  Run autotools in gltests
68331         subdirectory.
68332         (func_create_testdir, func_create_megatestdir, test): There is
68333         no need for '--force' in most autotool invocations in a new
68334         tree.  Actually fail the whole test if any of the tools, or the
68335         configure or make stages fail.
68336
68337         Sync from Automake.
68338         * build-aux/gnupload: Revert last change.  Add pointer to upload
68339         instructions of the GNU Maintenance Instructions.
68340         Suggestion by Karl Berry.
68341
68342 2006-11-10  Jim Meyering  <jim@meyering.net>
68343
68344         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
68345
68346 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68347
68348         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
68349         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
68350         (bind_textdomain_codeset) [! ENABLE_NLS]:
68351         Evaluate all the arguments.  That way, callers get compatible behavior
68352         if the arguments have side effects.  Also, it avoids some GCC
68353         diagnostics in some cases; Joel E. Denny reported problems when Bison
68354         was configured with --enable-gcc-warnigs.
68355
68356 2006-11-10  Jim Meyering  <jim@meyering.net>
68357
68358         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
68359         relevant options in CFLAGS (like -O, -fno-inline) are taken into
68360         account.
68361
68362 2006-11-10  Jim Meyering  <jim@meyering.net>
68363
68364         * modules/inline: New file/module.
68365         * modules/xalloc (Files): Remove m4/inline.m4.
68366         (Depends-on): Add inline, instead.
68367         * modules/oset: Likewise.
68368         * modules/list: Likewise.
68369
68370 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68371
68372         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
68373         Problem reported by Matthew Woehlke.
68374
68375 2006-11-09  Bruno Haible  <bruno@clisp.org>
68376
68377         * lib/tempname.c (gen_tempname): Remove variant that invokes
68378         __gen_tempname.
68379         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
68380         __gen_tempname.
68381
68382 2006-11-08  Bruno Haible  <bruno@clisp.org>
68383
68384         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
68385         to 'yes' instead of 'cross-compiling'.
68386
68387 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
68388
68389         * lib/quotearg.h (quotearg_free): New decl.
68390         * lib/quotearg.c (quotearg_free): New function.
68391         (slot0, nslots, slotvec0, slotvec):
68392         Now file-scope so that quotearg_free can get at them.
68393
68394 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68395
68396         Sync from Automake.
68397         * build-aux/gnupload: Add missing 'gnu' to example URL.
68398         Report by Karl Berry.
68399
68400 2006-11-08  Bruno Haible  <bruno@clisp.org>
68401
68402         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
68403         Suggested by Paul Eggert.
68404
68405 2006-11-08  Jim Meyering  <jim@meyering.net>
68406
68407         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
68408         It's already included if !_LIBC.
68409         (fts_safe_changedir): Add a comment.
68410
68411 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68412
68413         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
68414         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
68415         Matthew Woehlke.
68416
68417         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
68418         definitions up, to avoid colliding with change below.
68419         (static_inline) [HAVE_INLINE]: New macro.
68420         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
68421         Provide extern decls when !HAVE_INLINE.  Do not define unless
68422         static_inline is defined, either by us or by xmalloc.c.  Use
68423         static_inline rather than static inline.
68424         (XCALLOC): Optimize sizeof(T) = 1 case.
68425         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
68426
68427 2006-11-07  Bruno Haible  <bruno@clisp.org>
68428
68429         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
68430         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
68431         AC_C_INLINE.
68432         * modules/xalloc (Files): Add m4/inline.m4.
68433
68434 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68435
68436         * README: Fix typo.
68437         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
68438         (Miscellanous Notes): ...from this.
68439
68440 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68441
68442         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
68443         Mention that offsetof should be used instead of sizeof.
68444         From Bruno Haible.
68445
68446 2006-11-07  Bruno Haible  <bruno@clisp.org>
68447
68448         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
68449
68450 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68451
68452         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68453         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
68454         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68455         (gl_tree_add_before, gl_tree_add_after):
68456         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
68457         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
68458         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68459         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
68460         (gl_linked_add_after, gl_linked_add_at): Likewise.
68461         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
68462         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68463         (gl_tree_add_before, gl_tree_add_after): Likewise.
68464         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
68465         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
68466         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
68467
68468 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68469
68470         * lib/gl_oset.h: Use C comment style, not C++ comment style.
68471
68472 2006-11-06  Bruno Haible  <bruno@clisp.org>
68473
68474         * m4/inline.m4: New file.
68475         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
68476         * modules/list (Files): Add m4/inline.m4.
68477         * modules/oset (Files): Likewise.
68478
68479 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68480
68481         * lib/idcache.c: Include <stddef.h>, for offsetof.
68482         (struct userid.name): Change from char * to a flexible array member.
68483         All uses changed.
68484         * modules/idcache (Depends-on): Add flexmember.
68485
68486         * MODULES.html.sh (Core language properties): New module flexmember.
68487         * modules/flexmember, m4/flexmember.m4: New files.
68488
68489         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
68490         inline functions that are identical with the old xnmalloc_inline,
68491         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
68492         that we can avoid some unnecessary integer multiplications and
68493         divisions in the common case where the element size is known at
68494         compile time.
68495         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
68496         needed.
68497         (xnboundedmalloc): Remove.
68498         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
68499         arguments, for consistency with rest of this header.
68500         (xcharalloc): Rewrite using XNMALLOC.
68501         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
68502         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
68503         versions have been moved to lib/xalloc.h and renamed to be the
68504         non-*_inline versions.
68505         (xmalloc, xrealloc): Implement without reference to the xnmalloc
68506         and xnrealloc functions, since those functions are now inline and
68507         now call us.
68508         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
68509         renaming described above.
68510         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
68511         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
68512         captures the dependency in AC_C_INLINE.
68513
68514         New module canonicalize-lgpl, proposed by Charles Wilson in
68515         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
68516         with a few small changes afterwards.
68517         * MODULES.html.sh (File system functions): New module
68518         canonicalize-lgpl.
68519         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
68520         and canonicalize_file_name.
68521         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
68522         * modules/canonicalize-lgpl: New files.
68523
68524 2006-11-05  Bruno Haible  <bruno@clisp.org>
68525
68526         * gnulib-tool (func_import, func_create_testdir): Create directories
68527         also for files in subdirectories of lib/.
68528
68529 2006-11-05  Bruno Haible  <bruno@clisp.org>
68530
68531         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
68532         ANSI C compliant.
68533
68534 2006-11-03  Bruno Haible  <bruno@clisp.org>
68535
68536         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68537         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
68538         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
68539         (xnboundedmalloc): New inline function.
68540         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
68541         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
68542         xmalloc.
68543         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
68544         xmalloc.
68545         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
68546         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
68547         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
68548         xmalloc.
68549         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68550         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
68551         xmalloc.
68552         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
68553         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68554         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
68555         xmalloc.
68556         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68557         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
68558         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68559         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
68560         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
68561         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
68562         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
68563
68564 2006-11-03  Bruno Haible  <bruno@clisp.org>
68565
68566         * lib/c-ctype.h [C++]: Define functions without name mangling.
68567         * lib/fwriteerror.h [C++]: Likewise.
68568         * lib/gcd.h [C++]: Likewise.
68569         * lib/linebreak.h [C++]: Likewise.
68570
68571 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68572
68573         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
68574         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
68575         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
68576         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68577         Check for functions and headers just once.
68578         Check for declaration of canonicalize_file_name.
68579         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
68580
68581 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68582
68583         * gnulib-tool (func_import): Fix typo in actioncmd.
68584
68585 2006-11-02  Bruno Haible  <bruno@clisp.org>
68586
68587         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
68588         newline sequence in the Makefile.am snippet as a space, like "make"
68589         does.
68590         Reported by Roger Persson <perrog@gmail.com>.
68591
68592 2006-11-01  Bruno Haible  <bruno@clisp.org>
68593
68594         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
68595         already declared in <string.h>.
68596         * lib/strcase.h (strncasecmp): Don't declare it if yes.
68597
68598 2006-11-01  Bruno Haible  <bruno@clisp.org>
68599
68600         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
68601         * lib/strcase.h: Include <string.h>.
68602         (strcasecmp): Define to rpl_strcasecmp here.
68603
68604 2006-11-01  Bruno Haible  <bruno@clisp.org>
68605
68606         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
68607
68608 2006-11-01  Eric Blake  <ebb9@byu.net>
68609
68610         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
68611
68612         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
68613
68614 2006-10-29  Bruno Haible  <bruno@clisp.org>
68615
68616         Make it compile in C++ mode.
68617         * lib/full-write.c (full_rw): Add a cast.
68618
68619 2006-11-01  Bruno Haible  <bruno@clisp.org>
68620
68621         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
68622         be POSIX compliant.
68623         Reported by Roger Persson <perrog@gmail.com>.
68624
68625 2006-11-01  Eric Blake  <ebb9@byu.net>
68626
68627         * lib/getopt_.h: Fix comments.
68628
68629 2006-10-31  Eric Blake  <ebb9@byu.net>
68630
68631         * modules/tmpdir (Depends-on): Add sys_stat.
68632         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
68633         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
68634         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
68635         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
68636         tempname.
68637
68638 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
68639
68640         Avoid some C++ diagnostics reported by Bruno Haible.
68641         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
68642         xmalloc.
68643         (quotearg_alloc): Use xcharalloc rather than xmalloc.
68644         (struct slotvec): Move to top level.
68645         (quotearg_n_options): Rewrite to avoid xmalloc.
68646         * lib/xalloc.h (xcharalloc): New function.
68647         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
68648         [defined __cplusplus]: Add function template that provides result
68649         type propagation.  This part of the change is from Bruno Haible.
68650
68651 2006-10-29  Bruno Haible  <bruno@clisp.org>
68652
68653         Make it compile in C++ mode.
68654         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
68655         * lib/strnlen1.c (strnlen1): Cast memchr result.
68656         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
68657         * lib/clean-temp.c (string_equals, string_hash): Add casts.
68658         (create_temp_dir): Rename local variable 'template'.
68659         (compile_csharp_using_sscli): Add cast.
68660         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
68661         * lib/findprog.c (find_in_path): Likewise.
68662         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
68663         * lib/wait-process.c (register_slave_subprocess): Likewise.
68664
68665 2006-10-22  Bruno Haible  <bruno@clisp.org>
68666
68667         * modules/tsearch: New file.
68668         * lib/tsearch.h: New file.
68669         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
68670         * m4/tsearch.m4: New file.
68671         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
68672
68673 2006-10-29  Eric Blake  <ebb9@byu.net>
68674
68675         * lib/arcfour.c: Assume config.h.
68676         * lib/arctwo.c: Likewise.
68677         * lib/base64.c: Likewise.
68678         * lib/check-version.c: Likewise.
68679         * lib/crc.c: Likewise.
68680         * lib/des.c: Likewise.
68681         * lib/gc-gnulib.c: Likewise.
68682         * lib/gc-libgcrypt.c: Likewise.
68683         * lib/gc-pbkdf2-sha1.c: Likewise.
68684         * lib/getaddrinfo.c: Likewise.
68685         * lib/getdelim.c: Likewise.
68686         * lib/getline.c: Likewise.
68687         * lib/hmac-md5.c: Likewise.
68688         * lib/hmac-sha1.c: Likewise.
68689         * lib/iconvme.c: Likewise.
68690         * lib/md2.c: Likewise.
68691         * lib/md4.c: Likewise.
68692         * lib/memxor.c: Likewise.
68693         * lib/read-file.c: Likewise.
68694         * lib/readline.c: Likewise.
68695         * lib/rijndael-alg-fst.c: Likewise.
68696         * lib/rijndael-api-fst.c: Likewise.
68697         * lib/xgetdomainname.c: Likewise.
68698
68699 2006-10-28  Eric Blake  <ebb9@byu.net>
68700
68701         * lib/xstrndup.c: Assume config.h.
68702
68703 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68704
68705         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
68706         stat-macros.h is now for our own macros, whereas stat_h is for
68707         macros in the <sys/stat.h> name space.
68708         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
68709         (STAT_MACROS_H): Remove.
68710         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
68711         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
68712         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
68713         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
68714         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
68715         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
68716         Move these macros to ...
68717         * lib/stat_.h: here.  Don't include stat-macros.h.
68718         * lib/canonicalize.c: Don't include stat-macros.h.
68719         * lib/chown.c: Likewise.
68720         * lib/euidaccess.c: Likewise.
68721         * lib/file-type.c: Likewise.
68722         * lib/filemode.c: Likewise.
68723         * lib/glob.c: Likewise.
68724         * lib/isapipe.c: Likewise.
68725         * lib/lchown.c: Likewise.
68726         * lib/lstat.c: Likewise.
68727         * lib/mkdir-p.c: Likewise.
68728         * lib/rmdir.c: Likewise.
68729         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
68730         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
68731         unless mkdir isn't declared, to speed up 'configure'.
68732         Always create sys/stat.h, since it's unlikely any real sys/stat.h
68733         would define all the S_* symbols.
68734         * modules/canonicalize (Depends-on):
68735         Depend on sys_stat, not stat-macros.
68736         * modules/chown: Likewise.
68737         * modules/euidaccess: Likewise.
68738         * modules/filemode: Likewise.
68739         * modules/file-type: Likewise.
68740         * modules/glob: Likewise.
68741         * modules/isapipe: Likewise.
68742         * modules/lchown: Likewise.
68743         * modules/lstat: Likewise.
68744         * modules/mkancesdirs: Likewise.
68745         * modules/rmdir: Likewise.
68746         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
68747         * modules/modechange: Likewise.
68748         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
68749         (configure.ac): Remove gl_STAT_MACROS.
68750         * modules/sys_stat (Depends-on): Remove stat-macros.
68751
68752 2006-10-27  Bruno Haible  <bruno@clisp.org>
68753
68754         * m4/signed.m4: Remove file.
68755         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
68756         invocation.
68757         * modules/vasnprintf (Files): Remove m4/signed.m4.
68758
68759 2006-10-27  Bruno Haible  <bruno@clisp.org>
68760
68761         Update to GNU gettext 0.16.
68762         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
68763         m4/inttypes-h.m4, m4/signed.m4.
68764         * m4/gettext.m4: Update to GNU gettext 0.16.
68765         * m4/intl.m4: New file, from GNU gettext.
68766         * m4/intldir.m4: New file, from GNU gettext.
68767         * config/srclist.txt: Update
68768
68769 2006-10-27  Eric Blake  <ebb9@byu.net>
68770
68771         * MODULES.html.sh: Document tempname.
68772         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
68773         dependencies.
68774         (Files): Move lib/tempname.c...
68775         * modules/tempname: ...to this new module.
68776         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
68777         (gl_PREREQ_TEMPNAME): Move...
68778         * m4/tempname.m4: ...to this new file.
68779         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
68780         * modules/sys_stat (Depends-on): Add stat-macros.
68781         * lib/stat_.h (includes): Pick up stat macros.
68782         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
68783         if stat macros are broken.
68784         * lib/tempname.c (includes): No need to include "stat-macros.h".
68785         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
68786         (direxists, __path_search) [!_LIBC]: Don't compile these in
68787         gnulib; the tmpdir module covers that.
68788         * lib/tempname.h: New file.
68789
68790 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
68791
68792         * COPYING: Explain how gnulib-tool converts licence headers.
68793         Almost all wording by Eric Blake.
68794
68795 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
68796
68797         * lib/mbchar.h (is_basic_table): Make read-only.
68798         * lib/mbchar.c (is_basic_table): Likewise.
68799         Reported by John Darrington.
68800
68801 2006-10-25  Bruno Haible  <bruno@clisp.org>
68802
68803         * lib/progname.h (set_program_name): Undefine before defining.
68804
68805 2006-10-25  Bruno Haible  <bruno@clisp.org>
68806
68807         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
68808         false for non-gcc C++ compilers.
68809         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
68810
68811 2006-10-24  Bruno Haible  <bruno@clisp.org>
68812
68813         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
68814         iconv implementations like Irix iconv.
68815
68816 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68817
68818         * modules/vararrays: New file.
68819         * m4/vararrays.m4: New file, taken from diffutils.
68820         * MODULES.html.sh: New module vararrays.
68821
68822 2006-10-24  Karl Berry  <karl@gnu.org>
68823
68824         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
68825         Don't call GNU Unix.
68826
68827 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68828
68829         * users.txt: Add Libtool.
68830
68831         Sync from Libtool:
68832
68833         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68834
68835         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
68836         to gnulib's policy of including config.h unconditionally.
68837
68838 2006-10-24  Bruno Haible  <bruno@clisp.org>
68839
68840         * modules/wcwidth (Files): Add m4/wint_t.m4.
68841         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
68842         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
68843
68844 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68845
68846         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
68847         to pacify GCC with some -W flags enabled.  Problem reported by
68848         Bruno Haible.
68849
68850 2006-10-24  Jim Meyering  <jim@meyering.net>
68851
68852         * MODULES.html.sh: Remove uinttostr.  It's not a module.
68853         Reported by Karl Berry.
68854
68855 2006-10-23  Bruno Haible  <bruno@clisp.org>
68856
68857         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
68858
68859 2006-10-24  Bruno Haible  <bruno@clisp.org>
68860
68861         * lib/gl_list.h: Use C comment style, not C++ comment style.
68862
68863 2006-10-23  Eric Blake  <ebb9@byu.net>
68864
68865         * lib/getaddrinfo.c (includes): Add missing include.
68866
68867 2006-10-23  Bruno Haible  <bruno@clisp.org>
68868             Paul Eggert  <eggert@cs.ucla.edu>
68869
68870         Ability to rename obstack_free.
68871         * lib/obstack.h (__obstack_free): New macro. Declare instead of
68872         obstack_free.
68873         (obstack_free): Invoke the __obstack_free macro.
68874         * lib/obstack.c (obstack_free): Use __obstack_free macro.
68875
68876 2006-10-23  Bruno Haible  <bruno@clisp.org>
68877             Paul Eggert  <eggert@cs.ucla.edu>
68878
68879         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
68880         __argc, __argv from the declaration. (They are defined as macros on
68881         mingw.)
68882
68883 2006-10-22  Bruno Haible  <bruno@clisp.org>
68884
68885         * doc/gnulib-intro.texi: New file.
68886         * doc/gnulib.texi: Include it.
68887
68888 2006-10-21  Bruno Haible  <bruno@clisp.org>
68889
68890         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
68891         "Introduction", "Miscellanous Notes", "Particular Modules".
68892
68893 2006-10-21  Bruno Haible  <bruno@clisp.org>
68894
68895         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68896         Change mostlyclean-local rule to avoid sh syntax error from bash
68897         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
68898
68899 2006-10-23  Jim Meyering  <jim@meyering.net>
68900
68901         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
68902         in place of snprintf.
68903
68904         * modules/inttostr (Files): Add lib/uinttostr.c.
68905         * lib/uinttostr.c (inttostr): New file/function.
68906         * lib/inttostr.h (uinttostr): Declare.
68907         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
68908         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68909         Add uinttostr.
68910         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
68911
68912 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68913
68914         * lib/canonicalize.c (ELOOP): Define if not already defined.
68915         Problem reported by Bruno Haible in
68916         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
68917
68918 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68919
68920         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
68921         Problem reported by Perry Smith and Ville Laurikari.
68922
68923         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
68924         uses.
68925
68926 2006-10-19  Bruno Haible  <bruno@clisp.org>
68927
68928         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
68929         for mingw.
68930
68931 2006-10-19  Bruno Haible  <bruno@clisp.org>
68932
68933         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
68934         Needed for mingw.
68935
68936 2006-10-19  Bruno Haible  <bruno@clisp.org>
68937
68938         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
68939
68940 2006-10-19  Bruno Haible  <bruno@clisp.org>
68941
68942         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
68943         it.
68944
68945 2006-10-19  Bruno Haible  <bruno@clisp.org>
68946
68947         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
68948         invocation.
68949
68950 2006-10-19  Bruno Haible  <bruno@clisp.org>
68951
68952         * gnulib-tool (func_create_testdir): Don't include ftruncate and
68953         mountlist by default.
68954
68955 2006-10-16  Bruno Haible  <bruno@clisp.org>
68956
68957         * lib/c-strstr.c: Include c-strstr.h.
68958
68959 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68960
68961         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
68962         in a slash.
68963
68964 2006-10-18  Bruno Haible  <bruno@clisp.org>
68965
68966         * lib/lock.h [C++]: Wrap definitions in extern "C".
68967
68968 2006-10-18  Bruno Haible  <bruno@clisp.org>
68969
68970         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
68971         gl_LIBOBJS list.
68972
68973 2006-10-18  Bruno Haible  <bruno@clisp.org>
68974
68975         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
68976
68977 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
68978
68979         * lib/xstrtol.h: Include gettext.h.
68980         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
68981         Problem reported by Eric Blake.
68982         * modules/xstrtol (Depends-on): Add gettext-h.
68983
68984 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
68985
68986         * lib/strftime.c (advance): New macro.
68987         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
68988         incomplete type, so you can't add 0 to it.  Problem and patch
68989         reported by Eelco Dolstra for dietlibc.
68990
68991 2006-10-18  Jim Meyering  <jim@meyering.net>
68992
68993         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
68994         type for a local, and rename it: s/up/user_proc/.
68995
68996 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
68997
68998         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
68999         READ_UTMP_USER_PROCESS.
69000         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
69001
69002 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69003
69004         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
69005         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
69006
69007 2006-10-17  Eric Blake  <ebb9@byu.net>
69008
69009         * lib/sigprocmask.c (sigprocmask): Fix typo.
69010
69011         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
69012
69013         * modules/clean-temp (Makefile.am): Don't add to make output...
69014         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
69015         config.h.
69016
69017 2006-10-17  Bruno Haible  <bruno@clisp.org>
69018
69019         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
69020         differently if DEFAULT_TEXT_DOMAIN is set.
69021
69022 2006-10-16  Bruno Haible  <bruno@clisp.org>
69023
69024         * lib/clean-temp.c: Include fwriteerror.h.
69025
69026 2006-10-16  Bruno Haible  <bruno@clisp.org>
69027
69028         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
69029
69030 2006-10-16  Bruno Haible  <bruno@clisp.org>
69031
69032         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
69033         * lib/sigprocmask.h: Include <sys/types.h>.
69034         (sigset_t): Use the system's definition if present.
69035
69036 2006-10-17  Eric Blake  <ebb9@byu.net>
69037
69038         * lib/xvasprintf.c (includes): Assume config.h.
69039         * lib/xasprintf.c (includes): Likewise.
69040
69041 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
69042
69043         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
69044         at least as wide as intmax_t.
69045
69046 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
69047
69048         (Imported from Automake.)
69049         * build-aux/gnupload: Update to version 1.1 of directive file.
69050
69051 2006-10-16  Eric Blake  <ebb9@byu.net>
69052
69053         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
69054         match Automake 1.10a.
69055
69056 2006-10-14  Bruno Haible  <bruno@clisp.org>
69057
69058         * modules/sigprocmask: New file.
69059         * lib/sigprocmask.h: New file.
69060         * lib/sigprocmask.c: New file.
69061         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
69062         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
69063         request sigprocmask.o.
69064         (gl_PREREQ_SIGPROCMASK): New macro.
69065         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
69066         (Depends-on): Add sigprocmask.
69067         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
69068         gt_SIGNALBLOCKING. Test for 'raise' only once.
69069         * lib/fatal-signal.c: Include sigprocmask.h.
69070         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
69071         unblock_fatal_signals): Define always.
69072         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69073         sigprocmask.
69074
69075 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69076
69077         Sync from Automake.
69078         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
69079         which incorrectly sets the mode of an existing destination
69080         directory.  In some cases the unpatched install-sh could do the
69081         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
69082         system.  We hope this is rare in practice, but it's clearly worth
69083         fixing.  Problem reported by Alex Unleashed in
69084         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
69085         Also, don't bother to check for -m bugs unless we're using -m;
69086         suggested by Stepan Kasal.
69087
69088 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69089
69090         Sync from Automake.
69091         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
69092         `-c' flag, so they appear at the same position as in %FASTDEP%
69093         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
69094         which ignores unknown options only after the first non-option.
69095         Bug report against M4 by Nelson H. F. Beebe.
69096
69097 2006-10-13  Jim Meyering  <jim@meyering.net>
69098
69099         Fix a bug in yesterday's change.
69100         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
69101         p->fts_statp->st_dev would be used uninitialized.
69102         Ensures that we always call fts_stat on the very first entry.
69103         Miklos Szeredi reported that find -xdev stopped working.
69104
69105 2006-10-12  Bruno Haible  <bruno@clisp.org>
69106
69107         * gnulib-tool (func_get_automake_snippet): Append an automatically
69108         computed EXTRA_DIST augmentation.
69109         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
69110         * modules/alloca-opt (Makefile.am): Likewise.
69111         * modules/allocsa (Makefile.am): Likewise.
69112         * modules/arcfour (Makefile.am): Likewise.
69113         * modules/arctwo (Makefile.am): Likewise.
69114         * modules/argmatch (Makefile.am): Likewise.
69115         * modules/argz (Makefile.am): Likewise.
69116         * modules/atexit (Makefile.am): Likewise.
69117         * modules/backupfile (Makefile.am): Likewise.
69118         * modules/byteswap (Makefile.am): Likewise.
69119         * modules/c-strtod (Makefile.am): Likewise.
69120         * modules/c-strtold (Makefile.am): Likewise.
69121         * modules/calloc (Makefile.am): Likewise.
69122         * modules/canon-host (Makefile.am): Likewise.
69123         * modules/canonicalize (Makefile.am): Likewise.
69124         * modules/chdir-long (Makefile.am): Likewise.
69125         * modules/chdir-safer (Makefile.am): Likewise.
69126         * modules/check-version (Makefile.am): Likewise.
69127         * modules/chown (Makefile.am): Likewise.
69128         * modules/cloexec (Makefile.am): Likewise.
69129         * modules/close-stream (Makefile.am): Likewise.
69130         * modules/closeout (Makefile.am): Likewise.
69131         * modules/crc (Makefile.am): Likewise.
69132         * modules/csharpexec (Makefile.am): Likewise.
69133         * modules/cycle-check (Makefile.am): Likewise.
69134         * modules/des (Makefile.am): Likewise.
69135         * modules/dev-ino (Makefile.am): Likewise.
69136         * modules/dirfd (Makefile.am): Likewise.
69137         * modules/dirname (Makefile.am): Likewise.
69138         * modules/dup2 (Makefile.am): Likewise.
69139         * modules/eealloc (Makefile.am): Likewise.
69140         * modules/error (Makefile.am): Likewise.
69141         * modules/euidaccess (Makefile.am): Likewise.
69142         * modules/exclude (Makefile.am): Likewise.
69143         * modules/exitfail (Makefile.am): Likewise.
69144         * modules/fcntl-safer (Makefile.am): Likewise.
69145         * modules/fcntl (Makefile.am): Likewise.
69146         * modules/file-type (Makefile.am): Likewise.
69147         * modules/fileblocks (Makefile.am): Likewise.
69148         * modules/filemode (Makefile.am): Likewise.
69149         * modules/filenamecat (Makefile.am): Likewise.
69150         * modules/fnmatch (Makefile.am): Likewise.
69151         * modules/fopen-safer (Makefile.am): Likewise.
69152         * modules/fpending (Makefile.am): Likewise.
69153         * modules/fprintftime (Makefile.am): Likewise.
69154         * modules/free (Makefile.am): Likewise.
69155         * modules/fsusage (Makefile.am): Likewise.
69156         * modules/ftruncate (Makefile.am): Likewise.
69157         * modules/fts (Makefile.am): Likewise.
69158         * modules/gc-arcfour (Makefile.am): Likewise.
69159         * modules/gc-des (Makefile.am): Likewise.
69160         * modules/gc-hmac-md5 (Makefile.am): Likewise.
69161         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
69162         * modules/gc-md4 (Makefile.am): Likewise.
69163         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69164         * modules/gc-sha1 (Makefile.am): Likewise.
69165         * modules/gc (Makefile.am): Likewise.
69166         * modules/getaddrinfo (Makefile.am): Likewise.
69167         * modules/getcwd (Makefile.am): Likewise.
69168         * modules/getdelim (Makefile.am): Likewise.
69169         * modules/getdomainname (Makefile.am): Likewise.
69170         * modules/getgroups (Makefile.am): Likewise.
69171         * modules/gethostname (Makefile.am): Likewise.
69172         * modules/gethrxtime (Makefile.am): Likewise.
69173         * modules/getline (Makefile.am): Likewise.
69174         * modules/getloadavg (Makefile.am): Likewise.
69175         * modules/getlogin_r (Makefile.am): Likewise.
69176         * modules/getndelim2 (Makefile.am): Likewise.
69177         * modules/getopt (Makefile.am): Likewise.
69178         * modules/getpagesize (Makefile.am): Likewise.
69179         * modules/getpass-gnu (Makefile.am): Likewise.
69180         * modules/getpass (Makefile.am): Likewise.
69181         * modules/getsubopt (Makefile.am): Likewise.
69182         * modules/gettime (Makefile.am): Likewise.
69183         * modules/gettimeofday (Makefile.am): Likewise.
69184         * modules/getugroups (Makefile.am): Likewise.
69185         * modules/getusershell (Makefile.am): Likewise.
69186         * modules/glob (Makefile.am): Likewise.
69187         * modules/group-member (Makefile.am): Likewise.
69188         * modules/hard-locale (Makefile.am): Likewise.
69189         * modules/hash (Makefile.am): Likewise.
69190         * modules/hmac-md5 (Makefile.am): Likewise.
69191         * modules/hmac-sha1 (Makefile.am): Likewise.
69192         * modules/human (Makefile.am): Likewise.
69193         * modules/idcache (Makefile.am): Likewise.
69194         * modules/imaxabs (Makefile.am): Likewise.
69195         * modules/imaxdiv (Makefile.am): Likewise.
69196         * modules/inet_ntop (Makefile.am): Likewise.
69197         * modules/inet_pton (Makefile.am): Likewise.
69198         * modules/intprops (Makefile.am): Likewise.
69199         * modules/inttostr (Makefile.am): Likewise.
69200         * modules/inttypes (Makefile.am): Likewise.
69201         * modules/isapipe (Makefile.am): Likewise.
69202         * modules/javaversion (Makefile.am): Likewise.
69203         * modules/lchmod (Makefile.am): Likewise.
69204         * modules/lchown (Makefile.am): Likewise.
69205         * modules/localcharset (Makefile.am): Likewise.
69206         * modules/long-options (Makefile.am): Likewise.
69207         * modules/lstat (Makefile.am): Likewise.
69208         * modules/malloc (Makefile.am): Likewise.
69209         * modules/mathl (Makefile.am): Likewise.
69210         * modules/mbchar (Makefile.am): Likewise.
69211         * modules/md2 (Makefile.am): Likewise.
69212         * modules/md4 (Makefile.am): Likewise.
69213         * modules/md5 (Makefile.am): Likewise.
69214         * modules/memcasecmp (Makefile.am): Likewise.
69215         * modules/memchr (Makefile.am): Likewise.
69216         * modules/memcmp (Makefile.am): Likewise.
69217         * modules/memcoll (Makefile.am): Likewise.
69218         * modules/memcpy (Makefile.am): Likewise.
69219         * modules/memmem (Makefile.am): Likewise.
69220         * modules/memmove (Makefile.am): Likewise.
69221         * modules/mempcpy (Makefile.am): Likewise.
69222         * modules/memrchr (Makefile.am): Likewise.
69223         * modules/memset (Makefile.am): Likewise.
69224         * modules/memxor (Makefile.am): Likewise.
69225         * modules/mkancesdirs (Makefile.am): Likewise.
69226         * modules/mkdir-p (Makefile.am): Likewise.
69227         * modules/mkdir (Makefile.am): Likewise.
69228         * modules/mkdtemp (Makefile.am): Likewise.
69229         * modules/mkstemp (Makefile.am): Likewise.
69230         * modules/mktime (Makefile.am): Likewise.
69231         * modules/modechange (Makefile.am): Likewise.
69232         * modules/mountlist (Makefile.am): Likewise.
69233         * modules/nanosleep (Makefile.am): Likewise.
69234         * modules/obstack (Makefile.am): Likewise.
69235         * modules/openat (Makefile.am): Likewise.
69236         * modules/pagealign_alloc (Makefile.am): Likewise.
69237         * modules/pathmax (Makefile.am): Likewise.
69238         * modules/physmem (Makefile.am): Likewise.
69239         * modules/poll (Makefile.am): Likewise.
69240         * modules/posixtm (Makefile.am): Likewise.
69241         * modules/posixver (Makefile.am): Likewise.
69242         * modules/putenv (Makefile.am): Likewise.
69243         * modules/quote (Makefile.am): Likewise.
69244         * modules/quotearg (Makefile.am): Likewise.
69245         * modules/raise (Makefile.am): Likewise.
69246         * modules/read-file (Makefile.am): Likewise.
69247         * modules/readline (Makefile.am): Likewise.
69248         * modules/readlink (Makefile.am): Likewise.
69249         * modules/readtokens (Makefile.am): Likewise.
69250         * modules/readutmp (Makefile.am): Likewise.
69251         * modules/realloc (Makefile.am): Likewise.
69252         * modules/regex (Makefile.am): Likewise.
69253         * modules/rename-dest-slash (Makefile.am): Likewise.
69254         * modules/rename (Makefile.am): Likewise.
69255         * modules/rijndael (Makefile.am): Likewise.
69256         * modules/rmdir (Makefile.am): Likewise.
69257         * modules/rpmatch (Makefile.am): Likewise.
69258         * modules/safe-read (Makefile.am): Likewise.
69259         * modules/safe-write (Makefile.am): Likewise.
69260         * modules/same-inode (Makefile.am): Likewise.
69261         * modules/same (Makefile.am): Likewise.
69262         * modules/save-cwd (Makefile.am): Likewise.
69263         * modules/savedir (Makefile.am): Likewise.
69264         * modules/setenv (Makefile.am): Likewise.
69265         * modules/settime (Makefile.am): Likewise.
69266         * modules/sha1 (Makefile.am): Likewise.
69267         * modules/sig2str (Makefile.am): Likewise.
69268         * modules/snprintf (Makefile.am): Likewise.
69269         * modules/stat-macros (Makefile.am): Likewise.
69270         * modules/stat-time (Makefile.am): Likewise.
69271         * modules/stdbool (Makefile.am): Likewise.
69272         * modules/stdint (Makefile.am): Likewise.
69273         * modules/stdlib-safer (Makefile.am): Likewise.
69274         * modules/stpcpy (Makefile.am): Likewise.
69275         * modules/stpncpy (Makefile.am): Likewise.
69276         * modules/strcase (Makefile.am): Likewise.
69277         * modules/strcasestr (Makefile.am): Likewise.
69278         * modules/strchrnul (Makefile.am): Likewise.
69279         * modules/strcspn (Makefile.am): Likewise.
69280         * modules/strdup (Makefile.am): Likewise.
69281         * modules/strerror (Makefile.am): Likewise.
69282         * modules/strftime (Makefile.am): Likewise.
69283         * modules/strndup (Makefile.am): Likewise.
69284         * modules/strnlen (Makefile.am): Likewise.
69285         * modules/strpbrk (Makefile.am): Likewise.
69286         * modules/strsep (Makefile.am): Likewise.
69287         * modules/strstr (Makefile.am): Likewise.
69288         * modules/strtod (Makefile.am): Likewise.
69289         * modules/strtoimax (Makefile.am): Likewise.
69290         * modules/strtok_r (Makefile.am): Likewise.
69291         * modules/strtol (Makefile.am): Likewise.
69292         * modules/strtoll (Makefile.am): Likewise.
69293         * modules/strtoul (Makefile.am): Likewise.
69294         * modules/strtoull (Makefile.am): Likewise.
69295         * modules/strtoumax (Makefile.am): Likewise.
69296         * modules/strverscmp (Makefile.am): Likewise.
69297         * modules/sys_socket (Makefile.am): Likewise.
69298         * modules/sys_stat (Makefile.am): Likewise.
69299         * modules/sysexits (Makefile.am): Likewise.
69300         * modules/time_r (Makefile.am): Likewise.
69301         * modules/timegm (Makefile.am): Likewise.
69302         * modules/timespec (Makefile.am): Likewise.
69303         * modules/tmpfile-safer (Makefile.am): Likewise.
69304         * modules/trim (Makefile.am): Likewise.
69305         * modules/unistd-safer (Makefile.am): Likewise.
69306         * modules/unlinkdir (Makefile.am): Likewise.
69307         * modules/unlocked-io (Makefile.am): Likewise.
69308         * modules/userspec (Makefile.am): Likewise.
69309         * modules/utime (Makefile.am): Likewise.
69310         * modules/utimecmp (Makefile.am): Likewise.
69311         * modules/utimens (Makefile.am): Likewise.
69312         * modules/vasnprintf (Makefile.am): Likewise.
69313         * modules/vasprintf (Makefile.am): Likewise.
69314         * modules/vsnprintf (Makefile.am): Likewise.
69315         * modules/xalloc (Makefile.am): Likewise.
69316         * modules/xgetcwd (Makefile.am): Likewise.
69317         * modules/xnanosleep (Makefile.am): Likewise.
69318         * modules/xreadlink (Makefile.am): Likewise.
69319         * modules/xstrtod (Makefile.am): Likewise.
69320         * modules/xstrtol (Makefile.am): Likewise.
69321         * modules/xstrtold (Makefile.am): Likewise.
69322         * modules/yesno (Makefile.am): Likewise.
69323         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
69324
69325 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69326
69327         * modules/error (Makefile.am): Distribute files through
69328         EXTRA_DIST, not lib_SOURCES.
69329
69330 2006-10-12  Eric Blake  <ebb9@byu.net>
69331
69332         * modules/error (Makefile.am): Distribute files in /lib.
69333         * modules/obstack (Makefile.am): Likewise.
69334
69335 2006-10-12  Bruno Haible  <bruno@clisp.org>
69336
69337         * modules/acl (Makefile.am): Distribute all files in lib/ through
69338         EXTRA_DIST.
69339         * modules/arcfour (Makefile.am): Likewise.
69340         * modules/arctwo (Makefile.am): Likewise.
69341         * modules/argmatch (Makefile.am): Likewise.
69342         * modules/argz (Makefile.am): Likewise.
69343         * modules/atexit (Makefile.am): Likewise.
69344         * modules/backupfile (Makefile.am): Likewise.
69345         * modules/c-strtod (Makefile.am): Likewise.
69346         * modules/c-strtold (Makefile.am): Likewise.
69347         * modules/calloc (Makefile.am): Likewise.
69348         * modules/canon-host (Makefile.am): Likewise.
69349         * modules/canonicalize (Makefile.am): Likewise.
69350         * modules/chdir-long (Makefile.am): Likewise.
69351         * modules/chdir-safer (Makefile.am): Likewise.
69352         * modules/check-version (Makefile.am): Likewise.
69353         * modules/chown (Makefile.am): Likewise.
69354         * modules/cloexec (Makefile.am): Likewise.
69355         * modules/close-stream (Makefile.am): Likewise.
69356         * modules/closeout (Makefile.am): Likewise.
69357         * modules/crc (Makefile.am): Likewise.
69358         * modules/cycle-check (Makefile.am): Likewise.
69359         * modules/des (Makefile.am): Likewise.
69360         * modules/dirfd (Makefile.am): Likewise.
69361         * modules/dirname (Makefile.am): Likewise.
69362         * modules/dup2 (Makefile.am): Likewise.
69363         * modules/euidaccess (Makefile.am): Likewise.
69364         * modules/exclude (Makefile.am): Likewise.
69365         * modules/exitfail (Makefile.am): Likewise.
69366         * modules/fcntl-safer (Makefile.am): Likewise.
69367         * modules/file-type (Makefile.am): Likewise.
69368         * modules/fileblocks (Makefile.am): Likewise.
69369         * modules/filemode (Makefile.am): Likewise.
69370         * modules/filenamecat (Makefile.am): Likewise.
69371         * modules/fnmatch (Makefile.am): Likewise.
69372         * modules/fopen-safer (Makefile.am): Likewise.
69373         * modules/fpending (Makefile.am): Likewise.
69374         * modules/fprintftime (Makefile.am): Likewise.
69375         * modules/free (Makefile.am): Likewise.
69376         * modules/fsusage (Makefile.am): Likewise.
69377         * modules/ftruncate (Makefile.am): Likewise.
69378         * modules/fts (Makefile.am): Likewise.
69379         * modules/gc (Makefile.am): Likewise.
69380         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69381         * modules/getaddrinfo (Makefile.am): Likewise.
69382         * modules/getcwd (Makefile.am): Likewise.
69383         * modules/getdelim (Makefile.am): Likewise.
69384         * modules/getdomainname (Makefile.am): Likewise.
69385         * modules/getgroups (Makefile.am): Likewise.
69386         * modules/gethostname (Makefile.am): Likewise.
69387         * modules/gethrxtime (Makefile.am): Likewise.
69388         * modules/getline (Makefile.am): Likewise.
69389         * modules/getloadavg (Makefile.am): Likewise.
69390         * modules/getlogin_r (Makefile.am): Likewise.
69391         * modules/getopt (Makefile.am): Likewise.
69392         * modules/getpass (Makefile.am): Likewise.
69393         * modules/getpass-gnu (Makefile.am): Likewise.
69394         * modules/getsubopt (Makefile.am): Likewise.
69395         * modules/gettime (Makefile.am): Likewise.
69396         * modules/gettimeofday (Makefile.am): Likewise.
69397         * modules/getugroups (Makefile.am): Likewise.
69398         * modules/getusershell (Makefile.am): Likewise.
69399         * modules/glob (Makefile.am): Likewise.
69400         * modules/group-member (Makefile.am): Likewise.
69401         * modules/hard-locale (Makefile.am): Likewise.
69402         * modules/hash (Makefile.am): Likewise.
69403         * modules/hmac-md5 (Makefile.am): Likewise.
69404         * modules/hmac-sha1 (Makefile.am): Likewise.
69405         * modules/human (Makefile.am): Likewise.
69406         * modules/idcache (Makefile.am): Likewise.
69407         * modules/imaxabs (Makefile.am): Likewise.
69408         * modules/imaxdiv (Makefile.am): Likewise.
69409         * modules/inet_ntop (Makefile.am): Likewise.
69410         * modules/inet_pton (Makefile.am): Likewise.
69411         * modules/inttostr (Makefile.am): Likewise.
69412         * modules/isapipe (Makefile.am): Likewise.
69413         * modules/lchown (Makefile.am): Likewise.
69414         * modules/long-options (Makefile.am): Likewise.
69415         * modules/lstat (Makefile.am): Likewise.
69416         * modules/malloc (Makefile.am): Likewise.
69417         * modules/mathl (Makefile.am): Likewise.
69418         * modules/mbchar (Makefile.am): Likewise.
69419         * modules/md2 (Makefile.am): Likewise.
69420         * modules/md4 (Makefile.am): Likewise.
69421         * modules/md5 (Makefile.am): Likewise.
69422         * modules/memcasecmp (Makefile.am): Likewise.
69423         * modules/memchr (Makefile.am): Likewise.
69424         * modules/memcmp (Makefile.am): Likewise.
69425         * modules/memcoll (Makefile.am): Likewise.
69426         * modules/memcpy (Makefile.am): Likewise.
69427         * modules/memmem (Makefile.am): Likewise.
69428         * modules/memmove (Makefile.am): Likewise.
69429         * modules/mempcpy (Makefile.am): Likewise.
69430         * modules/memrchr (Makefile.am): Likewise.
69431         * modules/memset (Makefile.am): Likewise.
69432         * modules/memxor (Makefile.am): Likewise.
69433         * modules/mkancesdirs (Makefile.am): Likewise.
69434         * modules/mkdir (Makefile.am): Likewise.
69435         * modules/mkdir-p (Makefile.am): Likewise.
69436         * modules/mkdtemp (Makefile.am): Likewise.
69437         * modules/mkstemp (Makefile.am): Likewise.
69438         * modules/mktime (Makefile.am): Likewise.
69439         * modules/modechange (Makefile.am): Likewise.
69440         * modules/mountlist (Makefile.am): Likewise.
69441         * modules/nanosleep (Makefile.am): Likewise.
69442         * modules/openat (Makefile.am): Likewise.
69443         * modules/pagealign_alloc (Makefile.am): Likewise.
69444         * modules/physmem (Makefile.am): Likewise.
69445         * modules/poll (Makefile.am): Likewise.
69446         * modules/posixtm (Makefile.am): Likewise.
69447         * modules/posixver (Makefile.am): Likewise.
69448         * modules/putenv (Makefile.am): Likewise.
69449         * modules/quote (Makefile.am): Likewise.
69450         * modules/quotearg (Makefile.am): Likewise.
69451         * modules/raise (Makefile.am): Likewise.
69452         * modules/read-file (Makefile.am): Likewise.
69453         * modules/readline (Makefile.am): Likewise.
69454         * modules/readlink (Makefile.am): Likewise.
69455         * modules/readtokens (Makefile.am): Likewise.
69456         * modules/readutmp (Makefile.am): Likewise.
69457         * modules/realloc (Makefile.am): Likewise.
69458         * modules/regex (Makefile.am): Likewise.
69459         * modules/rename (Makefile.am): Likewise.
69460         * modules/rename-dest-slash (Makefile.am): Likewise.
69461         * modules/rijndael (Makefile.am): Likewise.
69462         * modules/rmdir (Makefile.am): Likewise.
69463         * modules/rpmatch (Makefile.am): Likewise.
69464         * modules/safe-read (Makefile.am): Likewise.
69465         * modules/safe-write (Makefile.am): Likewise.
69466         * modules/same (Makefile.am): Likewise.
69467         * modules/save-cwd (Makefile.am): Likewise.
69468         * modules/savedir (Makefile.am): Likewise.
69469         * modules/setenv (Makefile.am): Likewise.
69470         * modules/settime (Makefile.am): Likewise.
69471         * modules/sha1 (Makefile.am): Likewise.
69472         * modules/sig2str (Makefile.am): Likewise.
69473         * modules/snprintf (Makefile.am): Likewise.
69474         * modules/stdlib-safer (Makefile.am): Likewise.
69475         * modules/stpcpy (Makefile.am): Likewise.
69476         * modules/stpncpy (Makefile.am): Likewise.
69477         * modules/strcase (Makefile.am): Likewise.
69478         * modules/strcasestr (Makefile.am): Likewise.
69479         * modules/strchrnul (Makefile.am): Likewise.
69480         * modules/strcspn (Makefile.am): Likewise.
69481         * modules/strdup (Makefile.am): Likewise.
69482         * modules/strerror (Makefile.am): Likewise.
69483         * modules/strftime (Makefile.am): Likewise.
69484         * modules/strndup (Makefile.am): Likewise.
69485         * modules/strnlen (Makefile.am): Likewise.
69486         * modules/strpbrk (Makefile.am): Likewise.
69487         * modules/strsep (Makefile.am): Likewise.
69488         * modules/strstr (Makefile.am): Likewise.
69489         * modules/strtod (Makefile.am): Likewise.
69490         * modules/strtoimax (Makefile.am): Likewise.
69491         * modules/strtok_r (Makefile.am): Likewise.
69492         * modules/strtol (Makefile.am): Likewise.
69493         * modules/strtoll (Makefile.am): Likewise.
69494         * modules/strtoul (Makefile.am): Likewise.
69495         * modules/strtoull (Makefile.am): Likewise.
69496         * modules/strtoumax (Makefile.am): Likewise.
69497         * modules/strverscmp (Makefile.am): Likewise.
69498         * modules/time_r (Makefile.am): Likewise.
69499         * modules/timegm (Makefile.am): Likewise.
69500         * modules/tmpfile-safer (Makefile.am): Likewise.
69501         * modules/unistd-safer (Makefile.am): Likewise.
69502         * modules/unlinkdir (Makefile.am): Likewise.
69503         * modules/userspec (Makefile.am): Likewise.
69504         * modules/utime (Makefile.am): Likewise.
69505         * modules/utimecmp (Makefile.am): Likewise.
69506         * modules/utimens (Makefile.am): Likewise.
69507         * modules/vasnprintf (Makefile.am): Likewise.
69508         * modules/vasprintf (Makefile.am): Likewise.
69509         * modules/vsnprintf (Makefile.am): Likewise.
69510         * modules/xalloc (Makefile.am): Likewise.
69511         * modules/xgetcwd (Makefile.am): Likewise.
69512         * modules/xnanosleep (Makefile.am): Likewise.
69513         * modules/xreadlink (Makefile.am): Likewise.
69514         * modules/xstrtod (Makefile.am): Likewise.
69515         * modules/xstrtol (Makefile.am): Likewise.
69516         * modules/xstrtold (Makefile.am): Likewise.
69517         * modules/yesno (Makefile.am): Likewise.
69518
69519 2006-10-12  Jim Meyering  <jim@meyering.net>
69520
69521         * m4/getloadavg.m4: Revert the change below.
69522
69523         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
69524         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
69525         fail with a symlink, which is what coreutils' ./bootstrap now
69526         creates by default.
69527
69528 2006-10-12  Bruno Haible  <bruno@clisp.org>
69529
69530         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
69531         mingw.
69532         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
69533         MSVC and mingw explicitly.
69534
69535 2006-10-11  Simon Josefsson  <jas@extundo.com>
69536             Bruno Haible  <bruno@clisp.org>
69537
69538         Add support for multiple gnulib-tool invocations in the scope of a
69539         single configure.ac file.
69540         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
69541         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
69542         with the same contents as the _LIBADD variable.
69543         (func_emit_initmacro_start, func_emit_initmacro_end,
69544         func_emit_initmacro_done): New functions.
69545         (func_import, func_create_testdir): Invoke them. Allow the identifiers
69546         gl_LIBOBJS and gl_LTLIBOBJS.
69547
69548 2006-10-11  Bruno Haible  <bruno@clisp.org>
69549
69550         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
69551         (func_create_testdir): Don't create po/Makefile.am, don't invoke
69552         autoreconf. Instead, invoke autopoint explicitly but move back the
69553         *.m4 files from gnulib.
69554
69555 2006-10-11  Bruno Haible  <bruno@clisp.org>
69556
69557         * gnulib-tool (func_usage): Make module names after --create-testdir
69558         optional.
69559         (func_create_testdir): If no module was specified, use nearly all
69560         modules.
69561
69562 2006-10-12  Jim Meyering  <jim@meyering.net>
69563
69564         Big performance improvement for fts-based tools that use FTS_NOSTAT.
69565         Avoid spurious inode-mismatch problems on non-POSIX file systems.
69566         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
69567         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
69568         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
69569         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
69570         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
69571         (fts_set_stat_required): New function.
69572         (fts_open): Defer the calls to fts_stat, if possible or requested.
69573         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
69574         into fts_stat itself.
69575         (fts_read): Perform any required (deferred) fts_stat call.
69576         (fts_build): Likewise, for the directory we're about to open and read.
69577         In the readdir loop, carefully decide whether each entry will require
69578         an eventual call to fts_stat, using dirent.d_type info if available.
69579         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
69580         a command line argument into this function.  Update all callers.
69581         Map a return value of FTS_DOT to FTS_D for a command line argument.
69582         * modules/fts (Depends-on): Add d-type.  Alphabetize.
69583         Thanks to Miklos Szeredi for his tenacity and for the initial
69584         bug report about "find" failing on a FUSE-based file system.
69585
69586         * lib/fts.c (fts_open): Use consistent indentation.
69587
69588 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69589
69590         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
69591         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
69592         reported by Jim Meyering.  All uses of cache variables renamed
69593         to match Autoconf's.
69594         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
69595         the other one.
69596
69597         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
69598         Fix misspelling in diagnostic.
69599
69600 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69601
69602         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
69603         defined.  Problem reported by Matthew Woehlke.
69604
69605         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
69606         Add support for Tandem NonStop R series.
69607         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
69608         Use new macro.
69609
69610         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
69611         (has_trailing_slash): Omit size arg; all callers changed.
69612         Omit 'inline', since it doesn't help performance and we'd
69613         need to configure it.
69614         Don't count //, ///, etc. as having a trailing slash.
69615         As a side effect, this removes a C99ism reported by Matthew Woehlke.
69616         (rpl_rename_dest_slash): On failure, use rename's errno rather
69617         than (in some cases) an incorrect or junk errno.
69618         Simplify code by removing need to compute length; this does
69619         cause it to make two passes instead of one over the file name,
69620         but it's worth it.
69621
69622         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
69623         change, since Autoconf's version may no longer be appropriate now
69624         that we are using CVS Autoconf's version.  Add support for Tandem.
69625
69626 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69627             Bruno Haible  <bruno@clisp.org>
69628
69629         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
69630         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
69631         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
69632         gl_AC_TYPE_LONG_LONG.
69633
69634         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
69635         instead of HAVE_LONG_LONG.
69636         * lib/printf-args.c (printf_fetchargs): Likewise.
69637         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
69638         * lib/vasnprintf.c (VASNPRINTF): Likewise.
69639         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
69640         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
69641         gl_AC_TYPE_LONG_LONG.
69642
69643 2006-10-11  Bruno Haible  <bruno@clisp.org>
69644
69645         * m4/longlong.m4: Add comments.
69646         * m4/ulonglong.m4: Likewise.
69647
69648 2006-10-10  Bruno Haible  <bruno@clisp.org>
69649
69650         Make it possible to #define stpcpy, strdup to aliases.
69651         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
69652         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
69653
69654 2006-10-10  Bruno Haible  <bruno@clisp.org>
69655
69656         Make it possible to #define gcd to an alias.
69657         * lib/gcd.c: Include config.h.
69658
69659 2006-10-10  Bruno Haible  <bruno@clisp.org>
69660
69661         Make it possible to #define c_isascii to an alias.
69662         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
69663         defined. Undefine the macros before defining them, to avoid gcc
69664         warnings.
69665         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
69666         define NO_C_CTYPE_MACROS early.
69667
69668 2006-10-10  Bruno Haible  <bruno@clisp.org>
69669
69670         Make it possible to #define set_program_name to an alias.
69671         * lib/progname.c: Don't undefine set_program_name; instead, undefine
69672         ENABLE_RELOCATABLE early.
69673
69674 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69675
69676         Port to Tandem NSK OSS, which has 64-bit signed int but at most
69677         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
69678         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
69679         More generally, don't assume that 64-bit signed int is available
69680         if unsigned int is, and vice versa.
69681         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
69682         unsigned symbols, not on their signed counterparts.
69683         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
69684         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
69685         (UINT64_C, UINTMAX_C):
69686         Likewise.
69687         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
69688         unsigned counterparts.
69689         (Have_long_long, Unsigned): New macros.
69690         (Int): Renamed from INT.
69691         (strtoimax): Use the new macros.
69692         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
69693         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
69694         * modules/inttypes (inttypes.h): Substitute
69695         HAVE_UNSIGNED_LONG_LONG_INT.
69696         * modules/stdint (stdint.h): Likewise.
69697         (Files): Add m4/ulonglong.m4.
69698
69699 2006-10-10  Bruno Haible  <bruno@clisp.org>
69700
69701         Fix a gcc -Wshadow warning.
69702         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
69703         to 'bucket'.
69704         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
69705         gl_linked_indexof_from_to): Likewise.
69706         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
69707         Likewise.
69708         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
69709         Likewise.
69710         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
69711         Reported by Eric Blake.
69712
69713 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
69714
69715         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
69716         for NetBSD.  Problem reported by Bruno Haible.
69717
69718 2006-10-09  Jim Meyering  <jim@meyering.net>
69719
69720         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
69721         Patch from Bruno Haible.
69722
69723 2006-10-09  Jim Meyering  <jim@meyering.net>
69724
69725         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
69726         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
69727         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
69728
69729 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69730
69731         Don't include <config.h> twice; this doesn't work in some cases,
69732         e.g., when config.h has "#define intmax_t long long int" and
69733         we include <config.h>, <inttypes.h>, <config.h> in that order.
69734         Problem reported by Matthew Woehlke in:
69735         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
69736         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
69737         * lib/fts-cycle.c: Don't include config.h.
69738         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
69739         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
69740         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
69741         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
69742         inttypes.h.
69743         * lib/xstrtoumax.c: Likewise.
69744         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
69745         __strtol and the like, so that this module is more like its siblings.
69746         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
69747         Remove; no longer needed now that we assume gnulib inttypes.h.
69748
69749 2006-10-08  Bruno Haible  <bruno@clisp.org>
69750
69751         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
69752         option.
69753
69754 2006-10-07  Jim Meyering  <jim@meyering.net>
69755
69756         * modules/inttypes (inttypes.h): Revert what seems to have been
69757         an inadvertent part of today's change: use "|", not "/" in the
69758         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
69759
69760 2006-10-07  Bruno Haible  <bruno@clisp.org>
69761
69762         * modules/sublist: New file.
69763
69764 2006-10-07  Bruno Haible  <bruno@clisp.org>
69765
69766         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
69767         * modules/argz (argz.h): Likewise.
69768         * modules/arpa_inet (arpa/inet.h): Likewise.
69769         * modules/byteswap (byteswap.h): Likewise.
69770         * modules/configmake (configmake.h): Likewise.
69771         * modules/fcntl (fcntl.h): Likewise.
69772         * modules/fnmatch (fnmatch.h): Likewise.
69773         * modules/getopt (getopt.h): Likewise.
69774         * modules/glob (glob.h): Likewise.
69775         * modules/inttypes (inttypes.h): Likewise.
69776         * modules/netinet_in (netinet/in.h): Likewise.
69777         * modules/poll (poll.h): Likewise.
69778         * modules/stdbool (stdbool.h): Likewise.
69779         * modules/stdint (stdint.h): Likewise.
69780         * modules/sys_select (sys/select.h): Likewise.
69781         * modules/sys_socket (sys/socket.h): Likewise.
69782         * modules/sys_stat (sys/stat.h): Likewise.
69783         * modules/sysexits (sysexits.h): Likewise.
69784         * modules/unistd (unistd.h): Likewise.
69785         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69786         Add a "DO NOT EDIT" comment to the generated file.
69787         (func_import): Likewise for gnulib-comp.m4.
69788
69789 2006-10-07  Bruno Haible  <bruno@clisp.org>
69790
69791         * lib/gl_sublist.h: New file.
69792         * lib/gl_sublist.c: New file.
69793
69794 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69795
69796         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
69797         name (relative to the original working directory) and the file
69798         name component (relative to the temporary working directory).  All
69799         callers changed.
69800         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
69801         * lib/mkdir-p.c (make_dir_parents): Likewise.
69802         * lib/mkdir-p.h (make_dir_parents): Likewise.
69803
69804 2006-10-06  Eric Blake  <ebb9@byu.net>
69805
69806         Define several macros for use by the clean-temp module.
69807         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
69808         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
69809         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
69810
69811         * lib/clean-temp.h (close_stream_temp): New declaration.
69812         * lib/clean-temp.c (includes): Pull in headers according to what
69813         other modules are in use.
69814         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
69815
69816 2006-10-06  Bruno Haible  <bruno@clisp.org>
69817
69818         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
69819         instead of fopen, fwriteerror.
69820
69821 2006-10-06  Bruno Haible  <bruno@clisp.org>
69822
69823         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
69824         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
69825         int.
69826         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
69827         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
69828         Return an error indicator.
69829         Suggested by Eric Blake.
69830
69831 2006-10-06  Bruno Haible  <bruno@clisp.org>
69832
69833         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
69834         Reported by Eric Blake.
69835
69836 2006-10-06  Bruno Haible  <bruno@clisp.org>
69837
69838         * modules/closeout (Description): Mention stderr too.
69839
69840 2006-10-06  Bruno Haible  <bruno@clisp.org>
69841         and Paul Eggert  <eggert@cs.ucla.edu>
69842
69843         * lib/closeout.c (close_stdout): Also close stderr.
69844         * lib/closeout.h: Update comment.
69845
69846 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69847
69848         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
69849         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
69850         * lib/dirchownmod.c: Include lchown.h.
69851         * lib/lchown.c: Don't include files that lchown.h now includes.
69852         Don't declare chown, since lchown.h now does that.
69853         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
69854         (lchown): Define to rpl_chown if lchown is declared but
69855         does not exist.  Declare using a prototype if lchown is not
69856         declared.  Add a copyright notice.
69857         * lib/mkstemp.h: Include <unistd.h>.
69858         * lib/openat.c: Include lchown.h.
69859
69860         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
69861         we now test for that separately.
69862         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
69863         rather than O_NOFOLLOW, when testing whether it's possible to
69864         avoid a race condition reliably.
69865         * lib/savewd.c (savewd_chdir): Likewise.
69866
69867         Remove macros that are no longer needed now that stdint.h is
69868         reliable.
69869         * lib/fsusage.c (UINTMAX_MAX): Remove.
69870         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
69871         * lib/utimecmp.c (SIZE_MAX): Remove.
69872
69873         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
69874
69875         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
69876         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
69877         O_NOATIME works.
69878
69879 2006-10-05  Bruno Haible  <bruno@clisp.org>
69880
69881         * lib/gl_list.h (gl_sortedlist_search_from_to,
69882         gl_sortedlist_indexof_from_to): New declarations.
69883         (gl_list_implementation): New fields sortedlist_search_from_to,
69884         sortedlist_indexof_from_to.
69885         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
69886         inline functions.
69887         * lib/gl_list.c (gl_sortedlist_search_from_to,
69888         gl_sortedlist_indexof_from_to): New functions.
69889         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
69890         function.
69891         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
69892         (gl_array_sortedlist_search_from_to): New function.
69893         (gl_array_list_implementation): Update.
69894         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
69895         function.
69896         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
69897         (gl_carray_sortedlist_search_from_to): New function.
69898         (gl_carray_list_implementation): Update.
69899         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
69900         gl_linked_sortedlist_indexof_from_to): New functions.
69901         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69902         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69903         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
69904         gl_tree_sortedlist_indexof_from_to): New functions.
69905         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69906         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69907         Update.
69908         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69909         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
69910         Update.
69911
69912 2006-10-05  Bruno Haible  <bruno@clisp.org>
69913
69914         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
69915         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
69916         (struct gl_list_implementation): Add fields search_from_to,
69917         indexof_from_to. Remove fields search, indexof.
69918         (gl_list_search): Use the search_from_to method.
69919         (gl_list_search_from, gl_list_search_from_to): New functions.
69920         (gl_list_indexof): Use the indexof_from_to method.
69921         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69922         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
69923         (gl_list_search_from, gl_list_search_from_to): New functions.
69924         (gl_list_indexof): Use the indexof_from_to method.
69925         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69926         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
69927         gl_array_indexof. Add start_index, end_index arguments.
69928         (gl_array_search_from_to): Renamed from gl_array_search. Add
69929         start_index, end_index arguments.
69930         (gl_array_remove, gl_array_list_implementation): Update.
69931         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
69932         gl_carray_indexof. Add start_index, end_index arguments.
69933         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
69934         start_index, end_index arguments.
69935         (gl_carray_remove, gl_carray_list_implementation): Update.
69936         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
69937         gl_linked_search. Add start_index, end_index arguments.
69938         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
69939         start_index, end_index arguments.
69940         (gl_linked_remove): Update.
69941         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69942         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69943         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
69944         field to 'size_t'.
69945         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
69946         gl_tree_search. Add start_index, end_index arguments.
69947         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69948         start_index, end_index arguments.
69949         (gl_tree_remove): Update.
69950         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69951         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69952         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
69953         function.
69954         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
69955         gl_tree_search. Add start_index, end_index arguments.
69956         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69957         start_index, end_index arguments.
69958         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69959         Update.
69960         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
69961
69962 2006-10-05  Bruno Haible  <bruno@clisp.org>
69963
69964         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
69965
69966         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
69967         fwriteerror_temp): New declarations.
69968         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
69969         (descriptors): New variable.
69970         (cleanup): First, close the descriptors.
69971         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
69972         fclose_temp, fwriteerror_temp): New functions.
69973
69974 2006-10-04  Jim Meyering  <jim@meyering.net>
69975
69976         * lib/fts.c (fts_open): Tiny comment change.
69977
69978 2006-10-04  Bruno Haible  <bruno@clisp.org>
69979
69980         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
69981         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
69982         gl_LOCK_BODY.
69983         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
69984         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
69985         gl_LOCK_EARLY_BODY.
69986         (gl_LOCK): Require gl_LOCK_BODY.
69987
69988 2006-10-04  Bruno Haible  <bruno@clisp.org>
69989
69990         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
69991         (gl_oset_search_atleast): New declaration.
69992         (struct gl_oset_implementation): Add field 'search_atleast'.
69993         (gl_oset_search_atleast): New inline function.
69994         * lib/gl_oset.c (gl_oset_search_atleast): New function.
69995         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
69996         (gl_array_oset_implementation): Update.
69997         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
69998         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
69999         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
70000
70001 2006-10-04  Bruno Haible  <bruno@clisp.org>
70002
70003         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
70004
70005 2006-10-03  Bruno Haible  <bruno@clisp.org>
70006
70007         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
70008         from gl_avltreehash_list_implementation.
70009
70010 2006-10-03  Bruno Haible  <bruno@clisp.org>
70011
70012         * lib/gl_oset.c (gl_oset_add): Fix return type.
70013
70014 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
70015
70016         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
70017
70018 2006-10-02  Eric Blake  <ebb9@byu.net>
70019
70020         * modules/strnlen (Depends-on): Add extensions.
70021
70022 2006-10-02  Eric Blake  <ebb9@byu.net>
70023
70024         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
70025         definition in 2.60+.
70026
70027 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70028
70029         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
70030         checks.
70031
70032 2006-10-02  Bruno Haible  <bruno@clisp.org>
70033
70034         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
70035         to the AUTOMAKE_OPTIONS.
70036         Reported by Jim Meyering.
70037
70038 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         Work around bug in Solaris 10 /proc file system:
70041         /proc/self/fd/NNN/.. isn't the parent directory of
70042         the directory whose file descriptor is NNN.  This needs to
70043         be worked around at run time, not compile time, since a
70044         program might be built on Solaris 8, where things work, and
70045         run on Solaris 10.
70046         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
70047         to use the following interface instead:
70048         (OPENAT_BUFFER_SIZE): New macro.
70049         (openat_proc_name): New function.
70050         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
70051         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
70052         Likewise.
70053         * lib/openat-proc.c: New file.
70054         * modules/openat (Files): Add lib/openat-proc.c.
70055         (Depends-on): Add same-inode, stdbool.
70056         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
70057
70058 2006-09-29  Bruno Haible  <bruno@clisp.org>
70059
70060         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
70061         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
70062         argument. Set stdout_closed before testing for ferror, not after.
70063         (fwriteerror, fwriteerror_no_ebadf): New functions.
70064
70065 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70066
70067         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
70068
70069 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
70070
70071         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
70072         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
70073
70074 2006-09-28  Jim Meyering  <jim@meyering.net>
70075
70076         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
70077         Include <unistd.h>.
70078
70079 2006-09-28  Bruno Haible  <bruno@clisp.org>
70080
70081         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
70082         * modules/linkedhash-list (Depends-on): Likewise.
70083         * modules/rbtreehash-list (Depends-on): Likewise.
70084
70085 2006-09-28  Bruno Haible  <bruno@clisp.org>
70086
70087         * lib/strndup.h: Simplify the redefinition of strndup.
70088         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
70089         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
70090
70091 2006-09-28  Bruno Haible  <bruno@clisp.org>
70092
70093         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
70094         * lib/gl_linkedhash_list.c: Likewise.
70095         * lib/gl_rbtreehash_list.c: Likewise.
70096
70097 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70098
70099         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
70100         getaddrinfo.
70101
70102         * lib/__fpending.h: Don't include <stdio_ext.h> unless
70103         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
70104         it causes <stdio_ext.h> to cause a compile-time error.
70105         Problem reported by Nelson H. F. Beebe.
70106         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
70107         of HAVE_DECL___PENDING.
70108
70109         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
70110         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
70111         declaration.
70112
70113 2006-09-27  Jim Meyering  <jim@meyering.net>
70114
70115         This file could end up with a definition for a function
70116         named __strndup, rather than rpl_strndup on a system with
70117         incomplete weak_alias support.
70118         * lib/strndup.c (strndup): Rename from __strndup.
70119         Remove #defines that used to map __strndup to strndup.
70120         Don't use K&R prototypes.
70121         Remove LIBC-related code, since this file is not sync'd with glibc.
70122         * lib/strndup.h: Revamp, accordingly.
70123         * m4/strndup.m4: Modernize.
70124
70125 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70126
70127         * modules/savewd (Depends-on): Add 'raise'.
70128         * lib/savewd.c: Include <signal.h>, for 'raise'.
70129
70130 2006-09-26  Jim Meyering  <jim@meyering.net>
70131
70132         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
70133         when we detect Darwin 8.7.0's acl_get_file bug.
70134         Rearrange to perform the new (below) run-test while $LIBS
70135         contains any acl-related library.  Set USE_ACL at the end.
70136         (gl_ACL_GET_FILE): New function.
70137
70138 2006-09-26  Eric Blake  <ebb9@byu.net>
70139
70140         * lib/verror.c: Include <config.h> unconditionally.
70141
70142 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
70143
70144         * modules/clock-time (Maintainer): Add self.
70145         * modules/getlogin_r (Depends-on): Add extensions.
70146
70147 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70148
70149         * modules/clock-time: New module.
70150         * modules/nanosleep (Depends-on): Add clock-time.
70151         * modules/gethrxtime (Depends-on): Likewise.
70152         * modules/gettime (Depends-on): Likewise.
70153         * modules/settime (Depends-on): Likewise.
70154
70155         * modules/fts-lgpl: Depend on openat.
70156         * modules/mkancesdirs: Depend on savewd.
70157         * modules/mkdir-p: Likewise.
70158
70159 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70160
70161         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
70162
70163         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
70164         `gl_have_arbitrary_file_name_length_limit' to
70165         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
70166         actually works between configure runs.
70167
70168 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70169             Bruno Haible  <bruno@clisp.org>
70170
70171         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
70172
70173 2006-09-25  Jim Meyering  <jim@meyering.net>
70174
70175         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
70176         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
70177
70178 2006-09-25  Eric Blake  <ebb9@byu.net>
70179
70180         * gnulib-tool (func_import, func_create_testdir): Fix typos in
70181         exec's in 2006-09-18 patch when shuffling fds.
70182
70183 2006-09-25  Bruno Haible  <bruno@clisp.org>
70184
70185         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
70186         Reported by Jim Meyering.
70187
70188 2006-09-24  Jim Meyering  <jim@meyering.net>
70189
70190         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
70191         compare a pointer against a literal "0".  That caused failures with
70192         at least HP-UX's hpcc.
70193
70194 2006-09-22  Simon Josefsson  <jas@extundo.com>
70195
70196         * modules/gc-sha1:
70197         * modules/gc-md4:
70198         * modules/gc-hmac-sha1:
70199         * modules/gc-hmac-md5:
70200         * modules/gc-des:
70201         * modules/gc-arcfour: Distribute more files.
70202
70203 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70204
70205         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
70206         (gl_linked_iterator_from_to): Initialize struct completely.
70207         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
70208         (gl_tree_iterator_from_to): Likewise
70209         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
70210         * lib/gl_array_list.c [lint] (gl_array_iterator)
70211         (gl_array_iterator_from_to): Likewise.
70212         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
70213         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
70214         (gl_carray_iterator_from_to): Likewise.
70215
70216         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
70217         * lib/md4.c (md4_process_block): Remove unused variable.
70218         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
70219         parentheses for clarity.
70220
70221 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70222
70223         * modules/bison-i18n (Depends-on): Add gettext.
70224
70225 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70226
70227         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
70228         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
70229         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
70230         also add missing comma that caused broken test.
70231         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
70232         stdlib.h, for `abort'.
70233         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
70234         variables.
70235         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
70236         include unistd.h if present, for `rmdir'.
70237         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
70238         variables.
70239         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
70240         in the process include standard headers for prototypes.
70241         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
70242         gets declared on GNU/Linux.
70243         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
70244         unistd.h, for `rmdir'.
70245         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
70246
70247         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
70248         always true.
70249         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
70250
70251         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
70252
70253 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70254
70255         * gnulib-tool (func_version): Create output all at once.  This
70256         may help avoid triggering unnecessary SIGPIPEs, and at any
70257         rate it doesn't hurt.
70258
70259 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70260             Bruno Haible  <bruno@clisp.org>
70261
70262         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
70263         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70264         * m4/signed.m4 (bh_C_SIGNED): Likewise.
70265
70266         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
70267         (gl_FUNC_VASPRINTF): Invoke it.
70268
70269 2006-09-22  Bruno Haible  <bruno@clisp.org>
70270
70271         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
70272         getloadavg.c as first argument.
70273
70274 2006-09-22  Bruno Haible  <bruno@clisp.org>
70275
70276         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
70277         at the beginning of the gl_INIT macro.
70278         * modules/getloadavg (configure.ac): Pass $gl_source_base to
70279         gl_GETLOADAVG.
70280
70281 2006-09-22  Bruno Haible  <bruno@clisp.org>
70282
70283         * gnulib-tool (func_create_megatestdir): Don't include the config-h
70284         module.
70285         Suggested by Ralf Wildenhues.
70286
70287 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70288
70289         Import this patch from libc:
70290
70291         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
70292
70293         * lib/regex_internal.c (re_string_reconstruct): Handle
70294         offset < pstr->valid_raw_len && pstr->offsets_needed case.
70295         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
70296         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
70297         re_string_context_at.
70298
70299         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
70300         now requires it.
70301         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
70302         gl_REGEX now does it for us.
70303         (gl_REGEX): Add test taken from
70304         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
70305
70306         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
70307         Check that large offsets work.  Modernize Autoconf usages.
70308         Prefer "yes" to mean a good thing rather than a bad.
70309         Don't put "#define mkstemp" in config.h, as this might interfere
70310         with standard system headers that "#define mkstemp mkstemp64".
70311
70312         * modules/mkstemp (Depends-on): Add extensions, so that
70313         mkstemp is visible on some platforms.
70314         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
70315         (Include): Change to "mkstemp.h" from <stdlib.h>.
70316         (Files): Add mkstemp.h.
70317
70318         * lib/mkstemp.h: New file, since some standard headers
70319         #define mkstemp.
70320         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
70321         Include "mkstemp.h".
70322         Make the _LIBC code resemble glibc original more,
70323         e.g., use K&R style.
70324         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
70325         (mkstemp): Remove, since mkstemp.h does this for us.
70326         * lib/stdlib--.h: Include mkstemp.h.
70327
70328         Import this patch from libc:
70329
70330         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70331
70332         * lib/tempname.c (__gen_tempname): Change attempts_min
70333         into a macro.  Use preprocessor to decide how to initialize
70334         attempts [Coverity CID 67].
70335
70336 2006-09-20  Bruno Haible  <bruno@clisp.org>
70337
70338         * lib/mkdtemp.c: Import from libc.
70339         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70340                 * sysdeps/posix/tempname.c (__gen_tempname): Change
70341                 attempts_min into a macro.  Use preprocessor to decide how to
70342                 initialize attempts [Coverity CID 67].
70343         2001-11-27  Paul Eggert  <eggert@twinsun.com>
70344                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
70345                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
70346
70347 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70348
70349         * gnulib-tool (func_exit): New function, to allow to pass the
70350         exit status portably through the trap.  Use everywhere.
70351         (--help, --version): Signal a write error.
70352         (trap): catch SIGPIPE, for write errors.
70353         Exit at the end of the trap, with the correct exit status.
70354
70355 2006-09-19  Karl Berry  <karl@gnu.org>
70356
70357         * doc/gnulib.texi: note about the license texinfo files.
70358
70359 2006-09-19  Eric Blake  <ebb9@byu.net>
70360
70361         * gnulib-tool: Avoid space-tab.
70362
70363 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70364
70365         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
70366         that prevented coreutils 6.1 from building.  Problem reported
70367         by Petter Reinholdtsen.
70368
70369 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70370
70371         * gnulib-tool (avoidlist): Fix typo that broke options like
70372         --avoid=lock that are used by coreutils bootstrap.
70373
70374 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
70375
70376         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
70377         more systematically.
70378
70379 2006-09-18  Jim Meyering  <jim@meyering.net>
70380
70381         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
70382
70383 2006-09-18  Bruno Haible  <bruno@clisp.org>
70384
70385         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
70386
70387 2006-09-18  Bruno Haible  <bruno@clisp.org>
70388
70389         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
70390         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
70391         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
70392         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
70393         * m4/gettext.m4: Require autoconf >= 2.52.
70394         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
70395         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
70396         of gl_cv_header_inttypes_h.
70397
70398 2006-09-18  Bruno Haible  <bruno@clisp.org>
70399
70400         * lib/javaversion.c: Include configmake.h.
70401
70402 2006-09-18  Bruno Haible  <bruno@clisp.org>
70403
70404         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
70405         avoid that the while loops be executed in a subshell.
70406
70407 2006-09-18  Bruno Haible  <bruno@clisp.org>
70408
70409         * MODULES.html.sh (func_module): Break long lines.
70410         Suggested by Bruce Korb <bkorb@gnu.org>.
70411
70412 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70413
70414         Speed up by a factor of 1.12.
70415         * gnulib-tool (nl): New variable.
70416         (func_import): Rewrite include directive extraction to only read each
70417         directive once.
70418
70419 2006-09-17  Bruno Haible  <bruno@clisp.org>
70420
70421         * modules/javaversion (Makefile.am): Remove DEFS setting.
70422         (Depends-on): Add configmake, for PKGDATADIR definition.
70423
70424 2006-09-17  Bruno Haible  <bruno@clisp.org>
70425
70426         * gnulib-tool (func_create_testdir): Rewrite all files at once.
70427
70428 2006-09-17  Bruno Haible  <bruno@clisp.org>
70429
70430         * gnulib-tool (func_append): New function, stolen from libtool.m4.
70431         (func_modules_transitive_closure, func_modules_add_dummy,
70432         func_modules_to_filelist, func_import, func_create_testdir,
70433         func_create_megatestdir, ...): Use it wherever possible.
70434         Suggested by Ralf Wildenhues.
70435
70436 2006-09-16  Karl Berry  <karl@gnu.org>
70437
70438         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
70439         to avoid sectioning errors.
70440         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
70441         [ifinfo]: blank line after @center-ed titles.
70442         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
70443         Spell FSF address consistently with others.
70444         (These changes approved by rms.)
70445
70446 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70447
70448         Speed up by a factor of 1.61.
70449         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
70450         already checked module names again.
70451
70452 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70453
70454         Speed up by a factor of 1.13.
70455         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
70456         for new_files, and the input to func_add_or_update.
70457
70458 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70459
70460         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
70461         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
70462
70463 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70464
70465         * modules/mkancesdirs (Depends-on): Add fcntl.
70466         * modules/savewd: New file.
70467         * MODULES.html.sh (File system functions): Add savewd.
70468
70469         * modules/configmake (Makefile.am): Add support for the
70470         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
70471
70472 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70473
70474         * m4/savewd.m4: New file.
70475
70476 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70477
70478         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
70479         (dirchownmod): New arg FD.  All callers changed.
70480         Use FD rather than opening the directory ourself, as opening is
70481         now the caller's responsibility.
70482         * lib/dirchownmod.h: Likewise.
70483         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
70484         hosts that require <sys/types.h> before <sys/stat.h>.  Include
70485         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
70486         (test_dir): Remove.
70487         (mkancesdirs): Return length of prefix of FILE that has already
70488         been made, or -2 if there is a child doing the work.  Redo
70489         algorithm so that it is O(N) rather than O(N**2).  Optimize away
70490         ".", and treat ".." specially since it might stray back into
70491         already-created areas.  Use a subprocess if necessary.  New arg
70492         WD; all users changed.  MAKE_DIR function should now return 1
70493         if it creates a directory that is not readable.  Return -2 if
70494         a child process is spun off.
70495         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
70496         Adjust signature to match code.
70497         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
70498         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
70499         all users changed.
70500         * lib/savewd.c, lib/savewd.h: New files.
70501
70502 2006-09-15  Jim Meyering  <jim@meyering.net>
70503
70504         * modules/rename-dest-slash: New module.
70505         * MODULES.html.sh (posix_compat): Add it here.
70506
70507         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
70508
70509 2006-09-15  Jim Meyering  <jim@meyering.net>
70510
70511         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
70512         file.
70513
70514         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
70515
70516 2006-09-15  Jim Meyering  <jim@meyering.net>
70517
70518         * lib/rename-dest-slash.c (has_trailing_slash): Use
70519         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
70520         (rpl_rename_dest_slash): Perform the cheaper trailing slash
70521         test before testing whether SRC is a directory.
70522         Suggestions from Bruno Haible.
70523
70524         Avoid a warning about an unused variable.
70525         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
70526         into the #ifdef block where it's used.
70527
70528         * lib/rename-dest-slash.c: New file.
70529
70530 2006-09-14  Bruno Haible  <bruno@clisp.org>
70531
70532         * lib/allocsa.c: Include <config.h> unconditionally.
70533         * lib/asnprintf.c: Likewise.
70534         * lib/asprintf.c: Likewise.
70535         * lib/c-strcasecmp.c: Likewise.
70536         * lib/c-strcasestr.c: Likewise.
70537         * lib/c-strncasecmp.c: Likewise.
70538         * lib/c-strstr.c: Likewise.
70539         * lib/classpath.c: Likewise.
70540         * lib/clean-temp.c: Likewise.
70541         * lib/concatpath.c: Likewise.
70542         * lib/copy-file.c: Likewise.
70543         * lib/csharpcomp.c: Likewise.
70544         * lib/csharpexec.c: Likewise.
70545         * lib/execute.c: Likewise.
70546         * lib/fatal-signal.c: Likewise.
70547         * lib/findprog.c: Likewise.
70548         * lib/fwriteerror.c: Likewise.
70549         * lib/gl_array_list.c: Likewise.
70550         * lib/gl_array_oset.c: Likewise.
70551         * lib/gl_avltree_list.c: Likewise.
70552         * lib/gl_avltree_oset.c: Likewise.
70553         * lib/gl_avltreehash_list.c: Likewise.
70554         * lib/gl_carray_list.c: Likewise.
70555         * lib/gl_linked_list.c: Likewise.
70556         * lib/gl_linkedhash_list.c: Likewise.
70557         * lib/gl_list.c: Likewise.
70558         * lib/gl_oset.c: Likewise.
70559         * lib/gl_rbtree_list.c: Likewise.
70560         * lib/gl_rbtree_oset.c: Likewise.
70561         * lib/gl_rbtreehash_list.c: Likewise.
70562         * lib/imaxabs.c: Likewise.
70563         * lib/imaxdiv.c: Likewise.
70564         * lib/javacomp.c: Likewise.
70565         * lib/javaexec.c: Likewise.
70566         * lib/javaversion.c: Likewise.
70567         * lib/linebreak.c: Likewise.
70568         * lib/localcharset.c: Likewise.
70569         * lib/lock.c: Likewise.
70570         * lib/mbchar.c: Likewise.
70571         * lib/mbswidth.c: Likewise.
70572         * lib/mkdtemp.c: Likewise.
70573         * lib/pipe.c: Likewise.
70574         * lib/printf-args.c: Likewise.
70575         * lib/printf-parse.c: Likewise.
70576         * lib/progname.c: Likewise.
70577         * lib/progreloc.c: Likewise.
70578         * lib/readlink.c: Likewise.
70579         * lib/sh-quote.c: Likewise.
70580         * lib/stpcpy.c: Likewise.
70581         * lib/stpncpy.c: Likewise.
70582         * lib/strcasecmp.c: Likewise.
70583         * lib/strcasestr.c: Likewise.
70584         * lib/strcspn.c: Likewise.
70585         * lib/striconv.c: Likewise.
70586         * lib/strncasecmp.c: Likewise.
70587         * lib/strnlen1.c: Likewise.
70588         * lib/strstr.c: Likewise.
70589         * lib/strtok_r.c: Likewise.
70590         * lib/tls.c: Likewise.
70591         * lib/tmpdir.c: Likewise.
70592         * lib/unicodeio.c: Likewise.
70593         * lib/unsetenv.c: Likewise.
70594         * lib/vasnprintf.c: Likewise.
70595         * lib/vasprintf.c: Likewise.
70596         * lib/wait-process.c: Likewise.
70597         * lib/xallocsa.c: Likewise.
70598         * lib/xsetenv.c: Likewise.
70599         * lib/xstriconv.c: Likewise.
70600
70601 2006-09-13  Simon Josefsson  <jas@extundo.com>
70602
70603         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
70604         that internally, suggested by Ralf Wildenhues
70605         <Ralf.Wildenhues@gmx.de>.
70606
70607 2006-09-13  Simon Josefsson  <jas@extundo.com>
70608
70609         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
70610         @LIBOBJS@.
70611         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70612
70613 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70614
70615         * lib/_fpending.c: Include <config.h> unconditionally, since we no
70616         longer worry about uses that don't define HAVE_CONFIG_H.
70617         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
70618         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
70619         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
70620         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
70621         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
70622         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
70623         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
70624         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
70625         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
70626         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
70627         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
70628         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
70629         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
70630         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
70631         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
70632         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
70633         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
70634         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
70635         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
70636         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
70637         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
70638         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
70639         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
70640         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
70641         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
70642         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
70643         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
70644         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
70645         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
70646         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
70647         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
70648         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
70649         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
70650         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
70651         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
70652         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
70653         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
70654         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
70655         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
70656         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
70657         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
70658         Likewise.
70659
70660 2006-09-13  Eric Blake  <ebb9@byu.net>
70661
70662         * lib/getopt.c: Fix typo in last commit.
70663
70664 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70665
70666         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
70667         dgettext.
70668
70669 2006-09-12  Jim Meyering  <jim@meyering.net>
70670
70671         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
70672         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
70673         Reported by Nelson H. F. Beebe.
70674
70675 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70676
70677         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
70678         program_invocation_name and program_invocation_short_name are
70679         initialized.
70680         * lib/argp-namefrob.h: Move declarations of program_invocation_name
70681         and program_invocation_short_name to argp.h, so they are visible
70682         to user programs.
70683         * lib/argp.h: Likewise
70684
70685 2006-09-10  Bruno Haible  <bruno@clisp.org>
70686
70687         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70688         m4/inttypes_h.m4, m4/uintmax_t.m4.
70689
70690 2006-09-10  Bruno Haible  <bruno@clisp.org>
70691
70692         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
70693         gl_AC_TYPE_UINTMAX_T.
70694
70695 2006-09-10  Bruno Haible  <bruno@clisp.org>
70696
70697         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
70698
70699 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70700
70701         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
70702         convention.  Text proposed by Bruno Haible.
70703         (struct argp_option): Document the use of N_() wrappers.
70704
70705         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
70706         '\v', and translate the two parts separately, instead of feeding
70707         the whole string to gettext.  This allows to exclude
70708         '\v' from the strings visible to the translator by writing doc
70709         strings as N_("..") "\v" N_("..").
70710
70711 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
70712
70713         * config/srclist.txt: Undo latest change; the bug was fixed.
70714
70715 2006-09-09  Bruno Haible  <bruno@clisp.org>
70716
70717         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
70718         assignments if building a library without libtool.
70719         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
70720         in func_emit_lib_Makefile_am.
70721         (func_import): When building a static library libfoo.a, arrange to
70722         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
70723         (func_create_testdir): Likewise.
70724         * modules/gc (configure.ac, Makefile.am): If building statically,
70725         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
70726         * modules/iconvme (configure.ac, Makefile.am): Likewise.
70727         * modules/striconv (configure.ac, Makefile.am): Likewise.
70728         Based on a suggestion by Ralf Wildenhues.
70729
70730 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70731
70732         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70733         Check for unistd.h too, since Autoconf doesn't assume POSIX.
70734         Also:
70735
70736         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70737         Add year_2050_test to catch glibc bug 2821
70738         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70739
70740         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70741         Prefer #ifdef to #if.
70742
70743         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
70744         Return from 'main' instead of calling 'exit'.
70745
70746 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70747
70748         * lib/mktime.c (guess_time_tm): Fix bug where mktime
70749         returned the maximum time_t value rather than (time_t) -1.
70750         Problem originally reported by William Bardwell
70751         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70752
70753         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70754         Moved to here ...
70755         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70756         ... from here.
70757
70758 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70759
70760         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
70761         2821 is fixed.
70762
70763 2006-09-08  Jim Meyering  <jim@meyering.net>
70764
70765         Don't make generated files read-only.  That would bother too many
70766         people.  However, do retain the ability to work when targets are
70767         read-only: remove the destination and temporary files before writing
70768         them (when generated via sed or echo), or by using the -f option for
70769         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
70770         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70771         * modules/byteswap, modules/configmake, modules/fcntl:
70772         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70773         * modules/localcharset, modules/netinet_in, modules/poll:
70774         * modules/stdbool, modules/stdint, modules/sys_select:
70775         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70776
70777 2006-09-08  Jim Meyering  <jim@meyering.net>
70778
70779         Avoid new build failure on FreeBSD 6.0.
70780         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
70781         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
70782         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
70783
70784 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70785
70786         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
70787
70788 2006-09-07  Jim Meyering  <jim@meyering.net>
70789
70790         Fix global typo in last change: use chmod u-w, not chmod u-x.
70791         Spotted by Paul Eggert and Bruce Korb.
70792         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70793         * modules/byteswap, modules/configmake, modules/fcntl:
70794         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70795         * modules/localcharset, modules/netinet_in, modules/poll:
70796         * modules/stdbool, modules/stdint, modules/sys_select:
70797         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70798
70799 2006-09-06  Jim Meyering  <jim@meyering.net>
70800
70801         Make generated files be read-only.
70802         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
70803         Ensure that each generated file is now read-only.
70804         * modules/argz: Likewise.
70805         * modules/arpa_inet: Likewise.
70806         * modules/byteswap: Likewise.
70807         * modules/configmake: Likewise.
70808         * modules/fcntl: Likewise.
70809         * modules/fnmatch: Likewise.
70810         * modules/getopt: Likewise.
70811         * modules/glob: Likewise.
70812         * modules/inttypes: Likewise.
70813         * modules/netinet_in: Likewise.
70814         * modules/poll: Likewise.
70815         * modules/stdbool: Likewise.
70816         * modules/stdint: Likewise.
70817         * modules/sys_select: Likewise.
70818         * modules/sys_socket: Likewise.
70819         * modules/sys_stat: Likewise.
70820         * modules/sysexits: Likewise.
70821         * modules/localcharset: Same as above, but continue using temporary
70822         file named "t-$@" (why different?) rather than the "$@-t" used
70823         everywhere else.
70824
70825         * modules/sysexits (Makefile.am): Replace literal occurrences
70826         of "sysexit.h" more readable, and more consistent, "$@".
70827
70828 2006-09-06  Bruno Haible  <bruno@clisp.org>
70829
70830         * modules/striconv: New file.
70831         * modules/xstriconv: New file.
70832         * MODULES.html.sh (Internationalization functions): Add striconv,
70833         xstriconv.
70834
70835 2006-09-06  Bruno Haible  <bruno@clisp.org>
70836
70837         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
70838         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
70839         not using libtool correctly.
70840
70841 2006-09-06  Bruno Haible  <bruno@clisp.org>
70842
70843         * lib/striconv.h: New file.
70844         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
70845         iconvstring.c.
70846         * lib/xstriconv.h: New file.
70847         * lib/xstriconv.c: New file.
70848
70849 2006-09-06  Bruno Haible  <bruno@clisp.org>
70850
70851         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70852         lib_..._LDFLAGS.
70853
70854 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70855
70856         * lib/argz_.h: Sync from Libtool.
70857
70858         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
70859                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70860
70861         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
70862
70863 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70864
70865         * modules/trim: New file.
70866
70867 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70868
70869         * lib/trim.h: New file.
70870         * lib/trim.c: New file.
70871
70872 2006-09-05  Bruno Haible  <bruno@clisp.org>
70873
70874         * MODULES.html.sh (String handling): Add trim.
70875
70876 2006-09-04  Karl Berry  <karl@gnu.org>
70877
70878         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
70879         until next release.
70880
70881 2006-09-03  Bruno Haible  <bruno@clisp.org>
70882
70883         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
70884         correctly.
70885
70886 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70887
70888         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
70889         not gl_GETLOADAVG.  Omit unneeded semicolons.
70890         Problems reported by Ralf Wildenhues in
70891         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70892         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
70893         at the end, which is the usual gnulib style.
70894
70895         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
70896         of doing all the work ourselves.
70897         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
70898         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
70899
70900 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70901
70902         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
70903         Problem reported by Ralf Wildenhues in
70904         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70905
70906         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
70907         HAVE_STRUCT_STATFS_F_FSTYPENAME.
70908
70909 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70910
70911         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
70912         yesterday's patch by changing test -n to test -z.
70913
70914 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70915
70916         * modules/getloadavg (Files): Add m4/getloadavg.m4.
70917         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
70918         the former is now obsolescent.
70919
70920         * modules/chdir-long (Depends-on): Add fcntl.
70921
70922 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70923
70924         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
70925         obsolescent, and programs should use gnulib instead.
70926         * m4/getloadavg.m4: New file, with contents taken from Autoconf
70927         but with prefixes changed.
70928
70929 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70930
70931         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
70932         or stdbool.h, because they might not exist while configuring.
70933
70934         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
70935         Don't include unistd.h or limits.h; not needed, since chdir-long.h
70936         does that for us.
70937         (O_DIRECTORY): Remove.
70938
70939 2006-08-31  Eric Blake  <ebb9@byu.net>
70940
70941         * gnulib-tool: Don't let emacs change spaces to TAB.
70942
70943 2006-08-31  Bruno Haible  <bruno@clisp.org>
70944
70945         * gnulib-tool: When calling func_import more than once, do it in a
70946         subshell.
70947         Reported by Eric Blake <ebb9@byu.net>.
70948
70949 2006-08-31  Bruno Haible  <bruno@clisp.org>
70950
70951         * gnulib-tool (nl): Remove variable.
70952         (sed_transform_lib_file): Use more robust test for config-h module.
70953         (func_import): Fix typo in 2006-08-25 patch.
70954
70955 2006-08-31  Bruno Haible  <bruno@clisp.org>
70956
70957         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
70958         specified, augment Makefile.am variables instead of assigning them.
70959
70960 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70961
70962         Work around a bug in both the Linux and SunOS 64-bit kernels:
70963         nanosleep mishandles sleeps for longer than 2**31 seconds.
70964         Problem reported by Frank v Waveren in
70965         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70966         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
70967         Check for nanosleep bug.
70968         (LIB_NANOSLEEP): Append clock_gettime library if needed.
70969
70970 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70971
70972         Work around a bug in both the Linux and SunOS 64-bit kernels:
70973         nanosleep mishandles sleeps for longer than 2**31 seconds.
70974         Problem reported by Frank v Waveren in
70975         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70976         * lib/nanosleep.c (BILLION): New constant.
70977         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
70978         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
70979         implementation.
70980
70981 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70982
70983         * modules/nanosleep (Depends-on): Add gettime.
70984
70985 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70986         and Simon Josefsson  <jas@extundo.com>
70987         and Oskar Liljeblad  <oskar@osk.mine.nu>
70988
70989         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
70990         * gnulib-tool (func_import): New license type 'unmodifiable license
70991         text'.
70992         * modules/fdl: Use it.  Longer description.
70993         * module/gpl, module/lgpl: New files.
70994
70995 2006-08-30  Jim Meyering  <jim@meyering.net>
70996
70997         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
70998         shadowing the parameter.
70999
71000 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71001
71002         Sync from Libtool:
71003
71004         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71005
71006         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
71007         sharing with gnulib.  Report by Eric Blake.
71008
71009 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71010
71011         * modules/isapipe: New file.
71012         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
71013
71014 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71015
71016         * modules/configmake (Makefile.am): Add a comment, and omit
71017         the CONFIGMAKE_ prefix from generated macro names.  Suggested
71018         by Bruno Haible.
71019
71020 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71021
71022         * m4/isapipe.m4: New file.
71023
71024 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71025
71026         * lib/isapipe.c, lib/isapipe.h: New files.
71027
71028 2006-08-29  Jim Meyering  <jim@meyering.net>
71029
71030         * modules/configmake (Makefile.am): Make configmake.h depend on
71031         Makefile.  Otherwise, a stale configmake.h could hang around.
71032
71033 2006-08-29  Eric Blake  <ebb9@byu.net>
71034
71035         * lib/error.c (error_at_line, print_errno_message): Match libc, after
71036         resolution of upstream bug 3044.
71037
71038 2006-08-29  Bruno Haible  <bruno@clisp.org>
71039
71040         * modules/localcharset (Depends-on): Add configmake.
71041         (Makefile.am): Remove setting of LIBDIR through DEFS.
71042
71043 2006-08-29  Bruno Haible  <bruno@clisp.org>
71044
71045         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
71046         defined.
71047
71048 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71049
71050         * modules/fcntl: New file.
71051         * modules/chdir-safer (Depends-on): Add fcntl.
71052         * modules/fts: Likewise.
71053         * modules/mkdir-p: Likewise.
71054
71055         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
71056         This undoes the most recent change, since we're now addressing the
71057         problem in a different way.
71058
71059         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
71060         into output, since the output might be called Makefile.am even
71061         if $makefile_name is something different.
71062         (func_import): Use $makefile_am rather than
71063         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
71064         empty.
71065
71066         * modules/inttypes (Files): Add m4/inttypes-h.m4.
71067
71068 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71069
71070         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
71071         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
71072         recent change to stdint.m4, since we're now addressing the problem in a
71073         different way.
71074
71075 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71076
71077         * m4/fcntl_h.m4: New file.
71078
71079 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71080
71081         * lib/fcntl_.h: New file.
71082         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
71083         the fcntl module.
71084         * lib/dirchownmod.c: Likewise.
71085         * lib/fts.c: Likewise.
71086
71087         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
71088         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
71089         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
71090         just before including <inttypes.h>, to avoid circular inclusion.
71091
71092 2006-08-28  Jim Meyering  <jim@meyering.net>
71093
71094         * doc/visibility.texi: Actually read and correct the grammar of the
71095         sentence affected by yesterday's change.
71096
71097 2006-08-28  Eric Blake  <ebb9@byu.net>
71098
71099         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
71100         needs wrapper.
71101
71102 2006-08-28  Eric Blake  <ebb9@byu.net>
71103
71104         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
71105
71106 2006-08-28  Eric Blake  <ebb9@byu.net>
71107
71108         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
71109
71110 2006-08-28  Bruno Haible  <bruno@clisp.org>
71111
71112         * modules/c-strstr: New file, from GNU gettext.
71113         * MODULES.html.sh (String handling): Add c-strstr.
71114
71115 2006-08-28  Bruno Haible  <bruno@clisp.org>
71116
71117         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
71118         macros.
71119         Reported by Eric Blake.
71120
71121 2006-08-28  Bruno Haible  <bruno@clisp.org>
71122
71123         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
71124         (VASNPRINTF): Return a string of length > INT_MAX without failing.
71125         * lib/vasprintf.c: Include errno.h, limits.h.
71126         (EOVERFLOW): New fallback definition.
71127         (vasprintf): Test here whether the string length is > INT_MAX.
71128         * lib/vsnprintf.c: Include errno.h, limits.h.
71129         (EOVERFLOW): New fallback definition.
71130         (vsnprintf): Fix bug when generated string was too long for the buffer.
71131         Test here whether the string length is > INT_MAX.
71132
71133 2006-08-28  Bruno Haible  <bruno@clisp.org>
71134
71135         * lib/inttypes_.h (SCNX*): Remove definitions.
71136         Reported by Eric Blake.
71137
71138 2006-08-28  Bruno Haible  <bruno@clisp.org>
71139
71140         * lib/c-strstr.h: New file, from GNU gettext.
71141         * lib/c-strstr.c: New file, from GNU gettext.
71142
71143 2006-08-28  Bruno Haible  <bruno@clisp.org>
71144
71145         * gnulib-tool: Reorder some statements.
71146
71147 2006-08-28  Bruno Haible  <bruno@clisp.org>
71148
71149         * gnulib-tool: New option --makefile-name.
71150         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
71151         $makefile_name.
71152         (func_import): Write $makefile_name to the cache file, and read it from
71153         there unless explicitly specified. Use $makefile_name as file name
71154         instead of Makefile.am. Adjust the recommendations accordingly.
71155
71156 2006-08-28  Bruno Haible  <bruno@clisp.org>
71157
71158         * gnulib-tool (func_verify_module): Check against misapplying patch.
71159
71160 2006-08-28  Bruno Haible  <bruno@clisp.org>
71161
71162         * gnulib-tool (func_relativize, func_relconcat): New functions.
71163         Give an error if --local-dir is given with --update.
71164         Remove trailing slashes from $local_gnulib_dir.
71165         (func_import): Store the relativized $local_gnulib_dir in
71166         gnulib-cache.m4, and read it from there if not specified explicitly.
71167
71168 2006-08-28  Bruno Haible  <bruno@clisp.org>
71169
71170         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
71171         is the current directory. Respect also $local_gnulib_dir.
71172
71173 2006-08-28  Bruno Haible  <bruno@clisp.org>
71174             Simon Josefsson  <jas@extundo.com>
71175
71176         BeOS portability.
71177         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
71178
71179 2006-08-27  Jim Meyering  <jim@meyering.net>
71180
71181         * doc/visibility.texi: Remove duplicate word: "pointer".
71182
71183 2006-08-26  Bruno Haible  <bruno@clisp.org>
71184
71185         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
71186         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
71187         (Makefile.am): Create inttypes.h from inttypes_.h.
71188         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
71189
71190         * modules/imaxabs: New file.
71191
71192         * modules/imaxdiv: New file.
71193
71194 2006-08-26  Bruno Haible  <bruno@clisp.org>
71195
71196         * m4/inttypes.m4: New file.
71197         * m4/_inttypes_h.m4: Remove file.
71198         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
71199         PRI_MACROS_BROKEN.
71200         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
71201
71202         * m4/imaxabs.m4: New file.
71203
71204         * m4/imaxdiv.m4: New file.
71205
71206 2006-08-26  Bruno Haible  <bruno@clisp.org>
71207
71208         * lib/inttypes_.h: New file.
71209         * lib/inttypes.h: Remove file.
71210         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
71211
71212         * lib/imaxabs.c: New file.
71213
71214         * lib/imaxdiv.c: New file.
71215
71216 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71217
71218         New config-h module, so that "make" output needn't be cluttered
71219         by -DHAVE_CONFIG_H.
71220         * MODULES.html.sh (Support for building libraries and executables):
71221         Add config-h.
71222         * modules/config-h: New file.
71223         * gnulib-tool (nl, sed_transform_lib_file): New vars.
71224         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
71225         the config-h module is used.
71226
71227         New configmake module, so that "make" output needn't be cluttered
71228         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
71229         * MODULES.html.sh (Support for building libraries and executables):
71230         Add configmake.
71231         * modules/configmake: New file.
71232
71233 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71234
71235         * m4/config-h.m4: New file.
71236
71237 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71238
71239         * config/srclist.txt: Add elisp-comp.
71240
71241 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71242
71243         * MODULES.html.sh (Support for building libraries and executables):
71244         Add elisp-comp.
71245         * build-aux/elisp-comp: New file.
71246         * modules/elisp-comp: New file.
71247
71248 2006-08-24  Bruno Haible  <bruno@clisp.org>
71249
71250         * gnulib-tool (func_create_testdir): Use non-default values of
71251         sourcebase and m4base.
71252
71253 2006-08-24  Bruno Haible  <bruno@clisp.org>
71254
71255         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
71256         HTML structure.
71257
71258 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71259
71260         * modules/openat (Depends-on): Add lchown.
71261
71262 2006-08-23  Bruno Haible  <bruno@clisp.org>
71263
71264         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
71265         of gl_LOCK_EARLY instead of gl_LOCK.
71266
71267 2006-08-23  Bruno Haible  <bruno@clisp.org>
71268
71269         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
71270         on OSF/1 to no.
71271         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
71272
71273 2006-08-23  Bruno Haible  <bruno@clisp.org>
71274
71275         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
71276         as unusable.
71277
71278         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
71279         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
71280         (gl_LOCK): New macro.
71281
71282 2006-08-22  Simon Josefsson  <jas@extundo.com>
71283
71284         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
71285         to md5 module.
71286
71287 2006-08-22  Simon Josefsson  <jas@extundo.com>
71288
71289         * MODULES.html.sh: Add "Support for maintaining and release
71290         projects".
71291
71292         * build-aux/gnupload: New file, from coreutils.
71293
71294 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         Avoid the need for AC_LIBSOURCES in m4 macros.
71297         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
71298         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
71299         * modules/check-version (EXTRA_DIST): Add check-version.h.
71300         * modules/crc (EXTRA_DIST): Add crc.h.
71301         * modules/des (EXTRA_DIST): Add des.h.
71302         * modules/gc (EXTRA_DIST): Add gc.h.
71303         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
71304         * modules/getline (EXTRA_DIST): Add getline.h.
71305         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
71306         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
71307         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
71308         * modules/md2 (EXTRA_DIST): Add md2.h.
71309         * modules/md4 (EXTRA_DIST): Add md4.h.
71310         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
71311         * modules/read-file (EXTRA_DIST): Add read-file.h.
71312         * modules/readline (EXTRA_DIST): Add readline.h.
71313         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
71314         rijndael-api-fst.h.
71315
71316 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71317
71318         * m4/rijndael.m4 (gl_ARCFOUR):
71319         * m4/arctwo.m4 (gl_ARCTWO):
71320         * m4/check-version.m4 (gl_CHECK_VERSION):
71321         * m4/crc.m4 (gl_CRC):
71322         * m4/des.m4 (gl_DES):
71323         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
71324         * m4/gc.m4 (gl_GC):
71325         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
71326         * m4/getline.m4 (gl_FUNC_GETLINE):
71327         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
71328         * m4/hmac-md5.m4 (gl_HMAC_MD5):
71329         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
71330         * m4/md2.m4 (gl_MD2):
71331         * m4/md4.m4 (gl_MD4):
71332         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
71333         * m4/read-file.m4 (gl_FUNC_READ_FILE):
71334         * m4/readline.m4 (gl_FUNC_READLINE):
71335         * m4/rijndael.m4 (gl_RIJNDAEL):
71336         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71337         to get the necessary .h files and whatnot.
71338
71339 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71340
71341         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
71342         gnulib rather than the other way around.
71343         * config/srclistvars.sh (COREUTILS): Remove.
71344
71345 2006-08-22  Jim Meyering  <jim@meyering.net>
71346
71347         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
71348
71349         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
71350
71351 2006-08-22  Eric Blake  <ebb9@byu.net>
71352
71353         * modules/regexprops-generic: New file.
71354         * MODULES.html.sh (Support for building documentation): List it.
71355
71356 2006-08-22  Eric Blake  <ebb9@byu.net>
71357
71358         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
71359         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71360         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
71361         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
71362
71363 2006-08-22  Bruno Haible  <bruno@clisp.org>
71364
71365         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
71366         and lib_LTLIBRARIES like the other lib_* variables.
71367
71368 2006-08-22  Bruno Haible  <bruno@clisp.org>
71369
71370         * build-aux/x-to-1.in: New file, from GNU gettext.
71371
71372 2006-08-22  Bruno Haible  <bruno@clisp.org>
71373
71374         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
71375         <utmpx.h> exists.
71376
71377 2006-08-22  Bruno Haible  <bruno@clisp.org>
71378
71379         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
71380         <utmpx.h> exists.
71381
71382 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71383
71384         BeOS portability.
71385         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
71386         exist.
71387         Problem reported by Bruno Haible.
71388
71389 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71390
71391         Avoid the need for AC_LIBSOURCES in m4 macros.
71392         * modules/acl (EXTRA_DIST): Add acl.h.
71393         * modules/argmatch (Files): Add m4/argmatch.m4.
71394         (configure.ac): Add gl_ARGMATCH.
71395         (EXTRA_DIST): Renamed from lib_SOURCES, for
71396         consistency with the other modules.  Remove argmatch.c.
71397         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
71398         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
71399         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
71400         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
71401         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
71402         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
71403         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
71404         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
71405         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
71406         * modules/closeout (EXTRA_DIST): Add closeout.h.
71407         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
71408         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
71409         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
71410         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
71411         dirname.h; remove basename.c and stripslash.c.
71412         * modules/exclude (EXTRA_DIST): Add exclude.h.
71413         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
71414         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
71415         * modules/file-type (EXTRA_DIST): Add file-type.h.
71416         * modules/filemode (EXTRA_DIST): Add filemode.h.
71417         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
71418         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71419         * modules/fpending (EXTRA_DIST): Add __fpending.h.
71420         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
71421         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
71422         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
71423         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
71424         * modules/getdate (EXTRA_DIST): Add getdate.c.
71425         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
71426         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
71427         * modules/getpass (EXTRA_DIST): Add getpass.h.
71428         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
71429         * modules/group-member (EXTRA_DIST): Add group-member.h.
71430         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
71431         * modules/hash (EXTRA_DIST): Add hash.h.
71432         * modules/human (EXTRA_DIST): Add human.h.
71433         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
71434         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
71435         * modules/lchown (EXTRA_DIST): Add lchown.h.
71436         * modules/long-options (EXTRA_DIST): Add long-options.h.
71437         * modules/lstat (EXTRA_DIST): Add lstat.h.
71438         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
71439         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
71440         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
71441         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
71442         * modules/memxor (EXTRA_DIST): Add memxor.h.
71443         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
71444         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
71445         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
71446         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
71447         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
71448         * modules/physmem (EXTRA_DIST): Add physmem.h.
71449         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
71450         * modules/posixver (EXTRA_DIST): Add posixver.h.
71451         * modules/quote (EXTRA_DIST): Add quote.h.
71452         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
71453         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
71454         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
71455         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
71456         regex_internal.h regexec.c.
71457         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
71458         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
71459         * modules/same (EXTRA_DIST): Add same.h.
71460         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
71461         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
71462         * modules/savedir (EXTRA_DIST): Add savedir.h.
71463         * modules/sha1 (EXTRA_DIST): Add sha1.h.
71464         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
71465         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
71466         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
71467         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
71468         * modules/strdup (EXTRA_DIST): Add strdup.h.
71469         * modules/strftime (EXTRA_DIST): Add strftime.h.
71470         * modules/strndup (EXTRA_DIST): Add strndup.h.
71471         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
71472         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
71473         * modules/time_r (EXTRA_DIST): Add time_r.h.
71474         * modules/timespec (EXTRA_DIST): Add timespec.h.
71475         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71476         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
71477         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
71478         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
71479         * modules/userspec (EXTRA_DIST): Add userspec.h.
71480         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
71481         * modules/utimens (EXTRA_DIST): Add utimens.h.
71482         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
71483         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
71484         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
71485         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
71486         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
71487         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
71488         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
71489         * modules/yesno (EXTRA_DIST): Add yesno.h.
71490
71491 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71492
71493         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
71494
71495         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
71496         * m4/dev-ino.m4, same-inode.m4: Remove.
71497
71498         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
71499         * m4/acl.m4 (AC_FUNC_ACL):
71500         * m4/backupfile.m4 (gl_BACKUPFILE):
71501         * m4/c-strtod.m4 (gl_C99_STRTOLD):
71502         * m4/canon-host.m4 (gl_CANON_HOST):
71503         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71504         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
71505         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
71506         * m4/cloexec.m4 (gl_CLOEXEC):
71507         * m4/close-stream.m4 (gl_CLOSE_STREAM):
71508         * m4/closeout.m4 (gl_CLOSEOUT):
71509         * m4/dirfd.m4 (gl_FUNC_DIRFD):
71510         * m4/dirname.m4 (gl_DIRNAME):
71511         * m4/exclude.m4 (gl_EXCLUDE):
71512         * m4/exitfail.m4 (gl_EXITFAIL):
71513         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
71514         * m4/file-type.m4 (gl_FILE_TYPE):
71515         * m4/filemode.m4 (gl_FILEMODE):
71516         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
71517         * m4/fpending.m4 (gl_FUNC_FPENDING):
71518         * m4/fprintftime.m4 (gl_FPRINTFTIME):
71519         * m4/fts.m4 (gl_FUNC_FTS):
71520         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
71521         * m4/getdate.m4 (gl_GETDATE):
71522         * m4/gethrxtime.m4 (gl_GETHRXTIME):
71523         * m4/getpagesize.m4 (gl_GETPAGESIZE):
71524         * m4/getpass.m4 (gl_FUNC_GETPASS):
71525         * m4/gettime.m4 (gl_GETTIME):
71526         * m4/getugroups.m4 (gl_GETUGROUPS):
71527         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
71528         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
71529         * m4/hard-locale.m4 (gl_HARD_LOCALE):
71530         * m4/hash.m4 (gl_HASH):
71531         * m4/idcache.m4 (gl_IDCACHE):
71532         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
71533         * m4/lchown.m4 (gl_FUNC_LCHOWN):
71534         * m4/long-options.m4 (gl_LONG_OPTIONS):
71535         * m4/lstat.m4 (gl_FUNC_LSTAT):
71536         * m4/md5.m4 (gl_MD5):
71537         * m4/memcasecmp.m4 (gl_MEMCASECMP):
71538         * m4/memcoll.m4 (gl_MEMCOLL):
71539         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
71540         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
71541         * m4/memxor.m4 (gl_MEMXOR):
71542         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
71543         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
71544         * m4/modechange.m4 (gl_MODECHANGE):
71545         * m4/mountlist.m4 (gl_MOUNTLIST):
71546         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71547         * m4/openat.m4 (gl_FUNC_OPENAT):
71548         * m4/pathmax.m4 (gl_PATHMAX):
71549         * m4/physmem.m4 (gl_PHYSMEM):
71550         * m4/posixtm.m4 (gl_POSIXTM):
71551         * m4/posixver.m4 (gl_POSIXVER):
71552         * m4/quote.m4 (gl_QUOTE):
71553         * m4/quotearg.m4 (gl_QUOTEARG):
71554         * m4/readtokens.m4 (gl_READTOKENS):
71555         * m4/readutmp.m4 (gl_READUTMP):
71556         * m4/regex.m4 (gl_REGEX):
71557         * m4/safe-read.m4 (gl_SAFE_READ):
71558         * m4/safe-write.m4 (gl_SAFE_WRITE):
71559         * m4/same.m4 (gl_SAME):
71560         * m4/save-cwd.m4 (gl_SAVE_CWD):
71561         * m4/savedir.m4 (gl_SAVEDIR):
71562         * m4/settime.m4 (gl_SETTIME):
71563         * m4/sha1.m4 (gl_SHA1):
71564         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
71565         * m4/stat-macros.m4 (gl_STAT_MACROS):
71566         * m4/stat-time.m4 (gl_STAT_TIME):
71567         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
71568         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
71569         * m4/strdup.m4 (gl_FUNC_STRDUP):
71570         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
71571         * m4/strndup.m4 (gl_FUNC_STRNDUP):
71572         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
71573         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
71574         * m4/time_r.m4 (gl_TIME_R):
71575         * m4/timespec.m4 (gl_TIMESPEC):
71576         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
71577         * m4/unlinkdir.m4 (gl_UNLINKDIR):
71578         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
71579         * m4/userspec.m4 (gl_USERSPEC):
71580         * m4/utimecmp.m4 (gl_UTIMECMP):
71581         * m4/utimens.m4 (gl_UTIMENS):
71582         * m4/xalloc.m4 (gl_XALLOC):
71583         * m4/xgetcwd.m4 (gl_XGETCWD):
71584         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
71585         * m4/xreadlink.m4 (gl_XREADLINK):
71586         * m4/xstrtod.m4 (gl_XSTRTOD):
71587         * m4/yesno.m4 (gl_YESNO):
71588         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71589         to get the necessary .h files and whatnot.
71590
71591 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
71592             Bruno Haible  <bruno@clisp.org>
71593
71594         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
71595         /bin/sh understanding of '!' conditional negation.
71596
71597 2006-08-21  Jim Meyering  <jim@meyering.net>
71598
71599         * modules/openat (Depends-on): Really alphabetize.
71600
71601         * modules/acl (Depends-on): Add error and quote.
71602
71603         * check-module (find_included_lib_files): Add at-func.c to the
71604         ok-to-include-more-than-once white list.
71605
71606         * modules/openat (Depends-on): Add lstat.  Alphabetize.
71607
71608 2006-08-21  Bruno Haible  <bruno@clisp.org>
71609
71610         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71611         Emit a pkgdata_DATA variable only if some snippets add contents to it.
71612         Reported by Martin Lambers <marlam@marlam.de>.
71613
71614 2006-08-21  Bruno Haible  <bruno@clisp.org>
71615
71616         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
71617         specify an installation location, don't emit a noinst_LIBRARIES or
71618         noinst_LTLIBRARIES assignment.
71619
71620 2006-08-21  Bruno Haible  <bruno@clisp.org>
71621
71622         BeOS portability.
71623         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
71624         BeOS has mbrtowc() but no <wctype.h>.
71625
71626 2006-08-21  Bruno Haible  <bruno@clisp.org>
71627
71628         BeOS portability.
71629         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
71630         exist.
71631
71632 2006-08-21  Bruno Haible  <bruno@clisp.org>
71633
71634         BeOS portability.
71635         * lib/mbchar.h: Include <wctype.h> only if it exists.
71636
71637 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71638
71639         Remove files that are no longer needed by their respective modules.
71640         * m4/obstack.m4: Remove.
71641         * m4/strerror_r.m4: Remove.
71642         * m4/uint32_t.m4: Remove.
71643         * m4/uintptr_t.m4: Remove.
71644         * m4/ullong_max.m4: Remove.
71645         * m4/xstrtoimax.m4: Remove.
71646         * m4/xstrtoumax.m4: Remove.
71647
71648         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
71649         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
71650         dependencies now capture this.
71651
71652         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
71653         Do not use AC_LIBSOURCES, since gnulib modules now do this.
71654         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
71655         * m4/human.m4 (gl_HUMAN): Likewise.
71656         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
71657         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
71658
71659         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
71660
71661         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
71662         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
71663         stdint.
71664         * m4/human.m4 (gl_HUMAN): Likewise.
71665         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
71666         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
71667         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71668         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71669         * m4/xstrtol (gl_XSTRTOL): Likewise.
71670
71671         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
71672         AC_TYPE_LONG_LONG_INT.
71673         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71674         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
71675         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
71676         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71677
71678         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
71679         on stdbool.
71680
71681         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
71682         (gl_PREREQ_XSTRTOUL): Remove.
71683
71684         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
71685
71686         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
71687         mode.
71688
71689 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71690
71691         Add and change modules to make it easier for coreutils to use
71692         gnulib-tool.
71693         * modules/backupfile (Files): Remove m4/d-ino.m4.
71694         (Depends-on): Add d-ino.
71695         * modules/cycle-check (Depends-on): Add stdint.
71696         (lib_SOURCES): Add cycle-check.h.
71697         * modules/d-ino: New module.
71698         * modules/d-type: New module.
71699         * modules/error (Files): Remove m4/strerror_r.m4.
71700         * modules/filemode (Files): Add m4/st_dm_mode.m4.
71701         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71702         m4/inttypes_h.m4, m4/uintmax_t.m4.
71703         (Depends-on): Add stdint.
71704         (lib_SOURCES): Add fsusage.h.
71705         * modules/getcwd (Files): Remove d-ino.m4.
71706         (Depends-on): Add d-ino.
71707         * modules/getndelim2 (Depends-on): Add stdint.
71708         * modules/glob (Files): Remove m4/d-type.m4.
71709         (Depends-on): Add d-type.
71710         * modules/host-os: New module.
71711         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
71712         m4/inttypes_h.m4, m4/uintmax_t.m4.
71713         * Depends-on: Add stdint.
71714         (lib_SOURCES): Add human.h.
71715         * modules/inttostr (Files): Remove m4/intmax_t.m4,
71716         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
71717         m4/uintmax_t.m4, m4/ulonglong.m4.
71718         (Depends-on): Add stdint.
71719         (EXTRA_DIST): Add inttostr.h.
71720         * modules/lchmod: New module.
71721         * modules/link-follow: New module.
71722         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
71723         (Depends-on): Add lchmod.
71724         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
71725         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
71726         (Depends-on): Add stdint.
71727         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
71728         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
71729         (Depends-on): Add stdint.
71730         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
71731         * modules/perl: New module.
71732         * modules/regex (Depends-on): Add stdint.
71733         * modules/rmdir-errno: New module.
71734         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71735         m4/intmax_t.m4.
71736         (Depends-on): Add stdint.
71737         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71738         m4/uintmax_t.m4.
71739         (Depends-on): Add stdint.
71740         * modules/unlink-busy: New module.
71741         * modules/utimecmp (Depends-on): Add stdint.
71742         * modules/uptime: New module.
71743         * modules/winsz-ioctl: New module.
71744         * modules/winsz-termios: New module.
71745         * modules/xnanosleep (Depends-on): Add nanosleep.
71746         * modules/ullong_max: Remove.
71747         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
71748         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
71749         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
71750         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
71751         (Depends-on): Add inttypes.
71752         (lib_SOURCES): Add xstrtol.h.
71753         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
71754         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
71755         * MODULES.html.sh: Move 'assert' into the assert section.
71756         Move 'dummy' into the linking section.
71757         Remove ullong_max.
71758         Add section for compatibility checks for POSIX:2001 functions,
71759         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
71760         winsz-ioctl, and winsz-termios into it.
71761         Add lchmod.
71762         Add top-level Misc section and put host-os, perl, and uptime
71763         into it.
71764
71765 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71766
71767         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
71768         now assume the stdint module.  Do not include inttypes.h.
71769         * lib/fsusage.h: Likewise.
71770         * lib/getndelim2.c: Likewise.
71771         * lib/human.h: Likewise.
71772         * lib/inttostr.h: Likewise.
71773         * lib/obstack.c: Likewise.
71774         * lib/regex_internal.h: Likewise.
71775         * lib/tempname.c: Likewise.
71776         * lib/utimecmp.c: Likewise.
71777         * lib/xstrtol.h: Likewise.
71778
71779         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
71780
71781         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
71782         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
71783         * lib/xtime.h: Likewise.
71784
71785 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71786
71787         * modules/openat (Files): Add lib/fchmodat.c.
71788         Fixes problem reported by Jay Youngman.
71789
71790 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71791
71792         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
71793         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
71794
71795 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
71796             Bruno Haible  <bruno@clisp.org>
71797
71798         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
71799         and is a script that invokes bison. Tighten the code. Add comments.
71800
71801 2006-08-18  Jim Meyering  <jim@meyering.net>
71802
71803         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
71804         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
71805         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
71806         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
71807
71808 2006-08-18  Bruno Haible  <bruno@clisp.org>
71809
71810         * modules/bison-i18n: New file.
71811         * MODULES.html.sh (Internationalization functions): Add it.
71812
71813 2006-08-18  Bruno Haible  <bruno@clisp.org>
71814
71815         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
71816         sys/statvfs.h. When getmntinfo was found, check its declaration and
71817         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
71818
71819 2006-08-18  Bruno Haible  <bruno@clisp.org>
71820
71821         * m4/bison-i18n.m4: New file, from bison.
71822
71823 2006-08-18  Bruno Haible  <bruno@clisp.org>
71824
71825         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
71826         (ME_DUMMY): Treat "kernfs" as a dummy.
71827         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
71828
71829 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71830
71831         Update from coreutils.
71832
71833         2006-08-15  Jim Meyering  <jim@meyering.net>
71834
71835         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
71836
71837         2006-01-17  Jim Meyering  <jim@meyering.net>
71838
71839         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
71840
71841         2006-01-11  Jim Meyering  <jim@meyering.net>
71842
71843         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
71844         Check for the lchmod function.
71845
71846 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71847
71848         Update from coreutils.
71849
71850         * lib/__fpending.h: Add copyright notice.
71851         * lib/fprintftime.h: Likewise.
71852         * lib/savedir.c: Use (C) in copyright notice.
71853         * lib/savedir.h: Likewise.
71854
71855         2006-08-15  Jim Meyering  <jim@meyering.net>
71856
71857         * lib/at-func.c: New file, with the logic of all emulated at-functions.
71858         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
71859         in support of the EXPECTED_ERRNO macro.
71860         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
71861         definitions.  Instead, define the appropriate symbols and include
71862         "at-func.c".
71863         * lib/mkdirat.c (mkdirat): Likewise.
71864         * lib/fchmodat.c (fchmodat): Likewise.
71865         (ENOSYS): Remove definition.
71866         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
71867         it.  Don't include "unistd--.h" -- it wasn't ever used.
71868
71869         2006-01-17  Jim Meyering  <jim@meyering.net>
71870
71871         Rewrite fts.c not to change the current working directory,
71872         by using openat, fstatat, fdopendir, etc..
71873
71874         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
71875         (HAVE_OPENAT_SUPPORT): Define.
71876         [_LIBC] (fchdir): Don't undef or define; no longer used.
71877         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
71878         Now, this `function' always succeeds, and consumes its file descriptor
71879         parameter -- so callers must not close such FDs.  Update callers.
71880         (diropen_fd, opendirat, cwd_advance_fd): New functions.
71881         (diropen): Add parameter, SP.  Adjust all callers.
71882         Implement using diropen_fd, rather than open.
71883         (fts_open): Initialize new member, fts_cwd_fd.
71884         Remove fts_rft-setting code.
71885         (fts_close): Close fts_cwd_fd, if necessary.
71886         (__opendir2): Define in terms of opendir or opendirat,
71887         depending on whether the FST_NOCHDIR flag is set.
71888         (fts_build): Since fts_safe_changedir consumes its FD, and since
71889         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
71890         and close the dup'd file descriptor upon failure.
71891         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
71892         (fts_safe_changedir): Tweak semantics to reflect that this function
71893         now calls cwd_advance_fd and hence consumes its FD argument.
71894         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
71895         [struct FTS] (fts_rft): Remove now-unused member.
71896         [struct FTS] (fts_cycle.state): Improve comment.
71897
71898         * lib/openat.c (openat_needs_fchdir): New function.
71899         * lib/openat.h (openat_needs_fchdir): Declare it.
71900
71901 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71902
71903         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
71904         Problem and fix reported by Pádraig Brady in
71905         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
71906
71907 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71908
71909         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
71910
71911 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71912
71913         * lib/memcoll.c (memcoll): Optimize for the common case where the
71914         arguments are bytewise equal.
71915
71916 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71917
71918         * doc/regexprops-generic.texi: Add a copyright notice.
71919
71920 2006-08-15  Bruno Haible  <bruno@clisp.org>
71921
71922         * modules/tmpdir (License): Change to LGPL.
71923
71924 2006-08-15  Bruno Haible  <bruno@clisp.org>
71925
71926         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
71927         module.
71928
71929 2006-08-14  Simon Josefsson  <jas@extundo.com>
71930
71931         * config/srclist.txt: Add gnupload.
71932
71933 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71934
71935         Change copyright notice from LGPL 2 to GPL 2, since that's the
71936         standard form used in the gnulib repository.
71937         * tests/test-lock.c: Likewise.
71938         * tests/test-stdint.c: Likewise.
71939         * tests/test-tls.c: Likewise.
71940
71941         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
71942         prelude-manager.  User shorter URLs for GNU projects, without '?'.
71943         Add copyright notice.
71944
71945         * check-module: Add copyright notice.  Output a copyright
71946         notice if "--version" is specified.
71947         * modules/COPYING: New file.
71948         * tests/test-getaddrinfo.c: Add copyright notice.
71949         * tests/test-verify.c: Likewise.
71950
71951 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71952
71953         Change copyright notice from LGPL 2 to GPL 2, since that's the
71954         standard form used in the gnulib repository.
71955         * lib/lock.c: LGPL -> GPL.
71956         * lib/lock.h: Likewise.
71957         * lib/strnlen1.c: Likewise.
71958         * lib/strnlen1.h: Likewise.
71959         * lib/tls.c: Likewise.
71960         * lib/tls.h: Likewise.
71961         * lib/tmpdir.c: Likewise.
71962
71963         * lib/TODO: Remove; this belongs only in coreutils.
71964
71965 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71966
71967         Add copyright notices to long-enough files that lack them, since
71968         otherwise the files aren't clearly free.  Use the same notice that
71969         getdate.texi already uses.
71970         * doc/alloca-opt.texi: Add copyright notice.
71971         * doc/alloca.texi: Likewise.
71972         * doc/ctime.texi: Likewise.
71973         * doc/functions.texi: Likewise.
71974         * doc/gcd.texi: Likewise.
71975         * doc/gnulib-tool.texi: Likewise.
71976         * doc/inet_ntoa.texi: Likewise.
71977         * doc/visibility.texi: Likewise.
71978
71979         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
71980         * doc/quote.texi: Add copyright notice.
71981
71982         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
71983         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
71984         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
71985         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
71986         is now obsolete, and give a pointer to the Sun list.
71987         Add copyright notice.
71988
71989 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71990
71991         * config/srclistvars.sh: Add copyright notice.
71992
71993 2006-08-14  Eric Blake  <ebb9@byu.net>
71994
71995         Import the following change from libc:
71996
71997         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
71998
71999         Upstream bug 2997.
72000         * lib/misc/error.c: Add space between program name and message if file
72001         name is missing.
72002
72003 2006-08-12  Karl Berry  <karl@gnu.org>
72004
72005         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
72006         remove, these originate in gnulib now.
72007
72008 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72009
72010         * doc/Makefile (standards.info standards.html standards.dvi):
72011         Also depend on make-stds.texi.
72012
72013 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72014
72015         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
72016         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
72017
72018         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
72019         in wchar_t.  Problem reported by Eric Blake.
72020
72021         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
72022         LEN is smaller than SIZE.  Suggested by Bruno Haible.
72023         Also, help the compiler to keep LEN in a register.
72024
72025 2006-08-11  Eric Blake  <ebb9@byu.net>
72026
72027         * users.txt: Sort.  Add tar.
72028
72029 2006-08-11  Bruno Haible  <bruno@clisp.org>
72030
72031         * users.txt: New file.
72032
72033 2006-08-11  Bruno Haible  <bruno@clisp.org>
72034
72035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
72036         before <wchar.h>. Needed for OSF/1 and BSD/OS.
72037
72038 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72039
72040         * modules/snprintf (Depends-on): Remove minmax.
72041         (Maintainer): Add self and Bruno.
72042
72043 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72044
72045         * lib/.cppi-disable: Add snprintf.h, socket_.h.
72046         * lib/snprintf.c: Include <errno.h> and <limits.h>.
72047         (EOVERFLOW): Define if the system does not.
72048         Do not include "minmax.h"; it wasn't used.
72049         (snprintf): Don't assume size_t promotes to an unsigned type.
72050         Fix bug when generated string was too long for the buffer: the
72051         buffer's contents are supposed to be the initial prefix of the
72052         output.  Don't assume vasnprintf returns EOVERFLOW if the size
72053         exceeds INT_MAX; do the check ourselves.
72054
72055         Import the following changes from libc:
72056
72057         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
72058
72059         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
72060         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
72061         set wc to the byte which couldn't be converted.
72062         (re_string_reconstruct): Don't clear valid_raw_len before calling
72063         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
72064         tip_context using re_string_context_at.
72065
72066         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
72067
72068         * lib/posix/regex.h: g++ still cannot handled [restrict].
72069
72070         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
72071
72072         * lib/posix/regex.h: Remove special handling for VMS.
72073
72074 2006-08-10  Jim Meyering  <jim@meyering.net>
72075
72076         * modules/same-inode: New module.
72077         * modules/dev-ino: New module.
72078         * modules/cycle-check: Depend on these modules, rather than simply
72079         including their .h files.
72080         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
72081         required via m4/cycle-check.m4.
72082         * modules/same: Depend on new same-inode module, rather than
72083         including same-inode.h.
72084         * modules/chdir-safer: New file.
72085
72086         * modules/chown (Depends-on): Add stat-macros.
72087
72088 2006-08-10  Jim Meyering  <jim@meyering.net>
72089
72090         * m4/cycle-check.m4: New file.
72091         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
72092         * m4/dev-ino.m4, m4/same-inode.m4: New files.
72093
72094 2006-08-10  Eric Blake  <ebb9@byu.net>
72095
72096         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
72097         in from original proposal.
72098
72099 2006-08-10  Eric Blake  <ebb9@byu.net>
72100         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72101
72102         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
72103         namespace.
72104
72105 2006-08-10  Bruno Haible  <bruno@clisp.org>
72106
72107         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
72108         as well.
72109
72110 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72111
72112         Sync from coreutils.
72113
72114         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
72115
72116         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
72117         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
72118
72119 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72120
72121         * modules/restrict: Remove; no longer needed now that we assume
72122         Autoconf 2.59 or later.
72123         * MODULES.html.sh: Remove 'restrict'.
72124         * modules/argp (Depends-on): Remove 'restrict'.
72125         * modules/base64 (Depends-on): Likewise.
72126         * modules/gc (Depends-on): Likewise.
72127         * modules/getaddrinfo (Depends-on): Likewise.
72128         * modules/glob (Depends-on): Likewise.
72129         * modules/inet_ntop (Depends-on): Likewise.
72130         * modules/inet_pton (Depends-on): Likewise.
72131         * modules/memxor (Depends-on): Likewise.
72132         * modules/regex (Depends-on): Likewise.
72133         * modules/strtok_r (Depends-on): Likewise.
72134         * modules/time_r (Depends-on): Likewise.
72135
72136 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72137
72138         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
72139         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
72140         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72141         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
72142         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
72143         * m4/memxor.m4 (gl_MEMXOR): Likewise.
72144         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
72145         gl_C_RESTRICT replaced by AC_C_RESTRICT.
72146
72147         Merge from coreutils.
72148         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
72149         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
72150         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72151         * m4/time_r.m4 (gl_TIME_R): Likewise.
72152
72153 2006-08-09  Karl Berry  <karl@gnu.org>
72154
72155         * config/srclist.txt: no more gettext-tools, per Bruno.
72156
72157 2006-08-08  Eric Blake  <ebb9@byu.net>
72158
72159         * modules/verror: New module.
72160         * MODULES.html.sh: Document it.
72161
72162 2006-08-08  Eric Blake  <ebb9@byu.net>
72163
72164         * lib/verror.h, lib/verror.c: New files.
72165
72166 2006-08-08  Eric Blake  <ebb9@byu.net>
72167
72168         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
72169         verror_at_line output complies with GNU Coding Standards even when
72170         file is NULL.
72171
72172 2006-08-07  Bruno Haible  <bruno@clisp.org>
72173
72174         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
72175         versions of AIX.
72176         Reported by Ralf Wildenhues.
72177
72178 2006-08-07  Bruno Haible  <bruno@clisp.org>
72179
72180         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
72181         in an AC_DEFUN. Needed so that the autoconf snippets can use
72182         AC_REQUIRE.
72183
72184 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72185
72186         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72187         Initialize pkgdata_DATA.
72188         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
72189         overriding it.
72190
72191 2006-08-06  Eric Blake  <ebb9@byu.net>
72192
72193         * lib/error.h: Fold in some upstream changes from glibc.
72194         * lib/error.c: Likewise.
72195
72196 2006-08-04  Bruno Haible  <bruno@clisp.org>
72197
72198         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72199         Make the mostlyclean-local rule depend on mostlyclean-generic.
72200         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
72201
72202 2006-07-31  Bruno Haible  <bruno@clisp.org>
72203
72204         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
72205         <stdlib.h>, <string.h>.
72206
72207 2006-07-30  Bruno Haible  <bruno@clisp.org>
72208
72209         * modules/readlink (License): Change to LGPL.
72210
72211 2006-07-30  Bruno Haible  <bruno@clisp.org>
72212
72213         * modules/javaversion (Makefile.am): Distribute javaversion.java and
72214         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
72215         set PKGDATADIR to point to it.
72216
72217 2006-07-30  Bruno Haible  <bruno@clisp.org>
72218
72219         * modules/csharpexec (configure.ac): Comment out macro invocation.
72220         * modules/javaexec (configure.ac): Likewise.
72221         * modules/javacomp-script (configure.ac): Likewise.
72222
72223         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
72224
72225 2006-07-30  Bruno Haible  <bruno@clisp.org>
72226
72227         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
72228         linked-list.
72229
72230 2006-07-30  Bruno Haible  <bruno@clisp.org>
72231
72232         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
72233
72234 2006-07-30  Bruno Haible  <bruno@clisp.org>
72235
72236         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72237         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
72238         get removed.
72239
72240 2006-07-29  Bruno Haible  <bruno@clisp.org>
72241
72242         Make it possible for gnulib-tool to work with locally modified or
72243         augmented gnulib repositories.
72244         * gnulib-tool (func_usage): Document --local-dir option.
72245         (local_gnulib_dir): New variable.
72246         Handle --local-dir option.
72247         (func_lookup_file): New function.
72248         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
72249         (func_get_description, func_get_filelist, func_get_description,
72250         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
72251         func_get_automake_snippet, func_get_include_directive,
72252         func_get_license, func_get_maintainer): Use func_lookup_file.
72253         (func_import, func_create_testdir): Use func_lookup_file.
72254
72255 2006-07-29  Bruno Haible  <bruno@clisp.org>
72256
72257         * modules/setenv (Depends-on): Add unistd.
72258
72259 2006-07-29  Bruno Haible  <bruno@clisp.org>
72260
72261         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
72262
72263 2006-07-29  Bruno Haible  <bruno@clisp.org>
72264
72265         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
72266
72267 2006-07-29  Bruno Haible  <bruno@clisp.org>
72268
72269         * gnulib-tool (import, update): If there is no Makefile.am, look at
72270         aclocal.m4, instead of bailing out.
72271
72272 2006-07-29  Bruno Haible  <bruno@clisp.org>
72273
72274         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
72275         Categorize the options by when they are useful.
72276
72277 2006-07-29  Bruno Haible  <bruno@clisp.org>
72278
72279         * gnulib-tool (func_usage): Document option --no-libtool.
72280         Handle option --no-libtool.
72281         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
72282         for changed semantics of $libtool variable.
72283         (func_import): Likewise. If libtool is not used, show this through
72284         an option --no-libtool.
72285         (func_create_testdir): Update.
72286
72287 2006-07-29  Bruno Haible  <bruno@clisp.org>
72288
72289         * gnulib-tool (func_import): Extend error message about missing
72290         --doc-base.
72291
72292 2006-07-29  Bruno Haible  <bruno@clisp.org>
72293
72294         * gnulib-tool (func_import): Don't create the $docbase directory if
72295         there is no file to store there.
72296
72297 2006-07-29  Bruno Haible  <bruno@clisp.org>
72298
72299         * gnulib-tool (autoconf_minversion): If a --dir option is given and
72300         relevant, look for configure.ac there, not in the current directory.
72301         Also use a simple search for AC_PREREQ, not "autoconf --trace".
72302
72303 2006-07-29  Bruno Haible  <bruno@clisp.org>
72304
72305         * gnulib-tool (SORT): New variable.
72306         (func_usage): Undocument --assume-autoconf option.
72307         Remove --assume-autoconf option handling.
72308         (autoconf_minversion): Determine from the contents of configure.ac.
72309         (func_import): Remove autoconf_minversion handling.
72310         Suggested by Eric Blake.
72311
72312 2006-07-29  Bruno Haible  <bruno@clisp.org>
72313
72314         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
72315
72316 2006-07-29  Bruno Haible  <bruno@clisp.org>
72317
72318         * config/srclist.txt (*setenv.[ch]): Remove rules.
72319
72320 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72321
72322         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
72323
72324 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72325
72326         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
72327         arpa/inet.h.
72328
72329 2006-07-28  Simon Josefsson  <jas@extundo.com>
72330
72331         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
72332         * modules/inet_pton (Depends-on): Likewise.
72333
72334 2006-07-28  Simon Josefsson  <jas@extundo.com>
72335
72336         * m4/netinet_in_h.m4: New file.
72337
72338 2006-07-28  Simon Josefsson  <jas@extundo.com>
72339
72340         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
72341         #include's.
72342
72343 2006-07-28  Simon Josefsson  <jas@extundo.com>
72344
72345         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
72346         #include's.
72347
72348 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
72349
72350         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
72351         setgid on directories only if they set these bits.
72352         * lib/modechange.h: Remove obsolete comment about masks.
72353
72354 2006-07-28  Eric Blake  <ebb9@byu.net>
72355
72356         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
72357         macro expansion.
72358
72359 2006-07-28  Bruno Haible  <bruno@clisp.org>
72360
72361         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
72362
72363 2006-07-28  Bruno Haible  <bruno@clisp.org>
72364
72365         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
72366
72367 2006-07-28  Bruno Haible  <bruno@clisp.org>
72368
72369         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
72370         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
72371         Define fallbacks.
72372         Avoids link error on FreeBSD 4.x.
72373         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72374
72375         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
72376         encoding.
72377         * lib/mbswidth.c (iswcntrl): Likewise.
72378
72379 2006-07-27  Bruno Haible  <bruno@clisp.org>
72380
72381         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
72382         test.
72383
72384 2006-07-27  Bruno Haible  <bruno@clisp.org>
72385
72386         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
72387         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
72388         defined.
72389
72390 2006-07-26  Eric Blake  <ebb9@byu.net>
72391
72392         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
72393
72394 2006-07-26  Eric Blake  <ebb9@byu.net>
72395
72396         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
72397         like mingw that lack mkstemp.
72398         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
72399         avoid compilation warning on mingw.
72400
72401 2006-07-26  Bruno Haible  <bruno@clisp.org>
72402
72403         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
72404         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
72405         INT_FAST*_MIN, INTPTR_MIN.
72406
72407 2006-07-25  Bruno Haible  <bruno@clisp.org>
72408
72409         * modules/version-etc (Depends-on): Add stdarg.
72410
72411 2006-07-25  Bruno Haible  <bruno@clisp.org>
72412
72413         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
72414         complex commands.
72415
72416 2006-07-25  Bruno Haible  <bruno@clisp.org>
72417
72418         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
72419         defined in <stdarg.h> or config.h.
72420
72421 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72422
72423         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
72424         (gl_STDIO_SAFER): Remove.
72425
72426 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72427
72428         * MODULES.html.sh (File stream based Input/Output):
72429         Add fopen-safer, tmpfile-safer; remove stdio-safer.
72430         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
72431         * modules/fopen-safer, modules/tmpfile-safer: New files.
72432         * modules/stdio-safer: Remove.
72433
72434 2006-07-24  Bruno Haible  <bruno@clisp.org>
72435
72436         * modules/tmpdir: New file.
72437         * MODULES.html.sh (File system functions): Add it.
72438
72439 2006-07-24  Bruno Haible  <bruno@clisp.org>
72440
72441         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
72442         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
72443
72444 2006-07-24  Bruno Haible  <bruno@clisp.org>
72445
72446         * modules/clean-temp: New file.
72447
72448 2006-07-24  Bruno Haible  <bruno@clisp.org>
72449
72450         * m4/tmpdir.m4: New file, from GNU gettext.
72451
72452 2006-07-24  Bruno Haible  <bruno@clisp.org>
72453
72454         * lib/tmpdir.h: New file, from GNU gettext.
72455         * lib/tmpdir.c: New file, from GNU gettext.
72456
72457 2006-07-24  Bruno Haible  <bruno@clisp.org>
72458
72459         * lib/clean-temp.h: New file, from GNU gettext.
72460         * lib/clean-temp.c: New file, from GNU gettext.
72461
72462 2006-07-23  Eric Blake  <ebb9@byu.net>
72463
72464         * modules/stdio-safer (Files): Add tmpfile-safer.c.
72465         (Depends-on): Add binary-io.
72466
72467 2006-07-23  Eric Blake  <ebb9@byu.net>
72468
72469         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
72470
72471 2006-07-23  Eric Blake  <ebb9@byu.net>
72472
72473         * lib/tmpfile-safer.c: New file.
72474         * lib/stdio-safer.h (fopen_safer): Add prototype.
72475         * lib/stdio--.h (tmpfile): Make safer.
72476
72477 2006-07-23  Bruno Haible  <bruno@clisp.org>
72478
72479         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
72480         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
72481         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
72482         gl_linked_remove_at): Use it.
72483
72484 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72485         and Simon Josefsson <jas@extundo.com>
72486
72487         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
72488
72489         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
72490
72491 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72492
72493         * modules/close-stream: New file.
72494         * modules/closeout (Description): Make it clear that it exits
72495         with a diagnostic on error.
72496         (Depends-on): Add close-stream.  Remove fpending, stdbool.
72497         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
72498
72499 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72500
72501         * m4/close-stream.m4: New file.
72502
72503 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72504
72505         * lib/close-stream.c, lib/close-stream.h: New files.
72506
72507 2006-07-22  Bruno Haible  <bruno@clisp.org>
72508
72509         Merge from GNU gettext 0.15.
72510
72511         2006-05-01  Bruno Haible  <bruno@clisp.org>
72512
72513                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
72514
72515         2006-07-22  Bruno Haible  <bruno@clisp.org>
72516
72517                 * modules/javaversion: New file.
72518                 * MODULES.html.sh (Java): Add javaversion.
72519
72520         2006-03-12  Bruno Haible  <bruno@clisp.org>
72521
72522                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
72523
72524         2005-12-04  Bruno Haible  <bruno@clisp.org>
72525
72526                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
72527                 (untested).
72528
72529         2006-06-21  Bruno Haible  <bruno@clisp.org>
72530
72531                 Avoid warnings from recent versions of mcs.
72532                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
72533                 -o, -L, -r any more. Use options documented since mcs-1.0
72534                 instead. Similarly for -g.
72535
72536         2005-12-04  Bruno Haible  <bruno@clisp.org>
72537
72538                 * build-aux/csharpcomp.sh.in: Suffix for resources is
72539                 .resources, not .resource.
72540
72541         2005-07-09  Bruno Haible  <bruno@clisp.org>
72542
72543                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
72544                 add a .dll suffix.
72545                 Reported by Mark Junker <mjscod@gmx.de>.
72546
72547         2006-07-22  Bruno Haible  <bruno@clisp.org>
72548
72549                 * modules/gettext: Upgrade to gettext-0.15.
72550                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
72551                 m4/visibility.m4.
72552                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
72553
72554 2006-07-22  Bruno Haible  <bruno@clisp.org>
72555
72556         Merge from GNU gettext 0.15.
72557
72558         2006-03-25  Bruno Haible  <bruno@clisp.org>
72559
72560                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
72561
72562         2006-07-21  Bruno Haible  <bruno@clisp.org>
72563
72564                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
72565                 "1.1".
72566
72567         2006-05-09  Bruno Haible  <bruno@clisp.org>
72568
72569                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
72570                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
72571                 for the conftestver execution.
72572
72573         2006-05-01  Bruno Haible  <bruno@clisp.org>
72574
72575                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
72576                 optional target-version argument. Verify that the compiler
72577                 groks source of the specified source-version, or add -source
72578                 option as necessary. Verify that the compiler produces
72579                 bytecode in the specified target-version, or add -target and
72580                 -source options as necessary. Make the result of the test
72581                 available as variable CONF_JAVAC. Also log error output in
72582                 config.log.
72583
72584         2006-03-11  Bruno Haible  <bruno@clisp.org>
72585
72586                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
72587
72588         2006-05-09  Bruno Haible  <bruno@clisp.org>
72589
72590                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
72591                 CLASSPATH_SEPARATOR to a semicolon.
72592
72593         2006-03-12  Bruno Haible  <bruno@clisp.org>
72594
72595                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
72596                 available as variable CONF_JAVA, for subsequent autoconf
72597                 tests. Also log error output in config.log.
72598
72599         2006-07-19  Bruno Haible  <bruno@clisp.org>
72600
72601                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
72602                 that getline works on glibc2 systems. Needed to avoid trouble
72603                 in relocatable.c.
72604                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
72605
72606         2005-12-04  Bruno Haible  <bruno@clisp.org>
72607
72608                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
72609                 launcher (untested).
72610
72611         2005-12-04  Bruno Haible  <bruno@clisp.org>
72612
72613                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
72614
72615         2006-07-22  Bruno Haible  <bruno@clisp.org>
72616
72617                 * gettext.m4: Update from GNU gettext-0.15.
72618                 * nls.m4: Likewise.
72619                 * po.m4: Likewise.
72620                 * inttypes-pri.m4: Likewise.
72621                 * inttypes-h.m4: Renamed from inttypes.m4.
72622                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
72623
72624 2006-07-22  Bruno Haible  <bruno@clisp.org>
72625
72626         Merge from GNU gettext 0.15.
72627
72628         2005-07-05  Bruno Haible  <bruno@clisp.org>
72629
72630                 * printf-args.c (printf_fetchargs): Work around broken
72631                 definition of wint_t on mingw.
72632
72633         2005-02-12  Bruno Haible  <bruno@clisp.org>
72634
72635                 * xallocsa.h: Add extern "C" for C++.
72636
72637         2006-05-17  Bruno Haible  <bruno@clisp.org>
72638
72639                 Cygwin portability.
72640                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
72641
72642         2006-04-30  Bruno Haible  <bruno@clisp.org>
72643
72644                 * progreloc.c: Include <mach-o/dyld.h> if available.
72645                 (find_executable): Use _NSGetExecutablePath when possible.
72646
72647         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72648
72649                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
72650                 function.
72651
72652         2005-12-29  Bruno Haible  <bruno@clisp.org>
72653
72654                 * progreloc.c (set_program_name_and_installdir): Fix
72655                 compilation error.
72656
72657         2005-12-04  Bruno Haible  <bruno@clisp.org>
72658
72659                 Cygwin portability.
72660                 * progreloc.c: Include <windows.h> also on Cygwin.
72661                 (find_executable): Add support for Cygwin.
72662                 (set_program_name_and_installdir): Handle also platforms with
72663                 nonempty EXEEXT.
72664
72665         2006-07-11  Bruno Haible  <bruno@clisp.org>
72666
72667                 * javacomp.c: Fix a comment.
72668                 Reported by Jim Meyering.
72669
72670         2006-04-30  Bruno Haible  <bruno@clisp.org>
72671
72672                 * javacomp.h (compile_java_class): Add source_version,
72673                 target_version arguments.
72674                 * javacomp.c: Rewritten to choose only a compiler that
72675                 respects the specified source_version and target_version.
72676
72677         2006-06-27  Bruno Haible  <bruno@clisp.org>
72678
72679                 Assume correct S_ISDIR macro.
72680                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
72681
72682         2006-07-22  Bruno Haible  <bruno@clisp.org>
72683
72684                 * javaversion.h: New file, from GNU gettext.
72685                 * javaversion.c: New file, from GNU gettext.
72686                 * javaversion.java: New file, from GNU gettext.
72687                 * javaversion.class: New file, from GNU gettext.
72688
72689         2006-05-17  Bruno Haible  <bruno@clisp.org>
72690
72691                 Cygwin portability.
72692                 * javaexec.c (execute_java_class): Test for jview program
72693                 also on Cygwin.
72694
72695         2006-04-09  Bruno Haible  <bruno@clisp.org>
72696
72697                 * fatal-signal.c: Don't include string.h.
72698                 (at_fatal_signal): Use a copying loop instead of memcpy.
72699
72700         2005-12-04  Bruno Haible  <bruno@clisp.org>
72701
72702                 * csharpexec.c: Add support for 'clix' launcher (untested).
72703                 (execute_csharp_using_sscli): New function.
72704                 (execute_csharp_program): Call it.
72705
72706         2006-06-21  Bruno Haible  <bruno@clisp.org>
72707
72708                 Avoid warnings from recent versions of mcs.
72709                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
72710                 -o, -L, -r any more. Use options documented since mcs-1.0
72711                 instead. Similarly for -g.
72712
72713         2005-07-09  Bruno Haible  <bruno@clisp.org>
72714
72715                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
72716                 add a .dll suffix.
72717                 Reported by Mark Junker <mjscod@gmx.de>.
72718
72719         2006-06-17  Bruno Haible  <bruno@clisp.org>
72720
72721                 * config.charset: Update for NetBSD 3.0.
72722
72723         2006-05-17  Bruno Haible  <bruno@clisp.org>
72724
72725                 Cygwin portability.
72726                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
72727
72728         2006-05-16  Bruno Haible  <bruno@clisp.org>
72729
72730                 * localcharset.c [CYGWIN]: Include <windows.h>.
72731                 (get_charset_aliases): For Cygwin, return the same CPxxx
72732                 aliases list as under WIN32.
72733                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
72734                 the environment variables. Fall back to GetACP().
72735
72736         2006-04-05  Bruno Haible  <bruno@clisp.org>
72737
72738                 * config.charset: Update Juan Manuel Guerrero's address.
72739
72740         2005-02-12  Bruno Haible  <bruno@clisp.org>
72741
72742                 * allocsa.h: Add extern "C" for C++.
72743
72744         2005-02-10  Bruno Haible  <bruno@clisp.org>
72745
72746                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
72747                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
72748
72749         2006-07-22  Bruno Haible  <bruno@clisp.org>
72750
72751                 * gettext.h: Update to GNU gettext-0.15.
72752
72753 2006-07-22  Bruno Haible  <bruno@clisp.org>
72754
72755         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
72756         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
72757         lib-prefix.m4, longdouble.m4, ssize_t.m4.
72758
72759 2006-07-21  Eric Blake  <ebb9@byu.net>
72760
72761         * modules/stdlib-safer: New file.
72762         * MODULES.html.sh (File stream based Input/Output): Add
72763         stdlib-safer.
72764
72765 2006-07-21  Eric Blake  <ebb9@byu.net>
72766
72767         * lib/stdlib-safer.h: New file from coreutils, required by
72768         stdlib--.h.
72769
72770 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
72771
72772         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
72773
72774 2006-07-20  Bruno Haible  <bruno@clisp.org>
72775
72776         * gnulib-tool: Recognize new option --assume-autoconf.
72777         (autoconf_minversion): New variable.
72778         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
72779
72780 2006-07-20  Bruno Haible  <bruno@clisp.org>
72781
72782         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
72783
72784 2006-07-19  Derek R. Price  <derek@ximbiot.com>
72785
72786         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
72787         Reindent and repaginate.
72788
72789 2006-07-19  Derek Price  <derek@ximbiot.com>
72790
72791         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
72792         Correct grammar.
72793
72794 2006-07-17  Bruno Haible  <bruno@clisp.org>
72795
72796         * modules/list: New file.
72797         * modules/array-list: New file.
72798         * modules/carray-list, modules/carray-list-tests: New files.
72799         * modules/linked-list, modules/linked-list-tests: New files.
72800         * modules/avltree-list, modules/avltree-list-tests: New files.
72801         * modules/rbtree-list, modules/rbtree-list-tests: New files.
72802         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
72803         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
72804         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
72805         * modules/oset: New file.
72806         * modules/array-oset: New file.
72807         * modules/avltree-oset, modules/avltree-oset-tests: New files.
72808         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
72809         * tests/test-carray_list.c: New file.
72810         * tests/test-linked_list.c: New file.
72811         * tests/test-avltree_list.c: New file.
72812         * tests/test-rbtree_list.c: New file.
72813         * tests/test-linkedhash_list.c: New file.
72814         * tests/test-avltreehash_list.c: New file.
72815         * tests/test-rbtreehash_list.c: New file.
72816         * tests/test-avltree_oset.c: New file.
72817         * tests/test-rbtree_oset.c: New file.
72818         * MODULES.html.sh (Container data structures): New section.
72819
72820 2006-07-17  Bruno Haible  <bruno@clisp.org>
72821
72822         * m4/gl_list.m4: New file.
72823
72824 2006-07-17  Bruno Haible  <bruno@clisp.org>
72825
72826         * lib/gl_list.h: New file.
72827         * lib/gl_list.c: New file.
72828         * lib/gl_array_list.h: New file.
72829         * lib/gl_array_list.c: New file.
72830         * lib/gl_carray_list.h: New file.
72831         * lib/gl_carray_list.c: New file.
72832         * lib/gl_linked_list.h: New file.
72833         * lib/gl_linked_list.c: New file.
72834         * lib/gl_anylinked_list1.h: New file.
72835         * lib/gl_anylinked_list2.h: New file.
72836         * lib/gl_avltree_list.h: New file.
72837         * lib/gl_avltree_list.c: New file.
72838         * lib/gl_anyavltree_list1.h: New file.
72839         * lib/gl_anyavltree_list2.h: New file.
72840         * lib/gl_rbtree_list.h: New file.
72841         * lib/gl_rbtree_list.c: New file.
72842         * lib/gl_anyrbtree_list1.h: New file.
72843         * lib/gl_anyrbtree_list2.h: New file.
72844         * lib/gl_anytree_list1.h: New file.
72845         * lib/gl_anytree_list2.h: New file.
72846         * lib/gl_linkedhash_list.h: New file.
72847         * lib/gl_linkedhash_list.c: New file.
72848         * lib/gl_anyhash_list1.h: New file.
72849         * lib/gl_anyhash_list2.h: New file.
72850         * lib/gl_avltreehash_list.h: New file.
72851         * lib/gl_avltreehash_list.c: New file.
72852         * lib/gl_rbtreehash_list.h: New file.
72853         * lib/gl_rbtreehash_list.c: New file.
72854         * lib/gl_anytreehash_list1.h: New file.
72855         * lib/gl_anytreehash_list2.h: New file.
72856
72857         * lib/gl_oset.h: New file.
72858         * lib/gl_oset.c: New file.
72859         * lib/gl_array_oset.h: New file.
72860         * lib/gl_array_oset.c: New file.
72861         * lib/gl_avltree_oset.h: New file.
72862         * lib/gl_avltree_oset.c: New file.
72863         * lib/gl_rbtree_oset.h: New file.
72864         * lib/gl_rbtree_oset.c: New file.
72865         * lib/gl_anytree_oset.h: New file.
72866
72867 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72868
72869         * m4/mkancesdirs.m4: New file.
72870         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
72871         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
72872         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
72873         it.
72874
72875 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72876
72877         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
72878         * lib/mkancesdirs.h: New files.
72879         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
72880         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
72881         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
72882         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
72883         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
72884         callers changed.  Revamp internals significantly, by not
72885         attempting to create directories that are temporarily more
72886         permissive than the final results.  Do not attempt to use
72887         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
72888         This removes some race conditions, fixes some bugs, and simplifies
72889         things.  Use new dirchownmod function to do owner and mode changes.
72890         * lib/mkdir-p.h: Likewise.
72891         * lib/modechange.c (octal_to_mode): New function.
72892         (struct mode_change): New member mentioned.
72893         (make_node_op_equals): New arg mentioned.  All callers changed.
72894         (mode_compile): Keep track of which mode bits the user has explicitly
72895         mentioned.
72896         (mode_adjust): New arg DIR, so that we implement the X op correctly.
72897         New arg PMODE_BITS, to keep track of which mode bits the user
72898         mentioned; it treats S_ISUID and S_ISGID speciall.
72899         All callers changed.
72900         * lib/modechange.h: Likewise.
72901
72902 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72903
72904         * MODULES.html.sh: Add mkancestors.
72905         * modules/mkancesdirs: New module.
72906         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
72907         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
72908         The chdir-safer and afs files are now orphans; I'll remove them
72909         unless someone speaks up.
72910         Add lib/dirchownmod.c, lib/dirchownmod.h.
72911         (Depends-on): Remove alloca, chown, save-cwd, dirname.
72912         Add lchown, mkancesdirs.
72913         (Maintainer): Add self.
72914
72915 2006-07-15  Karl Berry  <karl@gnu.org>
72916
72917         * gnulib-tool: help message wording/arrangement.
72918
72919 2006-07-14  Simon Josefsson  <jas@extundo.com>
72920
72921         * doc/gnulib.texi (Libtool and Windows): New section.
72922
72923 2006-07-12  Simon Josefsson  <jas@extundo.com>
72924
72925         * modules/gendocs (License): Fix license, approved by Karl.
72926
72927 2006-07-12  Eric Blake  <ebb9@byu.net>
72928
72929         * MODULES.html.sh: Add gendocs.
72930
72931 2006-07-11  Eric Blake  <ebb9@byu.net>
72932
72933         * modules/fdl: New module, to install doc/fdl.texi.
72934         * MODULES.html.sh: Add new section for documentation modules.
72935         * gnulib-tool: Avoid space-tab.
72936         (--doc-base): New option, to manage files from doc.
72937
72938 2006-07-11  Eric Blake  <ebb9@byu.net>
72939
72940         * m4/absolute-header.m4: Fix comments to match recent change.
72941
72942 2006-07-11  Eric Blake  <ebb9@byu.net>
72943
72944         * gnulib-tool: List --doc-base before --tests-base.
72945
72946 2006-07-11  Derek R. Price  <derek@ximbiot.com>
72947
72948         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
72949
72950 2006-07-11  Bruno Haible  <bruno@clisp.org>
72951
72952         * README: Mention where to put documentation.
72953
72954 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72955
72956         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
72957
72958 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72959
72960         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
72961         to stdint.m4.
72962
72963 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72964
72965         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
72966         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
72967         "no/such/file/stdint.h" when there is no such file, so that
72968         the resulting C code can be parsed by dodgy compilers.
72969         Problems reported by Bob Proulx.
72970
72971 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72972
72973         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
72974         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72975         macros into the GNU _D_EXACT_NAMLEN.
72976         * lib/savedir.c:  Likewise.
72977         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
72978
72979 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72980         and Paul Eggert  <eggert@cs.ucla.edu>
72981
72982         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
72983         * m4/savedir.m4:
72984         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72985         macros into the GNU _D_EXACT_NAMLEN.
72986
72987 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72988
72989         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
72990         around the absolute name, to work around a problem with the HP-UX
72991         11.23 native C compiler, reported by Bob Proulx.
72992
72993 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72994
72995         * doc/maintain.texi, make-stds.texi: Sync from
72996         <http://savannah.gnu.org/projects/gnustandards>.
72997
72998 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72999
73000         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
73001
73002 2006-07-09  Jim Meyering  <jim@meyering.net>
73003
73004         * m4/glob.m4: Remove a doubled word in a comment.
73005
73006 2006-07-09  Jim Meyering  <jim@meyering.net>
73007
73008         * lib/argp-pv.c: Remove a doubled word in a comment.
73009         * lib/check-version.c (check_version): Likewise.
73010         * lib/javacomp.c (compile_java_class): Likewise.
73011
73012 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73013
73014         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
73015         for the benefit of people using Autoconf 2.60.  If you want to
73016         support older Autoconf versions you can copy m4/onceonly_2_57.m4
73017         (or m4/onceonly.m4, if pre-2.57) manually.
73018
73019 2006-07-08  Jim Meyering  <jim@meyering.net>
73020
73021         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
73022         comment.
73023         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
73024         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
73025         comment.
73026
73027 2006-07-08  Jim Meyering  <jim@meyering.net>
73028
73029         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
73030
73031 2006-07-07  Simon Josefsson  <jas@extundo.com>
73032
73033         * tests/test-crc.c: Change expected crc value, the test vector
73034         were probably computed using the old broken crc.c?
73035
73036 2006-07-06  Simon Josefsson  <jas@extundo.com>
73037
73038         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
73039         now the canonical place for the M4 file).
73040
73041         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
73042         from the sys_socket dependency now.
73043
73044         * modules/inet_pton (Files): Ditto.
73045
73046         * modules/inet_ntop (Files): Ditto.
73047
73048 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73049
73050         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
73051         not gl_PREREQ_GETUSERSHELL.
73052
73053 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73054
73055         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
73056         with only one argument, for Autoconf 2.60.
73057         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
73058         expand to nothing, so add a shell command to avoid syntax error.
73059         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73060
73061 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73062
73063         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
73064
73065 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73066
73067         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
73068         no longer needed.  Check for isblank decl.
73069         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
73070         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
73071         of existence.
73072
73073 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73074
73075         * lib/getloadavg.c: Use __VMS, not VMS.
73076         * lib/getopt.c: Likewise.
73077         * lib/getpagesize.h: Likewise.
73078         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
73079         and probably does not work.
73080
73081 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73082
73083         * lib/.cppi-disable: Add wcwidth.
73084         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
73085         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
73086         (ISGRAPH): Remove.  All uses changed to isgraph.
73087         (FOLD) [!defined _LIBC]: Remove special case.
73088         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
73089         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
73090         HAVE_ISBLANK.
73091         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
73092         case.
73093
73094 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73095
73096         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
73097         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
73098         brackets.  Other minor changes to suppress some compiler
73099         warnings.
73100
73101 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73102         and Paul Eggert  <eggert@cs.ucla.edu>
73103
73104         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
73105         of invoking obsolescent AC_HEADER_DIRENT macro.
73106         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
73107         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
73108         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
73109         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73110         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
73111         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73112         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
73113         * m4/readdir.m4: Remove; no longer needed.
73114
73115 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73116         and Paul Eggert  <eggert@cs.ucla.edu>
73117
73118         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
73119         Don't worry about this obsolete case any more.
73120         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
73121         directories.
73122         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
73123         worry about this obsolete case any more.
73124         * lib/fts.c: Likewise.
73125         * lib/getcwd.c: Likewise.
73126         * lib/glob.h: Likewise.
73127         * lib/savedir.c: Likewise.
73128
73129 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73130
73131         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
73132         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
73133         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
73134         needed.
73135         All uses removed.
73136         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73137         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73138         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
73139         needed.
73140         * m4/getdate.m4 (gl_GETDATE): Likewise.
73141         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73142         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73143         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73144         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73145         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73146         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73147         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
73148         needed.
73149
73150 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73151
73152         * lib/memcasecmp.c: Include <limits.h>.
73153         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
73154         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
73155         Don't assume isdigit succeeds only on '0' through '9'.
73156
73157 2006-07-05  Eric Blake  <ebb9@byu.net>
73158
73159         * modules/getaddrinfo (Depends-on): Add snprintf.
73160
73161 2006-07-05  Eric Blake  <ebb9@byu.net>
73162
73163         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
73164         to avoid 'header present but could not be compiled' on cygwin.
73165
73166 2006-07-05  Eric Blake  <ebb9@byu.net>
73167
73168         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
73169         missing from netdb.h.
73170         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
73171
73172 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73173
73174         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
73175         no longer needed.
73176         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
73177         * m4/getdate.m4 (gl_GETDATE): Likewise.
73178         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73179         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73180         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73181         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73182         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73183
73184 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73185
73186         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
73187         All uses of is_space replaced by isspace.
73188         * lib/exit.h: Don't talk about STDC_HEADERS.
73189         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
73190         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
73191         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
73192         replaced by isprint etc.
73193         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
73194         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73195         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
73196         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
73197         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
73198         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73199
73200 2006-07-05  Bruno Haible  <bruno@clisp.org>
73201
73202         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
73203         the function exists, before testing against AIX.
73204         Reported by Martin Lambers <marlam@marlam.de>.
73205
73206 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73207
73208         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
73209         From Mark D. Baushke.
73210
73211 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73212
73213         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
73214         to the absolute name, not just one, to bypass Sun C 5.8's
73215         "warning: #include of /usr/include/... may be non-portable".
73216
73217 2006-07-04  Eric Blake  <ebb9@byu.net>
73218
73219         * modules/dirname-tests: New test module.
73220         * tests/test-dirname.c: New file, replacing dirname.c
73221         TEST_DIRNAME section that was recently deleted.
73222
73223 2006-07-04  Bruno Haible  <bruno@clisp.org>
73224
73225         Assume ANSI C header files and <ctype.h> functions.
73226         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
73227         (mbsnwidth): Use isprint, iscntrl instead.
73228
73229 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73230
73231         Merge from coreutils.
73232         * MODULES.html.sh: Add xstrtold.
73233         * modules/xstrtold: New file.
73234         * modules/cycle-check (Files): Add lib/same-inode.h.
73235         * modules/dirname (Files): Add m4/double-slash-root.m4.
73236         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
73237         * modules/mkdir-p (Files): Add lib/same-inode.h.
73238         * modules/same (Files): Add lib/same-inode.h.
73239
73240 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73241
73242         * m4/absolute-header.m4: Renamed from full-header-path.m4.
73243         This is to keep the terminology clean; POSIX talks about
73244         "absolute pathnames", not "full pathnames", but the GNU
73245         Coding Standards say to use "path" for something else;
73246         so use "absolute" to keep both sides happy.
73247         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
73248         Set gl_absolute_header, not gl_full_header_path.
73249         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
73250         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
73251         All uses changed.
73252
73253         Merge from coreutils.
73254
73255         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73256
73257         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
73258         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
73259         want to require the building of c-strtod.o.
73260         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
73261         needs -lm directly.
73262         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
73263
73264         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73265
73266         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
73267         --as-needed option if available.  Problem reported by Albert Chin in
73268         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
73269         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
73270         cc merely issues a bunch of annoying warnings for --as-needed
73271         (this problem was reported by Bob Proulx).  Also, try linking with
73272         -lm to detect a bug in binutils 2.16 (this problem was reported
73273         by Ralf Wildenhues).
73274
73275         2006-06-18  Jim Meyering  <jim@meyering.net>
73276
73277         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
73278         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
73279         macro.
73280         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
73281         also check for glibc-2.4's abort-inducing bug.
73282
73283         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
73284         Low-probability clean-up should be to use rmdir to get rid of
73285         the just-created directory, not unlink.
73286
73287         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
73288         configure fail, and request a bug report to inform us about it.
73289         Add a comment that, barring reports to the contrary, in 2007 we'll
73290         assume ftruncate is universally available.
73291
73292         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73293
73294         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
73295
73296         2006-03-12  Jim Meyering  <jim@meyering.net>
73297
73298         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
73299         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
73300         * m4/same.m4 (gl_SAME): Likewise.
73301         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
73302
73303         2006-03-11  Eric Blake  <ebb9@byu.net>
73304
73305         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
73306         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
73307         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
73308         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
73309
73310 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73311
73312         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
73313         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
73314         reported by Mark D. Baushke, one in
73315         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
73316
73317         Merge from coreutils.
73318
73319         * lib/.cppi-disable: Add stdint_.h.
73320         * lib/.cvsignore: Add stdint.h.
73321
73322         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73323
73324         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
73325         both double and long double versions.
73326         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
73327         * lib/xstrtold.c: New file.
73328         * lib/xstrtod.h (xstrtold): New decl.
73329
73330         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73331
73332         * lib/filemode.c (setst): Remove.
73333         (strmode): Rewrite to avoid setst.  This makes the code shorter,
73334         (arguably) clearer, and the generated code is a bit smaller on my
73335         Debian GNU/Linux stable x86 host.
73336
73337         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73338
73339         * lib/filemode.c: Include "filemode.h" first, to test the interface.
73340         Assume that filemode.h includes sys/types.h and sys/stat.h.
73341         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
73342         (ftypelet): Reorder to put common cases first, for efficiency.
73343         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
73344         to do 'M'.
73345         (strmode): Renamed from mode_string, and now stores 12 bytes instead
73346         of 10, for compatibility with FreeBSD.  All callers changed.
73347         (filemodestring): Now stores 12 bytes instead of 10, and sets file
73348         types that can't be deduced solely from st_mode.  First arg is now a
73349         const pointer.
73350         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
73351         (strmode): Renamed from mode_string.
73352         (filemodestring): New decl.
73353         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
73354         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
73355         needed.
73356         (S_ISPORT, S_ISWHT): New macros, if not already defined.
73357
73358         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73359
73360         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
73361         fsusage.h now does that.  Include fsusage.h first, to test interface.
73362         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
73363         at most one method (the old code could have generated decls that
73364         didn't conform to C89, not that this was ever exercised).
73365         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
73366
73367         2006-03-19  Jim Meyering  <jim@meyering.net>
73368
73369         Work even in a chroot where d_ino values for entries in "/"
73370         don't match the stat.st_ino values for the same names.
73371         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
73372         number, iterate through all entries again, using lstat instead.
73373         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
73374         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
73375
73376         * lib/getcwd.c (__getcwd): Clarify a comment.
73377         Use memcpy in place of a call to strcpy.
73378
73379         2006-03-12  Jim Meyering  <jim@meyering.net>
73380
73381         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
73382         matches that of the current directory (which we're about to chdir ".."
73383         out of), then save the dev-ino of the parent, instead.
73384
73385         * lib/same-inode.h (SAME_INODE): New file/macro.
73386         * lib/chdir-safer.c (SAME_INODE): Remove definition.
73387         Include "same-inode.h", instead.
73388         * lib/same.c: Likewise.
73389         * lib/cycle-check.h: Include "same-inode.h".
73390         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
73391         * lib/cycle-check.c (SAME_INODE): Remove definition.
73392         * lib/root-dev-ino.h: Include "same-inode.h".
73393
73394         2006-03-11  Eric Blake  <ebb9@byu.net>
73395
73396         * lib/same.c (same_name): s/base_name/last_component/
73397         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
73398         * lib/filenamecat.c (file_name_concat): Likewise.
73399
73400         2006-03-11  Eric Blake  <ebb9@byu.net>,
73401                     Paul Eggert  <eggert@cs.ucla.edu>
73402
73403         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
73404         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
73405         drive prefix.
73406         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
73407         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
73408         (last_component): New method.
73409         * lib/dirname.c (dir_len): Determine when drive letters need a
73410         subsequent slash.  Preserve // when it is special.
73411         (dir_name): Don't append dot when drive letter is absolute.
73412         [TEST_DIRNAME]: Move into a full-blown gnulib test.
73413         * lib/basename.c (base_name): New semantics - malloc the result.
73414         Preserve // when it is special.  Preserve relative files that look
73415         like drive letters.
73416         (base_len): Preserve // when it is special.
73417         (last_component): New method, similar to old base_name semantics.
73418         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
73419         base_name.  Strip redundant slashes from ///.
73420
73421 2006-07-03  Jim Meyering  <jim@meyering.net>
73422
73423         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
73424         macro is used before the first cycle_check call.
73425
73426 2006-07-03  Eric Blake  <ebb9@byu.net>
73427
73428         * modules/dirname (Depends-on): Add xstrndup.
73429
73430 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73431
73432         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
73433         test cases, so that config.log is a bit easier to follow.
73434
73435 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73436
73437         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
73438         both are 64 bits, since this seems to be the tradition, and this
73439         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
73440         we ever run into a host that prefers long long to long in this
73441         case, we'll need another configure-time test.  Problem reported by
73442         Jim Meyering.
73443
73444 2006-07-02  Eric Blake  <ebb9@byu.net>
73445
73446         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
73447
73448 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73449
73450         * modules/inttypes (Depends-on): No longer depends on stdint.
73451         * modules/stdint (Description): Say more about assumptions.
73452         Say that the fast types might differ.  Say macros are used.
73453         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
73454         (Makefile.am): Revise list of substituted symbols to match
73455         new stdint.m4.
73456         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
73457         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
73458         * tests/test-stdint.c (verify_same_types)
73459         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
73460         the code conforms to C99/C89.
73461         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
73462         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
73463
73464 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73465
73466         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
73467         but fix a bug, by requiring at least 64 bits.
73468         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
73469         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
73470         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
73471         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73472
73473         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
73474         changes.  Make 2.59 a prerequisite.  Check and substitute for
73475         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
73476         inttypes.h.  Do not use special include files; just use the
73477         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
73478         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
73479         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
73480         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
73481         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
73482         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
73483         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
73484         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
73485         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
73486         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
73487         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
73488         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
73489         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
73490         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
73491         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
73492         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
73493         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
73494         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
73495         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
73496         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
73497         WINT_MAX.  Check for C99 conformance more strictly, by detecting
73498         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
73499         not check for things that C99 does not require, e.g., int8_t.  If
73500         a test isn't needed unless <stdint.h> isn't working, and is
73501         unlikely to be needed for any other reason, then don't do it
73502         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
73503         size_t, since we assume C89 freestanding at least.  Do not check
73504         for sig_atomic_t, wchar_t, or wint_t, since the code now does
73505         the right thing even if the types are not defined.  Instead use:
73506         (gl_STDINT_TYPE_PROPERTIES): New macro.
73507         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
73508         testing whether <sys/types.h> clashes, as Autoconf does this for
73509         us now.  All uses removed.
73510         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
73511         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
73512         (gl_CHECK_TYPE_SAME):
73513         Remove; no longer needed.
73514         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
73515         exists, since we'll return 0 anyway in that case.
73516         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
73517
73518 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73519
73520         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
73521         possible collision with system files.
73522         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
73523         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
73524         WCHAR_MIN and WCHAR_MAX in this case.
73525         (<stddef.h>): Do not include; no longer needed.
73526         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
73527         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
73528         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
73529         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
73530         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
73531         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
73532         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
73533         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
73534         !defined(__c99))]: Include in this case too, since it's harmless
73535         now.
73536         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
73537         dangerous to do so.
73538         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
73539         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
73540         (_STDINT_MIN, _STDINT_MAX): New macros.
73541         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
73542         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
73543         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
73544         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
73545         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
73546         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
73547         macros, not typedefs; this simplifies things quite a bit.
73548         Use long int for all types narrower than int64_t.
73549         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
73550         Define in terms of long long int or int64_t or long int,
73551         not int64_t or int32_t.  This saves some compile-time testing.
73552         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
73553         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
73554         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
73555         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
73556         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
73557         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
73558         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
73559         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
73560         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
73561         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
73562         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73563         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73564         undef any previous version and define our own version, for
73565         simplicity and consistency with the new macros for types.
73566         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73567         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73568         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
73569         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
73570         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
73571         @WINT_T_SUFFIX@ to keep things simple here.
73572         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
73573         Simplify by assuming typical 8/16/32/64 host, since we're
73574         already doing that elsewhere anyway.
73575         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
73576         and assume long long int is 64 bits if available.  This
73577         speeds up 'configure'.
73578
73579 2006-07-01  Eric Blake  <ebb9@byu.net>
73580
73581         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
73582         Reported by Andreas Buening.
73583
73584 2006-07-01  Eric Blake  <ebb9@byu.net>
73585
73586         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
73587
73588 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73589
73590         * lib/getaddrinfo.c: fixed typo
73591
73592 2006-06-29  Jim Meyering  <jim@meyering.net>
73593
73594         * modules/strftime (Maintainer): Add my name, since with the
73595         FPRINTFTIME changes strftime.c has forked from glibc.
73596
73597 2006-06-29  Eric Blake  <ebb9@byu.net>
73598
73599         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
73600
73601 2006-06-29  Eric Blake  <ebb9@byu.net>
73602
73603         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
73604
73605 2006-06-29  Eric Blake  <ebb9@byu.net>
73606
73607         * lib/stat_.h: New file.
73608
73609 2006-06-29  Eric Blake  <ebb9@byu.net>
73610
73611         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
73612         unused static function.
73613
73614 2006-06-29  Eric Blake  <ebb9@byu.net>
73615
73616         * doc/functions.texi (Function Portability): Document missing lstat
73617         on mingw.
73618
73619 2006-06-29  Eric Blake  <ebb9@byu.net>
73620
73621         * MODULES.html.sh: Add sys_stat.
73622         * modules/sys_stat: New module.
73623         * modules/mkstemp (Depends-on): Add sys_stat.
73624
73625 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73626
73627         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
73628
73629 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73630
73631         * m4/c-bs-a.m4: Removed.
73632
73633 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73634
73635         * lib/strftime.c: Assume strftime() exists.
73636
73637 2006-06-29  Derek Price  <derek@ximbiot.com>
73638
73639         * modules/c-bs-a: Removed - \a is C89.
73640         * MODULES.html.sh: Remove c-bs-a.
73641
73642 2006-06-29  Bruno Haible  <bruno@clisp.org>
73643
73644         * modules/wcwidth (License): Change to LGPL.
73645
73646 2006-06-28  Simon Josefsson  <jas@extundo.com>
73647
73648         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
73649         on _WIN32.
73650
73651         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
73652         getnameinfo.
73653
73654 2006-06-28  Simon Josefsson  <jas@extundo.com>
73655
73656         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
73657
73658 2006-06-28  Simon Josefsson  <jas@extundo.com>
73659
73660         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
73661         functions there.  It will succeed on Windows XP, but on Windows
73662         2000 and (presumably) earlier, it will fail, and use the internal
73663         re-implementation.
73664         (use_win32_p): New function.
73665         (getaddrinfo): Use strtoul on servname, to support numeric ports.
73666         Support AI_NUMERICSERV to disable getservbyname.
73667         (getnameinfo): New function, only supports
73668         NI_NUMERICHOST|NI_NUMERICSERV for now.
73669
73670         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
73671         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
73672         getnameinfo.
73673
73674 2006-06-28  Eric Blake  <ebb9@byu.net>
73675
73676         * modules/wcwidth: New file.
73677         * modules/mbchar (Depends-on): Add wcwidth.
73678         * modules/mbswidth (Depends-on): Add wcwidth.
73679         * MODULES.html.sh: Add wcwidth.
73680
73681 2006-06-28  Eric Blake  <ebb9@byu.net>
73682
73683         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
73684         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
73685
73686 2006-06-28  Eric Blake  <ebb9@byu.net>
73687
73688         * lib/xvasprintf.h: Fix comments.
73689
73690 2006-06-28  Eric Blake  <ebb9@byu.net>
73691
73692         * lib/mbchar.h (wcwidth): Include wcwidth.h.
73693         * lib/mbswidth.c (wcwidth): Move from here...
73694         * lib/wcwidth.h: ...to this new file.
73695
73696 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73697
73698         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
73699
73700         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
73701         it's obsolete.
73702         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
73703
73704 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73705
73706         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
73707         Autoconf 2.60 says this stuff was obsolete.
73708
73709 2006-06-28  Bruno Haible  <bruno@clisp.org>
73710
73711         * modules/wcwidth (Files): Add m4/wchar_t.m4.
73712
73713 2006-06-28  Bruno Haible  <bruno@clisp.org>
73714
73715         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
73716         gt_TYPE_WCHAR_T.
73717
73718 2006-06-28  Bruno Haible  <bruno@clisp.org>
73719
73720         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
73721         declaration for wcwidth.
73722         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
73723
73724 2006-06-28  Bruno Haible  <bruno@clisp.org>
73725
73726         * lib/mkdtemp.c [MINGW]: Include <io.h>.
73727         (mkdir): Define using _mkdir.
73728
73729 2006-06-28  Bruno Haible  <bruno@clisp.org>
73730
73731         * lib/getaddrinfo.h: Fix POSIX URL.
73732         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
73733         _WIN32.
73734         (use_win32_p): Make static.
73735         (getaddrinfo): Reject service name if it is empty or does not consist
73736         solely of decimal digits, or if its value is > 65535.
73737         (getnameinfo): Remove useless casts.
73738
73739 2006-06-27  Simon Josefsson  <jas@extundo.com>
73740
73741         * modules/sys_select: New file, suggested by Bruno Haible, Paul
73742         Eggert and Martin Lambers.
73743
73744 2006-06-27  Simon Josefsson  <jas@extundo.com>
73745
73746         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
73747         Eggert and Martin Lambers.
73748
73749 2006-06-27  Bruno Haible  <bruno@clisp.org>
73750
73751         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
73752         result to 0, not to empty.
73753         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
73754
73755 2006-06-27  Bruno Haible  <bruno@clisp.org>
73756
73757         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
73758
73759 2006-06-26  Simon Josefsson  <jas@extundo.com>
73760
73761         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
73762         present.
73763
73764 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
73765
73766         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
73767         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
73768         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
73769
73770 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
73771
73772         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
73773
73774 2006-06-26  Bruno Haible  <bruno@clisp.org>
73775
73776         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
73777
73778 2006-06-26  Bruno Haible  <bruno@clisp.org>
73779
73780         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
73781
73782 2006-06-26  Bruno Haible  <bruno@clisp.org>
73783
73784         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
73785         SGI C compiler in pre-C99 mode.
73786         Suggested by Mark D. Baushke and Larry Jones.
73787
73788 2006-06-26  Bruno Haible  <bruno@clisp.org>
73789
73790         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
73791         WCHAR_MAX.
73792         Reported by Mark D. Baushke and Larry Jones.
73793
73794 2006-06-26  Bruno Haible  <bruno@clisp.org>
73795
73796         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
73797         in pre-C99 mode.
73798         Suggested by Mark D. Baushke and Larry Jones.
73799
73800 2006-06-23  Simon Josefsson  <jas@extundo.com>
73801             Bruno Haible  <bruno@clisp.org>
73802
73803         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
73804         Emit mostlyclean-local rule.
73805         (func_emit_tests_Makefile_am): Likewise.
73806         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
73807
73808 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
73809
73810         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
73811
73812 2006-06-23  Bruno Haible  <bruno@clisp.org>
73813
73814         * tests/test-stdint.c: Update to match ISO C 99 Technical
73815         Corrigendum 1.
73816
73817 2006-06-23  Bruno Haible  <bruno@clisp.org>
73818
73819         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
73820
73821 2006-06-23  Bruno Haible  <bruno@clisp.org>
73822
73823         * lib/stdint_.h: Treat IRIX like OpenBSD.
73824
73825 2006-06-23  Bruno Haible  <bruno@clisp.org>
73826
73827         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
73828         ISO C 99 Technical Corrigendum 1.
73829
73830 2006-06-22  Simon Josefsson  <jas@extundo.com>
73831
73832         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
73833         MinGW.
73834
73835 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73836
73837         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
73838         needed.  Some compiler complained about some of them.  Problem reported
73839         by Larry Jones in
73840         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
73841
73842 2006-06-21  Simon Josefsson  <jas@extundo.com>
73843
73844         * tests/test-getaddrinfo.c: New file.
73845
73846         * modules/getaddrinfo-tests: New file.
73847
73848         * MODULES.html.sh: Add inet_pton.
73849
73850         * modules/inet_pton: New file.
73851
73852 2006-06-21  Simon Josefsson  <jas@extundo.com>
73853
73854         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
73855         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
73856         of using the (limited) gnulib implementation on Windows XP.
73857
73858         * m4/inet_pton.m4: New file.
73859
73860 2006-06-21  Simon Josefsson  <jas@extundo.com>
73861
73862         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
73863         variable.
73864
73865         * lib/socket_.h: Don't define WINVER.
73866
73867         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
73868         slightly modified to work in gnulib.
73869
73870 2006-06-21  Simon Josefsson  <jas@extundo.com>
73871
73872         * doc/gnulib.texi (Windows sockets): Add.
73873
73874 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
73875
73876         * lib/read-file.c (fread_file): Start with buffer allocation of
73877         0 bytes rather than 1 byte; this simplifies the code.
73878         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
73879         code to free buffer and save/restore errno.
73880         (internal_read_file): Remove unused local.
73881
73882 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
73883
73884         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
73885         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
73886         Problem reported by Denis Excoffier in
73887         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
73888
73889 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73890
73891         * modules/sys_socket, modules/socklen: Include sys/types since
73892         FreeBSD 4.x's sys/socket.h needs it.
73893
73894 2006-06-19  Simon Josefsson  <jas@extundo.com>
73895
73896         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
73897
73898 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73899
73900         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
73901
73902 2006-06-19  Bruno Haible  <bruno@clisp.org>
73903
73904         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
73905         and FULL_PATH_INTTYPES_H in angle brackets.
73906         Reported by Mark D. Baushke <mdb@gnu.org>.
73907
73908 2006-06-17  Eric Blake  <ebb9@byu.net>
73909
73910         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
73911         errno.
73912
73913 2006-06-17  Bruno Haible  <bruno@clisp.org>
73914
73915         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
73916         <sys/inttypes.h>.
73917
73918 2006-06-17  Bruno Haible  <bruno@clisp.org>
73919
73920         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
73921         whether errno is declared. Assume <errno.h> declares errno.
73922
73923 2006-06-17  Bruno Haible  <bruno@clisp.org>
73924
73925         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
73926
73927 2006-06-17  Bruno Haible  <bruno@clisp.org>
73928
73929         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
73930         problem on Solaris 2.5.1.
73931
73932 2006-06-16  Eric Blake  <ebb9@byu.net>
73933
73934         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
73935         * lib/unicodeio.c [!defined errno]: Likewise.
73936         * lib/strtol.c [!defined errno]: Likewise.
73937         * lib/strtod.c [!defined errno]: Likewise.
73938
73939 2006-06-15  Eric Blake  <ebb9@byu.net>
73940
73941         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
73942
73943 2006-06-15  Eric Blake  <ebb9@byu.net>
73944
73945         * config/srclist.txt (ssize_t.m4): Lose sync.
73946
73947 2006-06-15  Bruno Haible  <bruno@clisp.org>
73948
73949         * modules/stdint (Files): Include m4/full-header-path.m4,
73950         m4/size_max.m4, m4/wchar_t.m4.
73951         (Makefile.am): Many more substitutions.
73952         * modules/stdint-tests: New file.
73953         * tests/test-stdint.c: New file.
73954
73955 2006-06-15  Bruno Haible  <bruno@clisp.org>
73956
73957         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
73958         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
73959         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
73960         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
73961         gl_CHECK_TYPE_SAME): New macros.
73962
73963 2006-06-15  Bruno Haible  <bruno@clisp.org>
73964
73965         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
73966
73967 2006-06-15  Bruno Haible  <bruno@clisp.org>
73968
73969         * lib/stdint_.h: Rewritten to be fully auto-configured.
73970         Fixes bug on HP-UX/IA64.
73971
73972 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
73973
73974         * lib/getdate.y (__attribute__): Don't define if already defined.
73975         Problem reported by Larry Jones.
73976         * lib/utimens.c (__attribute__): Likewise.
73977
73978 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
73979
73980         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
73981         reported by Andreas Schwab.
73982
73983 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73984             Bruno Haible  <bruno@clisp.org>
73985
73986         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
73987         check for the declaration of strnlen and a run test that exposes the
73988         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
73989         rpl_strndup.
73990
73991 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73992             Bruno Haible  <bruno@clisp.org>
73993
73994         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
73995
73996 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73997
73998         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
73999         compile test, for Tru64 4.0D.
74000
74001 2006-05-28  Karl Berry  <karl@gnu.org>
74002
74003         * config/srclist.txt (printf-args.c): lose sync.
74004
74005 2006-05-26  Martin Lambers  <marlam@marlam.de>
74006
74007         * lib/getpass.c: Updates the test for the native W32 API, and adds
74008         missing includes, thus fixing compilation warnings.
74009
74010 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74011
74012         * lib/exclude.c (exclude_fnmatch): New function.
74013         (excluded_file_name): Call exclude_fnmatch.
74014         * lib/exclude.h (excluded_file_name): New prototype
74015
74016 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
74017
74018         * lib/tempname.c (small_open, large_open): New macros.
74019         (__open, __open64) [!_LIBC]: Remove.
74020         (__gen_tempname): Use small_open and large_open instead of __open
74021         and __open64.  This fixes a portability bug on HP-UX 11.11i
74022         reported by Simon Wing-Tang in
74023         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
74024
74025 2006-05-24  Bruno Haible  <bruno@clisp.org>
74026
74027         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
74028         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
74029         Reported by Thorsten Maerz <torte@netztorte.de> via
74030         Aaron Stone <aaron@serendipity.cx>.
74031
74032 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74033
74034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
74035         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
74036         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
74037         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
74038         not really conditional on the cache.
74039         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
74040
74041 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74042
74043         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
74044         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
74045         (my_usleep): Don't mishandle maximum value.
74046
74047 2006-05-19  Jim Meyering  <jim@meyering.net>
74048
74049         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
74050
74051 2006-05-17  Bruno Haible  <bruno@clisp.org>
74052
74053         Cygwin portability.
74054         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
74055
74056 2006-05-17  Bruno Haible  <bruno@clisp.org>
74057
74058         * lib/stdint_.h: Fix recognition of Cygwin.
74059
74060 2006-05-15  Bruno Haible  <bruno@clisp.org>
74061
74062         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
74063         on libtool patch by Ralf Wildenhues.
74064
74065 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74066
74067         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
74068         test for C99 conformance; (bool) 0.5 is an integer constant
74069         expression, but (bool) -0.5 is not.  Problem reported by Fedor
74070         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
74071
74072 2006-05-11  Simon Josefsson  <jas@extundo.com>
74073
74074         * m4/xvasprintf.m4: Fix obvious typo.
74075
74076 2006-05-11  Jim Meyering  <jim@meyering.net>
74077
74078         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
74079         James Lemley.
74080
74081 2006-05-10  Simon Josefsson  <jas@extundo.com>
74082
74083         * lib/md4.c: Typo fix, update copyright years.
74084         (K1, K2): Don't use L because it turn computations into 64-bit on
74085         64-bit platforms.
74086
74087 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
74088
74089         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
74090         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
74091         unwanted sign propagation, e.g., on hosts with 64-bit int.
74092         There still are some problems with reeelly weird theoretical hosts
74093         (e.g., 33-bit int) but it's not worth worrying about now.
74094         * lib/sha1.c (rol): Likewise.
74095         (K1, K2, K3, K4): Remove unnecessary L suffix.
74096
74097 2006-05-10  Bruno Haible  <bruno@clisp.org>
74098
74099         * lib/des.c: Cast to avoid warnings.
74100
74101 2006-05-09  Bruno Haible  <bruno@clisp.org>
74102
74103         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
74104         (Depends-on): Depend also on xsize, stdarg.
74105         (configure.ac): Add gl_XVASPRINTF.
74106
74107 2006-05-09  Bruno Haible  <bruno@clisp.org>
74108
74109         * m4/xvasprintf.m4: New file.
74110
74111 2006-05-09  Bruno Haible  <bruno@clisp.org>
74112
74113         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
74114         (EOVERFLOW): Define fallback value.
74115         (xstrcat): New function.
74116         (xvasprintf): Recognize the special case of a string concatenation.
74117
74118 2006-05-08  Eric Blake  <ebb9@byu.net>
74119
74120         * gnulib-tool (func_version): Base copyright year on CVS date.
74121         (func_emit_copyright_notice): New function.
74122         (func_emit_lib_Makefile_am): Use it.
74123         (func_emit_tests_Makefile_am): Likewise.
74124         (func_import): Likewise.
74125
74126 2006-05-08  Bruno Haible  <bruno@clisp.org>
74127
74128         * modules/stdarg: New file.
74129         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
74130
74131 2006-05-08  Bruno Haible  <bruno@clisp.org>
74132
74133         * m4/stdarg.m4: New file, from GNU gettext.
74134
74135 2006-05-08  Bruno Haible  <bruno@clisp.org>
74136
74137         * config/srclist.txt (build-aux/config.rpath): different from latest
74138         release.
74139
74140 2006-05-08  Bruno Haible  <bruno@clisp.org>
74141
74142         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
74143
74144 2006-05-05  Jim Meyering  <jim@meyering.net>
74145
74146         * m4/warning.m4: New file, derived from bison's file by the same name.
74147
74148 2006-05-03  Bruno Haible  <bruno@clisp.org>
74149
74150         * lib/stdint_.h: Shorter URL.
74151         * lib/inttypes.h: Likewise.
74152
74153 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74154
74155         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
74156
74157 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74158
74159         * lib/verify.h: Document the internals better.  Most of this change
74160         was written by Bruno Haible.
74161
74162 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74163
74164         * doc/verify.texi: New file, partly based on a proposal by
74165         Bruno Haible.
74166
74167 2006-05-02  Bruno Haible  <bruno@clisp.org>
74168
74169         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
74170         test from here...
74171         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
74172
74173 2006-04-29  Bruno Haible  <bruno@clisp.org>
74174
74175         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
74176         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
74177
74178 2006-04-29  Bruno Haible  <bruno@clisp.org>
74179
74180         * gnulib-tool: Make --update option actually work.
74181
74182 2006-04-29  Bruno Haible  <bruno@clisp.org>
74183
74184         * doc/gcd.texi: New file.
74185         * doc/gnulib.texi: Include it.
74186
74187 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
74188
74189         * lib/getdate.y (get_date): When adding relative date, start with the
74190         initial time, not with the result of the first mktime call.
74191
74192 2006-04-25  Bruno Haible  <bruno@clisp.org>
74193
74194         * gnulib-tool (func_import): Output the include directives in three
74195         blocks, sorted separately.
74196         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74197
74198 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74199
74200         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
74201         to define main with arguments, for C++.  Reported by Eric Blake.
74202         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
74203         Prefer 'int main ()' to 'int main (void)', for C++.
74204         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
74205         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
74206         for 'main', for C99 and C++.
74207
74208 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74209
74210         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
74211         Don't assume that exit status -1 is valid.
74212         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74213         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74214         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
74215         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
74216         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
74217         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
74218         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
74219         functions can be used without declaring them, or that you can
74220         exit with status -1.
74221         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
74222
74223 2006-04-24  Karl Berry  <karl@gnu.org>
74224
74225         * config/srclist.txt (longdouble.m4): sync lost.
74226
74227 2006-04-24  Eric Blake  <ebb9@byu.net>
74228
74229         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
74230
74231 2006-04-24  Bruno Haible  <bruno@clisp.org>
74232
74233         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
74234         poll() implementation in AIX.
74235         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74236
74237 2006-04-24  Bruno Haible  <bruno@clisp.org>
74238
74239         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
74240         assigned exactly once.
74241
74242 2006-04-23  Claudio Fontana  <claudio@gnu.org>
74243             Bruno Haible  <bruno@clisp.org>
74244
74245         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
74246         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
74247         for AM_CPPFLAGS.
74248
74249 2006-04-23  Bruno Haible  <bruno@clisp.org>
74250
74251         * modules/copy-file: Depend on unistd.
74252         * modules/execute: Likewise.
74253         * modules/fatal-signal: Likewise.
74254         * modules/findprog: Likewise.
74255         * modules/mkdtemp : Likewise.
74256         * modules/pipe: Likewise.
74257         * modules/wait-process: Likewise.
74258
74259 2006-04-23  Bruno Haible  <bruno@clisp.org>
74260
74261         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
74262         condition was already detected.
74263         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74264
74265 2006-04-23  Bruno Haible  <bruno@clisp.org>
74266
74267         * lib/copy-file.c: Include <unistd.h> unconditionally.
74268         * lib/execute.c: Likewise.
74269         * lib/fatal-signal.c: Likewise.
74270         * lib/findprog.c: Likewise.
74271         * lib/mkdtemp.c: Likewise.
74272         * lib/pipe.h: Likewise.
74273         * lib/pipe.c: Likewise.
74274         * lib/wait-process.h: Likewise.
74275
74276 2006-04-23  Bruno Haible  <bruno@clisp.org>
74277
74278         * gnulib-tool (func_usage): Fix --import description. Document
74279         --update.
74280         (func_import): Create temporary file in a temporary directory, if
74281         --dry-run is specified. Silence errors from 'grep' when there are no
74282         m4 files in $m4dir.
74283         (func_create_testdir): Silence errors from 'grep' when there are no
74284         m4 files in $m4dir.
74285         Reported by Karl Berry <karl@freefriends.org>.
74286
74287 2006-04-20  Bruno Haible  <bruno@clisp.org>
74288
74289         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
74290         one argument, so that the code will be portable to Autoconf 2.60.
74291         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
74292         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74293         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
74294
74295 2006-04-19  Derek Price  <derek@ximbiot.com>
74296             Eric Blake  <ebb9@byu.net>
74297
74298         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
74299         rather than "/full/path.h".  Update comment to match.  Shorten &
74300         generalize m4_translit call via AS_TR_CPP.
74301
74302 2006-04-19  Derek Price  <derek@ximbiot.com>
74303             Eric Blake  <ebb9@byu.net>
74304
74305         * lib/inttypes.h: Correct grammar in comment.
74306
74307 2006-04-18  Derek Price  <derek@ximbiot.com>
74308             Paul Eggert  <eggert@cs.ucla.edu>
74309
74310         * modules/inttypes: New file.
74311         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
74312
74313 2006-04-18  Derek Price  <derek@ximbiot.com>
74314             Paul Eggert  <eggert@cs.ucla.edu>
74315
74316         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
74317         New files.
74318
74319 2006-04-18  Derek Price  <derek@ximbiot.com>
74320             Paul Eggert  <eggert@cs.ucla.edu>
74321
74322         * lib/inttypes.h: New file.
74323         * lib/strtoimax.c: Assume <inttypes.h>.
74324
74325 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
74326
74327         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
74328         isn't mounted.  Problem reported by Kir Kolyshkin.
74329
74330 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74331
74332         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
74333         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
74334         Derek R. Price.
74335         * lib/regex.h (RE_DUP_MAX): Update comment to match current
74336         implementation.
74337
74338 2006-04-12  Eric Blake  <ebb9@byu.net>
74339
74340         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
74341         is now done automatically by the corresponding Autoconf macro.
74342
74343 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
74346         time_r.h.
74347
74348 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74349
74350         Merge regex changes from libc, removing some of our
74351         POSIX-conformance changes that were rejected and redoing them in a
74352         less-intrusive way.
74353
74354         * lib/regcomp.c (re_compile_internal, init_dfa):
74355         Length arg is now size_t, not Idx.  All uses changed.
74356         (peek_token): Forward decl now says internal_function.
74357         (__re_error_msgid, __re_error_msgid_idx):
74358         Now static rather than extern with attribute_hidden.
74359         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
74360         For some reason libc prefers K&R style defns for external functions.
74361         (regerror) [!defined _LIBC]: Likewise.
74362         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
74363         (seek_collating_symbol_entry, lookup_collation_sequence_value):
74364         (build_range_exp, build_collating_symbol):
74365         Use K&R-style defn.
74366         (re_compile_fastmap): Use '\0' to memset, not 0.
74367         (utf8_sb_map): Make the calculations more obvious.
74368         (init_dfa, parse_bracket_exp, build_charclass_op):
74369         Call calloc and cast result, as glibc does.
74370         (init_word_char, fetch_token, peek_token, peek_token_bracket):
74371         (build_range_exp, build_collating_symbol):
74372         Now internal functions.
74373
74374         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
74375
74376         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
74377         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
74378         Don't depend on VMS; depend on __VMS instead, for POSIX
74379         namespace cleanness.
74380         (regoff_t): Define to ssize_t, not long int.
74381
74382         Remove the REG_ macros named below.  Instead, make the old names
74383         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
74384         __USE_GNU_REGEX.
74385         (REG_BACKSLASH_ESCAPE_IN_LISTS):
74386         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
74387         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
74388         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
74389         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
74390         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
74391         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
74392         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
74393         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
74394         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
74395         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
74396         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
74397         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
74398         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
74399         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
74400         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
74401         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
74402         (REG_NREGS):
74403         Remove.  All uses replaced by the old RE_* names.
74404         (RE_BACKSLASH_ESCAPE_IN_LISTS):
74405         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
74406         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
74407         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
74408         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
74409         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
74410         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
74411         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
74412         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
74413         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
74414         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
74415         Don't bother having these macros be independent of each others'
74416         values, since they no longer exist in the POSIX name space.
74417
74418         Rename the following member names back to their old names,
74419         unless !__USE_GNU_REGEX.  All uses changed back.
74420         (buffer): Renamed from re_buffer.
74421         (allocated): Renamed from re_allocated.
74422         (used): Renamed from re_used.
74423         (syntax): Renamed from re_syntax.
74424         (fastmap): Renamed from re_fastmap.
74425         (translate): Renamed from re_translate.
74426         (can_be_null): Renamed from re_can_be_null.
74427         (regs_allocated): Renamed from re_regs_allocated.
74428         (fastmap_accurate): Renamed from re_fastmap_accurate.
74429         (no_sub): Renamed from re_no_sub.
74430         (not_bol): Renamed from re_not_bol.
74431         (not_eol): Renamed from re_not_eol.
74432         (newline_anchor): Renamed from re_newline_anchor.
74433         (num_regs): Renamed from rm_num_regs.
74434         (start): Renamed from rm_start.
74435         (end): Renamed from rm_end.
74436
74437         (free_state): Move up a bit.
74438
74439         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
74440         #define to be empty.
74441         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
74442         when that is what is intended.
74443         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
74444         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
74445         (MAX): New macro.
74446         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
74447         All uses changed back to re_malloc, etc.  It's now the caller's
74448         responsibility to check for overflow; all callers changed.
74449         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
74450         (re_x2nrealloc): Remove.
74451         (free_state): Remove decl.
74452
74453         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
74454         (re_set_registers, re_exec):
74455         Use K&R-style defn.
74456
74457         2006-01-31  Roland McGrath  <roland@redhat.com>
74458
74459         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
74460         Reported by Mike Frysinger <vapier@gentoo.org>.
74461
74462         2006-01-15  Andreas Jaeger  <aj@suse.de>
74463
74464         [BZ #1950]
74465         * lib/regex_internal.c (re_string_reconstruct): Adjust for
74466         build_wcs_upper_buffer change.
74467         (build_wcs_upper_buffer): Change return type.
74468
74469         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
74470
74471         * lib/regex_internal.h: Include <stdint.h> if available.
74472
74473         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
74474
74475         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
74476
74477         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74478
74479         * lib/regcomp.c: Adjust for changed secondary hash function.
74480
74481         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
74482
74483         * lib/regex.h: Pretty printing.
74484         Clean up namespace a bit.
74485
74486         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
74487
74488         * lib/regexec.c (update_cur_sifted_state, check_arrival,
74489         check_arrival_add_next_nodes): Avoid using uninitialized variable.
74490
74491         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74492                     Ulrich Drepper  <drepper@redhat.com>
74493
74494         [BZ #1302]
74495         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
74496         changed.
74497         (bitset_word_t): Renamed from bitset_word.  All uses changed.
74498
74499         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
74500
74501         [BZ #281]
74502         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
74503         * lib/regcomp.c: Remove unnecessary uses of
74504         unsigned RE_TRANSLATE_TYPE.
74505         * lib/regex_internal.h: Likewise.
74506         * lib/regex_internal.c: Likewise.
74507         * lib/regexec.c: Likewise.
74508         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
74509
74510         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
74511
74512         * lib/regexec.c (find_recover_state): Remove unnecessary
74513         initialization.
74514         (transit_state_bkref): Make DFA a const pointer.
74515         (get_subexp): Likewise.
74516         (check_arrival): Likewise.
74517         (update_cur_sifted_state): Likewise.
74518         (re_search_internal): Likewise.
74519         (prune_impossible_nodes): Likewise.
74520         (acquire_init_state_context): Likewise.
74521         (proceed_next_node): Likewise.
74522         (set_regs): Likewise.
74523         (free_fail_stack_return): Likewise.
74524         (check_arrival_expand_ecl): Mark DFA parameter as const.
74525         (check_arrival_expand_ecl_sub): Likewise.
74526         (check_subexp_limits): Likewise.
74527         (sub_epsilon_src_nodes):  Likewise.
74528         (add_epsilon_src_nodes):  Likewise.
74529         (merge_state_array): Likewise.
74530         (update_regs): Likewise.
74531         (build_trtable): Likewise.
74532         (sift_states_backward): Mark MCTX parameter as const.
74533         (build_sifted_states): Likewise.
74534         (update_cur_sifted_state): Likewise.
74535         (sift_states_mkref): Likewise.
74536         (check_arrival_expand_ecl): Mark eclosure as const.
74537         (check_dst_limits_calc_pos_1): Likewise.
74538         * lib/regex_internal.h (re_match_context_t): Make dfa a const
74539         pointer.
74540
74541         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
74542
74543         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
74544         (transit_state_sb): Likewise.
74545         (transit_state_mb): Likewise.
74546         (sift_states_iter_mb): Likewise.
74547         (check_arrival_add_next_nodes): Likewise.
74548         (check_node_accept_bytes): Change first parameter to pointer-to-const.
74549         [_LIBC] (re_search_2_stub): Use mempcpy.
74550
74551         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
74552         mbrtowc for very simple UTF-8 case.
74553
74554         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
74555         a pointer-to-const.
74556         (re_acquire_state_context): Likewise.
74557         * lib/regex_internal.h: Adjust prototypes.
74558
74559         * lib/regex.c: Prevent using C++ compilers.
74560
74561         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
74562         (re_acquire_state_context): Likewise.
74563
74564 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74565
74566         * modules/regex (Depends-on): Add ssize_t.
74567
74568 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74569
74570         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
74571         translation table.
74572
74573 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74574
74575         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
74576
74577 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
74578             Bruno Haible  <bruno@clisp.org>
74579
74580         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
74581         <sys/types.h> and <inttypes.h>.
74582
74583 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74584
74585         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
74586         `__error_t_defined', so argp.h will not typedef the former.
74587
74588 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
74589
74590         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
74591         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
74592         glibc names.  Even if glibc is changed to conform to POSIX, the
74593         traditional names will be available anyway, since regex depends on
74594         the extensions module.  Also, fix a longstanding typo in the
74595         implementation of Spencer ERE test #75 from grep 2.3.  Problems
74596         reported by Emanuele Giaquinta.  Also, change sense of cached
74597         variable, so that the message makes sense.
74598
74599 2006-03-24  Simon Josefsson  <jas@extundo.com>
74600
74601         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
74602         including some doc fixes.
74603         (base64_encode_alloc): Fix +1 bug on allocation failures.
74604
74605 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74606
74607         * lib/base64.c (base64_encode): Do not read past end of array with
74608         unsanitized input on systems with CHAR_BIT > 8.
74609
74610 2006-03-24  Eric Blake  <ebb9@byu.net>
74611
74612         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
74613
74614 2006-03-22  Karl Berry  <karl@gnu.org>
74615
74616         * config/srclist.txt (*setenv.[ch]): get from coreutils.
74617         * config/srclistvars.sh (COREUTILS): new var.
74618
74619 2006-03-17  Jim Meyering  <jim@meyering.net>
74620
74621         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
74622         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
74623
74624 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74625
74626         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
74627         no longer needs it.  Instead, check that regoff_t is as least
74628         as wide as ptrdiff_t.
74629
74630         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
74631         so that our regex.h stays compatible with the installed regex.
74632         This is helpful for installers who configure --without-included-regex.
74633         Problem reported by Emanuele Giaquinta.
74634
74635 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74636
74637         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
74638         Typedef to long int, not to off_, as POSIX will likely change
74639         in that direction.
74640
74641 2006-03-15  Eric Blake  <ebb9@byu.net>
74642
74643         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
74644
74645 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74646
74647         * lib/argp-help.c (validate_uparams): Fix typo
74648         * lib/argp-parse.c (argp_default_options): Consistently begin help
74649         messages with a lowercase letter.
74650
74651 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
74652
74653         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
74654         overrun buffers and shouldn't be used (much as gets shouldn't be
74655         used).
74656         * lib/time_r.c (asctime_r, ctime_r): Likewise.
74657
74658 2006-03-08  Simon Josefsson  <jas@extundo.com>
74659
74660         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
74661         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74662
74663 2006-03-08  Simon Josefsson  <jas@extundo.com>
74664
74665         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
74666         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74667
74668 2006-03-08  Simon Josefsson  <jas@extundo.com>
74669
74670         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
74671         signal that configure disabled the device.
74672
74673 2006-03-08  Simon Josefsson  <jas@extundo.com>
74674
74675         * build-aux/maint.mk: Fix refresh-po, to handle no translated
74676         languages.
74677
74678 2006-03-07  Simon Josefsson  <jas@extundo.com>
74679
74680         * modules/getopt (Depends-on): Add unistd.
74681
74682         * modules/unistd: New file.
74683
74684 2006-03-07  Simon Josefsson  <jas@extundo.com>
74685
74686         * modules/gc-random: New file.
74687
74688 2006-03-07  Simon Josefsson  <jas@extundo.com>
74689
74690         * m4/unistd_h.m4: New file.
74691
74692 2006-03-07  Simon Josefsson  <jas@extundo.com>
74693
74694         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
74695         test to be side-effect free by storing the result in the cache
74696         variable gl_cv_lib_readline, and moving the assignment of
74697         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
74698         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74699
74700 2006-03-07  Simon Josefsson  <jas@extundo.com>
74701
74702         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
74703         error on missing devices (the functions will return an error).
74704
74705         * m4/gc.m4: Move random stuff to gc-random.m4
74706
74707 2006-03-07  Simon Josefsson  <jas@extundo.com>
74708
74709         * lib/unistd_.h: New file.
74710
74711 2006-03-07  Simon Josefsson  <jas@extundo.com>
74712
74713         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
74714
74715 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74716
74717         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
74718         Problem reported by Juan Manuel Guerrero.
74719
74720 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74721
74722         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
74723         the unistd module.
74724         * lib/getlogin_r.c: Likewise.
74725         * lib/getlogin_r.h: Likewise.
74726         * lib/glob.c: Likewise.
74727         * lib/pagealign_alloc.c: Likewise.
74728         * lib/unistd_.h: Remove; no longer needed.
74729
74730 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74731
74732         * MODULES.html.sh (Support for systems lacking POSIX:2001):
74733         Add unistd.
74734         * modules/c-stack (Depends-on): Add unistd.
74735         * modules/getlogin_r: Likewise.
74736         * modules/glob: Likewise.
74737         * modules/pagealign_alloc: Likewise.
74738         * modules/unistd (Files): Remove lib/unistd_.h.
74739         (EXTRA_DIST): Remove.
74740         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
74741         need unistd_.h.
74742         (MOSTLYCLEANFILES): Remove unistd.h-t.
74743
74744 2006-03-03  Simon Josefsson  <jas@extundo.com>
74745
74746         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
74747
74748 2006-03-03  Simon Josefsson  <jas@extundo.com>
74749
74750         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
74751         libidn and bison.
74752
74753 2006-03-03  Simon Josefsson  <jas@extundo.com>
74754
74755         * build-aux/maint.mk: Add indent target.
74756
74757 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
74758
74759         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
74760         our replacement poll.h in any case, to avoid a differing
74761         declaration from a system header.  Seen on AIX.
74762
74763 2006-03-01  Simon Josefsson  <jas@extundo.com>
74764
74765         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
74766         <kasal@ucw.cz>.
74767
74768 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74769
74770         * modules/gettime (Depends-on): Add extensions module.
74771         * modules/nanosleep (Depends-on): Likewise.
74772         * modules/settime (Depends-on): Likewise.
74773
74774 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74775
74776         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
74777         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
74778         pedantically.
74779         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74780         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
74781
74782         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
74783         not "==".  Reported by Ralf Wildenhues.
74784
74785 2006-03-01  Karl Berry  <karl@gnu.org>
74786
74787         * doc/Copyright/request-*: new files, synced from gnuorg.
74788
74789 2006-03-01  Karl Berry  <karl@gnu.org>
74790
74791         * config/srclist.txt (Copyright/*): new entries.
74792
74793 2006-02-28  Simon Josefsson  <jas@extundo.com>
74794
74795         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
74796
74797 2006-02-27  Simon Josefsson  <jas@extundo.com>
74798
74799         * lib/base64.h: Indent #define's.  From Jim Meyering
74800         <jim@meyering.net>.
74801
74802 2006-02-27  Jim Meyering  <jim@meyering.net>
74803
74804         Revert the change of 2006-02-24, so these files can continue
74805         to be sync'd from gettext.
74806         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
74807         of `config.h'.
74808
74809 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74810
74811         * modules/intprops: New file.
74812         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74813         Add intprops.
74814         * modules/getloadavg (Files): Remove lib/intprops.h.
74815         (Depends-on): Add intprops.
74816         * modules/human: Likewise.
74817         * modules/inttostr: Likewise.
74818         * modules/openat: Likewise.
74819         * modules/sig2str: Likewise.
74820         * modules/userspec: Likewise.
74821         * modules/utimecmp: Likewise.
74822         * modules/xnanosleep: Likewise.
74823         * modules/xstrtol: Likewise.
74824
74825 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
74826
74827         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
74828         * modules/lock-tests (TESTS): Use $(EXEEXT).
74829         * modules/tls-tests: Likewise.
74830         * modules/argp-tests: Likewise.
74831         (check_PROGRAMS): New var, replacing...
74832         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
74833
74834 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74835
74836         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
74837         `config.h'.
74838
74839 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
74840
74841         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
74842
74843 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74844
74845         Sync from coreutils.
74846         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
74847         gl_CHDIR_SAFER.
74848
74849 2006-02-22  Jim Meyering  <jim@meyering.net>
74850
74851         Sync from coreutils.
74852         * m4/chdir-safer.m4: New file.
74853
74854 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
74855
74856         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
74857         AT_FDCWD exceeds INT_MAX.
74858         * lib/openat.h (AT_FDCWD): Likewise.
74859
74860 2006-02-17  Eric Blake  <address@hidden>
74861
74862         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
74863
74864 2006-02-16  Simon Josefsson  <jas@extundo.com>
74865
74866         * modules/getaddrinfo (Depends-on): Add sys_socket.
74867
74868 2006-02-15  Simon Josefsson  <jas@extundo.com>
74869
74870         * build-aux/maint.mk: Add dsyntax-check rule.
74871
74872 2006-02-15  Eric Blake  <ebb9@byu.net>
74873
74874         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
74875         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
74876         'present but cannot compile' warnings on cygwin.
74877         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
74878         use ws2tcpip.h if sys/socket.h works.
74879         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
74880         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
74881
74882 2006-02-14  Simon Josefsson  <jas@extundo.com>
74883
74884         * modules/maintainer-makefile (Files): Rename.
74885
74886         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
74887         and (the local) Makefile.cfg to maint-cfg.mk.
74888
74889         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
74890         to the latter.
74891
74892         * modules/maintainer-makefile: New module.
74893
74894         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
74895         severaly stripped to make it possible to build it up from scratch
74896         with reliable tests.
74897
74898         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
74899         fixes to permit overriding the default actions when configure and
74900         makefile are not available.
74901
74902 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74903
74904         Sync from coreutils.
74905         * modules/lstat (Depends-on): Don't depend on xalloc.
74906         (License): Change from GPL to LGPL, since this is now simply a
74907         replacement for a libc function.
74908
74909 2006-02-14  Jim Meyering  <jim@meyering.net>
74910
74911         Sync from coreutils.
74912
74913         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
74914         failure on deficient systems, and simplify gnulib lgpl dependencies.
74915         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
74916         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
74917
74918         * lib/xalloc-die.c: Remove unused definition of N_.
74919
74920 2006-02-14  Jim Meyering  <jim@meyering.net>
74921
74922         Sync from coreutils.
74923         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
74924         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
74925         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
74926         double-quote uses of that variable, to accommodate the rare case in
74927         which getmntent is available in none of the libraries checked.  This
74928         happens at least on FreeBSD 5.0.
74929
74930 2006-02-13  Simon Josefsson  <jas@extundo.com>
74931
74932         * gnulib-tool (Usage): Fix --import, from
74933         karl@freefriends.org (Karl Berry).
74934
74935 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74936
74937         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
74938
74939 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
74940
74941         * lib/argp-namefrob.h: Restore changes accidentally lost during the
74942         "autoupdate" on 2005-12-12.
74943
74944 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74945
74946         * modules/closeout (Depends-on): Remove atexit.
74947
74948 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74949
74950         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
74951         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
74952
74953 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74954
74955         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
74956         __EXTENSIONS__ if this causes compilation to fail.  Problem
74957         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
74958         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
74959
74960 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
74961
74962         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
74963         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
74964         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
74965         All uses changed.
74966
74967 2006-01-26  Simon Josefsson  <jas@extundo.com>
74968
74969         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
74970         prototype is visible on mingw32.
74971
74972         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
74973         for mingw32.
74974
74975         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
74976         mingw32).
74977
74978 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74979
74980         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
74981         attempt to open for write; this always fails, at least on POSIX
74982         hosts.  This reinstates the 2006-01-09 change, which was
74983         inadvertently removed.
74984
74985 2006-01-26  Bruno Haible  <bruno@clisp.org>
74986
74987         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
74988         Reported by Paul Eggert.
74989
74990 2006-01-26  Bruno Haible  <bruno@clisp.org>
74991             Paul Eggert  <eggert@cs.ucla.edu>
74992
74993         * lib/stdbool_.h (_Bool)
74994         [(! (defined __cplusplus || defined __BEOS__)
74995           && !defined __GNUC__
74996           && !(defined __HP_cc || defined __xlc__
74997                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
74998                || defined __sgi))]:
74999         #define to signed char in these cases too; this simplifies
75000         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
75001         etc., separately) and makes it more conservative.
75002
75003 2006-01-25  Simon Josefsson  <jas@extundo.com>
75004
75005         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
75006         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
75007         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
75008
75009 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75010
75011         * lib/argp-namefrob.h: Bugfix. Remove stray #
75012
75013 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
75014
75015         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
75016         so that we test the test.
75017         Check for yet another HP-UX cc bug involving *bool |= bool.
75018
75019 2006-01-25  Karl Berry  <karl@gnu.org>
75020
75021         * config/srclist.txt (vasnprintf.c): sync lost.
75022
75023 2006-01-25  Jim Meyering  <jim@meyering.net>
75024
75025         Sync from the stable (b5) branch of coreutils:
75026
75027         * lib/fts.c (fts_children): Don't let close() clobber errno from
75028         failed fchdir().
75029
75030         * lib/fts.c (fts_stat): When following a symlink-to-directory,
75031         don't necessarily interpret stat-fails+lstat-succeeds as indicating
75032         a dangling symlink.  That can also happen at least for ELOOP.
75033         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
75034         FYI, this bug predates the inclusion of fts.c in coreutils.
75035
75036         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
75037         in their own block, so pre-c99 compilers don't object.
75038
75039         Avoid the double-free (first in fts_read, second in fts_close) that
75040         would occur when an `active' directory is made inaccessible (e.g.,
75041         via chmod a-x) during a traversal.
75042         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75043         before returning.  Reproduce this failure by
75044         mkdir -p a/b; cd a; chmod a-x . b
75045         Reported by Stavros Passas.
75046
75047 2006-01-25  Jim Meyering  <jim@meyering.net>
75048
75049         * lib/fileblocks.c: Remove more useless parentheses.
75050         * lib/readutmp.h: Likewise.
75051
75052 2006-01-25  Bruno Haible  <bruno@clisp.org>
75053
75054         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
75055         warnings.
75056         Reported by Paul Eggert.
75057
75058 2006-01-25  Bruno Haible  <bruno@clisp.org>
75059
75060         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
75061         rid of a trap command. For Solaris sh.
75062         Reported by Mark D. Baushke <mdb@gnu.org>.
75063
75064 2006-01-24  Simon Josefsson  <jas@extundo.com>
75065
75066         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
75067         Bruno.
75068
75069 2006-01-24  Karl Berry  <karl@gnu.org>
75070
75071         * config/srclist.txt (argp-namefrob.h): sync lost.
75072
75073 2006-01-24  Jim Meyering  <jim@meyering.net>
75074
75075         * modules/openat (Files): Add lib/intprops.h.
75076         From Mark D. Baushke.
75077
75078 2006-01-24  Jim Meyering  <jim@meyering.net>
75079
75080         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
75081         Reported by Mark D. Baushke.
75082
75083 2006-01-24  Jim Meyering  <jim@meyering.net>
75084
75085         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
75086
75087 2006-01-24  Bruno Haible  <bruno@clisp.org>
75088
75089         * modules/strnlen (Maintainer): Change from glibc to all.
75090
75091 2006-01-24  Bruno Haible  <bruno@clisp.org>
75092
75093         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
75094         Patch by Paul Eggert.
75095
75096 2006-01-24  Bruno Haible  <bruno@clisp.org>
75097
75098         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
75099         already has it.
75100         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
75101         2005-11-26.
75102
75103         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
75104         'signed char' to avoid problems with the built-in _Bool type.
75105         Reported by Paul Eggert on 2005-11-26.
75106
75107 2006-01-24  Bruno Haible  <bruno@clisp.org>
75108
75109         * gnulib-tool (func_import): Avoid constructing complicated sed
75110         expressions inside backquote.
75111         Report and solution by Mark D. Baushke <mdb@gnu.org>.
75112
75113 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
75114
75115         These changes imported from libc.
75116         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
75117         test and two separate function calls.
75118         * lib/strndup.c (__strndup): Add libc_hidden_def.
75119
75120 2006-01-23  Simon Josefsson  <jas@extundo.com>
75121
75122         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
75123         Remove the test_*_SOURCES variable: automake infers it by default.
75124         * modules/tls-tests: Likewise.
75125
75126 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75127
75128         Work around porting bugs reported by Dieter in
75129         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
75130         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
75131         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
75132         Include "getopt.h" first, to check interface.
75133         (getenv): Declare only if defined HAVE_DECL_GETENV &&
75134         !HAVE_DECL_GETENV.
75135         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
75136         (__strndup): Revert to K&R-style function dfns, the glibc style.
75137         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
75138         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
75139         Include strnlen.h first, to get prototype properly.
75140         (strnlen): Renamed from __strnlen.
75141         Remove weak alias.
75142
75143 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75144
75145         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
75146
75147 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75148
75149         * config/srclist.txt: Adjust to reflect glibc reorganization.
75150         This affects only comments.
75151
75152 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75153
75154          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
75155          Reported by Bruce Korb <bkorb@gnu.org>.
75156
75157 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75158
75159         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
75160         to pacify gcc -Wswitch-default.
75161
75162 2006-01-22  Bruno Haible  <bruno@clisp.org>
75163
75164         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
75165         temporary buffer for sprintf, take into account the precision also
75166         for 'd', 'i', 'u', 'o', 'x', 'X'.
75167
75168 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75169
75170         * modules/argp-tests: New module
75171         * tests/test-argp.c: New file
75172         * tests/test-argp-2.sh: New file
75173
75174 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75175
75176         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
75177         (__argp_base_name): Removed
75178         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
75179         typo.
75180         (__argp_base_name): Provide macro definition or extern declaration
75181         depending on the configuration
75182
75183 2006-01-20  Simon Josefsson  <jas@extundo.com>
75184
75185         * modules/inet_ntop (Depends-on): Depend on sys_socket.
75186
75187 2006-01-20  Simon Josefsson  <jas@extundo.com>
75188
75189         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
75190
75191 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75192
75193         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
75194         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
75195         Suggested by Bruno Haible.
75196
75197 2006-01-20  Karl Berry  <karl@gnu.org>
75198
75199         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
75200         until changes propagate, I guess.
75201
75202 2006-01-19  Simon Josefsson  <jas@extundo.com>
75203
75204         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
75205
75206 2006-01-19  Simon Josefsson  <jas@extundo.com>
75207
75208         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
75209
75210 2006-01-19  Simon Josefsson  <jas@extundo.com>
75211
75212         * gnulib-tool: Set check_PROGRAMS.
75213
75214         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75215         modules/des-tests, modules/gc-arcfour-tests,
75216         modules/gc-arctwo-tests, modules/gc-des-tests,
75217         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75218         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75219         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75220         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75221         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75222         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
75223         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
75224         test_*_SOURCES.
75225
75226 2006-01-18  Simon Josefsson  <jas@extundo.com>
75227
75228         * modules/socklen (Depends-on): Depend on sys_socket.
75229
75230 2006-01-18  Simon Josefsson  <jas@extundo.com>
75231
75232         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75233         modules/des-tests, modules/gc-arcfour-tests,
75234         modules/gc-arctwo-tests, modules/gc-des-tests,
75235         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75236         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75237         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75238         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75239         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75240         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
75241         $(EXEEXT) to automake TESTS variable, for mingw32.
75242
75243 2006-01-17  Simon Josefsson  <jas@extundo.com>
75244
75245         * modules/socklen (Include): Need sys/socket.h.
75246
75247 2006-01-17  Bruno Haible  <bruno@clisp.org>
75248
75249         * modules/ssize_t (Include): Add <sys/types.h>.
75250
75251 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
75252
75253         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
75254         it's not portable and it doesn't work with cross-compiles.
75255         Problem reported by Bruno Haible.  Fix missing-$ typo in
75256         'test "gl_cv_ignore_unused_libraries" ...' that prevented
75257         -zignore from being used with Sun's C compiler.
75258
75259 2006-01-12  Simon Josefsson  <jas@extundo.com>
75260
75261         * lib/base64.c: Fix warning, reported by Bruno Haible
75262         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
75263
75264 2006-01-12  Bruno Haible  <bruno@clisp.org>
75265
75266         * modules/ldd: New file.
75267         * build-aux/ldd.sh.in: New file.
75268         * MODULES.html.sh (Support for building libraries and executables): Add
75269         ldd.
75270
75271 2006-01-12  Bruno Haible  <bruno@clisp.org>
75272
75273         * m4/ldd.m4: New file.
75274
75275 2006-01-12  Bruno Haible  <bruno@clisp.org>
75276
75277         * gnulib-tool (func_import, func_create_testdir): Don't go into an
75278         endless loop while replacing $auxdir with build-aux.
75279
75280 2006-01-11  Simon Josefsson  <jas@extundo.com>
75281
75282         * lib/stdint_.h (SIZE_MAX): Add missing (.
75283
75284 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
75285
75286         Sync from coreutils.
75287         * lib/md5.c: Fix commentary typos.
75288         (alignof, UNALIGNED_P): No need for a GCC-specific version.
75289         * lib/md5.h (__attribute__): Remove; unused.
75290         * lib/sha1.c: Fix commentary to match md5 better.
75291         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
75292         so that we don't need to worry about alignment.  All uses changed.
75293         This merges the 2005-10-28 md5 change into sha1.
75294
75295 2006-01-11  Jim Meyering  <jim@meyering.net>
75296
75297         Sync from coreutils.
75298         * lib/md5.c (OP): Fix spacing.
75299
75300 2006-01-11  Bruno Haible  <bruno@clisp.org>
75301
75302         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75303         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
75304         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
75305
75306 2006-01-11  Bruno Haible  <bruno@clisp.org>
75307
75308         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75309         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
75310         the "early" section as well.
75311
75312 2006-01-11  Bruno Haible  <bruno@clisp.org>
75313
75314         Avoid "ar: no archive members specified" error on MacOS X.
75315         * gnulib-tool (func_modules_add_dummy): New function.
75316         (func_import, func_create_testdir): Invoke it.
75317
75318 2006-01-11  Bruno Haible  <bruno@clisp.org>
75319
75320         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
75321         with $auxdir in AC_CONFIG_FILES statements.
75322
75323 2006-01-11  Bruno Haible  <bruno@clisp.org>
75324
75325         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75326         Initialize also noinst_HEADERS to empty.
75327
75328 2006-01-11  Bruno Haible  <bruno@clisp.org>
75329
75330         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
75331         variables.
75332         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
75333         autoreconf.
75334
75335 2006-01-11  Bruno Haible  <bruno@clisp.org>
75336
75337         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
75338         overridable by the user.
75339         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75340
75341 2006-01-10  Simon Josefsson  <jas@extundo.com>
75342
75343         * modules/sys_socket: New file.
75344
75345 2006-01-10  Simon Josefsson  <jas@extundo.com>
75346
75347         * m4/sys_socket_h.m4: New file.
75348
75349 2006-01-10  Simon Josefsson  <jas@extundo.com>
75350
75351         * lib/socket_.h: New file.
75352
75353 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75354
75355         * modules/readutmp (Maintainer): Add myself.
75356
75357 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75358
75359         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
75360         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
75361         People who are still concerned with buggy memcmp implementations
75362         can invoke gl_FUNC_MEMCMP themselves.
75363
75364 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75365
75366         * lib/regex_internal.h (BITSET_WORD_BITS):
75367         Work around a bug in 64-bit PGC (before version 6.1-2), where the
75368         preprocessor mishandles large unsigned values as if they were signed.
75369         Problem reported by Claudio Fontana in
75370         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
75371
75372 2006-01-10  Jim Meyering  <jim@meyering.net>
75373
75374         Avoid the double-free (first in fts_read, second in fts_close) that
75375         would occur when an `active' directory is made inaccessible (e.g.,
75376         via chmod a-x) during a traversal.
75377         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75378         before returning.  Reproduce this failure by
75379         mkdir -p a/b; cd a; chmod a-x . b
75380         Reported by Stavros Passas.
75381
75382         Sync from coreutils.
75383         * lib/sha1.c: Tweak grammar in a comment.
75384
75385 2006-01-10  Jim Meyering  <jim@meyering.net>
75386
75387         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
75388         Patch by Joerg Sonnenberger.
75389
75390 2006-01-10  Bruno Haible  <bruno@clisp.org>
75391
75392         * modules/readutmp: Depend on module free.
75393         * modules/strtok_r: Depend on module restrict.
75394
75395 2006-01-10  Bruno Haible  <bruno@clisp.org>
75396
75397         * modules/gettext (configure.ac): Add an invocation of
75398         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
75399
75400 2006-01-10  Bruno Haible  <bruno@clisp.org>
75401
75402         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
75403         Reported by Werner Lemberg <wl@gnu.org>.
75404
75405 2006-01-10  Bruno Haible  <bruno@clisp.org>
75406
75407         * lib/localcharset.c: Update from GNU gettext.
75408
75409 2006-01-10  Bruno Haible  <bruno@clisp.org>
75410
75411         * lib/argp.h (__const): Remove macro. Use const instead.
75412         * lib/argp-fmtstream.h (__const): Likewise.
75413         * lib/glob_.h (__const): Remove macro.
75414         * lib/glob-libc.h: Use const instead of __const.
75415
75416 2006-01-10  Bruno Haible  <bruno@clisp.org>
75417
75418         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
75419         variable.
75420         Needed to avoid an automake error regarding the 'gettext' module.
75421
75422 2006-01-09  Simon Josefsson  <jas@extundo.com>
75423
75424         * modules/inet_ntop (Depends-on): Add restrict.
75425
75426 2006-01-09  Simon Josefsson  <jas@extundo.com>
75427
75428         * modules/gc-rijndael-tests (License): Put under LGPL.
75429
75430         * modules/gc-des-tests (License): Likewise.
75431
75432         * modules/gc-arcfour-tests (License): Likewise.
75433
75434         * modules/gc-arctwo-tests (License): Likewise.
75435
75436         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
75437
75438         * modules/gc-hmac-sha1-tests (Files): Likewise.
75439
75440         * modules/gc-hmac-md5-tests (License): Likewise.
75441
75442         * modules/gc-sha1-tests (License): Likewise.
75443
75444         * modules/gc-md5-tests (License): Likewise.
75445
75446         * modules/gc-md4-tests (License): Likewise.
75447
75448         * modules/gc-md2-tests (License): Likewise.
75449
75450         * modules/gc-tests (License): Likewise.
75451
75452         * modules/des-tests (License): Likewise.
75453
75454         * modules/md4-tests (License): Likewise.
75455
75456         * modules/md2-tests (License): Likewise.
75457
75458 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75459
75460         Sync from coreutils:
75461
75462         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
75463         * modules/lib-ignore: New file.
75464         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
75465         chdir-safer.m4, lchmod.m4.
75466         * modules/openat: Add mkdirat.c, openat-priv.h.
75467
75468 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75469
75470         Sync from coreutils.
75471         * m4/lib-ignore.m4: New file.
75472         * m4/lchmod.m4: New file.
75473
75474 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75475
75476         Sync from coreutils.
75477         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
75478         for write access: POSIX says that must fail.
75479         * lib/fts.c (diropen): Likewise.
75480         * lib/save-cwd.c (save_cwd): Likewise.
75481         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
75482         well, for minor improvements on hosts that lack O_DIRECTORY.
75483         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
75484         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
75485         Fall back on chown if open failed with EACCES.
75486
75487         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
75488         Report an error at compile-time if only a 1-second nominal clock
75489         resolution is found.
75490
75491         * lib/lchmod.h: New file.
75492         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
75493         (make_dir_parents): Use lchown rather than chown, and
75494         lchmod rather than chmod.
75495
75496         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
75497         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
75498         "proc" reported by n0dalus.
75499
75500         * lib/mountlist.c: Include <limits.h>.
75501         (dev_from_mount_options)
75502         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
75503         New function.  It no longer assumes "dev=" has the System V meaning
75504         on Linux (since it doesn't).  It also parses "dev=" more carefully.
75505         (read_file_system_list)
75506         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
75507         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
75508         dev= in that case.
75509
75510         * lib/posixtm.h (PDS_PRE_2000): New macro.
75511         * lib/posixtm.c (year): Arg is now syntax_bits rather than
75512         allow_century.  All usages changed.  Reject dates outside the range
75513         1969-1999 if PDS_PRE_2000 is used.
75514
75515 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75516
75517         Sync from coreutils.
75518         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
75519         (Time of day items): Mention the possibility of leap seconds.
75520         Problem reported by Dr. David Alan Gilbert.
75521
75522 2006-01-09  Jim Meyering  <jim@meyering.net>
75523
75524         Sync from coreutils.
75525
75526         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
75527
75528         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
75529
75530         * lib/modechange.c (mode_compile): Reject an invalid mode string
75531         that starts with an octal digit.  From Andreas Gruenbacher.
75532
75533         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
75534         and dup to open_safer and dup_safer, respectively.
75535         (openat_permissive): Fix typo in comment.
75536
75537         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
75538         "gettext.h"; either no longer needed or are guaranteed by openat.h.
75539         (_): Remove; no longer needed.
75540         (openat): Renamed from rpl_openat; no need for rpl_openat
75541         since openat.h renames openat for us.
75542         Replace most of the body with a call to openat_permissive,
75543         to avoid duplicate code.
75544         Port to (probably hypothetical) environments were mode_t is
75545         wider than int.
75546         (openat_permissive): Require mode arg, so that we can check
75547         types better.  Put it just after flags.  Change cwd failure
75548         indicator from pointer-to-bool to pointer-to-errno-value.
75549         All callers changed.
75550         Invoke openat_save_fail and/or openat_restore_fail if
75551         cwd_errno is null, so that openat can call us.
75552         (openat_permissive, fdopendir, fstatat, unlinkat):
75553         Simplify errno handling to avoid some duplicate code,
75554         as it's OK to set errno on success.
75555         * lib/openat.h: Revamp code so that function macros depend on
75556         __OPENAT_PREFIX only, not also on AT_FDCWD.
75557         (openat_ro): Remove.  Caller changed to use openat_permissive.
75558         (openat_permissive): Now a macro, if not a function.
75559         (openat_restore_fail, openat_save_fail): Now always functions,
75560         since mkdirat needs them even if __OPENAT_PREFIX is defined.
75561
75562         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
75563         and openat.c.
75564         * lib/mkdirat.c: Include openat-priv.h.
75565         Remove definitions of macros defined therein.
75566         * lib/openat.c: Likewise.
75567
75568         * lib/mkdirat.c (mkdirat): New file and function.
75569         * lib/openat.h (mkdirat): Declare.
75570
75571         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
75572
75573         * lib/openat.h (openat_permissive): Declare.
75574         (openat_ro): Define.
75575
75576         * lib/openat.c (EXPECTED_ERRNO): New macro.
75577         (openat_permissive): New function -- used in remove.c rewrite.
75578         (all functions): Set errno just before returning, only if there
75579         was an actual failure.
75580         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
75581
75582         Emulate openat-family functions using Linux's procfs, if possible.
75583         Idea and some code based on Ulrich Drepper's glibc changes.
75584
75585         * lib/openat.c: (BUILD_PROC_NAME): New macro.
75586         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
75587         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
75588         before falling back on save_cwd and restore_cwd.
75589         (fdopendir, fstatat, unlinkat): Likewise.
75590
75591         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
75592         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
75593
75594         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
75595         as second argument to va_arg.  Otherwise, some versions of gcc
75596         warn that `if this code is reached, the program will abort'.
75597
75598 2006-01-09  Jim Meyering  <jim@meyering.net>
75599
75600         Sync from coreutils.
75601         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
75602         Require openat-priv.h.
75603
75604 2006-01-09  Bruno Haible  <bruno@clisp.org>
75605
75606         * modules/strnlen (Include): Use strnlen.h.
75607
75608 2006-01-09  Bruno Haible  <bruno@clisp.org>
75609
75610         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
75611
75612 2006-01-09  Bruno Haible  <bruno@clisp.org>
75613
75614         * lib/sysexit_.h (EX_OK): New macro.
75615         Suggested by Martin Lambers <marlam@marlam.de>.
75616
75617 2006-01-09  Bruno Haible  <bruno@clisp.org>
75618
75619         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
75620         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
75621
75622 2006-01-09  Bruno Haible  <bruno@clisp.org>
75623
75624         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
75625         numbers.
75626
75627 2006-01-09  Bruno Haible  <bruno@clisp.org>
75628
75629         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
75630         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
75631         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
75632         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
75633
75634 2006-01-09  Bruno Haible  <bruno@clisp.org>
75635
75636         * build-aux/javacomp.sh.in: New file, moved from lib/.
75637         * modules/javacomp-script (Files): Update.
75638         (configure.ac): Add AC_CONFIG_FILES invocation.
75639         (EXTRA_DIST): Remove variable.
75640
75641         * build-aux/javaexec.sh.in: New file, moved from lib/.
75642         * modules/javaexec (Files): Update.
75643         (configure.ac): Add AC_CONFIG_FILES invocation.
75644         (EXTRA_DIST): Remove javaexec.sh.in.
75645
75646         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
75647         * modules/csharpcomp-script (Files): Update.
75648         (configure.ac): Add AC_CONFIG_FILES invocation.
75649         (EXTRA_DIST): Remove variable.
75650
75651         * build-aux/csharpexec.sh.in: New file, moved from lib/.
75652         * modules/csharpexec (Files): Update.
75653         (configure.ac): Add AC_CONFIG_FILES invocation.
75654         (EXTRA_DIST): Remove csharpexec.sh.in.
75655
75656 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75657
75658         Sync from coreutils.
75659
75660         Add POSIX ACL support
75661         * lib/acl.h (copy_acl, set_acl): Add declarations.
75662         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
75663         systems other than Linux.
75664         (chmod_or_fchmod): New function: use fchmod when possible,
75665         and chmod otherwise.
75666         (file_has_acl): Add a POSIX ACL implementation, with a
75667         Linux-specific subcase.
75668         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
75669         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
75670         acls are unsupported.
75671         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
75672         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
75673         are unsupported.
75674
75675 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75676
75677         Sync from coreutils.
75678         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
75679
75680 2006-01-07  Bruno Haible  <bruno@clisp.org>
75681
75682         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
75683         gl_EARLY.
75684
75685 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75686
75687         * lib/strftime.c (tzname): Don't declare if it is already #defined.
75688         Problem reported for Mingw by Mark Junker.
75689
75690 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75691
75692         * README: Gnulib normally doesn't generate a tarball.
75693
75694 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
75695
75696         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
75697         long int, not int, for nanosecond counts, so that people who are
75698         used to POSIX struct timespec won't be surprised.  Reported by Jim
75699         Meyering.
75700
75701 2005-12-28  Bruno Haible  <bruno@clisp.org>
75702
75703         * build-aux/config.rpath: Update from GNU gettext.
75704
75705 2005-12-16  Jim Meyering  <jim@meyering.net>
75706
75707         * modules/fprintftime: New module.
75708         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
75709
75710 2005-12-16  Jim Meyering  <jim@meyering.net>
75711
75712         * m4/fprintftime.m4: New file.
75713
75714 2005-12-16  Jim Meyering  <jim@meyering.net>
75715
75716         * lib/fprintftime.c, lib/fprintftime.h: New files.
75717
75718 2005-12-15  Simon Josefsson  <jas@extundo.com>
75719
75720         * modules/socklen (configure.ac): Fix M4 macro name, to align with
75721         new m4/socklen.m4.
75722
75723 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75724
75725         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
75726         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
75727
75728 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75729
75730         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
75731         * lib/argp-help.c (fill_in_uparams): Check if the constructed
75732         struct uparams is valid. Fall back to the default values if it is
75733         not.
75734
75735 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75736
75737         * modules/argp (Files): Add argp-pin.c
75738         (Depends-on): dirname
75739         (lib_SOURCES): Add argp-pin.c
75740
75741 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75742
75743         * m4/argp.m4:  Check if program_invocation_name and
75744         program_invocation_short_name are declared and define appropriate
75745         macros if they are not.
75746
75747 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75748
75749         * lib/argp-help.c (__argp_base_name): New function
75750         (__argp_short_program_name): Rewrite using __argp_base_name
75751         * lib/argp-namefrob.h: Define program_invocation_name and
75752         program_invocation_short_name if requested
75753         (__argp_base_name): Add prototype
75754         * lib/argp-parse.c (argp_def): Use gettext wrappers
75755         (argp_default_parser): Use __argp_base_name
75756         * lib/argp-pin.c: New file. Defines program_invocation_name and
75757         program_invocation_short_name on systems that lack them.
75758
75759 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75760
75761         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
75762         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75763         porting problem reported by Georg Schwarz in
75764         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75765
75766 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75767
75768         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
75769         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75770         porting problem reported by Georg Schwarz in
75771         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75772
75773 2005-12-05  Bruno Haible  <bruno@clisp.org>
75774
75775         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
75776         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
75777         Reported by Mark Junker <mjscod@gmx.de>.
75778
75779 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
75780
75781         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
75782         Use implementation from Albert Chin, with some
75783         comments/corrections by Stepan Kasal and myself.
75784
75785 2005-12-02  Bruno Haible  <bruno@clisp.org>
75786
75787         * gnulib-tool (func_import): Accept GPLed build tool modules when
75788         --lgpl is given.
75789         * modules/csharpcomp-script: New file.
75790         * modules/csharpcomp: Depend on it.
75791         * modules/javacomp-script: New file.
75792         * modules/javacomp: Depend on it.
75793         Suggested by Simon Josefsson.
75794
75795 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
75796
75797         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
75798         statement, to work around an HP-UX 10.20 compiler bug reported by
75799         Peter O'Gorman.
75800
75801 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75802
75803         * modules/savedir (Depends-on): Add openat.
75804
75805 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75806
75807         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
75808         (uintmax_t) [defined uintmax_t]: Do not declare.
75809         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
75810         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
75811         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
75812         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
75813         sake of portability to weird hosts that C allows (though we don't
75814         know of any practical examples).
75815
75816         * lib/savedir.h (fdsavedir): New decl.
75817         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
75818         contains most of the former guts of savedir.
75819         (savedir): Use savedirstream.
75820         Include "openat.h".
75821
75822 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75823
75824         * modules/obstack (Files): Add m4/ulonglong.m4.
75825         Problem reported by Davide Angelocola.
75826
75827 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
75828
75829         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
75830         coreutils no longer futzes with rounding modes.
75831
75832 2005-11-14  Jim Meyering  <jim@meyering.net>
75833
75834         * lib/mkstemp-safer.c: Include <config.h>, required for possible
75835         replacement of mkstemp.
75836
75837 2005-11-10  Simon Josefsson  <jas@extundo.com>
75838
75839         * lib/readline.c: Remove EOL.
75840
75841 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75842
75843         * modules/gethrxtime (Depends-on): Add gettime.
75844
75845 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75846
75847         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
75848         or gettimeofday; no longer needed.
75849
75850 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75851
75852         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
75853         time business.
75854         (gethrxtime) [! (HAVE_NANOUPTIME
75855         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
75856         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
75857         our own approximation.
75858
75859 2005-11-08  Eric Blake  <ebb9@byu.net>
75860
75861         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75862
75863 2005-11-08  Eric Blake  <ebb9@byu.net>
75864
75865         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75866
75867 2005-11-04  Bruno Haible  <bruno@clisp.org>
75868
75869         * gnulib-tool: Implement --update mode.
75870
75871 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75872
75873         Fix porting problem reported by Theodoros V. Kalamatianos.
75874         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
75875         Don't assume that futimes failing means we must fail.
75876
75877 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75878
75879         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
75880         variables to suggest the intended function of the PATH_MAX check.
75881
75882 2005-10-30  Kean Johnston  <jkj@sco.com>
75883
75884         Trivial changes to support SCO systems.
75885         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
75886         as PATH_MAX.
75887         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
75888         where __ptr is null when no I/O is pending.
75889
75890 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75891
75892         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
75893         leave errno alone.  Problem reported by Dmitry V. Levin.
75894
75895 2005-10-28  Simon Josefsson  <jas@extundo.com>
75896
75897         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
75898         Test more.
75899
75900         * tests/test-gc-md2.c, tests/test-md2.c: New files.
75901
75902         * modules/md2, modules/md2-tests: New files.
75903
75904 2005-10-28  Simon Josefsson  <jas@extundo.com>
75905
75906         * m4/inet_ntop.m4: More tests.
75907
75908         * m4/gc-md2.m4, md2.m4: New file.
75909
75910 2005-10-28  Simon Josefsson  <jas@extundo.com>
75911
75912         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
75913         "restrict" keywords, as per POSIX.  Protect the function
75914         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
75915         Don't use K&R prototypes.  Check the sprintf return values.
75916         Re-define EAFNOSUPPORT if not present.  Indent.
75917
75918         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
75919         suggested by Bruno Haible <bruno@clisp.org>.
75920
75921         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
75922
75923         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
75924
75925         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
75926         libgcrypt).
75927
75928         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
75929
75930         * lib/md2.h, lib/md2.c: New files.
75931
75932 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
75933
75934         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
75935         errno alone.  Problem reported by Frederic Jolliton.
75936
75937 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75938
75939         * modules/verify (License): Change from GPL to LGPL.  This is a
75940         tiny module and there are apparently near-equivalents that are
75941         under the BSD license.
75942
75943 2005-10-24  Simon Josefsson  <jas@extundo.com>
75944
75945         * modules/sha1: Relicense to LGPL.
75946
75947 2005-10-24  Simon Josefsson  <jas@extundo.com>
75948
75949         * lib/md4.h: Shrink buffer size, now that we changed the type.
75950
75951 2005-10-23  Simon Josefsson  <jas@extundo.com>
75952
75953         * gnulib-tool (func_import): Fix --tests-base.
75954
75955 2005-10-22  Simon Josefsson  <jas@extundo.com>
75956
75957         * modules/arcfour (Depends-on): Need stdint.
75958
75959 2005-10-22  Simon Josefsson  <jas@extundo.com>
75960
75961         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
75962         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
75963
75964 2005-10-22  Simon Josefsson  <jas@extundo.com>
75965
75966         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
75967         suggested by Bruno Haible <bruno@clisp.org>.
75968
75969 2005-10-22  Simon Josefsson  <jas@extundo.com>
75970
75971         * lib/crc.h: Include stddef.h, for size_t.
75972
75973 2005-10-22  Simon Josefsson  <jas@extundo.com>
75974
75975         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
75976         arcfour_context struct (simplify test vector testing in GNU
75977         Shishi).
75978
75979 2005-10-21  Simon Josefsson  <jas@extundo.com>
75980
75981         * modules/des, modules/des-tests: New files.
75982
75983         * modules/gc-des, modules/gc-des-tests: New files.
75984
75985         * tests/test-des.c, tests/test-gc-des.c: New file.
75986
75987 2005-10-21  Simon Josefsson  <jas@extundo.com>
75988
75989         * modules/arctwo, modules/arctwo-tests: New files.
75990
75991         * tests/test-arctwo.c: New file.
75992
75993         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
75994
75995         * tests/test-gc-arctwo.c: New file.
75996
75997 2005-10-21  Simon Josefsson  <jas@extundo.com>
75998
75999         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
76000         Bruno Haible <bruno@clisp.org>.
76001
76002         * m4/gc-des.m4: New file.
76003
76004 2005-10-21  Simon Josefsson  <jas@extundo.com>
76005
76006         * m4/arctwo.m4: New file.
76007
76008         * m4/gc-arctwo.m4: New file.
76009
76010 2005-10-21  Simon Josefsson  <jas@extundo.com>
76011
76012         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
76013         block.
76014
76015 2005-10-21  Simon Josefsson  <jas@extundo.com>
76016
76017         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
76018         <bruno@clisp.org>.
76019
76020         * lib/hmac-sha1.c (hmac_sha1): Likewise.
76021
76022         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
76023         Bruno Haible <bruno@clisp.org>.
76024
76025         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
76026         <bruno@clisp.org>.
76027
76028 2005-10-21  Simon Josefsson  <jas@extundo.com>
76029
76030         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
76031
76032 2005-10-21  Simon Josefsson  <jas@extundo.com>
76033
76034         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
76035
76036 2005-10-21  Simon Josefsson  <jas@extundo.com>
76037
76038         * lib/des.h, lib/des.c: New files.
76039
76040         * lib/gc-gnulib.c: Support DES.c
76041
76042 2005-10-21  Simon Josefsson  <jas@extundo.com>
76043
76044         * lib/arctwo.h, lib/arctwo.c: New files.
76045
76046         * lib/gc-gnulib.c: Support ARCTWO.
76047
76048 2005-10-21  Simon Josefsson  <jas@extundo.com>
76049
76050         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
76051         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76052
76053 2005-10-21  Simon Josefsson  <jas@extundo.com>
76054
76055         * gnulib-tool (func_import, func_create_testdir): Define automake
76056         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
76057         Makefile.am snippet),
76058         suggested by Bruno Haible <bruno@clisp.org>.
76059
76060         * modules/gc (Makefile.am): Use it.
76061
76062 2005-10-21  Bruno Haible  <bruno@clisp.org>
76063
76064         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
76065         patch.
76066
76067 2005-10-19  Simon Josefsson  <jas@extundo.com>
76068
76069         * tests/test-gc-rijndael.c: New file.
76070
76071         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
76072
76073 2005-10-19  Simon Josefsson  <jas@extundo.com>
76074
76075         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
76076         interface too.
76077
76078 2005-10-19  Simon Josefsson  <jas@extundo.com>
76079
76080         * tests/test-gc-arcfour.c: New file.
76081
76082         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
76083
76084 2005-10-19  Simon Josefsson  <jas@extundo.com>
76085
76086         * modules/gc-md4, modules/gc-md4-tests: New file.
76087
76088         * tests/test-gc-md4.c: New file.
76089
76090 2005-10-19  Simon Josefsson  <jas@extundo.com>
76091
76092         * m4/gc-md4.m4: New file.
76093
76094 2005-10-19  Simon Josefsson  <jas@extundo.com>
76095
76096         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
76097         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
76098         <kasal@ucw.cz>.
76099
76100 2005-10-19  Simon Josefsson  <jas@extundo.com>
76101
76102         * m4/gc-arcfour.m4: New file.
76103
76104         * m4/gc-rijndael.m4: New file.
76105
76106 2005-10-19  Simon Josefsson  <jas@extundo.com>
76107
76108         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
76109
76110 2005-10-19  Simon Josefsson  <jas@extundo.com>
76111
76112         * lib/gc-gnulib.c: Support ARCFOUR.
76113
76114 2005-10-19  Simon Josefsson  <jas@extundo.com>
76115
76116         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
76117         support.
76118
76119         * lib/gc.h: Add ECB enum type.
76120
76121         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
76122
76123 2005-10-18  Simon Josefsson  <jas@extundo.com>
76124
76125         * tests/test-md5.c: New file.
76126
76127         * modules/md5-tests: New file.
76128
76129 2005-10-18  Simon Josefsson  <jas@extundo.com>
76130
76131         * tests/test-md4.c: New file.
76132
76133         * modules/md4, modules/md4-tests: New files.
76134
76135 2005-10-18  Simon Josefsson  <jas@extundo.com>
76136
76137         * m4/md4.m4: New file.
76138
76139 2005-10-18  Simon Josefsson  <jas@extundo.com>
76140
76141         * lib/md4.h, lib/md4.c: New files, based on md5.?.
76142
76143 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
76144
76145         * gnulib-tool (func_create_testdir): Omit the second check whether
76146         BUILT_SOURCES in nonempty.
76147
76148 2005-10-17  Simon Josefsson  <jas@extundo.com>
76149
76150         * tests/test-rijndael.c: New file.
76151
76152 2005-10-17  Simon Josefsson  <jas@extundo.com>
76153
76154         * modules/sha1: Depend on stdint instead of md5.
76155
76156         * modules/md5: Depend on stdint, remove uint32_t.
76157
76158 2005-10-17  Simon Josefsson  <jas@extundo.com>
76159
76160         * modules/gc-sha1-tests: New file.
76161
76162         * tests/test-gc-sha1.c: New file.
76163
76164 2005-10-17  Simon Josefsson  <jas@extundo.com>
76165
76166         * m4/md5.m4: Remove call to uint32_t.m4.
76167
76168 2005-10-17  Simon Josefsson  <jas@extundo.com>
76169
76170         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
76171
76172         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
76173         md5.h.
76174
76175         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
76176
76177         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
76178
76179 2005-10-17  Simon Josefsson  <jas@extundo.com>
76180
76181         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
76182
76183 2005-10-17  Simon Josefsson  <jas@extundo.com>
76184
76185         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
76186
76187 2005-10-17  Simon Josefsson  <jas@extundo.com>
76188
76189         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
76190
76191         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
76192
76193 2005-10-17  Bruno Haible  <bruno@clisp.org>
76194
76195         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
76196         that it can also be used in a test.
76197
76198 2005-10-16  Bruno Haible  <bruno@clisp.org>
76199
76200         * gnulib-tool (func_emit_tests_Makefile_am): Also define
76201         TESTS_ENVIRONMENT, so that individual tests can augment it.
76202
76203         * gnulib-tool (func_create_testdir): Use an intermediate target for
76204         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
76205         macros, like $(ALLOCA_H), which cannot be passed through the command
76206         line.
76207
76208 2005-10-15  Simon Josefsson  <jas@extundo.com>
76209
76210         * modules/rijndael-tests: New file.
76211
76212         * modules/rijndael: New file.
76213
76214 2005-10-15  Simon Josefsson  <jas@extundo.com>
76215
76216         * m4/rijndael.m4: New file.
76217
76218 2005-10-15  Simon Josefsson  <jas@extundo.com>
76219
76220         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
76221
76222         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
76223
76224 2005-10-14  Simon Josefsson  <jas@extundo.com>
76225
76226         * tests/test-arcfour.c: New file.
76227
76228         * modules/arcfour, modules/arcfour-tests: New files.
76229
76230 2005-10-14  Simon Josefsson  <jas@extundo.com>
76231
76232         * m4/arcfour.m4: New file.
76233
76234 2005-10-14  Simon Josefsson  <jas@extundo.com>
76235
76236         * lib/arcfour.h, lib/arcfour.c: New files.
76237
76238 2005-10-14  Roland McGrath  <roland@redhat.com>
76239
76240         Import from libc.  [BZ #1331]
76241         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
76242         macro argument.
76243         Reported by Matej Vela <vela@debian.org>.
76244
76245 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76246
76247         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
76248         include <wchar.h>; no longer needed.
76249
76250 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76251
76252         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
76253
76254 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
76255         and  Ulrich Drepper  <drepper@redhat.com>
76256
76257         Import from libc.
76258         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
76259         instead of inline stream orientation test and two separate
76260         function calls.  Pay no attention to USE_IN_LIBIO.
76261
76262 2005-10-13  Simon Josefsson  <jas@extundo.com>
76263
76264         * modules/gc-hmac-md5-tests: New file.
76265
76266         * tests/test-gc-hmac-sha1.c: New file.
76267
76268         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
76269
76270         * modules/gc-hmac-md5-tests: New file.
76271
76272         * tests/test-gc-md5.c: New file.
76273
76274         * modules/gc-md5-tests: New file.
76275
76276 2005-10-13  Simon Josefsson  <jas@extundo.com>
76277
76278         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
76279         Move memory allocation outside of loop.
76280
76281 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
76282
76283         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
76284         intermediate directory is in a read-only file system.  Problem
76285         reported by Eric Blake.
76286
76287 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
76288
76289         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
76290
76291 2005-10-12  Simon Josefsson  <jas@extundo.com>
76292
76293         * tests/test-hmac-sha1.c: New file.
76294
76295         * modules/hmac-sha1-tests: New file.
76296
76297         * modules/hmac-sha1: New file.
76298
76299 2005-10-12  Simon Josefsson  <jas@extundo.com>
76300
76301         * modules/gc-sha1: New file.
76302
76303 2005-10-12  Simon Josefsson  <jas@extundo.com>
76304
76305         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
76306
76307         * tests/test-gc-pbkdf2-sha1.c: New file.
76308
76309 2005-10-12  Simon Josefsson  <jas@extundo.com>
76310
76311         * modules/gc-md5, modules/gc-hmac-md5: New files.
76312
76313         * modules/gc (Files): Remove md5, memxor and hmac files.
76314
76315 2005-10-12  Simon Josefsson  <jas@extundo.com>
76316
76317         * m4/gc-pbkdf2-sha1.m4: New file.
76318
76319         * m4/gc-hmac-sha1.m4: New file.
76320
76321         * m4/gc-sha1: New file.
76322
76323         * m4/hmac-sha1.m4: New file.
76324
76325 2005-10-12  Simon Josefsson  <jas@extundo.com>
76326
76327         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
76328
76329         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
76330
76331 2005-10-12  Simon Josefsson  <jas@extundo.com>
76332
76333         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
76334         suggested by Bruno Haible <bruno@clisp.org>.
76335
76336 2005-10-12  Simon Josefsson  <jas@extundo.com>
76337
76338         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
76339
76340 2005-10-12  Simon Josefsson  <jas@extundo.com>
76341
76342         * lib/gc-pbkdf2-sha1.c: New file.
76343
76344         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
76345
76346 2005-10-12  Simon Josefsson  <jas@extundo.com>
76347
76348         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
76349
76350         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
76351
76352 2005-10-12  Simon Josefsson  <jas@extundo.com>
76353
76354         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
76355         GC_USE_HMAC_MD5, respectively.
76356
76357         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
76358         (gc_md5): Fix typo.
76359
76360         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
76361
76362         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
76363
76364         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
76365
76366 2005-10-12  Bruno Haible  <bruno@clisp.org>
76367
76368         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
76369         Reported by Stepan Kasal <kasal@ucw.cz>.
76370
76371 2005-10-11  Simon Josefsson  <jas@extundo.com>
76372
76373         * tests/test-crc.c: New file.
76374
76375         * modules/crc, modules/crc-tests: New files.
76376
76377 2005-10-11  Simon Josefsson  <jas@extundo.com>
76378
76379         * m4/crc.m4: New file.
76380
76381 2005-10-11  Simon Josefsson  <jas@extundo.com>
76382
76383         * lib/gc.h: Add gc_hash and gc_hash_buffer.
76384
76385         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
76386
76387         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
76388
76389 2005-10-11  Simon Josefsson  <jas@extundo.com>
76390
76391         * lib/crc.h, lib/crc.c: New files.
76392
76393         * lib/gc.h (gc_hash_buffer): Add doc.
76394
76395 2005-10-11  Bruno Haible  <bruno@clisp.org>
76396
76397         * modules/c-strcasestr: New file.
76398         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
76399
76400 2005-10-11  Bruno Haible  <bruno@clisp.org>
76401
76402         * modules/c-strcase: New file.
76403         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
76404
76405 2005-10-11  Bruno Haible  <bruno@clisp.org>
76406
76407         * lib/strcasecmp.c: Include limits.h.
76408         (strcasecmp): Avoid integer overflow on exotic platforms.
76409         * lib/strncasecmp.c: Include limits.h.
76410         (strncasecmp): Avoid integer overflow on exotic platforms.
76411         Reported by Paul Eggert.
76412
76413 2005-10-11  Bruno Haible  <bruno@clisp.org>
76414
76415         * lib/c-strcasestr.h: New file, from GNU gettext.
76416         * lib/c-strcasestr.c: New file, from GNU gettext.
76417
76418 2005-10-11  Bruno Haible  <bruno@clisp.org>
76419
76420         * lib/c-strcase.h: New file, from GNU gettext.
76421         * lib/c-strcasecmp.c: New file, from GNU gettext.
76422         * lib/c-strncasecmp.c: New file, from GNU gettext.
76423
76424 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76425
76426         * modules/mempcpy (License): GPL -> LGPL.
76427         * modules/strchrnul (License): Likewise.
76428         * modules/sysexits (License): Likewise.
76429
76430 2005-10-08  Simon Josefsson  <jas@extundo.com>
76431
76432         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
76433
76434 2005-10-07  Simon Josefsson  <jas@extundo.com>
76435
76436         * m4/memxor.m4: Remove gl_C_RESTRICT call.
76437
76438 2005-10-06  Simon Josefsson  <jas@extundo.com>
76439
76440         * tests/test-hmac-md5.c: New file.
76441
76442         * modules/hmac-md5-tests: New file.
76443
76444         * modules/hmac-md5: New file.
76445
76446 2005-10-06  Simon Josefsson  <jas@extundo.com>
76447
76448         * m4/hmac-md5.m4: New file.
76449
76450         * m4/memxor.m4: Require gl_C_RESTRICT.
76451
76452 2005-10-06  Simon Josefsson  <jas@extundo.com>
76453
76454         * lib/memxor.c (memxor): Avoid casts and warnings.
76455
76456 2005-10-06  Simon Josefsson  <jas@extundo.com>
76457
76458         * lib/hmac-md5.c: New file.
76459
76460         * lib/hmac.h: New file.
76461
76462 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76463
76464         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
76465         promotes to int, not unsigned int, to catch the AIX 5.3
76466         compiler bug.
76467
76468 2005-10-05  Simon Josefsson  <jas@extundo.com>
76469
76470         * modules/memxor: New file.
76471
76472         * modules/iconv (Files): Move config.rpath to havelib, it is used
76473         there.
76474
76475         * modules/havelib (Files): Add config.rpath.
76476
76477 2005-10-05  Simon Josefsson  <jas@extundo.com>
76478
76479         * m4/memxor.m4: New file.
76480
76481 2005-10-05  Simon Josefsson  <jas@extundo.com>
76482
76483         * lib/memxor.c (memxor): Fix compiler error.
76484
76485         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
76486         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
76487
76488         * lib/memxor.h, lib/memxor.c: New files.
76489
76490         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
76491         we assume all systems have it, suggested by Jim Meyering
76492         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
76493         any systems lack sys/socket.h; mingw32 is known to lack it, but we
76494         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
76495         same reasons.
76496
76497 2005-10-05  Simon Josefsson  <jas@extundo.com>
76498
76499         * config/srclist.txt: Add glibc bug 1423 for md5.h.
76500
76501 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76502
76503         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
76504         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
76505         needed, since the source code now assumes these .h files.
76506
76507 2005-10-05  Derek Price  <derek@ximbiot.com>
76508
76509         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
76510
76511 2005-10-05  Bruno Haible  <bruno@clisp.org>
76512
76513         * modules/stdint (License): Change to LGPL.
76514
76515 2005-10-04  Simon Josefsson  <jas@extundo.com>
76516
76517         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
76518         D. Baushke" <mdb@gnu.org>.
76519
76520 2005-10-04  Bruno Haible  <bruno@clisp.org>
76521
76522         * lib/verify.h (verify_true): Provide alternative definition for C++.
76523
76524 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
76525
76526         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
76527         (SSIZE_MAX): New macro, if not already defined.
76528         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
76529         than 2 GiB.
76530
76531 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76532
76533         Sync from coreutils.
76534         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
76535         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
76536         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
76537         ULLONG_MAX doesn't work with 2.7.2.1.
76538
76539 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76540
76541         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
76542         From Ben Pfaff.
76543
76544         * modules/exclude (Depends-on): Depend on verify.
76545         * modules/strtoimax (Depends-on): Likewise.
76546         * modules/utimecmp (Depends-on): Likewise.
76547
76548 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76549
76550         * lib/exclude.c: Include verify.h.
76551         (verify): Remove.  All callers changed to use verify.h's version.
76552         * lib/strtoimax.c: Likewise.
76553         * lib/utimecmp.c: Likewis.e
76554
76555         Sync from coreutils.
76556         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
76557         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
76558         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
76559         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
76560         bother returning ENOSYS if settimeofday or stime fails; just let
76561         them return whatever errno they want to return.
76562         * lib/utimens.c: Include unistd.h, for dup2.
76563         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
76564         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
76565
76566 2005-10-02  Jim Meyering  <jim@meyering.net>
76567
76568         Sync from coreutils.
76569         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
76570         from glibc-2.2.5 that fails for read-only files.
76571
76572 2005-10-02  Jim Meyering  <jim@meyering.net>
76573
76574         Sync from coreutils.
76575         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
76576         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
76577         `#if HAVE_CONFIG_H'.
76578         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
76579         Remove AT_FDCWD test.
76580         Do not consume the fd unless successful.
76581         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
76582         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
76583         block, so that we don't even try to compile it if settimeofday is
76584         available.  This works around a compilation failure on OSF1 V5.1,
76585         due to stime requiring a `long int*' while tv_sec is `int'.
76586
76587 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
76588
76589         Sync from coreutils.
76590         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
76591         against `yes', rather than just testing for nonempty.
76592
76593 2005-10-01  Simon Josefsson  <jas@extundo.com>
76594
76595         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
76596         and Darwin.
76597
76598         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
76599         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
76600         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
76601         freeaddrinfo and gai_strerror are declared by the POSIX headers.
76602         Check if struct addrinfo is declared.
76603
76604 2005-10-01  Simon Josefsson  <jas@extundo.com>
76605
76606         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
76607         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
76608         AI_* and EAI_* definitions.  Protect function declarations.
76609
76610 2005-10-01  Jim Meyering  <jim@meyering.net>
76611
76612         Sync from coreutils.
76613
76614         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
76615         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
76616         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
76617         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76618         in the inet and nsl libraries.  Required on Solaris 5.7.
76619
76620 2005-10-01  Jim Meyering  <jim@meyering.net>
76621
76622         Sync from coreutils.
76623         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76624         in the inet and nsl libraries.  Required on Solaris 5.7.
76625
76626 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
76627
76628         * lib/getdelim.c (getdelim): Remove unused variables.
76629
76630 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76631
76632         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
76633         so that the code works even with ancient cpp.  Portability problem
76634         with GCC 2.7.2.1 reported by Thomas M.Ott.
76635
76636 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76637
76638         * modules/regex (Depends-on): Add strcase.
76639
76640         * modules/gethostname (Licence): Change from GPL to LGPL, since
76641         gethostname.c is a trivial implementation of a standard library
76642         function.
76643         * modules/poll (License): Change from GPL to LGPL, since it's
76644         derived from LGPL code.
76645
76646 2005-09-27  Jim Meyering  <jim@meyering.net>
76647
76648         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
76649         HAVE_CONFIG_H.
76650
76651         * lib/intprops.h (signed_type_or_expr__): Define.
76652         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
76653         for unsigned types.
76654
76655 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76656
76657         * lib/verify.h (verify_expr): Remove, replacing with:
76658         (verify_true): New macro that returns true instead of void.
76659         (verify_type__): Remove.
76660         (verify): Use verify_true rather than verify_type__.
76661
76662 2005-09-26  Bruno Haible  <bruno@clisp.org>
76663
76664         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
76665         is necessary.
76666         (lib_SOURCES): Remove mbchar.c.
76667         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
76668         (Files): Add m4/mbrtowc.m4.
76669         * modules/mbiter: Likewise.
76670         * modules/mbuiter: Likewise.
76671
76672 2005-09-26  Bruno Haible  <bruno@clisp.org>
76673
76674         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
76675         compile mbchar.c if they are not both present.
76676         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
76677         * m4/mbiter.m4 (gl_MBITER): Likewise.
76678         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
76679         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
76680         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
76681
76682 2005-09-25  Jim Meyering  <jim@meyering.net>
76683
76684         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
76685         also uses socklen_t.
76686
76687 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
76688
76689         * lib/utimens.c (ENOSYS): Define if not already defined.
76690         (futimens): Support having a null PATH if the file descriptor
76691         is nonnegative.
76692
76693         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
76694         Remove.
76695         (__attribute): Define to empty unless GCC 3.1 or later.
76696         This works around a core dump on OpenBSD 3.4, which has GCC
76697         2.95.3, which dumps core when given __attribute__(()).  It also
76698         simplifies other tests, since we really don't want to bother with
76699         worrying about which ancient version of GCC supported what.
76700         Original problem reported by Yoann Vandoorselaere, with part of
76701         the fix suggested by Derek Price.
76702
76703 2005-09-24  Jim Meyering  <jim@meyering.net>
76704
76705         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
76706         so we can once again use a positive bitfield width of 1 -- now we
76707         don't have to explain why we were using a bitfield width of 2.
76708
76709 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76710
76711         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
76712         and similarly for the other external symbols.  Problem reported
76713         by James Gallager.
76714
76715         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
76716         bug reported by Jim Meyering.
76717
76718         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
76719         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
76720         not needed, since socklen is a prerequisite module.
76721
76722 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76723
76724         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
76725         Problem reported by Eric Blake.
76726         (getaddrinfo): Initialize se so that it's not garbage.
76727         Redo internal storage allocation so that it doesn't make unportable
76728         assumptions about alignment.
76729         Fix a memory leak.
76730
76731         * lib/utimens.c (futimens): Use futimesat if available.
76732         Prefer it to futimes since it doesn't have the futimes bug.
76733
76734         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
76735         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
76736         Instead, declare a function that returns a pointer to an array,
76737         and use verify_type__ to declare the size of the array.
76738         Problem and germ of a solution reported by Bruno Haible.
76739         (verify_type__): Use 2, not 1, for bitfield size, to avoid
76740         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
76741
76742 2005-09-23  Jim Meyering  <jim@meyering.net>
76743
76744         Sync from coreutils.
76745         Correct build failure (socklen_t not defined) on at least
76746         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
76747         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
76748
76749 2005-09-23  Jim Meyering  <jim@meyering.net>
76750
76751         * modules/getaddrinfo (Depends-on): Add socklen.
76752
76753 2005-09-23  Bruno Haible  <bruno@clisp.org>
76754
76755         * tests/test-verify.c: New file.
76756
76757 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76758
76759         Sync from coreutils.
76760
76761         * modules/argmatch (Depends-on): Add verify.
76762         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
76763         unistd-safer.
76764         * modules/save-cwd (Depends-on): Likewise.
76765
76766         * modules/openat (Files): Add lib/openat-die.c.
76767         (Depends-on): Remove error, exitfail.
76768         Add dirname.
76769
76770         * modules/verify: New file.
76771         * MODULES.html.sh (Diagnostics <assert.h>): New section,
76772         with "verify" module.
76773
76774 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76775
76776         Sync from coreutils.
76777
76778         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
76779         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
76780         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
76781         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
76782         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
76783         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
76784         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
76785         Don't bother checking for string.h, stdlib.h, unistd.h.
76786         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
76787         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
76788         module's job.
76789         * m4/jm-macros.m4 (gl_MACROS): Likewise.
76790         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
76791
76792         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
76793         (gl_GETDATE): Use it.
76794
76795         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
76796
76797 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76798
76799         Sync from coreutils.
76800
76801         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
76802         stat-time.h.
76803         * lib/argmatch.h: Include verify.h
76804         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
76805         (ARGMATCH_ASSERT): Remove; unused.
76806         * lib/canonicalize.c: Assume STDC_HEADERS.
76807         * lib/exclude.c: Include "strcase.h".
76808         * lib/regex_internal.h [!defined _LIBC]: Likewise.
76809         * lib/getusershell.c: Include stdio--.h rather than stdio.h
76810         and stdio-safer.h.
76811         (getusershell): Call fopen, not fopen_safer.
76812         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
76813         Do not include unistd-safer.h.
76814         (save_cwd): Don't call fd_safer; no longer needed
76815         now that we include fcntl--.h.
76816
76817         * lib/getdate.y (relative_time): New type.
76818         (RELATIVE_TIME_0): New constant.
76819         (parser_control): Use relative_time instead of doing it ourselves.
76820         (%union): Add new relative_time rel member.
76821         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
76822         Now typeless.
76823         (relunit, relunit_snumber): Now of type rel.
76824         (zone, rel, relunit, get_date): Adjust to above changes.
76825
76826         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
76827         Do not include unistd-safer.h.
76828         (getloadavg): Don't call fd_safer; no longer needed
76829         now that we include fcntl--.h.
76830
76831         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
76832         (make_dir_parents): Treat ENOSYS like EEXIST.
76833
76834         Improve quality of diagnostics on restore_cwd failure.
76835         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
76836         (make_dir_parents): Last arg is now int * (for errno), not bool *.
76837         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
76838         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
76839         each time through the loop.  Do not diagnose restore_cwd failure;
76840         that is the caller's job (and perhaps the caller does not care).
76841
76842         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
76843         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
76844         If the file already exists but is not a directory, don't bother
76845         to try to make its parents.
76846         Close potential file descriptor leak if we can't chdir("/") (!).
76847         Don't always return true if chdir($PWD) fails; return true only
76848         if the requested action was done successfully (except for the
76849         chdir($PWD)).
76850         Don't log final directory unless we actually made it.
76851         Refactor to avoid duplicate code to fix up permissions.
76852         Don't attempt to fix up parent permissions if chdir($PWD) fails.
76853
76854         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
76855         to make it a bit faster and (I hope) clearer.
76856         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
76857         Fix bug in formats like %2N.
76858
76859         * lib/verify.h: New file.
76860
76861 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76862
76863         Sync from coreutils.
76864         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
76865
76866 2005-09-22  Jim Meyering  <jim@meyering.net>
76867
76868         Sync from coreutils.
76869
76870         * m4/lstat.m4 (gl_FUNC_LSTAT):
76871         Use AC_LIBSOURCES to require lstat.c and lstat.h.
76872         Remove obsolete comment.
76873         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
76874         * m4/xstrtod.m4: Likewise.
76875
76876         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
76877
76878 2005-09-22  Jim Meyering  <jim@meyering.net>
76879
76880         Sync from coreutils.
76881
76882         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
76883
76884         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
76885         the .tm_year member, since otherwise gcc-4.0 would now warn about
76886         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
76887
76888         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
76889         order to avoid an unsuppressible warning from gcc on 64-bit systems.
76890
76891         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
76892         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
76893         when run in a time zone for which daylight savings time is in effect
76894         for the starting date.
76895
76896         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
76897         stop us from restricting permissions of just-created absolute-named
76898         directories.
76899         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
76900         to restore initial working directory.
76901         * lib/mkdir-p.c (make_dir_parents): New parameter:
76902         different_working_dir, to tell caller if/when we change the working
76903         directory and are unable to return to the initial one.
76904         * lib/mkdir-p.h (make_dir_parents): Update prototype.
76905         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
76906         `return false'.  This fixes a bug introduced on 2004-07-30.
76907
76908         * lib/openat.c (fdopendir): Be sure to close the supplied
76909         file descriptor before returning.  This makes our replacement
76910         implementation a little closer to Solaris's, where fdopendir
76911         ties the file descriptor to the returned DIR* pointer.
76912         * lib/openat.c (unlinkat): New function.
76913         * lib/openat.h (unlinkat): Add prototype.
76914         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
76915         (openat_restore_fail): Rename from openat_restore_die.
76916         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
76917
76918         Provide an alternative to exiting immediately upon save_cwd or
76919         restore_cwd failure.  Now, an application can arrange e.g.,
76920         to perform a longjump in that case.
76921         * lib/openat.c: Include dirname.h.
76922         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
76923         (rpl_openat, fdopendir, fstatat): Call openat_save_die
76924         and openat_restore_die rather than calling error directly.
76925         Don't include "error.h" or "exitfail.h"; they're no longer needed.
76926
76927         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
76928         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
76929         define.
76930
76931         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
76932         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
76933                             int utc, int nanoseconds);
76934         Background:
76935         date should not have to allocate a megabyte of virtual memory to
76936         handle a format argument like +%1048575T.  When implemented with
76937         strftime, it must allocate such a buffer, use strftime to fill it
76938         in, print it, then free it.
76939         With fprintftime, it simply prints everything and exits.
76940         With no need for memory allocation, that's one fewer way to fail.
76941         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
76942         optional field width, not before, so we accept %9:z, not %:9z.
76943         (my_strftime): Be sure to use L_('x') for literals.
76944
76945         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
76946         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
76947         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
76948         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
76949         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
76950         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
76951         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
76952         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
76953         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
76954         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
76955         * lib/xgethostname.c, lib/xreadlink.c:
76956         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
76957
76958         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
76959         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
76960         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
76961         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76962         and don't include <sys/file.h>).
76963
76964 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
76965
76966         Sync from coreutils.
76967
76968         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
76969         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
76970         [!LDAV_DONE]: Avoid unused variable warning.
76971
76972 2005-09-21  Bruno Haible  <bruno@clisp.org>
76973
76974         * lib/unicodeio.h (unicode_to_mb): New declaration.
76975
76976 2005-09-20  Derek Price  <derek@ximbiot.com>
76977
76978         * lib/getaddrinfo.c: Don't include <netdb.h> included from
76979         getaddrinfo.h.
76980
76981 2005-09-20  Bruno Haible  <bruno@clisp.org>
76982
76983         * gnulib-tool: Remove trailing slashes from the values specified for
76984         --source-base, --m4-base, --tests-base, --aux-dir.
76985         Suggested by Simon Josefsson <jas@extundo.com>.
76986
76987 2005-09-20  Bruno Haible  <bruno@clisp.org>
76988
76989         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
76990         func_modules_to_filelist, func_import, func_create_testdir): Make all
76991         sorting results locale-independent, so that gnulib-cache.m4 doesn't
76992         change when gnulib-tool is invoked in a different locale.
76993
76994 2005-09-19  Simon Josefsson  <jas@extundo.com>
76995
76996         * m4/socklen.m4: Fix typo.
76997
76998 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76999
77000         Use a consistent style for including <config.h>.
77001         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
77002         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
77003         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
77004         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
77005         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
77006         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
77007         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
77008         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
77009         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
77010         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
77011         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
77012         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
77013         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
77014         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
77015         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
77016         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
77017         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
77018         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
77019         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
77020         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
77021         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
77022         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
77023         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
77024         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
77025         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
77026         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
77027         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
77028         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
77029         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
77030         lib/xstrtoumax.c, lib/yesno.c:
77031         Standardize inclusion of config.h.
77032         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
77033         lib/inttostr.h:  Removed inclusion of config.h from header files.
77034         * lib/inttostr.c:  Adjusted in-tree users.
77035         * lib/timespec.h: Remove superfluous warning to include config.h.
77036         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
77037         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
77038         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
77039         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
77040         config.h with HAVE_CONFIG_H.
77041
77042 2005-09-19  Jim Meyering  <jim@meyering.net>
77043
77044         * modules/pathmax (License): Change to LGPL.
77045
77046 2005-09-19  Derek Price  <derek@ximbiot.com>
77047
77048         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
77049
77050 2005-09-19  Bruno Haible  <bruno@clisp.org>
77051
77052         * gnulib-tool (import): Provide default for --tests-base.
77053
77054 2005-09-19  Bruno Haible  <bruno@clisp.org>
77055
77056         * doc/quote.texi: New file, extracted from gnulib.texi.
77057         * doc/ctime.texi: New file, extracted from gnulib.texi.
77058         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
77059         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
77060         * doc/gnulib.texi: Include them.
77061
77062 2005-09-18  Bruno Haible  <bruno@clisp.org>
77063
77064         Portability fix.
77065         * gnulib-tool (func_readlink): New function.
77066         (func_ln_if_changed): Use it.
77067
77068 2005-09-18  Bruno Haible  <bruno@clisp.org>
77069
77070         * gnulib-tool: Support --with-tests also with --import.
77071         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
77072         (func_import): Use variables $testsbase and $inctests. Emit a
77073         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
77074         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
77075         SUBDIRS += $testsdir.
77076         (func_create_testdir): Update.
77077
77078 2005-09-18  Bruno Haible  <bruno@clisp.org>
77079
77080         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
77081         instead of $dry_run.
77082         (func_cp_if_changed, func_mv_if_changed): Remove functions.
77083         (func_ln_if_changed): Don't handle dry-run here.
77084         (func_import): In dry-run mode, detect more precisely which actions
77085         would be performed, and don't use "...ing" verbs.
77086
77087 2005-09-18  Bruno Haible  <bruno@clisp.org>
77088
77089         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
77090         (func_import): Use join on two temporary files instead of three nested
77091         loops, in order to determine which files are new or old.
77092
77093 2005-09-18  Bruno Haible  <bruno@clisp.org>
77094
77095         * gnulib-tool (func_import): Comment out code that spits out the
77096         new files with --dry-run.
77097
77098 2005-09-18  Bruno Haible  <bruno@clisp.org>
77099
77100         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
77101
77102 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77103
77104         * lib/stat-time.h: New file.
77105         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
77106         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
77107         in a different way.
77108         (timespec_cmp): New function.
77109         * lib/utimecmp.c: Include stat-time.h.
77110         (SYSCALL_RESOLUTION): Depend on whether various struct stat
77111         members exist, not on the obsolescent ST_MTIM_NSEC.
77112         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
77113
77114 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77115
77116         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
77117
77118 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77119
77120         * MODULES.html.sh (File system functions): Add stat-time.
77121         * modules/stat-time: New file.
77122         * modules/timespec (Files): Remove m4/st_mtim.m4; this
77123         is now done in a different way, by the stat-time module.
77124         * modules/utimecmp (Depends-on): Add stat-time.
77125
77126 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77127
77128         * m4/st_mtim.m4: Remove.  Superseded by...
77129         * m4/stat-time.m4: New file.
77130         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
77131         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
77132
77133 2005-09-15  Derek Price  <derek@ximbiot.com>
77134
77135         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
77136
77137 2005-09-15  Derek Price  <derek@ximbiot.com>
77138
77139         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
77140         * lib/regex_internal.c: Ditto, using this...
77141         (__GNUC_PREREQ): ...new macro.
77142         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
77143         using...
77144         (__GNUC_PREREQ): ...this new macro.
77145
77146         * lib/strstr.h: Include string.h. Define strstr as a macro here.
77147
77148 2005-09-15  Derek Price  <derek@ximbiot.com>
77149             Paul Eggert  <eggert@cs.ucla.edu>
77150
77151         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
77152         changes, consolidating in...
77153         * lib/regex_internal.h: ...this file.
77154
77155 2005-09-13  Jim Meyering  <jim@meyering.net>
77156
77157         * lib/canon-host.c: Filter through gnu indent and reword comments
77158         slightly.
77159         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
77160
77161 2005-09-13  Derek Price  <derek@ximbiot.com>
77162
77163         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
77164         failure.
77165         Reported by Jim Meyering  <jim@meyering.net>.
77166
77167 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77168
77169         * lib/base64.c: Typo.
77170         (base64_encode): Put b64str in initialized data section.
77171
77172 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
77173
77174         Merge glibc and coreutils changes into gnulib, plus a few
77175         extra fixes.
77176         * lib/md5.c: Use #error rather than a string.
77177         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
77178         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
77179         (__attribute__): Define to empty for non recent-GCC.
77180         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
77181         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
77182         Renamed from their non-__ counterparts, with new macros replacing
77183         them if not _LIBC.  Add __THROW attribute.
77184         (rol): Remove.
77185         (struct md5_ctx): Align buffer if using GCC.
77186         * lib/sha1.h (struct sha1_ctx): Likewise.
77187         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
77188         The old name was backwards.
77189         (NOTSWAP): Remove; not used.
77190         (rol): New macro, moved here from md5.h.
77191         (sha1_process_block): Remove a FIXME that doesn't make sense.
77192
77193 2005-09-12  Derek Price  <derek@ximbiot.com>
77194
77195         Return usable errors from canon-host.
77196         * lib/canon-host.h: New file.
77197         * lib/canon-host.c (canon_host): Wrap...
77198         (canon_host_r): ...this new function, which now relies exclusively on
77199         getaddrinfo.
77200         (ch_strerror): New function.
77201         (last_cherror): New global.
77202         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
77203         interface.
77204         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
77205         void *.
77206         (freeaddrinfo): Free ai->ai_canonname when set.
77207
77208 2005-09-12  Derek Price  <derek@ximbiot.com>
77209
77210         Make canon-host require getaddrinfo.
77211         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
77212         AC_LIBSOURCE canon-host.h.  Call...
77213         (gl_PREREQ_CANON_HOST): ...this new function, which requires
77214         gl_GETADDRINFO.
77215         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
77216
77217 2005-09-12  Derek Price  <derek@ximbiot.com>
77218
77219         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
77220         LGPL.
77221         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
77222
77223 2005-09-12  Derek Price  <derek@ximbiot.com>
77224
77225         * lib/gai_strerror.c: Include config.h when available.  Include
77226         getaddrinfo.h before other headers to test interface.
77227         Reported by Larry Jones <lawrence.jones@ugs.com>.
77228
77229 2005-09-12  Derek Price  <derek@ximbiot.com>
77230             Paul Eggert  <eggert@cs.ucla.edu>
77231
77232         * modules/glob (Files): Add glob-libc.h.
77233
77234 2005-09-12  Derek Price  <derek@ximbiot.com>
77235             Paul Eggert  <eggert@cs.ucla.edu>
77236
77237         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
77238         glob_.h, glob-libc.h.
77239         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
77240
77241 2005-09-12  Derek Price  <derek@ximbiot.com>
77242             Paul Eggert  <eggert@cs.ucla.edu>
77243
77244         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
77245         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
77246         protecting things that should be done only in gnulib contexts.
77247         * lib/glob_.h: New file, containing only the glob things needed for
77248         gnulib.
77249         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
77250         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
77251         (glob, globfree, glob_pattern_p): Now defined simply in terms of
77252         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
77253         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
77254         and to respect the namespace rules better.
77255
77256 2005-09-08  Simon Josefsson  <jas@extundo.com>
77257
77258         * modules/socklen: New file.
77259
77260 2005-09-08  Simon Josefsson  <jas@extundo.com>
77261
77262         * m4/socklen.m4: New file.
77263
77264 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77265
77266         * modules/utimens (Files): Add m4/utimbuf.m4, since
77267         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
77268         Reported by Sergey Poznyakoff.
77269
77270 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77271
77272         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
77273         definitions, since that's the preferred style in glibc.
77274         Fix a minor spacing issue, and update copyright notice to match
77275         glibc's.
77276
77277 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77278
77279         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
77280
77281 2005-09-06  Simon Josefsson  <jas@extundo.com>
77282
77283         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
77284         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
77285
77286 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77287
77288         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
77289         warning.
77290
77291 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77292
77293         * config/srclist.txt: Add glibc bug 1302.
77294
77295 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
77296
77297         Change bitset word type from unsigned int to unsigned long int,
77298         as this has better performance on typical 64-bit hosts.
77299         Port bitset code to hosts with unusual word sizes.
77300         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
77301         (build_collating_symbol):
77302         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
77303         argument is a bitset.  This is merely a style issue, but it makes
77304         it clearer that an entire array is expected.
77305         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
77306         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
77307         Port to the case where bitset_word is not the same as unsigned int.
77308         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77309         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
77310         Likewise.
77311         * lib/regexec.c (check_dst_limits_calc_pos_1,
77312         check_subexp_matching_top):
77313         (build_trtable, group_nodes_into_DFAstates):
77314         Likewise.
77315         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
77316         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
77317         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
77318         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
77319         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
77320         * lib/regcomp.c (optimize_subexps, lower_subexp):
77321         Work even if bitset_word has holes in its bitwise representation.
77322         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
77323         * lib/regexec.c (check_dst_limits_calc_pos_1,
77324         check_subexp_matching_top):
77325         Likewise.
77326         * lib/regex_internal.c (re_string_reconstruct):
77327         Don't assume UCHAR_MAX == 255.
77328         * lib/regex_internal.h (bitset_set_all): Likewise.
77329         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
77330         All uses changed.
77331         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
77332         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
77333         All uses changed.
77334         (BITSET_WORD_MAX): New macro.
77335         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
77336         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
77337         (bitset_empty, bitset_copy):
77338         Prefer sizeof (bitset) to multiplying it out ourselves.
77339         (bitset_not_merge): Remove; unused.
77340         (bitset_contain): Return bool, not unsigned int with one bit on.
77341         All callers changed.
77342         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
77343         alignment than re_node_set; do this by defining a new internal
77344         type struct dests_alloc and using it to allocate memory.
77345
77346 2005-09-05  Bruno Haible  <bruno@clisp.org>
77347
77348         * gnulib-tool (func_import): Fix comparison in handling of symbolic
77349         links.
77350
77351 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
77352
77353         * modules/size_max (Makefile.am): Add size_max.h
77354
77355 2005-09-04  Derek Price  <derek@ximbiot.com>
77356
77357         * gnulib-tool (func_import): Fix reversed $symbolic logic.
77358
77359 2005-09-03  Simon Josefsson  <jas@extundo.com>
77360
77361         * gnulib-tool: Fix typo.
77362
77363 2005-09-03  Simon Josefsson  <jas@extundo.com>
77364
77365         * config/srclist.txt: Add glibc bug 1293.
77366
77367 2005-09-03  Derek Price  <derek@ximbiot.com>
77368
77369         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
77370         From Larry Jones <lawrence.jones@ugs.com>.
77371
77372 2005-09-02  Simon Josefsson  <jas@extundo.com>
77373
77374         * modules/socklen: New file.
77375
77376 2005-09-02  Simon Josefsson  <jas@extundo.com>
77377
77378         * modules/havelib: New module.
77379
77380         * modules/gettext, modules/iconv, modules/lock, modules/readline:
77381         Use havelib.
77382
77383 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77384
77385         Check for arithmetic overflow when calculating sizes, to prevent
77386         some buffer-overflow issues.  These patches are conservative, in the
77387         sense that when I couldn't determine whether an overflow was possible,
77388         I inserted a run-time check.
77389         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
77390         macros.
77391         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
77392         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
77393         (re_xnrealloc, re_x2nrealloc): New inline functions.
77394         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
77395         parse_bracket_exp):
77396         (build_equiv_class, build_charclass): Check for arithmetic overflow
77397         in size expression calculations.
77398         * lib/regex_internal.c (re_string_realloc_buffers):
77399         (build_wcs_upper_buffer, re_node_set_add_intersect):
77400         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
77401         (re_dfa_add_node, register_state): Likewise.
77402         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
77403         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
77404         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
77405         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
77406
77407 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77408
77409         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77410         m4/ulonglong.m4.  Problem reported by Martin Lambers.
77411
77412 2005-09-02  Bruno Haible  <bruno@clisp.org>
77413
77414         Support for lib vs. lib64 distinction on biarch platforms.
77415         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
77416         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
77417         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
77418
77419 2005-09-02  Bruno Haible  <bruno@clisp.org>
77420
77421         * gnulib-tool (import): In the other first-use case, provide defaults
77422         as well.
77423
77424 2005-09-02  Bruno Haible  <bruno@clisp.org>
77425
77426         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
77427         patches not yet found in the latest gettext release.
77428
77429 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77430
77431         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
77432         to avoid a collision with bits/local_lim.h in glibc.
77433         All uses changed.  Problem reported by Dmitry V. Levin in
77434         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
77435
77436         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
77437         bugs in int versus size_t comparisons.
77438         (re_string_context_at): Fix bug where the code assumed that
77439         Idx is signed.
77440
77441         Use bool where appropriate.
77442         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
77443         All callers changed.
77444         (calc_eclosure_iter): Likewise, for ROOT arg.
77445         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
77446         (build_charclass_op): Likewise, for NON_MATCH arg.
77447         * lib/regex_internal.c (re_string_allocate, re_string_construct):
77448         (re_string_construct_common): Likewise, for ICASE arg.
77449         * lib/regexec.c (re_search_2_stub, re_search_stub):
77450         Likewise, for RET_LEN arg.
77451         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
77452         (set_regs): Likewise, for FL_BACKTRACK arg.
77453         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
77454         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
77455         (calc_eclosure_iter, parse_bracket_exp):
77456         Use bool for internal variables that are booleans.
77457         * lib/regexec.c (re_search_internal, check_matching,
77458         proceed_next_node):
77459         (set_regs, build_sifted_states, sift_states_bkref):
77460         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
77461         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77462         (find_collation_sequence_value):
77463         Likewise.
77464         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
77465         (re_node_set_compare):
77466         Return bool, not int. All callers changed.
77467         * lib/regexec.c (check_halt_node_context, check_dst_limits):
77468         (build_trtable, check_node_accept): Likewise.
77469         * lib/regex_internal.h: Include stdbool.h.
77470
77471         Fix bugs uncovered when converting to bool.
77472         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
77473         failure instead of charging ahead blindly.
77474         * lib/regex_internal.c (register_state): Likewise.
77475         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
77476         for freeing internal storage.
77477         (group_nodes_into_DFA_states): Use unsigned int, not int, for
77478         bitset pieces used as boolean, to avoid undefined behavior
77479         on hosts that do int overflow checking.
77480
77481 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77482
77483         * config/srclist.txt: Add glibc bugs 1285-1287.
77484
77485 2005-09-01  Jim Meyering  <jim@meyering.net>
77486
77487         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
77488         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
77489         Require gl_STAT_MACROS, too.
77490
77491 2005-09-01  Bruno Haible  <bruno@clisp.org>
77492
77493         * gnulib-tool (import): In the first-use case, provide defaults.
77494
77495 2005-09-01  Bruno Haible  <bruno@clisp.org>
77496
77497         * gnulib-tool (func_import): Remove the .tmp files.
77498
77499 2005-09-01  Bruno Haible  <bruno@clisp.org>
77500
77501         * gnulib-tool (func_import): Fix handling of symbolic links.
77502
77503 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77504
77505         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
77506         old glibc regex code mishandles strings longer than 2**31 bytes.
77507         This patch fixes this when the regex code is used in gnulib
77508         (i.e., outside glibc).
77509
77510         This patch should not affect the use of the regex code inside
77511         glibc.  No doubt this problem also needs to be handled for glibc
77512         as well, but the result will be an incompatible change to the
77513         glibc ABI, and the old ABI will have to be supported too.  That
77514         can be the the subject for another patch.
77515
77516         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
77517         governing whether the rest of this patch is active.  By default,
77518         the macro is disabled and the patch has no effect.
77519         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
77520         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
77521         (struct re_pattern_buffer, re_search, re_search_2, re_match):
77522         (re_match_2, re_set_registers): Use the new types.
77523         * lib/regex_internal.h (Idx, re_hashval_t): New types.
77524         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
77525         New macros.
77526         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
77527         (re_string_context_at, bin_tree_t, re_dfastate_t):
77528         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
77529         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
77530         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
77531         (re_string_char_size_at, re_string_wchar_at):
77532         (re_string_elem_size_at):
77533         Use the new types and macros to port to 64-bit hosts.
77534         Use unsigned types for internal values, so that the code
77535         mostly works even for arrays larger than SSIZE_MAX.
77536         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
77537         (search_duplicated_node, calc_eclosure_iter, fetch_number):
77538         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
77539         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
77540         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
77541         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
77542         (calc_inveclosure, parse_dup_op, build_range_exp):
77543         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
77544         (fetch_number, create_token_tree, mark_opt_subexp):
77545         Likewise.
77546         * lib/regex_internal.c (re_string_construct_common,
77547         create_ci_newstate):
77548         (create_cd_newstate, re_string_allocate, re_string_construct):
77549         (re_string_realloc_buffers, build_wcs_upper_buffer):
77550         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77551         (re_string_reconstruct, re_string_peek_byte_case):
77552         (re_string_fetch_byte_case, re_string_context_at):
77553         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77554         (re_node_set_init_copy, re_node_set_add_intersect):
77555         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77556         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77557         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77558         (re_acquire_state, re_acquire_state_context, register_state):
77559         Likewise.
77560         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
77561         search_cur_bkref_entry):
77562         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
77563         (re_search_internal, re_search_2_stub, re_search_stub)
77564         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
77565         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
77566         (update_cur_sifted_state, check_dst_limits):
77567         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77568         (check_subexp_limits, sift_states_bkref, merge_state_array):
77569         (check_subexp_matching_top, get_subexp, get_subexp_sub):
77570         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
77571         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77572         (expand_bkref_cache, check_node_accept_bytes):
77573         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
77574         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
77575         (acquire_init_state_context, check_halt_node_context):
77576         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
77577         (sift_states_backward, clean_state_log_if_needed):
77578         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
77579         (find_recover_state, transit_state_sb, transit_state_mb):
77580         (transit_state_bkref, build_trtable, match_ctx_clean):
77581         Likewise.
77582         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
77583         to work around an assumption that REG_MISSING is negative.
77584
77585         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
77586         (seek_collating_symbol_entry) [defined _LIBC]:
77587         (lookup_collation_sequence_value) [defined _LIBC]:
77588         (build_range_exp, build_collating_symbol) [defined _LIBC]:
77589         Use prototypes rather than old-style function definitions.
77590         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
77591         (transit_state_sb) [0]:
77592         (find_collation_sequence_value) [defined _LIBC]: Likewise.
77593
77594         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
77595         rm_eo.
77596
77597         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
77598         (optimize_subexps, lower_subexp):
77599         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
77600         since the signed shift might overflow.  Use 1u<<31 instead.
77601         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77602         Likewise.
77603         * lib/regexec.c (check_dst_limits_calc_pos_1,
77604         check_subexp_matching_top): Likewise.
77605
77606         * lib/regcomp.c (optimize_subexps, lower_subexp):
77607         Use CHAR_BIT rather than 8, for clarity.
77608         * lib/regexec.c (check_dst_limits_calc_pos_1):
77609         (check_subexp_matching_top): Likewise.
77610         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
77611         have to worry about portability issues when shifting it left.
77612         Remove no-longer-needed test for table_size > 0.
77613         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
77614         in a word, as the resulting behavior is undefined.
77615         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
77616         in one case, a <= should have been an <, and in another case the
77617         whole test was missing.
77618         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
77619         the standard name CHAR_BIT.
77620         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
77621         this is not true on one's complement and signed-magnitude hosts.
77622
77623         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
77624         next_last_offset.
77625         (struct re_dfa_t): Remove unused member states_alloc.
77626         * lib/regcomp.c (init_dfa): Don't initialize unused members.
77627
77628 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77629
77630         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
77631         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
77632         and large-file glibc and in 32-bit large-file Solaris.
77633
77634 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77635
77636         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
77637         lengths fit in regoff_t; this isn't true if regoff_t is the same
77638         width as size_t.
77639         * lib/regex.c (re_search_internal): 5th arg is LAST_START
77640         (= START + RANGE) instead of RANGE.  This avoids overflow
77641         problems when regoff_t is the same width as size_t.
77642         All callers changed.
77643         (re_search_2_stub): Check for overflow when adding the
77644         sizes of the two strings.
77645         (re_search_stub): Check for overflow when adding START
77646         to RANGE; if it occurs, substitute the extreme value.
77647
77648 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77649
77650         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
77651
77652 2005-08-31  Jim Meyering  <jim@meyering.net>
77653
77654         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
77655         a pointer-to-const.
77656         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
77657         (register_state): Likewise.
77658         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
77659         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77660         (group_nodes_into_DFAstates): Likewise.
77661
77662 2005-08-31  Jim Meyering  <jim@meyering.net>
77663
77664         * check-module: Add a FIXME comment.
77665
77666 2005-08-31  Eric Blake  <ebb9@byu.net>
77667
77668         * modules/unistd-safer (Files): Add unistd--.h.
77669         * modules/stdio-safer (Files): Add stdio--.h.
77670
77671 2005-08-31  Derek Price  <derek@ximbiot.com>
77672
77673         * lib/getdelim.c (getdelim): Return EOF on EOF.
77674         Reported by Larry Jones <lawrence.jones@ugs.com>.
77675
77676 2005-08-31  Bruno Haible  <bruno@clisp.org>
77677
77678         Avoid unnecessary diffs in the generated lib/Makefile.am.
77679         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
77680         the generated files.
77681         (func_import): Don't set cmd.
77682
77683 2005-08-31  Bruno Haible  <bruno@clisp.org>
77684
77685         * lib/strstr.c: Include <stddef.h>, for NULL.
77686         * lib/strcasestr.c: Likewise.
77687         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77688
77689 2005-08-31  Bruno Haible  <bruno@clisp.org>
77690
77691         * gnulib-tool: New option --macro-prefix.
77692         (func_import): Use macro_prefix.
77693         (import): Handle option --macro-prefix.
77694
77695 2005-08-31  Bruno Haible  <bruno@clisp.org>
77696
77697         * gnulib-tool (import): Rename most ac_* variables to cached_*.
77698         Also use new variables cached_lgpl, cached_libtool.
77699
77700 2005-08-31  Bruno Haible  <bruno@clisp.org>
77701
77702         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
77703         always instantiating them.
77704
77705 2005-08-31  Bruno Haible  <bruno@clisp.org>
77706
77707         * gnulib-tool (func_import): Read the previous cached settings
77708         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
77709         earlier added by gnulib but are now dropped. Warn when a gnulib file
77710         overwrites a non-gnulib file.
77711
77712 2005-08-31  Bruno Haible  <bruno@clisp.org>
77713
77714         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
77715         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
77716         projects that don't keep autogenerated files in CVS. Put into
77717         actioncmd only the specified modules, not the transitive closure.
77718
77719 2005-08-31  Bruno Haible  <bruno@clisp.org>
77720
77721         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
77722         Create directories that shall be filled.
77723         (import): Don't look for gl_* macros in configure.ac. Recurse across
77724         all directories containing a gnulib-cache.m4 files, if meaningful.
77725
77726 2005-08-31  Bruno Haible  <bruno@clisp.org>
77727
77728         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
77729         (import): Set seen_libtool when we see gl_LIBTOOL.
77730
77731 2005-08-31  Bruno Haible  <bruno@clisp.org>
77732
77733         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
77734         declaration macro definitions from generated gnulib.m4.
77735
77736 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
77737
77738         * lib/iconvme.h: Add prototype for iconv_alloc.
77739
77740 2005-08-29  Simon Josefsson  <jas@extundo.com>
77741
77742         * lib/iconvme.c: Fix errno.
77743
77744 2005-08-29  Bruno Haible  <bruno@clisp.org>
77745
77746         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
77747         that it works when the directory contains spaces.
77748
77749 2005-08-29  Bruno Haible  <bruno@clisp.org>
77750
77751         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
77752
77753 2005-08-29  Bruno Haible  <bruno@clisp.org>
77754
77755         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
77756         Emit more advice.
77757
77758 2005-08-29  Bruno Haible  <bruno@clisp.org>
77759         and Stepan Kasal  <kasal@ucw.cz>
77760
77761         * check-module: If more parameters are given, check each of them
77762         separately; add more exceptions, as noted by Jim Meyering.
77763         (check_module): New procedure.
77764         (%exempt_header): Now contains all exceptions.
77765
77766 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
77767
77768         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
77769
77770 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77771
77772         * lib/iconvme.c: Split iconv_string into iconv_alloc.
77773
77774 2005-08-28  Bruno Haible  <bruno@clisp.org>
77775
77776         * m4/gnulib-tool.m4: New file.
77777
77778 2005-08-27  Jim Meyering  <jim@meyering.net>
77779
77780         * modules/unistd-safer (Files): Add pipe-safer.c.
77781         * modules/fcntl-safer (Files): Add creat-safer.c.
77782
77783 2005-08-27  Jim Meyering  <jim@meyering.net>
77784
77785         * m4/stdlib-safer.m4: New file.  From coreutils.
77786         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
77787         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
77788         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
77789         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
77790         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
77791
77792 2005-08-27  Jim Meyering  <jim@meyering.net>
77793
77794         * lib/fopen-safer.c: Merge minor changes from coreutils.
77795         * lib/dup-safer.c: Likewise.
77796         * lib/fd-safer.c: Likewise.
77797
77798         Merge from coreutils.
77799         * lib/stdio--.h: New file.
77800         * lib/stdlib--.h: New file.
77801         * lib/mkstemp-safer.c: New file.
77802
77803         GNU tar needs these.
77804         * lib/pipe-safer.c: New file.
77805         * lib/creat-safer.c: New file.
77806         * lib/fcntl--.h (creat): Define to creat_safer.
77807         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
77808         * lib/unistd--.h (pipe): Define to pipe_safer.
77809         * lib/unistd-safer.h: Declare pipe_safer.
77810
77811 2005-08-26  Simon Josefsson  <jas@extundo.com>
77812
77813         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
77814         Haible <bruno@clisp.org>.
77815
77816 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
77817
77818         * lib/regex_internal.h: Remove all references to
77819         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
77820         or better.
77821         (bitset_not, bitset_merge, bitset_not_merge):
77822         (bitset_mask, re_string_allocate, re_string_construct):
77823         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
77824         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
77825         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
77826         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
77827         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77828         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77829         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
77830         (re_acquire_state_context):
77831         Remove unnecessary forward decls.
77832         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
77833         Put __attribute at function definition,
77834         now that the function decl has been removed.
77835         * lib/regex_internal.c (re_string_peek_byte_case):
77836         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
77837         Likewise.
77838
77839 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
77840
77841         * m4/regex.m4: Add AC_PREREQ(2.50).
77842         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
77843
77844 2005-08-25  Simon Josefsson  <jas@extundo.com>
77845
77846         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
77847         __fsetlocking.
77848
77849 2005-08-25  Simon Josefsson  <jas@extundo.com>
77850
77851         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
77852         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
77853         GLIBC specific code.
77854
77855 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77856
77857         Make regex safe for g++.  This fixes one real bug (an "err"
77858         that should have been "*err").  g++ problem reported by
77859         Sam Steingold.
77860         * lib/regex_internal.h (re_calloc): New macro, consistent with
77861         re_malloc etc.  All callers of calloc changed to use re_calloc.
77862         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
77863         not int.  All callers changed.
77864         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
77865         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
77866         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
77867         (find_recover_state): Change "err" to "*err"; this fixes what
77868         appears to be a real bug.
77869         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
77870         versus int.
77871
77872 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77873
77874         * modules/regex (Depends-on): Add malloc, since the code
77875         assumes that !malloc(0) means failure.
77876
77877 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77878
77879         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
77880
77881         alloca modernization/simplification for regex.
77882         * lib/regex.c: Remove portability cruft for alloca.  This no longer
77883         needs to be at the start of the file, and can be moved into
77884         regex_internal.h and simplified.
77885         * lib/regex_internal.h: Include <alloca.h>.
77886         (__libc_use_alloca) [!defined _LIBC]: New macro.
77887         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
77888         now works outside glibc.
77889
77890 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77891
77892         * config/srclist.txt: Add glibc bugs 1241, 1245.
77893
77894 2005-08-25  Jim Meyering  <jim@meyering.net>
77895
77896         * lib/open-safer.c: Include <config.h>.
77897         Otherwise, we'd lose LARGEFILE support in any file using
77898         e.g. "fcntl--.h"
77899
77900 2005-08-25  Bruno Haible  <bruno@clisp.org>
77901
77902         * m4/minmax.m4: Require autoconf 2.52.
77903         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
77904         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
77905         alternatives of translit over the alphabet.
77906         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
77907
77908 2005-08-24  Simon Josefsson  <jas@extundo.com>
77909
77910         * tests/test-getpass.c: New file.
77911
77912 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77913
77914         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
77915         for GNU regex features.
77916
77917 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77918
77919         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
77920         * lib/regex.h (regerror): Likewise.
77921
77922         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
77923         requires this.  (The code never needed it.)
77924
77925         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
77926         All uses of recently-renamed identifiers changed to use the new,
77927         POSIX-compliant names.  The code will build and run just fine
77928         without these changes, but it's better to eat our own dog food
77929         and use the standard-conforming names.
77930
77931         * lib/regex.h: Fix a multitude of POSIX name space violations.
77932         These changes have an effect only for programs that define
77933         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
77934         do not change anything for programs compiled in the normal way.
77935         Also, there is no effect on the ABI.
77936
77937         (_REGEX_SOURCE): New macro.
77938         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
77939         defined and _GNU_SOURCE is not; this fixes a name space violation.
77940
77941         Rename the following macros to obey POSIX requirements.
77942         The old names are still visible as macros if _REGEX_SOURCE is defined.
77943         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
77944         RE_BACKSLASH_ESCAPE_IN_LISTS.
77945         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
77946         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
77947         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
77948         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
77949         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
77950         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
77951         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
77952         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
77953         (REG_INTERVALS): renamed from RE_INTERVALS.
77954         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
77955         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
77956         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
77957         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
77958         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
77959         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
77960         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
77961         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
77962         RE_UNMATCHED_RIGHT_PAREN_ORD.
77963         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
77964         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
77965         (REG_DEBUG): renamed from RE_DEBUG.
77966         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
77967         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
77968         unusual, since we can't clash with the POSIX REG_ICASE.
77969         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
77970         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
77971         (REG_NO_SUB): renamed from RE_NO_SUB.
77972         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
77973         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
77974         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
77975         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
77976         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
77977         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
77978         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
77979         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
77980         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
77981         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
77982         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
77983         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
77984         RE_SYNTAX_POSIX_MINIMAL_BASIC.
77985         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
77986         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
77987         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
77988         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
77989         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
77990         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
77991         (REG_FIXED): Renamed from REGS_FIXED.
77992         (REG_NREGS): Renamed from RE_NREGS.
77993
77994         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
77995         of other REG_* macros, since POSIX says the user is allowed to
77996         #undef these macros selectively.
77997
77998         (reg_errcode_t): Update comment stating what other tables need
77999         to be consistent.
78000
78001         Rename the following enum values to obey POSIX requirements.
78002         The old names are still visible as macros.
78003         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
78004         is not defined, since GNU is supposed to be a superset of POSIX as
78005         much as possible, and since we want reg_errcode_t to be a signed
78006         type for implementation consistency.
78007         (_REG_NOERROR): Renamed from REG_NOERROR.
78008         (_REG_NOMATCH): Renamed from REG_NOMATCH.
78009         (_REG_BADPAT): Renamed from REG_BADPAT.
78010         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
78011         (_REG_ECTYPE): Renamed from REG_ECTYPE.
78012         (_REG_EESCAPE): Renamed from REG_EESCAPE.
78013         (_REG_ESUBREG): Renamed from REG_ESUBREG.
78014         (_REG_EBRACK): Renamed from REG_EBRACK.
78015         (_REG_EPAREN): Renamed from REG_EPAREN.
78016         (_REG_EBRACE): Renamed from REG_EBRACE.
78017         (_REG_BADBR): Renamed from REG_BADBR.
78018         (_REG_ERANGE): Renamed from REG_ERANGE.
78019         (_REG_ESPACE): Renamed from REG_ESPACE.
78020         (_REG_BADRPT): Renamed from REG_BADRPT.
78021         (_REG_EEND): Renamed from REG_EEND.
78022         (_REG_ESIZE): Renamed from REG_ESIZE.
78023         (_REG_ERPAREN): Renamed from REG_ERPAREN.
78024         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
78025         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
78026         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
78027         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
78028
78029         (_REG_RE_NAME, _REG_RM_NAME): New macros.
78030         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
78031         changed.  But support the old name if the new one is not defined
78032         and if _REGEX_SOURCE.
78033
78034         Change the following member names in struct re_pattern_buffer.
78035         The old names are still supported if !_REGEX_SOURCE.
78036         The new names are always supported, regardless of _REGEX_SOURCE.
78037         (re_buffer): Renamed from buffer.
78038         (re_allocated): Renamed from allocated.
78039         (re_used): Renamed from used.
78040         (re_syntax): Renamed from syntax.
78041         (re_fastmap): Renamed from fastmap.
78042         (re_translate): Renamed from translate.
78043         (re_can_be_null): Renamed from can_be_null.
78044         (re_regs_allocated): Renamed from regs_allocated.
78045         (re_fastmap_accurate): Renamed from fastmap_accurate.
78046         (re_no_sub): Renamed from no_sub.
78047         (re_not_bol): Renamed from not_bol.
78048         (re_not_eol): Renamed from not_eol.
78049         (re_newline_anchor): Renamed from newline_anchor.
78050
78051         Change the following member names in struct re_registers.
78052         The old names are still supported if !_REGEX_SOURCE.
78053         The new names are always supported, regardless of _REGEX_SOURCE.
78054         (rm_num_regs): Renamed from num_regs.
78055         (rm_start): Renamed from start.
78056         (rm_end): Renamed from end.
78057
78058         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
78059         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
78060         Prepend __ to parameter names.
78061
78062         Undo yesterday's changes.
78063
78064 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78065
78066         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
78067         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
78068         lib/regex.c.
78069
78070 2005-08-24  Jim Meyering  <jim@meyering.net>
78071
78072         Sync from coreutils.
78073         * m4/fcntl-safer.m4: New file.
78074
78075         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
78076         and object files for this module.
78077
78078 2005-08-24  Jim Meyering  <jim@meyering.net>
78079
78080         Sync from coreutils.
78081         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
78082
78083 2005-08-24  Jim Meyering  <jim@meyering.net>
78084
78085         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
78086         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
78087
78088 2005-08-24  Jim Meyering  <jim@meyering.net>
78089
78090         * modules/fcntl-safer: New module.
78091         * modules/fts (Depends-on): Add fcntl-safer.
78092         * MODULES.html.sh (File descriptor based Input/Output):
78093         Add fcntl-safer.
78094
78095 2005-08-24  Bruno Haible  <bruno@clisp.org>
78096
78097         Support for unit test modules.
78098         * modules/README: Mention tests modules.
78099         * modules/TEMPLATE-TESTS: New file.
78100         * gnulib-tool: New options --extract-tests-module, --with-tests and
78101         --tests-base (unused for the moment).
78102         (testsbase, inctests): New variables.
78103         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
78104         (func_verify_module): Exclude TEMPLATE-TESTS.
78105         (func_verify_nontests_module, func_verify_tests_module): New functions.
78106         (func_get_dependencies): Add implicit dependency for tests modules.
78107         (func_get_tests_module): New function.
78108         (func_modules_transitive_closure): When --with-tests was specified,
78109         include the unit tests as well, unless explicitly avoided.
78110         (func_emit_lib_Makefile_am): Ignore the tests modules here.
78111         (func_emit_tests_Makefile_am): New function.
78112         (func_create_testdir): When --with-tests was specified, emit a
78113         tests/ directory.
78114         * MODULES.html.sh (Future developments): Update.
78115
78116 2005-08-24  Bruno Haible  <bruno@clisp.org>
78117
78118         * modules/tls-tests: New file.
78119         * tests/test-tls.c: New file, from GNU gettext.
78120
78121 2005-08-24  Bruno Haible  <bruno@clisp.org>
78122
78123         * modules/lock-tests: New file.
78124         * tests/test-lock.c: New file, from GNU gettext.
78125
78126 2005-08-24  Bruno Haible  <bruno@clisp.org>
78127
78128         * lib/lock.h: Add multiple inclusion guard.
78129         * lib/tls.h: Add multiple inclusion guard.
78130
78131 2005-08-24  Bruno Haible  <bruno@clisp.org>
78132
78133         * gnulib-tool: Add support for the --aux-dir option to
78134         --create-testdir, --create-megatestdir, --test, --megatest.
78135         (func_create_testdir, func_create_megatestdir): Optionally emit a
78136         AC_CONFIG_AUX_DIR directive.
78137         (create-testdir, create-megatestdir, test, megatest): Provide a
78138         default value for $auxdir.
78139
78140 2005-08-24  Bruno Haible  <bruno@clisp.org>
78141
78142         * gnulib-tool (import): Use compound statement instead of subshell
78143         where possible.
78144
78145 2005-08-24  Bruno Haible  <bruno@clisp.org>
78146
78147         * gnulib-tool (import): Change --aux-dir default to "build-aux".
78148
78149 2005-08-24  Bruno Haible  <bruno@clisp.org>
78150
78151         * gnulib-tool (func_version): Update.
78152
78153 2005-08-24  Bruno Haible  <bruno@clisp.org>
78154
78155         * gnulib-tool (func_import, func_create_testdir,
78156         func_create_megatestdir): Quote all autoconf macro arguments.
78157
78158 2005-08-24  Bruno Haible  <bruno@clisp.org>
78159
78160         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
78161         option --force, because --force causes the aclocal.m4 of each
78162         subdirectory to be newer than the corresponding config.h.in.
78163
78164 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78165
78166         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
78167         All contents moved to gl_REGEX.
78168         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
78169         assume that it does.
78170
78171 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78172
78173         * lib/regex.h (REG_NOSYS)
78174         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
78175         Define, since POSIX requires it as of 2001.
78176         (_REG_ENOSYS)
78177         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
78178         New private symbol, used to keep the enum signed in all cases.
78179         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
78180         Youngman in
78181         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
78182
78183         * lib/regex_internal.c (re_string_skip_chars, register_state):
78184         (calc_state_hash):
78185         Remove forward decls; no longer needed now that we use prototypes.
78186         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
78187         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
78188         (clean_state_log_if_needed): Likewise.
78189
78190 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78191
78192         * config/srclist.txt: Add glibc bugs 1231-1233.
78193
78194 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78195
78196         Fix problems reported by Sam Steingold in
78197         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
78198         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
78199         assumed that reg_errcode_t is a signed type, which is not
78200         necessarily true if _XOPEN_SOURCE is not defined.
78201         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
78202         since some compilers warn about it otherwise.
78203
78204 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78205
78206         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
78207         (init_word_char, create_initial_state, duplicate_node_closure):
78208         (fetch_token, peek_token_bracket, build_range_exp):
78209         (build_collating_symbol): Remove forward decls; no longer needed
78210         now that we use prototypes.
78211
78212         * lib/regcomp.c:
78213         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
78214         (re_compile_fastmap_iter, regcomp, regerror, regfree):
78215         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
78216         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
78217         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
78218         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
78219         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
78220         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
78221         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
78222         (build_range_exp, build_collating_symbol, parse_bracket_exp):
78223         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
78224         (build_charclass, build_charclass_op, fetch_number, create_tree):
78225         (create_token_tree, mark_opt_subexp, duplicate_tree):
78226         Use prototypes rather than old-style definitions.
78227
78228         * lib/regex_internal.c:
78229         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
78230         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
78231         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78232         (re_string_reconstruct, re_string_peek_byte_case):
78233         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
78234         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78235         (re_node_set_init_copy, re_node_set_add_intersect):
78236         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78237         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78238         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78239         (re_acquire_state, re_acquire_state_context, register_state):
78240         (create_ci_newstate, create_cd_newstate, free_state):
78241         Likewise.
78242         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
78243         re_search_2):
78244         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
78245         (re_search_internal, prune_impossible_nodes):
78246         (acquire_init_state_context, check_matching, static):
78247         (check_halt_node_context, check_halt_state_context, proceed_next_node):
78248         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
78249         (update_regs, sift_states_backward, build_sifted_states):
78250         (clean_state_log_if_needed, merge_state_array):
78251         (update_cur_sifted_state, add_epsilon_src_nodes):
78252         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
78253         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
78254         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
78255         (find_recover_state, check_subexp_matching_top, transit_state_mb):
78256         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
78257         (check_arrival, check_arrival_add_next_nodes):
78258         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78259         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78260         (check_node_accept_bytes, check_node_accept, extend_buffers):
78261         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
78262         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
78263         (sift_ctx_init):
78264         Likewise.
78265
78266         * lib/regex_internal.h:
78267         (re_string_allocate, re_string_construct, re_string_reconstruct):
78268         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
78269         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
78270         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
78271         (re_string_context_at, re_string_peek_byte_case):
78272         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
78273         is defined, since we now use prototypes always.
78274
78275         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
78276         C89 or better.  All uses removed.
78277
78278 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78279
78280         * config/srclist.txt: Add glibc bugs 1220-1227.
78281
78282 2005-08-20  Jim Meyering  <jim@meyering.net>
78283
78284         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
78285         of unused local, dfa.
78286
78287 2005-08-20  Bruno Haible  <bruno@clisp.org>
78288
78289         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
78290
78291 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78292
78293         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
78294         (re_node_set_insert_last, re_dfa_add_node):
78295         Rename local variables to avoid GCC shadowing warnings.
78296
78297 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78298
78299         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
78300         [defined lint]: Suppress bogus uninitialized-variable warnings.
78301
78302         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
78303         and let the caller return REG_ESPACE if out of space.  This
78304         removes an uninitialied-variable warning with GCC 4.0.1, and also
78305         avoids taking the address of a local variable.  All callers
78306         changed.
78307
78308 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78309
78310         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
78311         $LIBCSRC/posix/regexec.c.
78312         Add glibc bug 1217 for regcomp.c.
78313
78314 2005-08-19  Jim Meyering  <jim@meyering.net>
78315
78316         * lib/regexec.c (proceed_next_node): Redo local variables to
78317         avoid GCC shadowing warnings.
78318
78319 2005-08-18  Bruno Haible  <bruno@clisp.org>
78320
78321         * lib/strstr.c (strstr): Fix return value in multibyte case.
78322         * lib/strcasestr.c (strcasestr): Likewise.
78323
78324 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78325
78326         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
78327
78328 2005-08-17  Jim Meyering  <jim@meyering.net>
78329
78330         Make the %s format (seconds since the epoch) work for a negative
78331         number and when used with a zero-padded field width, e.g. %015s.
78332
78333         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
78334         label so that it precedes the code to set `digits'.  Otherwise,
78335         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
78336         print `00-22'.  Now, it prints `-0022', as it should.
78337
78338 2005-08-17  Bruno Haible  <bruno@clisp.org>
78339
78340         * modules/strstr (Files): Add m4/mbrtowc.m4.
78341         (Depends-on): Add mbuiter.
78342
78343 2005-08-17  Bruno Haible  <bruno@clisp.org>
78344
78345         * modules/strcasestr: New file.
78346         * MODULES.html.sh (String handling, based on ANSI C 89): Add
78347         strcasestr.
78348
78349 2005-08-17  Bruno Haible  <bruno@clisp.org>
78350
78351         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
78352
78353 2005-08-17  Bruno Haible  <bruno@clisp.org>
78354
78355         * modules/mbuiter: New file.
78356         * MODULES.html.sh (Extended multibyte and wide character utilities):
78357         Add mbuiter.
78358
78359 2005-08-17  Bruno Haible  <bruno@clisp.org>
78360
78361         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
78362         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
78363
78364 2005-08-17  Bruno Haible  <bruno@clisp.org>
78365
78366         * m4/strcasestr.m4: New file.
78367
78368 2005-08-17  Bruno Haible  <bruno@clisp.org>
78369
78370         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
78371         * lib/strstr.c: Completely rewritten, with multibyte locale support.
78372
78373 2005-08-17  Bruno Haible  <bruno@clisp.org>
78374
78375         * lib/strcasestr.h: New file.
78376         * lib/strcasestr.c: New file.
78377
78378 2005-08-17  Bruno Haible  <bruno@clisp.org>
78379
78380         * lib/strcasecmp.c: Use mbuiter.h.
78381
78382 2005-08-17  Bruno Haible  <bruno@clisp.org>
78383
78384         * lib/mbuiter.h: New file.
78385
78386 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78387
78388         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
78389         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
78390         and gl_GETOPT are both invoked via different paths (as happens
78391         with GNU tar CVS because it uses both argp and getopt), the former
78392         wins.
78393
78394 2005-08-16  Bruno Haible  <bruno@clisp.org>
78395
78396         * modules/tls: New file.
78397         * MODULES.html.sh (Multithreading): Add tls.
78398
78399 2005-08-16  Bruno Haible  <bruno@clisp.org>
78400
78401         * modules/strnlen1: New file.
78402         * MODULES.html.sh (String handling): Add strnlen1.
78403
78404 2005-08-16  Bruno Haible  <bruno@clisp.org>
78405
78406         * modules/strcase (Files): Add m4/mbrtowc.m4.
78407         (Depends-on): Add strnlen1, mbchar.
78408
78409 2005-08-16  Bruno Haible  <bruno@clisp.org>
78410
78411         * modules/mbiter: New file.
78412         * MODULES.html.sh (Extended multibyte and wide character utilities):
78413         Add mbiter.
78414
78415 2005-08-16  Bruno Haible  <bruno@clisp.org>
78416
78417         * modules/mbfile: New file.
78418         * MODULES.html.sh (Extended multibyte and wide character utilities):
78419         Add mbfile.
78420
78421 2005-08-16  Bruno Haible  <bruno@clisp.org>
78422
78423         * modules/mbchar: New file.
78424         * MODULES.html.sh (Extended multibyte and wide character utilities):
78425         New section.
78426
78427 2005-08-16  Bruno Haible  <bruno@clisp.org>
78428
78429         * m4/tls.m4: New file, from GNU gettext.
78430
78431 2005-08-16  Bruno Haible  <bruno@clisp.org>
78432
78433         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
78434         always.
78435         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
78436
78437 2005-08-16  Bruno Haible  <bruno@clisp.org>
78438
78439         * m4/mbiter.m4: New file.
78440
78441 2005-08-16  Bruno Haible  <bruno@clisp.org>
78442
78443         * m4/mbfile.m4: New file.
78444
78445 2005-08-16  Bruno Haible  <bruno@clisp.org>
78446
78447         * m4/mbchar.m4: New file.
78448
78449 2005-08-16  Bruno Haible  <bruno@clisp.org>
78450
78451         * lib/tls.h: New file, from GNU gettext.
78452         * lib/tls.c: New file, from GNU gettext.
78453
78454 2005-08-16  Bruno Haible  <bruno@clisp.org>
78455
78456         * lib/strnlen1.h: New file.
78457         * lib/strnlen1.c: New file.
78458
78459 2005-08-16  Bruno Haible  <bruno@clisp.org>
78460
78461         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
78462         (mbi_init): Update.
78463         (mbi_avail, mbi_advance): Let the iteration end before the terminating
78464         NUL byte, not after it.
78465
78466 2005-08-16  Bruno Haible  <bruno@clisp.org>
78467
78468         * lib/strcase.h (strcasecmp): Add note in comments.
78469         * lib/strncasecmp.c: Use code from strcasecmp.c.
78470         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
78471         (strcasecmp): Work correctly in multibyte locales.
78472
78473 2005-08-16  Bruno Haible  <bruno@clisp.org>
78474
78475         * lib/mbiter.h: New file.
78476
78477 2005-08-16  Bruno Haible  <bruno@clisp.org>
78478
78479         * lib/mbfile.h: New file.
78480
78481 2005-08-16  Bruno Haible  <bruno@clisp.org>
78482
78483         * lib/mbchar.h: New file.
78484         * lib/mbchar.c: New file.
78485
78486 2005-08-16  Bruno Haible  <bruno@clisp.org>
78487
78488         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
78489         the valid ones. Makes the comparison operations transitive:
78490         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
78491         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
78492
78493 2005-08-15  Simon Josefsson  <jas@extundo.com>
78494
78495         * modules/ssize_t (License): Change to 'unlimited'.
78496
78497         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
78498
78499 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78500
78501         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
78502         Add comments for each pending glibc patch.
78503
78504 2005-08-15  Bruno Haible  <bruno@clisp.org>
78505
78506         * lib/regex.h (__restrict_arr): Don't define to __restrict if
78507         __cplusplus is defined.
78508
78509 2005-08-14  Jim Meyering  <jim@meyering.net>
78510
78511         Sync from coreutils.
78512
78513         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
78514         Use the hash-table-based cycle-detection code not just when
78515         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
78516         Reported by James Youngman in
78517         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
78518         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
78519         FTS_TIGHT_CYCLE_CHECK.
78520         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
78521         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
78522         once again.
78523         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
78524         * lib/fts.c (fd_safer): Remove decl.
78525         Include fcntl--.h rather than unistd-safer.h
78526         (fts_safe_changedir): Don't call fd_safer; no longer needed
78527         now that we include fcntl--.h.
78528
78529 2005-08-12  Simon Josefsson  <jas@extundo.com>
78530
78531         * modules/getndelim2: Use ssize_t module.
78532         * modules/getnline: Likewise.
78533         * modules/safe-read: Likewise.
78534         * modules/xreadlink: Likewise.
78535
78536         * modules/ssize_t: New file.
78537
78538 2005-08-12  Simon Josefsson  <jas@extundo.com>
78539
78540         * m4/readline.m4: Look for termcap, curses or ncurses if required.
78541
78542 2005-08-12  Simon Josefsson  <jas@extundo.com>
78543
78544         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78545         ssize_t.
78546
78547 2005-08-12  Simon Josefsson  <jas@extundo.com>
78548
78549         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
78550         readline, getdelim and check_version.
78551         (Support for systems lacking ISO C 99: Sizes of integer types):
78552         Add size_max.
78553
78554 2005-08-12  Bruno Haible  <bruno@clisp.org>
78555
78556         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
78557
78558 2005-08-11  Simon Josefsson  <jas@extundo.com>
78559
78560         * modules/readline: New file.
78561
78562         * modules/strnlen (Files): Add strnlen.h.
78563
78564 2005-08-11  Simon Josefsson  <jas@extundo.com>
78565
78566         * m4/readline.m4: New file.
78567
78568 2005-08-11  Simon Josefsson  <jas@extundo.com>
78569
78570         * lib/readline.h, readline.c: New file.
78571
78572 2005-08-11  Simon Josefsson  <jas@extundo.com>
78573
78574         * doc/gnulib.texi (Initial import, Finishing touches): Mention
78575         gl_AVOID.
78576
78577 2005-08-11  Bruno Haible  <bruno@clisp.org>
78578
78579         * lib/strnlen.h (strnlen): Change parameter name to match comment.
78580
78581 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
78582
78583         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
78584
78585 2005-08-10  Simon Josefsson  <jas@extundo.com>
78586
78587         * tests/test-iconvme.c: New file.
78588
78589 2005-08-10  Simon Josefsson  <jas@extundo.com>
78590
78591         * m4/strnlen.m4: New file.
78592
78593         * m4/strndup.m4: Don't check for strnlen declaration, done in
78594         strnlen.m4.
78595
78596 2005-08-10  Simon Josefsson  <jas@extundo.com>
78597
78598         * lib/strndup.c: Use strnlen.h.
78599
78600         * lib/strnlen.h: New file.
78601
78602 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78603
78604         * README: Typos.
78605
78606 2005-08-02  Simon Josefsson  <jas@extundo.com>
78607
78608         * modules/readline: New file.
78609
78610 2005-08-02  Simon Josefsson  <jas@extundo.com>
78611
78612         * modules/getdelim: New file.
78613
78614         * modules/getline: Rewrite, don't use getndelim2.
78615
78616 2005-08-02  Simon Josefsson  <jas@extundo.com>
78617
78618         * m4/getline.m4: Separate out getdelim stuff into separate module.
78619
78620         * m4/getdelim.m4: New file.
78621
78622 2005-08-02  Simon Josefsson  <jas@extundo.com>
78623
78624         * lib/getline.h, getline.c: Rewrite.
78625
78626         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
78627
78628 2005-07-31  Bruno Haible  <bruno@clisp.org>
78629
78630         * lib/lock.h (gl_lock_initializer): New macro.
78631         (gl_lock_define_initialized): Use it.
78632         (gl_rwlock_initializer): New macro.
78633         (gl_rwlock_define_initialized): Use it.
78634         (gl_recursive_lock_initializer): New macro.
78635         (gl_recursive_lock_define_initialized): Use it.
78636
78637 2005-07-30  Karl Berry  <karl@gnu.org>
78638
78639         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
78640         Report from Ben Pfaff, regarding getopt.
78641
78642 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
78643
78644         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
78645         normal way.
78646         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
78647         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
78648         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
78649         (gl_GETOPT): Use the new macros.  Most of the implementation
78650         is moved to the new macros.  This is for programs like Emacs
78651         that don't want all the functionality of gl_GETOPT.
78652
78653 2005-07-26  Bruno Haible  <bruno@clisp.org>
78654
78655         * m4/lock.m4: Update from GNU gettext.
78656
78657 2005-07-26  Bruno Haible  <bruno@clisp.org>
78658
78659         * lib/lock.h: Update from GNU gettext.
78660         * lib/lock.c: Update from GNU gettext.
78661
78662 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
78663
78664         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
78665         obsolescent AC_TRY_RUN.  Include the default includes files, for
78666         'exit'.
78667
78668 2005-07-24  Bruno Haible  <bruno@clisp.org>
78669
78670         * modules/visibility: New file.
78671         * MODULES.html.sh (Misc): Add visibility.
78672
78673 2005-07-24  Bruno Haible  <bruno@clisp.org>
78674
78675         * m4/visibility.m4: New file.
78676
78677 2005-07-24  Bruno Haible  <bruno@clisp.org>
78678
78679         * doc/visibility.texi: New file.
78680
78681 2005-07-22  Bruno Haible  <bruno@clisp.org>
78682
78683         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
78684         $(ALLOCA_H), redundant through BUILT_SOURCES.
78685         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
78686         redundant through BUILT_SOURCES.
78687         * modules/byteswap (Makefile.am): Remove explicit dependency on
78688         $(BYTESWAP_H), redundant through BUILT_SOURCES.
78689         * modules/fnmatch (Makefile.am): Remove explicit dependency on
78690         $(FNMATCH_H), redundant through BUILT_SOURCES.
78691         * modules/getopt (Makefile.am): Remove explicit dependency on
78692         $(GETOPT_H), redundant through BUILT_SOURCES.
78693         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
78694         redundant through BUILT_SOURCES.
78695         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
78696         redundant through BUILT_SOURCES.
78697         * modules/stdbool (Makefile.am): Remove explicit dependency on
78698         $(STDBOOL_H), redundant through BUILT_SOURCES.
78699         * modules/stdint (Makefile.am): Remove explicit dependency on
78700         $(STDINT_H), redundant through BUILT_SOURCES.
78701         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
78702         Remove explicit dependency on $(SYSEXITS_H).
78703         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
78704
78705 2005-07-18  Simon Josefsson  <jas@extundo.com>
78706
78707         * lib/check-version.c (check_version): Accept identical versions too.
78708
78709 2005-07-18  Bruno Haible  <bruno@clisp.org>
78710
78711         * modules/lock: New file.
78712         * MODULES.html.sh (Multithreading): New section.
78713
78714 2005-07-18  Bruno Haible  <bruno@clisp.org>
78715
78716         * m4/lock.m4: New file, from GNU gettext.
78717
78718 2005-07-18  Bruno Haible  <bruno@clisp.org>
78719
78720         * lib/lock.h: New file, from GNU gettext.
78721         * lib/lock.c: New file, from GNU gettext.
78722
78723 2005-07-18  Bruno Haible  <bruno@clisp.org>
78724
78725         * lib/lock.h (gl_once_t): New type.
78726         (gl_once_define, gl_once): New macros.
78727         * lib/lock.c (fresh_once): New variable.
78728         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
78729         functions.
78730
78731 2005-07-16  Simon Josefsson  <jas@extundo.com>
78732
78733         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
78734         workaround, suggested by Bruno.
78735
78736 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78737
78738         * modules/xalloc (Depends-on): Add xalloc-die.
78739         * modules/xvasprintf (Depends-on): Add xalloc-die.
78740
78741 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78742
78743         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
78744         with a minor change.
78745
78746 2005-07-15  Bruno Haible  <bruno@clisp.org>
78747
78748         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
78749         When using lib/poll.c, define poll as rpl_poll.
78750
78751 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
78752
78753         * modules/argp (Depends-on): Remove unlocked-io.
78754
78755 2005-07-14  Derek Price  <derek@ximbiot.com>
78756
78757         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
78758         for glob symlink bug.
78759
78760 2005-07-14  Bruno Haible  <bruno@clisp.org>
78761
78762         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
78763         Instead, test for *_unlocked function declarations directly.
78764
78765 2005-07-11  Simon Josefsson  <jas@extundo.com>
78766
78767         * modules/size_max: New file.
78768
78769         * modules/xsize: Depend on size_max module for size_max.m4.
78770
78771 2005-07-11  Simon Josefsson  <jas@extundo.com>
78772
78773         * lib/size_max.h: New file.
78774
78775 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
78776
78777         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
78778         copyright symbol and the year.
78779         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
78780         (version_etc_va): Use parameterized copyright notice.
78781         Reword to conform to the current GNU coding standards.
78782
78783 2005-07-11  Karl Berry  <karl@gnu.org>
78784
78785         * doc/gnulib.texi (Quoting): new node.
78786         (Initial import): more info, from Patrice.
78787
78788 2005-07-11  Bruno Haible  <bruno@clisp.org>
78789
78790         * gnulib-tool (func_usage): Document option --avoid.
78791         (Command line options): Handle --avoid.
78792         (func_acceptable): New function.
78793         (func_modules_transitive_closure): Use it.
78794
78795 2005-07-11  Bruno Haible  <bruno@clisp.org>
78796
78797         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
78798         Reported by Jim Meyering.
78799
78800 2005-07-10  Bruno Haible  <bruno@clisp.org>
78801
78802         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
78803         Needed when size_t is smaller than 'unsigned int'.
78804         Reported by Paul Eggert.
78805
78806 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78807
78808         * modules/argp (Depends-on): Add unlocked-io
78809
78810 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78811
78812         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
78813         block of defines.
78814
78815 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78816
78817         * config/srclist.txt: Comment out regcomp.c, since we have a porting
78818         fix now.
78819
78820 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
78821         and Paul Eggert  <eggert@cs.ucla.edu>
78822
78823         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
78824         in wint_t, not wchar_t.  Remove now-unnecessary cast.
78825
78826 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78827
78828         * modules/regex (Files): Add lib/regex_internal.c,
78829         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
78830         (Depends-on): Add extensions.
78831         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
78832
78833 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78834
78835         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
78836         pathconf.
78837         * m4/same.m4 (gl_SAME): Likewise.
78838         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
78839
78840         * m4/regex.m4: Adjust to new libc regex implementation.
78841         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
78842         all the .c and .h parts of (the new) regex.
78843         Quote the m4 stuff better.
78844         Check for RE_ICASE bug of old gnulib.
78845         Check for REG_STARTEND of recent libc.
78846         Rename local variables from jm_* to gl_*.
78847         Quote operand of "test -f".
78848         Say "recent enough" version of libc, not "version 2".
78849         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
78850         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
78851         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
78852         Remove check for btowc, isascii.
78853         Require AM_LANGINFO_CODESET.
78854
78855 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78856
78857         * lib/regex.c, regex.h: Sync from libc.
78858         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
78859         * lib/regexec.c:
78860         New files, synced from libc, except that regex_internal.h
78861         currently has a small porting fix.
78862
78863 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78864
78865         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
78866         regex_internal.c, regexec.c.
78867         Add regex_internal.h too, but as a comment, since the libc version
78868         is currently broken in gnulib mode.
78869
78870 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78871
78872         Support programs like Emacs that use gnulib but not gettext.
78873         * MODULES.html.sh (Internationalization functions): Add gettext-h.
78874         * modules/gettext-h: New file.
78875         * modules/gettext (Files): Remove lib/gettext.h.
78876         (Depends-on): Add gettext-h.
78877         (Makefile.am): Remove lib_SOURCES.
78878         * modules/argmatch, modules/c-stack, modules/closeout:
78879         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
78880         * modules/execute, modules/file-type, modules/getaddrinfo:
78881         * modules/getopt, modules/human, modules/javacomp:
78882         * modules/javaexec, modules/mkdir-p, modules/obstack:
78883         * modules/openat, modules/pagealign_alloc, modules/pipe:
78884         * modules/quotearg, modules/regex, modules/rpmatch:
78885         * modules/unicodeio, modules/userspec, modules/version-etc:
78886         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
78887         * modules/xsetenv:
78888         Depend on gettext-h, not gettext.
78889
78890 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78891
78892         * gnulib-tool (func_import): Add support for 'public domain' license.
78893         * modules/alloca, modules/atexit, modules/memmove:
78894         Now public domain, not GPL.
78895         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
78896         * modules/realloc, modules/strerror, modules/strtod:
78897         Now LGPL, not GPL.
78898
78899 2005-07-05  Bruno Haible  <bruno@clisp.org>
78900
78901         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
78902         autoconf CVS. Needed for mingw.
78903
78904 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78905
78906         Remove the dependency of the strftime module on the tzset module.
78907         * modules/strftime (Depends-on): Remove dependency on tzset.
78908
78909 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78910
78911         Remove the dependency of the strftime module on the tzset module.
78912         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
78913         gl_FUNC_TZSET_CLOBBER.
78914
78915 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78916
78917         Remove the dependency of the strftime module on the tzset module.
78918         * lib/strftime.c (my_strftime)
78919         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
78920         Copy the input structure, to work around some of the bug with
78921         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
78922         Solaris releases, you should also use the tzset module, but we won't
78923         require it as a dependency any more since we don't want LGPLed code
78924         to depend on GPLed code.
78925
78926 2005-07-02  Jim Meyering  <jim@meyering.net>
78927
78928         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
78929         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
78930         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
78931         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
78932
78933 2005-07-02  Jim Meyering  <jim@meyering.net>
78934
78935         * lib/backupfile.c (backup_args): Change a `0' to NULL.
78936
78937 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78938
78939         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
78940         declares only 'struct timespec;' (!).
78941
78942 2005-07-01  Jim Meyering  <jim@meyering.net>
78943
78944         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
78945         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
78946         * lib/save-cwd.c, tempname.c:
78947         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78948         and don't include <sys/file.h>).
78949
78950 2005-06-29  Jim Meyering  <jim@meyering.net>
78951
78952         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
78953         type name.  Use the variable name instead.
78954         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
78955         Likewise.
78956
78957 2005-06-28  Simon Josefsson  <jas@extundo.com>
78958
78959         * modules/check-version (Files): Add check-version.m4.
78960
78961 2005-06-28  Simon Josefsson  <jas@extundo.com>
78962
78963         * m4/check-version.m4: New file, suggested by Jim Meyering
78964         <jim@meyering.net>.
78965
78966 2005-06-28  Simon Josefsson  <jas@extundo.com>
78967
78968         * lib/check-version.h, lib/check-version.c: New files.
78969
78970 2005-06-28  Simon Josefsson  <jas@extundo.com>
78971
78972         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
78973         collision with global variable.  Better indentation.  Don't
78974         increment buffer pointer beyond buffer end.  Based on comments
78975         from Paul Eggert <eggert@cs.ucla.edu>.
78976
78977         * lib/base64.h: Indent.
78978
78979 2005-06-28  Simon Josefsson  <jas@extundo.com>
78980
78981         * doc/gnulib.texi (Library version handling): New section.
78982
78983 2005-06-28  Jim Meyering  <jim@meyering.net>
78984
78985         * check-module (find_included_lib_files): Hard-code another
78986         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
78987         but modules/fts-lgpl (correctly) does not list those files.
78988
78989         * modules/canonicalize (Files): Add lib/pathmax.h.
78990
78991 2005-06-25  Simon Josefsson  <jas@extundo.com>
78992
78993         * modules/check-version: New file.
78994
78995 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
78998         initializer of struct addrinfo, as an indication that we don't
78999         care how many members the structure has.
79000
79001 2005-06-24  Derek Price  <derek@ximbiot.com>
79002         and Bruno Haible  <bruno@clisp.org>
79003
79004         Remove stat module & update lstat.
79005         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
79006         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79007         * m4/stat.m4: Remove this file.
79008
79009 2005-06-24  Derek Price  <derek@ximbiot.com>
79010         and Bruno Haible  <bruno@clisp.org>
79011
79012         Remove stat module & update lstat.
79013         * lib/stat.c: Remove this file...
79014         (slash_aware_lstat): ...moving this content and its support...
79015         * lib/lstat.c (rpl_lstat): ...into here.
79016         * lib/lstat.h: New file.
79017
79018 2005-06-24  Derek Price  <derek@ximbiot.com>
79019         and Bruno Haible  <bruno@clisp.org>
79020
79021         Remove stat module & update lstat.
79022         * config/srclist.txt (libc sources): Remove stat.
79023
79024 2005-06-24  Derek Price  <derek@ximbiot.com>
79025         and Bruno Haible  <bruno@clisp.org>
79026
79027         Remove stat module & update lstat.
79028         * MODULES.html.sh (stat): Remove.
79029         * MODULES.html: Regenerated.
79030         * modules/lstat (Description): Correct function name.
79031         (Files): Add "lstat.h".
79032         (Depends-on): Remove stat, add xalloc, stat-macros.
79033         * modules/stat: Remove this file.
79034         (Include): Add "lstat.h", remove <sys/stat.h>.
79035
79036 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
79037
79038         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
79039         (ranged_convert): Don't save conversion in a temporary struct.
79040         This causes a warning with GCC 4.0.0, and anyway in the typical
79041         case it's not worth the extra 100 bytes or so of code.
79042         (ranged_convert, __mktime_internal): When calling a function via a
79043         pointer P, use P () rather than (*P) (), as we now assume C89 or
79044         better.
79045
79046 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79047
79048         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
79049         "who -r" failed to give output.  Problem reported by Tim Waugh.
79050
79051         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
79052         (xcalloc): Use it to avoid needless tests.
79053         Problem reported by Jim Meyering.
79054
79055 2005-06-20  Derek Price  <derek@ximbiot.com>
79056
79057         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
79058         unnecessary for Autoconfs > 2.59c.
79059
79060 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79061
79062         * lib/argp.h (__option_is_short): Check upper limit of
79063         __key. Isprint() requires its argument to have the value
79064         of an unsigned char or EOF.
79065
79066 2005-06-16  Jim Meyering  <jim@meyering.net>
79067
79068         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
79069         when either N or S is zero.
79070
79071 2005-06-16  Derek Price  <derek@ximbiot.com>
79072
79073         * m4/bison.m4: Declare YACC & YFLAGS precious.
79074
79075 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
79076
79077         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
79078         multibyte string or pattern, fall back on unibyte matching.
79079         Problem reported by James Youngman.
79080
79081 2005-06-08  Bruno Haible  <bruno@clisp.org>
79082
79083         * modules/csharpcomp: New file.
79084         * MODULES.html.sh (C#): Add csharpcomp.
79085
79086 2005-06-08  Bruno Haible  <bruno@clisp.org>
79087
79088         * m4/csharpcomp.m4: New file, from GNU gettext.
79089
79090 2005-06-08  Bruno Haible  <bruno@clisp.org>
79091
79092         * lib/csharpcomp.h: New file, from GNU gettext.
79093         * lib/csharpcomp.c: New file, from GNU gettext.
79094         * lib/csharpcomp.sh.in: New file, from GNU gettext.
79095
79096 2005-06-08  Bruno Haible  <bruno@clisp.org>
79097
79098         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
79099         warning on mingw.
79100
79101 2005-06-07  Derek Price  <derek@ximbiot.com>
79102
79103         Sync from CVS.
79104         * lib/glob_.h: Indent nested #ifdef.
79105
79106 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79107
79108         Sync from coreutils.
79109         Use "file name" when talking about file names, instead of "filename"
79110         or "path", as per the GNU coding standards.
79111         * lib/mkdir-p.c: Renamed from makepath.c.
79112         (make_dir_parents): Renamed from make_path.  All callers changed.
79113         * lib/mkdir-p.h: Likewise.  All includers changed.
79114         * lib/filenamecat.c: Renamed from path-concat.c.
79115         (file_name_concat): Renamed from path_concat.  All callers changed.
79116         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
79117         * lib/filenamecat.h: Likewise.  All includers changed.
79118         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
79119         in comments or local variable names.
79120         * lib/basename.c: Likewise.
79121         * lib/canonicalize.c, canonicalize.h: Likewise.
79122         * lib/dirname.c, dirname.h: Likewise.
79123         * lib/euidaccess.c: Likewise.
79124         * lib/exclude.c: Likewise
79125         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
79126         * lib/fsusage.c, fsuage.h: Likewise.
79127         * lib/fts.c, fts_.h: Likewise.
79128         * lib/getcwd.c: Likewise.
79129         * lib/getloadavg.c: Likewise.
79130         * lib/mkstemp.c: Likewise.
79131         * lib/mountlist.c, mountlist.h: Likewise.
79132         * lib/openat.c, openat.h: Likewise.
79133         * lib/readlink-stub.c: Likewise.
79134         * lib/readutmp.c, readutmp.h: Likewise.
79135         * lib/rename.c: Likewise.
79136         * lib/rmdir.c: Likewise.
79137         * lib/same.c: Likewise.
79138         * lib/savedir.c: Likewise.
79139         * lib/stripslash.c: Likewise.
79140         * lib/tempname.c: Likewise.
79141         * lib/xreadlink.c: Likewise.
79142         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
79143         All uses changed.
79144         * lib/exclude.h: Likewise.
79145
79146         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
79147         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79148         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
79149         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79150         * lib/pathmax.h: Include <limits.h> unconditionally, since other
79151         files have been getting away with it for years (MORE/BSD 4.3
79152         is extinct now).
79153         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
79154         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79155
79156         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
79157         Define to 256, not 255, as per modern POSIX.
79158
79159 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79160
79161         Sync from coreutils.
79162         Use "file name" when talking about file names, instead of "filename"
79163         or "path", as per the GNU coding standards.
79164         * MODULES.html.sh: mkdir-p renamed from makepath.
79165         filenamecat renamed from path-concat.
79166         * modules/filenamecat: Renamed from modules/path-concat.
79167         (Files): filenamecat.h and filenamecat.c renamed from
79168         path-concat.h and path-concat.c.
79169         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
79170         (Include): filenamecat.h, not path-concat.h.
79171         * modules/mkdir-p: Renamed from modules/makepath.
79172         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
79173         makepath.c.
79174         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
79175         (Include): mkdir-p.h, not makepath.h.
79176
79177 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79178
79179         Sync from coreutils.
79180         * m4/mkdir-p.m4: Renamed from makepath.m4.
79181         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
79182         Rename files from makepath.c to mkdir-p.c, and from
79183         makepath.h to mkdir-p.h.
79184         * m4/filenamecat.m4: Renamed from path-concat.m4.
79185         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
79186         Rename files from path-concat.c to filenamecat.c,
79187         and from path-concat.h to filenamecat.h.
79188         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
79189         "file name" in local variables or comments.
79190         * m4/rename.m4: Likewise.
79191
79192 2005-06-01  Bruno Haible  <bruno@clisp.org>
79193
79194         * modules/csharpexec: New file.
79195         * MODULES.html.sh (C#): New section.
79196
79197 2005-06-01  Bruno Haible  <bruno@clisp.org>
79198
79199         * m4/csharp.m4: New file, from GNU gettext.
79200         * m4/csharpexec.m4: New file, from GNU gettext.
79201
79202 2005-06-01  Bruno Haible  <bruno@clisp.org>
79203
79204         * lib/csharpexec.h: New file, from GNU gettext.
79205         * lib/csharpexec.c: New file, from GNU gettext.
79206         * lib/csharpexec.sh.in: New file, from GNU gettext.
79207
79208 2005-05-31  Derek Price  <derek@ximbiot.com>
79209             Paul Eggert  <eggert@cs.ucla.edu>
79210
79211         Sync from cvs.
79212         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79213
79214 2005-05-31  Derek Price  <derek@ximbiot.com>
79215             Paul Eggert  <eggert@cs.ucla.edu>
79216
79217         Sync from cvs.
79218         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79219
79220 2005-05-29  Derek Price  <derek@ximbiot.com>
79221
79222         * config/srclist.txt (glob_.h, glob.c): Add these files.
79223
79224 2005-05-29  Derek Price  <derek@ximbiot.com>
79225
79226         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
79227         * modules/glob: New file.
79228         * modules/getlogin_r: Add link to POSIX spec in description.
79229
79230 2005-05-29  Derek Price  <derek@ximbiot.com>
79231             Paul Eggert  <eggert@cs.ucla.edu>
79232
79233         * m4/glob.m4: New file.
79234
79235 2005-05-29  Derek Price  <derek@ximbiot.com>
79236             Paul Eggert  <eggert@cs.ucla.edu>
79237
79238         * lib/glob_.h, lib/glob.c: New files.
79239
79240 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79241
79242         * modules/fts (Files): Remove m4/inttypes-pri.m4.
79243         * modules/fts-lgpl (Depends-on): Remove gettext.
79244
79245 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79246
79247         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
79248         and don't require gt_INTTYPES_PRI.
79249
79250 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79251
79252         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
79253
79254         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
79255         the configuration hassle isn't worth it.
79256         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
79257         (LONGEST_MODIFIER, PRIuMAX): Remove.
79258
79259 2005-05-27  Bruno Haible  <bruno@clisp.org>
79260
79261         * lib/getlogin_r.h: Remove second include of <stddef.h>.
79262
79263 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
79264
79265         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
79266         _POSIX_PTHREAD_SEMANTICS for Solaris.
79267
79268 2005-05-25  Derek Price  <derek@ximbiot.com>
79269
79270         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
79271
79272 2005-05-25  Derek Price  <derek@ximbiot.com>
79273             Paul Eggert  <eggert@cs.ucla.edu>
79274
79275         * modules/getlogin_r, m4/getlogin_r.m4: New files.
79276         * lib/getlogin_r.c, getlogin_r.h: New files.
79277
79278 2005-05-25  Bruno Haible  <bruno@clisp.org>
79279             Derek Price  <derek@ximbiot.com>
79280
79281         * lib/getlogin_r.h: Simplify API documentation.
79282
79283 2005-05-23  Derek Price  <derek@ximbiot.com>
79284
79285         * modules/minmax (Files): Add m4/minmax.m4.
79286         (configure.ac): Add gl_MINMAX.
79287
79288 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79289
79290         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
79291         so that unistd-safer.h (GPL'ed code) need not be included.
79292
79293 2005-05-22  Bruno Haible  <bruno@clisp.org>
79294
79295         * m4/minmax.m4: New file.
79296         Based on a patch by Derek Price <derek@ximbiot.com>.
79297
79298 2005-05-22  Bruno Haible  <bruno@clisp.org>
79299
79300         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
79301         (INT64_MIN): Fix definition.
79302         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
79303
79304         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
79305         NEED_SIGNED_INT_TYPES.
79306
79307         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
79308         HAVE_SYSTEM_INTTYPES.
79309
79310 2005-05-22  Bruno Haible  <bruno@clisp.org>
79311
79312         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
79313         Also include <sys/param.h> if it defines MIN, MAX.
79314         Based on a patch by Derek Price <derek@ximbiot.com>.
79315
79316 2005-05-21  Jim Meyering  <jim@meyering.net>
79317
79318         * modules/fts (Files): Add m4/inttypes-pri.m4.
79319         (Depends-on): Add lstat and remove gettext.  Alphabetize.
79320
79321 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79322
79323         New fts module.
79324         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
79325         (setup_dir, free_dir): New functions.
79326         (enter_dir, leave_dir): Define trivial
79327         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
79328         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
79329         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
79330         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
79331         Move to fts-cycle.c.
79332         (fts_open): Use setup_dir.
79333         (fts_close): Use free_dir.
79334         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
79335         This adds a label and some gotos, but the alternatives were messier.
79336         Check for memory allocation failure when entering a dir.
79337         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
79338         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
79339         (FTS): New member fts_cycle, that is a union that contains the
79340         old active_dir_ht and cycle_state.  All uses changed to mention
79341         fts_cycle.ht and fts_cycle.state.
79342         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
79343         fts.c, with the following changes:
79344         (setup_dir, free_dir): New functions.
79345         (enter_dir): Now returns bool.  Return true if successful, false
79346         if memory exhausted.  All callers changed.
79347         Do not bother partly cleaning up on
79348         memory allocation failure; that is free_dir's job.
79349         However, free ad if hash_insert fails, to avoid memory leak.
79350         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
79351         fts->fts_options to see which union member to use.
79352
79353 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79354
79355         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
79356         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
79357
79358 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79359
79360         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
79361
79362 2005-05-20  Jim Meyering  <jim@meyering.net>
79363
79364         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
79365         Now a macro, to pacify GCC.
79366
79367 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79368
79369         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
79370         of -1.
79371
79372 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79373
79374         * lib/chown.c (rpl_chown): Return -1 on failure.
79375
79376 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79377
79378         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
79379         Don't check for stddef.h.
79380         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
79381         don't use its results.
79382         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
79383         since we include them unconditionally.  Don't require
79384         AM_STDBOOL_H, since stdbool is a prerequisite.
79385         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
79386         since we assume C89 or better.
79387         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
79388         as we don't use their results.
79389         Don't check for fchdir, memmove, memset, strrchr, as we use
79390         them unconditionally.
79391         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
79392         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
79393
79394 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79395
79396         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
79397         Include <stddef.h> unconditionally, since we assume C89 now.
79398         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
79399         * lib/fts.c: Include fts_.h first, to check interface.
79400         Do not include intprops.h; no longer needed.
79401         Include cycle-check.h and hash.h, since fts_.h no longer does.
79402         Remove unnecessary casts of closedir to void.
79403         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
79404         decide whether to decrement nlinks.
79405         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
79406         (FTS): Use struct hash_table * instead of Hash_table, so that
79407         we no longer need to include hash.h here.
79408
79409 2005-05-18  Jim Meyering  <jim@meyering.net>
79410
79411         * modules/dirfd (License): Change to LGPL.  Most of the code
79412         is already in the public domain.
79413
79414 2005-05-18  Jim Meyering  <jim@meyering.net>
79415
79416         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
79417         Reported by Yoann Vandoorselaere.
79418
79419 2005-05-17  Jim Meyering  <jim@meyering.net>
79420
79421         * m4/fts.m4: New file, from coreutils.
79422
79423 2005-05-17  Jim Meyering  <jim@meyering.net>
79424
79425         * lib/fts.c, lib/fts_.h: New files, from coreutils.
79426
79427 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79428
79429         Sync from coreutils.
79430         * m4/unlinkdir.m4: New file.
79431
79432 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79433
79434         Sync from coreutils.
79435         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
79436         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
79437         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
79438         White space changes only.
79439         * lib/makepath.c (make_path): Port to hosts where leading "//" is
79440         special.
79441         * lib/yesno.c: Include getline.h, not ctype.h.
79442         (yesno): Don't remove leading white space; POSIX doesn't allow it.
79443         Use getline to remove arbitrary restriction on response length.
79444
79445 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79446
79447         * config/srclist-update: Spell out "Street" in FSF postal
79448         mail address; this is the style the FSF seems to prefer.
79449
79450         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
79451         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
79452         this updates FSF postal mail address.
79453
79454         Sync from coreutils.
79455         * modules/unlinkdir: New file.
79456         * modules/yesno (Depends-on): Add getline.
79457         * MODULES.html.sh (File system functions): Add unlinkdir.
79458
79459 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79460
79461         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
79462         lib/strsep.h:
79463         Change the initial comment to refer to GPL, not LGPL.
79464         gnulib-tool will change it to LGPL as needed.
79465
79466         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
79467         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
79468         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
79469         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
79470         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
79471         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
79472         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
79473         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
79474         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
79475         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
79476         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
79477         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
79478         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
79479         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
79480         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
79481         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
79482         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
79483         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
79484         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
79485         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
79486         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
79487         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
79488         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
79489         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
79490         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
79491         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
79492         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
79493         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
79494         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
79495         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
79496         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
79497         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
79498         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
79499         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
79500         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
79501         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
79502         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
79503         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
79504         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
79505         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
79506         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
79507         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
79508         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
79509         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
79510         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
79511         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
79512         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
79513         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
79514         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
79515         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
79516         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79517         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
79518         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
79519         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
79520         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
79521         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
79522         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
79523         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
79524         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
79525         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
79526         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
79527         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
79528         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
79529         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
79530         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
79531         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
79532         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
79533         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
79534         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
79535         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
79536         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
79537         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
79538         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
79539         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
79540         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
79541         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
79542         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
79543         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
79544         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
79545         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
79546         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
79547         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
79548         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
79549         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
79550         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
79551         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
79552         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
79553         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
79554         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
79555         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
79556         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
79557         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
79558         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
79559         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
79560         lib/yesno.c, lib/yesno.h:
79561         Update FSF postal mail address.
79562
79563 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79564
79565         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
79566         tests/test-memmem.c, tests/test-stpncpy.c:
79567         Update FSF postal mail address.
79568
79569 2005-05-13  Bruno Haible  <bruno@clisp.org>
79570
79571         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
79572         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
79573         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
79574         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
79575         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
79576         Add support for 64-bit integers in the MSVC compiler.
79577
79578 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79579
79580         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
79581
79582 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
79583
79584         * gnulib-tool (func_import): Sort and uniquify recommended includes.
79585
79586 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
79587
79588         * doc/getdate.texi (General date syntax): Don't say that date
79589         date --iso-8601=ns generates acceptable dates; it doesn't yet.
79590         Problem reported by Nic Ferrier.
79591
79592 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79593
79594         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
79595         specified in ai_socktype. Fix invalid ai_protocol
79596         check. ai_protocol is usually set to 0 or depending on
79597         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
79598         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
79599         ai_socktype / ai_protocol in the returned addrinfo structure.
79600
79601 2005-05-10  Simon Josefsson  <jas@extundo.com>
79602
79603         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
79604         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79605
79606 2005-05-10  Karl Berry  <karl@gnu.org>
79607
79608         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
79609         (from http://www.gnu.org/licenses).
79610         * doc/COPYING.LIB: also rename to COPYING.LESSER.
79611         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
79612         fdl.texi suffices.
79613
79614 2005-05-10  Karl Berry  <karl@gnu.org>
79615
79616         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
79617         (COPYING.DOC): remove.
79618
79619         * config/srclist-update: new FSF address.
79620
79621 2005-05-10  Derek Price  <derek@ximbiot.com>
79622
79623         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
79624         possible.
79625
79626 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79627             Bruno Haible  <bruno@clisp.org>
79628
79629         * modules/inet_ntop: New file.
79630         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79631         inet_ntop.
79632
79633 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79634             Bruno Haible  <bruno@clisp.org>
79635
79636         * m4/inet_ntop.m4: New file.
79637
79638 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79639             Bruno Haible  <bruno@clisp.org>
79640
79641         * lib/inet_ntop.h: New file.
79642         * lib/inet_ntop.c: New file, from glibc with modifications.
79643
79644 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
79645
79646         * modules/time_r (License): Change to LGPL.
79647         * modules/extensions (License): Change to LGPL.  Actually,
79648         the license is more permissive than that, but currently gnulib-tool
79649         doesn't know how to handle more-permissive licenses.
79650
79651         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
79652         Problem reported by Dave Love.
79653
79654 2005-05-08  Jim Meyering  <jim@meyering.net>
79655
79656         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
79657         blank.
79658
79659 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79660
79661         * modules/argmatch (Depends-on): Add stdbool.
79662         * modules/backupfile (Depends-on): Likewise.
79663         * modules/chdir-long (Depends-on): Likewise.
79664         * modules/closeout (Depends-on): Likewise.
79665         * modules/cycle-check (Depends-on): Likewise.
79666         * modules/dirname (Depends-on): Likewise.
79667         * modules/fnmatch (Depends-on): Likewise.
79668         * modules/fsusage (Depends-on): Likewise.
79669         * modules/fwriteerror (Depends-on): Likewise.
79670         * modules/getcwd (Depends-on): Likewise.
79671         * modules/getloadavg (Depends-on): Likewise.
79672         * modules/hard-locale (Depends-on): Likewise.
79673         * modules/makepath (Depends-on): Likewise.
79674         * modules/mountlist (Depends-on): Likewise.
79675         * modules/nanosleep (Depends-on): Likewise.
79676         * modules/posixtm (Depends-on): Likewise.
79677         * modules/quotearg (Depends-on): Likewise.
79678         * modules/readtokens (Depends-on): Likewise.
79679         * modules/readtokens0 (Depends-on): Likewise.
79680         * modules/readutmp (Depends-on): Likewise.
79681         * modules/save-cwd (Depends-on): Likewise.
79682         * modules/strftime (Depends-on): Likewise.
79683         * modules/userspec (Depends-on): Likewise.
79684         * modules/utimecmp (Depends-on): Likewise.
79685         * modules/xgetcwd (Depends-on): Likewise.
79686         * modules/xnanosleep (Depends-on): Likewise.
79687         * modules/xstrtod (Depends-on): Likewise.
79688         * modules/yesno (Depends-on): Likewise.
79689
79690 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
79691
79692         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
79693         needless checks.
79694
79695 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79696
79697         Merge from coreutils.  Among other things,
79698         add bulletproofing for cases where stdin, stdout, or stderr are closed.
79699         * lib/fd-safer.c: New file.
79700         * lib/fcntl-safer.h, open-safer.c: Remove.
79701         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
79702         * lib/dup-safer.c: Include unistd-safer.h first.
79703         Don't include errno.h.
79704         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
79705         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
79706         * lib/file-type.c: Rely on file-type.h change.
79707         * lib/getloadavg.c: Include unistd-safer.h.
79708         (getloadavg): Use safer open.
79709         * lib/getusershell.c: Include "stdio-safer.h".
79710         (getusershell): Use safer fopen.
79711         * lib/long-options.c (long_options): Use NULL rather than 0.
79712         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
79713         'free'.
79714         * lib/modechange.c: Likewise.
79715         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
79716         (MODE_DONE): New constant.
79717         (struct mode_change): Remove 'next' member.
79718         (make_node_op_equals): New function; like the old one of the
79719         same name, except it allocates an array.
79720         (mode_compile, mode_create_from_ref): Use it.
79721         (mode_compile): Allocate result as an array, not a linked list.
79722         Parse octal string ourself, so that we catch mistakes like "+0".
79723         (mode_adjust): Arg is an array, not a linked list.
79724         * lib/modechange.c: Include stat-macros.h, xalloc.h.
79725         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
79726         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
79727         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
79728         Remove.  This is now stat-macros.h's job.
79729         (talloc): Remove.  All callers replaced by xalloc, so that
79730         our invokers don't have to worry about reporting memory failures.
79731         (make_node_op_equals): Remove.
79732         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79733         New constants.
79734         (struct mode_change): Moved here from modechange.h.
79735         (mode_append_entry): Remove.
79736         (mode_compile): Remove MASKED_OPS arg, since it encouraged
79737         apps to have incorrect behavior.  Use simpler algorithm for head
79738         and tail.  Don't futz with umask; that's now the job of mode_adjust.
79739         Detect more invalid usages rather than having somewhat-random behavior.
79740         Don't insert an "a=" action, as that leads to incorrect behavior.
79741         (mode_compile, mode_create_from_ref): Return NULL on error instead
79742         of an enum, since now there's only one way to have an error.  All
79743         callers changed.
79744         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
79745         at the correct time.  Simplify calculation of "+u" and its ilk.
79746         Don't mishandle "+X".
79747         (mode_free): Remove "register" and localize decls.
79748         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79749         (struct mode_change): Move to modechange.c; callers don't
79750         need to see this stuff.
79751         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
79752         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
79753         (mode_change, mode_adjust): Reflect the new signatures noted above.
79754         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
79755         that might redefine system include files.
79756         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
79757         (my_usleep): Use NULL rather than (void *) 0.
79758         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
79759         Use siginterrupt to specify that system calls should be interrupted.
79760         (rpl_nanosleep): Move initialization of suspended closer to call of
79761         my_usleep.
79762         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
79763         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
79764         (desirable_utmp_entry): New function.
79765         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
79766         using x2nrealloc, to simplify logic.
79767         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
79768         size calculation.  Do not assume utmp file is a regular file.
79769         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
79770         (READ_UTMP_CHECK_PIDS): New constant.
79771         * lib/save-cwd.c: Include unistd-safer.h.
79772         (save_cwd): Use fd_safer.
79773         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
79774         [!_LIBC] Include "stat-macros.h" instead.
79775         * lib/unistd-safer.h (fd_safer): New decl.
79776
79777 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79778
79779         * modules/getloadavg (Depends-on): Add unistd-safer.
79780         * modules/getusershell (Depends-on): Add stdio-safer.
79781         * modules/lstat (Depends-on): Remove xalloc.
79782         * modules/mkstemp (Depends-on): Add stat-macros.
79783         * modules/modechange (Depends-on): Remove xstrtol.
79784         Add stat-macros, xalloc.
79785         * modules/save-cwd (Depends-on): Add unistd-safer.
79786         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
79787         * modules/unistd-safer (Files): Add lib/fd-safer.c
79788         (Makefile.am): Remove lib_SOURCES.
79789
79790         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
79791         Remove fcntl-safer; unistd-safer supersedes it.
79792
79793 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79794
79795         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
79796         AC_HEADER_STAT.
79797         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
79798         (gl_PREREQ_CHOWN): Remove.
79799         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
79800         it.  Don't require AC_HEADER_STAT.
79801         (gl_PREREQ_LSTAT): Remove.
79802         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
79803         Don't require AC_HEADER_STAT.
79804         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
79805         (gl_PREREQ_RMDIR): Remove.
79806         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
79807         mention stat-macros.h or AC_HEADER_STAT, since we'll make
79808         the stat-macros module a prerequisite.
79809         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
79810         * m4/filemode.m4 (gl_FILEMODE): Likewise.
79811         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
79812         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
79813         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
79814         variable names.
79815         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
79816         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
79817         variable prefixes.
79818         * m4/fcntl-safer.m4: Remove.
79819         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
79820         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
79821         Invoke gl_PREREQ_FD_SAFER.
79822         (gl_PREREQ_FD_SAFER): New macro.
79823         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
79824         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
79825         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
79826         Remove duplicate call to AC_LIBOBJ(readutmp).
79827         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
79828
79829         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
79830         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
79831
79832 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79833
79834         * MODULES.html.sh (Misc): Add byteswap.
79835
79836 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79837
79838         * modules/getcwd (Depends-on): Add extensions.
79839         * modules/openat (Depends-on): Likewise.
79840
79841 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79842
79843         * modules/byteswap: New file.
79844
79845 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79846
79847         * m4/byteswap.m4: New file.
79848
79849 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79850
79851         * lib/byteswap_.h: New file.
79852
79853 2005-04-25  Karl Berry  <karl@gnu.org>
79854
79855         * m4/gettext.m4: Update from GNU gettext 0.14.4.
79856
79857 2005-04-25  Albert Chin  <china@thewrittenword.com>
79858
79859         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
79860         Toolkit C bug.
79861
79862 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
79863
79864         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
79865         (func_ln_if_changed): Remove forcibly for no error message
79866         in case file does not exist.
79867
79868 2005-04-19  Simon Josefsson  <jas@extundo.com>
79869
79870         * gnulib-tool (Options): Make --symlink mean --symbolic.
79871
79872 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
79873
79874         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
79875
79876 2005-04-16  Simon Josefsson  <jas@extundo.com>
79877
79878         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
79879
79880 2005-04-15  Simon Josefsson  <jas@extundo.com>
79881
79882         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
79883
79884 2005-04-15  Simon Josefsson  <jas@extundo.com>
79885
79886         * gnulib-tool: Rename --symlink to --symbolic.
79887
79888 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
79889
79890         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
79891         symbolic links to files instead of copying/moving.  Add --aux-dir,
79892         specifying directory relative --dir where auxiliary build tools
79893         are placed.
79894
79895 2005-04-14  Bruno Haible  <bruno@clisp.org>
79896
79897         * modules/allocsa (License): Change to LGPL.
79898         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79899
79900 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79901
79902         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
79903         that "UTC +1 second" continues to work.  Problem reported
79904         by Dmitry V. Levin.
79905         (relunit_snumber): New rule.
79906         (relunit): Use it.
79907
79908 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79909
79910         * lib/getdate.y (universal_time_zone_table): New constant.
79911         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
79912         universal_time_zone_table.
79913         (lookup_zone): Prefer universal_time_zone_table to
79914         local_time_zone_table, so that "GMT" time stamps are allowed in
79915         London during the summer.  Problem reported by Ian Abbott.
79916
79917 2005-04-12  Jim Meyering  <jim@meyering.net>
79918
79919         * lib/human.c (humblock): Set *options even when returning due to
79920         xstrtoumax conversion failure.  Thanks to a used-uninitialized
79921         warning from gcc-4.
79922
79923 2005-04-09  Jim Meyering  <jim@meyering.net>
79924
79925         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
79926         -Wuninitialized: initialize tm0.tm_year.
79927
79928 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
79929
79930         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
79931         count, since there's no maximum.  All uses changed.
79932         Add member dsts_seen.
79933         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
79934         not being INT_MAX.
79935         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
79936         Use pc_rels_seen to decide whther a date is absolute.
79937
79938         * lib/getdate.y (number): Don't overwrite year.
79939         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
79940         check.
79941
79942 2005-04-02  Simon Josefsson  <jas@extundo.com>
79943
79944         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
79945         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
79946
79947 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
79948
79949         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
79950         where no absolute path name can be longer than PATH_MAX.
79951
79952 2005-03-27  Jim Meyering  <jim@meyering.net>
79953
79954         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
79955
79956 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
79957
79958         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
79959         "one's complement" -> "ones' complement" in comment, as per Knuth.
79960         "value of type" -> "type or expression" in comment.
79961         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
79962
79963 2005-03-26  Jim Meyering  <jim@meyering.net>
79964
79965         Comment nits.
79966         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
79967         Correct typos: s/or/of/.
79968
79969 2005-03-26  Jim Meyering  <jim@meyering.net>
79970
79971         * modules/check-include-files: Move to ../ and rename to...
79972         * check-module: ...this.
79973
79974 2005-03-25  Jim Meyering  <jim@meyering.net>
79975
79976         * modules/xvasprintf (Files): Add xalloc.h.
79977
79978 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
79979
79980         * modules/gettext (Files): config/config.rpath ->
79981         build-aux/config.rpath
79982         * modules/iconv (Files): Likewise.
79983         Problem reported by Oskar Liljeblad.
79984
79985 2005-03-23  Jim Meyering  <jim@meyering.net>
79986
79987         * modules/check-include-files: New script to check for
79988         missing dependencies, multiple includes, etc.
79989
79990         * modules/c-strtold (Depends-on): Add xalloc.
79991         * modules/c-strtod (Depends-on): Add xalloc.
79992         * modules/hash (Depends-on): Add xalloc.
79993         (Files): Remove lib/xalloc.h.
79994
79995         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
79996         * modules/userspec (Files): Add lib/inttostr.h.
79997
79998 2005-03-23  Jim Meyering  <jim@meyering.net>
79999
80000         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
80001
80002 2005-03-22  Jim Meyering  <jim@meyering.net>
80003
80004         * modules/stat-macros: New module.
80005         * modules/canonicalize, modules/euidaccess, modules/file-type,
80006         * modules/filemode, modules/lchown, modules/makepath,
80007         * modules/rmdir, modules/stat: Depend on new stat-macros module
80008         rather than listing lib/stat-macros.h manually.
80009         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
80010
80011 2005-03-22  Jim Meyering  <jim@meyering.net>
80012
80013         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
80014
80015 2005-03-22  Bruno Haible  <bruno@clisp.org>
80016
80017         * config/srclist.txt: Replace target directory 'config' with
80018         'build-aux'.
80019         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
80020         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
80021         ../build-aux/.
80022
80023 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         * modules/chdir-long (Depends-on): Add mempcpy.
80026
80027         * modules/acl, modules/backupfile, modules/c-strtod,
80028         modules/c-strtold, modules/canon-host, modules/canonicalize,
80029         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
80030         modules/exclude, modules/exitfail, modules/file-type,
80031         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
80032         modules/getdate, modules/getline, modules/getpagesize,
80033         modules/getpass, modules/getugroups, modules/group-member,
80034         modules/hard-locale, modules/hash, modules/human, modules/idcache,
80035         modules/inttostr, modules/long-options, modules/makepath,
80036         modules/md5, modules/memcasecmp, modules/memcoll,
80037         modules/modechange, modules/mountlist, modules/path-concat,
80038         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
80039         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
80040         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
80041         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
80042         modules/strftime, modules/strndup, modules/strverscmp,
80043         modules/timespec, modules/unlocked-io, modules/userspec,
80044         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
80045         modules/yesno:
80046         Remove lib_SOURCES line from Makefile.am section, as this is now
80047         done automatically by the corresponding Autoconf macro.
80048
80049 2005-03-21  Jim Meyering  <jim@meyering.net>
80050
80051         Changes imported from coreutils.
80052
80053         * lib/cycle-check.c: Don't include xalloc.h.
80054
80055         * lib/path-concat.c: Don't include assert.h.
80056         (path_concat): Remove assertion that would have triggered
80057         for ABASE starting with more than one slash.
80058         Reported by Andreas Schwab.
80059
80060         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
80061         properly when ABASE is an absolute file name.
80062         Correct the description of this function.
80063         Include <assert.h>.
80064         Add an assertion and a test driver.
80065         This fixes a bug introduced on 2004-07-02.
80066         Andreas Schwab reported the resulting failure of cp --parents:
80067         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
80068
80069 2005-03-21  Jim Meyering  <jim@meyering.net>
80070
80071         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
80072         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
80073
80074 2005-03-21  Jim Meyering  <jim@meyering.net>
80075         and  Paul Eggert  <eggert@cs.ucla.edu>
80076
80077         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
80078         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
80079         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
80080         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
80081         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
80082         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
80083         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
80084         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
80085         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
80086         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
80087         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
80088         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
80089         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
80090         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
80091         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
80092         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
80093         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
80094         for these modules.
80095
80096 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
80097
80098         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
80099         (which shouldn't happen), generate nothing instead of returning 0
80100         immediately, so that nstrftime (NULL, ...) doesn't return 0.
80101
80102 2005-03-16  Bruno Haible  <bruno@clisp.org>
80103
80104         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
80105         HAVE_LONGLONG_64BIT.
80106
80107 2005-03-16  Bruno Haible  <bruno@clisp.org>
80108
80109         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
80110         HAVE_LONGLONG_64BIT.
80111
80112 2005-03-16  Bruno Haible  <bruno@clisp.org>
80113
80114         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
80115         HAVE_LONGLONG_64BIT.
80116
80117 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80118
80119         * lib/strftime.c (my_strftime): Prepend space to format so that we can
80120         reliably distinguish strftime failure from empty output on POSIX
80121         hosts.
80122
80123 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80124
80125         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
80126         (iconv_string): Don't guess a size-zero buffer, as that might cause
80127         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
80128         result would be 'too large', where 'too large' is (heuristically)
80129         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
80130         overflow concerns.  This will prevent some unwanted malloc failures
80131         when the inputs are very large.
80132
80133 2005-03-15  Karl Berry  <karl@gnu.org>
80134
80135         * config/srclist.txt (config.rpath): from gettext.
80136         * config/config.rpath: update.
80137
80138 2005-03-15  Bruno Haible  <bruno@clisp.org>
80139
80140         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
80141         to 'negate'.
80142
80143         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
80144         variable.
80145
80146         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
80147         results.
80148
80149 2005-03-14  Simon Josefsson  <jas@extundo.com>
80150
80151         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
80152         <fx@gnu.org>.
80153
80154 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
80155
80156         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
80157         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
80158         intprops.h.
80159         * lib/strtol.c: Likewise.
80160
80161 2005-03-14  Jim Meyering  <jim@meyering.net>
80162
80163         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
80164         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
80165         to be nonzero so that we (and caller) can detect the difference
80166         between a valid zero-length expansion and an error return, even
80167         when the underlying strftime fails before writing anything into
80168         that location.
80169
80170 2005-03-14  Bruno Haible  <bruno@clisp.org>
80171
80172         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
80173         Update from GNU gettext 0.14.3.
80174
80175 2005-03-10  Jim Meyering  <jim@meyering.net>
80176
80177         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
80178
80179 2005-03-10  Jim Meyering  <jim@meyering.net>
80180
80181         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
80182         so that this module works on systems without fchdir.
80183
80184 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80185
80186         Factor int-properties macros into a single file, except for
80187         glibc-related files.
80188         * lib/intprops.h: New file.
80189         * lib/getloadavg.c: Include it instead of limits.h.
80190         (INT_STRLEN_BOUND): Remove.
80191         * lib/human.c: Include intprops.h.
80192         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
80193         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
80194         302/1000.
80195         * lib/inttostr.h: Include intprops.h instead of limits.h.
80196         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
80197         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
80198         for consistency with intprops.h.
80199         (time_t_is_integer, twos_complement_arithmetic): Use them.
80200         * lib/sig2str.h: Include <signal.h>, intprops.h.
80201         (INT_STRLEN_BOUND): Remove.
80202         * lib/strftime.c (TYPE_SIGNED): Remove.
80203         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
80204         * lib/strtol.c: Adjust comments to match intprops.h.
80205         * lib/userspec.c: Include intprops.h.
80206         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
80207         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
80208         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
80209         instead of rolling our own expressions.
80210         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
80211
80212         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
80213         instead of int.
80214         (my_strftime): Do not mishandle years close to INT_MAX, by doing
80215         the right thing even if adding 1900 would overflow.  Similarly
80216         for tm_mon + 1 and tm_yday + 1.
80217         Make %Y always equivalent to %C%y, and similarly for %G and %g.
80218         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
80219         (DO_SIGNED_NUMBER): New macro.
80220         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
80221
80222 2005-03-07  Bruno Haible  <bruno@clisp.org>
80223
80224         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
80225
80226 2005-03-07  Bruno Haible  <bruno@clisp.org>
80227
80228         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
80229
80230 2005-03-04  Derek R. Price  <derek@ximbiot.com>
80231
80232         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
80233         (func_import): Only replace files via --import when they have actually
80234         changed.
80235
80236 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80237
80238         * m4/mmap-anon.m4: New file.
80239         * m4/pagealign_alloc.m4: New file.
80240
80241 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80242             Bruno Haible  <bruno@clisp.org>
80243
80244         * modules/pagealign_alloc: New file.
80245         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
80246
80247 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80248             Bruno Haible  <bruno@clisp.org>
80249
80250         * lib/pagealign_alloc.h: New file.
80251         * lib/pagealign_alloc.c: New file.
80252
80253 2005-03-03  Bruno Haible  <bruno@clisp.org>
80254
80255         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
80256         Use an all-permissive copyright notice, recommended by RMS.
80257
80258 2005-03-02  Bruno Haible  <bruno@clisp.org>
80259
80260         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
80261         of AIX, the replacement has to be done only after <string.h> is
80262         included, therefore not in config.h. stpncpy.h does the replacement,
80263         and stpncpy.c uses it.
80264
80265 2005-03-02  Bruno Haible  <bruno@clisp.org>
80266
80267         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
80268         stpncpy.c uses it.
80269
80270 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80271
80272         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
80273         The workaround isn't strictly needed for POSIX conformance, and
80274         it's too much of a pain to configure and maintain.  We'll ask
80275         people to fix their kernels instead.
80276         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
80277         (NANOSLEEP_BUG_WORKAROUND): Remove.
80278         (xnanosleep): Remove the workaround.
80279
80280 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80281
80282         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
80283         Reported by Derek Price.
80284         (Include): Add "timespec.h".
80285
80286         * modules/xnanosleep (Depends-on): Remove gethrxtime.
80287
80288 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80289
80290         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
80291         to detect nanosleep bug.
80292
80293 2005-03-01  Bruno Haible  <bruno@clisp.org>
80294
80295         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
80296
80297 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80298
80299         * modules/gethrxtime: New file.
80300         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
80301         (Depends-on): Add gethrxtime.
80302         (configure.ac): Add gl_XNANOSLEEP.
80303         (Makefile.am): Remove lib_SOURCES line.
80304
80305 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80306
80307         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
80308         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
80309
80310 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80311
80312         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
80313         * lib/timespec.h (gettime): Return void, since it always
80314         succeeds now.  All uses changed.
80315         * lib/gettime.c (gettime): Likewise.
80316         [HAVE_NANOTIME]: Prefer nanotime.
80317         Assume gettimeofday succeeds, as POSIX requires.
80318         Assime time () succeeds, since other code already does.
80319         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
80320         (timespec_subtract): Remove.
80321         (NANOSLEEP_BUG_WORKAROUND): New constant.
80322         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
80323         things considerably.  Use it only on GNU/Linux hosts, since the
80324         workaround shouldn't be needed elsewhere.
80325
80326 2005-02-24  Bruno Haible  <bruno@clisp.org>
80327
80328         * modules/gettext (Files): Add m4/glibc2.m4.
80329
80330 2005-02-24  Bruno Haible  <bruno@clisp.org>
80331
80332         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
80333         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
80334         * m4/progtest.m4:
80335         Update from GNU gettext 0.14.2.
80336         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
80337
80338 2005-02-24  Bruno Haible  <bruno@clisp.org>
80339
80340         * lib/localcharset.c: Update from GNU gettext 0.14.2.
80341         * lib/config.charset: Update from GNU gettext 0.14.2.
80342
80343 2005-02-24  Bruno Haible  <bruno@clisp.org>
80344
80345         * lib/gettext.h: Update from GNU gettext 0.14.2.
80346
80347 2005-02-23  Simon Josefsson  <jas@extundo.com>
80348
80349         * m4/iconvme.m4: New file.
80350
80351 2005-02-23  Jim Meyering  <jim@meyering.net>
80352
80353         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
80354         change.
80355         Thanks to Bruno Haible for catching it.
80356
80357 2005-02-22  Simon Josefsson  <jas@extundo.com>
80358
80359         * modules/iconvme: New file.
80360
80361         * MODULES.html.sh: Add iconvme.
80362
80363 2005-02-22  Simon Josefsson  <jas@extundo.com>
80364
80365         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
80366
80367 2005-02-22  Simon Josefsson  <jas@extundo.com>
80368
80369         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
80370
80371 2005-02-22  Jim Meyering  <jim@meyering.net>
80372
80373         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
80374         s/ifndef/ifdef/.
80375
80376 2005-02-20  Neil Conway  <neilc@samurai.com>
80377
80378         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
80379         returned by OSX/Darwin if the specified buffer is not large
80380         enough for the hostname.
80381
80382 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80383
80384         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
80385         pass it to _help, otherwise the latter coredumps trying to
80386         dereference state.root_argp.
80387
80388 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80389
80390         * modules/chdir-long (Depends-on): Add memrchr.
80391         * modules/memrchr (Files): Add lib/memrchr.h.
80392         (Include): "memrchr.h".
80393
80394 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80395
80396         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
80397
80398 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80399
80400         * lib/memrchr.h: New file.
80401         * lib/chdir-long.c: Include it.
80402         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
80403         Don't bother including stddef.h.
80404
80405 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
80406
80407         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
80408         inclusion.
80409         Include <sys/types.h>, for dev_t.
80410         (ME_DUMMY, ME_REMOTE): Move from here....
80411         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
80412         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
80413         Dmitry V. Levin.
80414         Include mountlist.h first, to test the interface.
80415
80416 2005-01-29  Bruno Haible  <bruno@clisp.org>
80417
80418         * lib/progname.c (program_name): Initialize.
80419         Needed when linking statically on MacOS X.
80420
80421 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80422
80423         Sync from coreutils.
80424         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
80425         (Depends-on): Add c-strtod.
80426         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
80427
80428 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80429
80430         Sync from coreutils.
80431         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
80432
80433         Remove files that are specific to coreutils.
80434         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
80435
80436 2005-01-28  Bruno Haible  <bruno@clisp.org>
80437
80438         * modules/javacomp: New file.
80439         * MODULES.html.sh (Java): Add javacomp.
80440
80441 2005-01-28  Bruno Haible  <bruno@clisp.org>
80442
80443         * m4/javacomp.m4: New file, from GNU gettext.
80444
80445 2005-01-28  Bruno Haible  <bruno@clisp.org>
80446
80447         * lib/javacomp.sh.in: New file, from GNU gettext.
80448         * lib/javacomp.h: New file, from GNU gettext.
80449         * lib/javacomp.c: New file, from GNU gettext.
80450
80451 2005-01-26  Simon Josefsson  <jas@extundo.com>
80452
80453         * lib/gai_strerror.c: Use GPL in header.
80454
80455 2005-01-26  Bruno Haible  <bruno@clisp.org>
80456
80457         * modules/javaexec: New file.
80458         * MODULES.html.sh (Java): Add javaexec.
80459
80460 2005-01-26  Bruno Haible  <bruno@clisp.org>
80461
80462         * m4/javaexec.m4: New file, from GNU gettext.
80463
80464 2005-01-26  Bruno Haible  <bruno@clisp.org>
80465
80466         * lib/javaexec.sh.in: New file, from GNU gettext.
80467         * lib/javaexec.h: New file, from GNU gettext.
80468         * lib/javaexec.c: New file, from GNU gettext.
80469
80470 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80471
80472         * modules/lchown (Depends-on): Remove lchown.h
80473
80474 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80475
80476         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
80477         must be defined if the header file was not found, in order
80478         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
80479
80480 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80481
80482         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
80483         initializers for struct pentry_state.
80484         (__argp_error): Check return value of __asprintf
80485         (__argp_failure): Translate error message
80486
80487         * lib/argp-parse.c: Removed braces around the expansion of N_()
80488
80489 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80490
80491         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
80492         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
80493         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
80494         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
80495         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
80496         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
80497         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
80498         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
80499         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
80500         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
80501         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
80502         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
80503         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
80504         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
80505         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
80506         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
80507         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
80508         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
80509         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
80510         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
80511         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
80512         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
80513         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
80514         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
80515         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
80516         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
80517         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
80518         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
80519         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
80520         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
80521         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
80522         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
80523         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
80524         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
80525         xstrtol.m4, xstrtoumax.m4, yesno.m4:
80526         Use an all-permissive copyright notice, recommended by RMS.
80527
80528 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
80529
80530         * modules/chdir-long (Depends-on): Remove mempcpy.
80531
80532 2005-01-21  Jim Meyering  <jim@meyering.net>
80533
80534         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
80535         same value as for Solaris 9.
80536
80537         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
80538         component length.  This included changing the parameter to be
80539         of type `char *' rather than `char const *'.
80540         * lib/chdir-long.h (chdir_long): Update prototype.
80541
80542         * lib/openat.c (fdopendir, fstatat): New functions.
80543         * lib/openat.h: Include headers required for use of DIR and struct
80544         stat.
80545         [AT_SYMLINK_NOFOLLOW]: Define.
80546         (fdopendir, fstatat): Add prototypes.
80547
80548 2005-01-21  Bruno Haible  <bruno@clisp.org>
80549
80550         * modules/classpath: New file.
80551         * MODULES.html.sh (Java): Add classpath.
80552
80553 2005-01-21  Bruno Haible  <bruno@clisp.org>
80554
80555         * lib/classpath.h: New file, from GNU gettext.
80556         * lib/classpath.c: New file, from GNU gettext.
80557
80558 2005-01-20  Simon Josefsson  <jas@extundo.com>
80559
80560         * modules/version-etc-fsf: New file.
80561
80562 2005-01-20  Simon Josefsson  <jas@extundo.com>
80563
80564         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
80565         * lib/version-etc.c: Remove version_etc_copyright.
80566         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
80567         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
80568
80569 2005-01-20  Simon Josefsson  <jas@extundo.com>
80570
80571         * lib/base64.h (isbase64): Add.
80572
80573         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
80574         using a unsigned prototype, don't inline.
80575         (base64_decode): Use it.
80576
80577 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80578
80579         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
80580         it.
80581
80582 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80583
80584         * lib/save-cwd.c (save_cwd): Remove code to support the case
80585         where fchdir is missing or flaky.
80586
80587 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80588
80589         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
80590
80591 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
80592
80593         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
80594         AC_LIBSOURCES now does this.
80595         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
80596         with new ullong_max module.
80597
80598 2005-01-19  Bruno Haible  <bruno@clisp.org>
80599
80600         * modules/sh-quote: New file.
80601         * MODULES.html.sh (Executing programs): Add sh-quote.
80602
80603 2005-01-19  Bruno Haible  <bruno@clisp.org>
80604
80605         * lib/sh-quote.h: New file, from GNU gettext.
80606         * lib/sh-quote.c: New file, from GNU gettext.
80607
80608 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80609
80610         Merge from coreutils.
80611         * m4/ullong_max.m4: New file.
80612         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
80613         (gl_MACROS): Assume localeconv exists.
80614
80615 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80616
80617         Merge changes from coreutils, as described below in several
80618         changelogs dated today.
80619
80620         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
80621         (O_DIRECTORY): Remove; not needed here, since "." must be
80622         a directory.  All uses removed.
80623         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
80624         universal on Suns, and we also need to test for IRIX.
80625         Revamp code to use 'if' rather than '#if'.
80626         Avoid unnecessary comparison of cwd->desc to 0.
80627
80628         * lib/utimens.c (futimens): Robustify the previous patch, by checking
80629         for known valid error numbers rather than observed invalid ones.
80630
80631 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80632
80633         * modules/ullong_max: New file.
80634
80635         * modules/chdir-long, modules/openat: New files.
80636         * modules/save-cwd (Depends-on): Depend on chdir-long.
80637         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
80638
80639 2005-01-18  Jim Meyering  <jim@meyering.net>
80640
80641         Merge from coreutils.
80642         * m4/chdir-long.m4, m4/openat.m4: New files.
80643         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
80644         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
80645         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
80646         is sane and DOES follow symlinks.  Besides, testing 20 different
80647         systems found no broken chown implementations.
80648         Prompted by a change in rsync's copy of this macro.
80649         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
80650
80651         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
80652
80653         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
80654         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
80655         NULL-means-set-to-current-time semantics.
80656         Remove temporary file immediately, rather than waiting
80657         for configure's at-exit trap code to do it.
80658
80659 2005-01-18  Jim Meyering  <jim@meyering.net>
80660
80661         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80662
80663         * lib/utimens.c (futimens): Account for the fact that futimes
80664         can also fail with errno == ENOSYS or errno == ENOENT.
80665         Patch from Dmitry V. Levin.
80666
80667         Change the name of the robust chdir function from chdir to chdir_long.
80668         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
80669         (restore_cwd): Use chdir_long, not chdir.
80670         * lib/chdir-long.c: Renamed from chdir.c.
80671         * lib/chdir-long.h: Renamed from chdir.h.
80672         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
80673         Hurd.
80674
80675 2005-01-18  Bruno Haible  <bruno@clisp.org>
80676
80677         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
80678         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
80679         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
80680         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
80681         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
80682         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
80683         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
80684         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
80685         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
80686         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
80687         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
80688         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
80689         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
80690         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
80691         Use an all-permissive copyright notice, recommended by RMS.
80692
80693 2005-01-18  Bob Proulx  <bob@proulx.com>
80694
80695         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
80696         simplify offsetof() macro construct to avoid compile failure with
80697         native HP-UX 11.0 ANSI C compiler.
80698
80699 2005-01-17  Bruno Haible  <bruno@clisp.org>
80700
80701         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
80702         redundant because stpncpy.m4 takes care of it.
80703
80704 2005-01-17  Bruno Haible  <bruno@clisp.org>
80705
80706         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
80707
80708 2005-01-17  Bruno Haible  <bruno@clisp.org>
80709
80710         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
80711         used.
80712
80713 2005-01-17  Bruno Haible  <bruno@clisp.org>
80714
80715         * lib/fwriteerror.h (fwriteerror): Change specification to include
80716         fclose.
80717         * lib/fwriteerror.c: Include <stdbool.h>.
80718         (fwriteerror): At the end, close the file stream. Record whether
80719         stdout was already closed.
80720
80721 2005-01-17  Bruno Haible  <bruno@clisp.org>
80722
80723         * lib/execute.c (environ): Declare if needed.
80724         * lib/pipe.c (environ): Likewise.
80725         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
80726
80727 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80728
80729         * modules/argp: Depend on vsnprintf
80730
80731 2005-01-10  Jim Meyering  <jim@meyering.net>
80732
80733         * modules/closeout (Depends-on): Add atexit.
80734
80735 2005-01-06  Bruno Haible  <bruno@clisp.org>
80736
80737         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
80738
80739 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80740
80741         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
80742         definitions to be after all include files, to avoid collisions.
80743         Problem reported by Bob Proulx.
80744
80745 2005-01-04  Jim Meyering  <jim@meyering.net>
80746
80747         Changes imported from coreutils.
80748         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
80749         as the mkstemp template, use a temporary directory and an
80750         8.3-friendly template to avoid trouble on systems like DJGPP.
80751         Reported by Juan M. Guerrero via Stepan Kasal.
80752         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
80753         close. Remove the temporary directory right away, rather than waiting
80754         for configure's at-exit trap code to do it.
80755         Suggestion from Stepan Kasal.
80756
80757 2005-01-01  Simon Josefsson  <jas@extundo.com>
80758
80759         * gnulib-tool: Print #include directives when --import'ing.
80760
80761 2004-12-28  Simon Josefsson  <jas@extundo.com>
80762
80763         * tests/test-base64.c: Include required header files.  Remove
80764         unused variables.
80765
80766 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80767
80768         * modules/error (Depends-on): Remove gettext.
80769
80770 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80771
80772         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
80773         not needed.  This removes a dependency on the gettext module.
80774         [defined _LIBC]: Do not include <libintl.h>; not needed.
80775
80776 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80777
80778         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
80779         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
80780
80781 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80782
80783         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
80784         HAVE_DECL_STRTOLD.
80785
80786 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80787
80788         * modules/getdate (Depends-on): Remove alloca-opt.
80789
80790 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80791
80792         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
80793
80794 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80795
80796         * lib/argp-parse.c: Include <stddef.h>.
80797         (alignof, alignto): New macros.
80798         (parser_init): Don't assume that void * is aligned sufficiently
80799         for struct option.
80800
80801         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
80802         need to extend the stack.
80803         (YYINITDEPTH): New macro, so that the initial stack isn't overly
80804         large.
80805
80806 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80807
80808         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
80809
80810 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80811
80812         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
80813         (2004-10-24) change.  Apparently this was a false alarm.
80814
80815         * modules/getdate: Depend on alloca-opt, not alloca.
80816
80817 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80818
80819         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
80820         Remove now-obsolete comment about AIX.
80821         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
80822         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
80823         (YYMAXDEPTH): New macro.
80824
80825 2004-12-18  Simon Josefsson  <jas@extundo.com>
80826
80827         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
80828
80829 2004-12-18  Bruno Haible  <bruno@clisp.org>
80830
80831         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
80832
80833 2004-12-18  Bruno Haible  <bruno@clisp.org>
80834
80835         * lib/fatal-signal.c (fatal_signals): Make non-const.
80836         (init_fatal_signals): New function.
80837         (uninstall_handlers, install_handlers): Ignore signals that were set to
80838         SIG_IGN.
80839         (at_fatal_signal): Call init_fatal_signals.
80840         (init_fatal_signal_set): Likewise. Ignore signals that were set to
80841         SIG_IGN.
80842         Reported by Paul Eggert.
80843
80844 2004-12-18  Bruno Haible  <bruno@clisp.org>
80845
80846         * doc/alloca.texi: New file.
80847         * doc/alloca-opt.texi: New file.
80848
80849 2004-12-17  Jim Meyering  <jim@meyering.net>
80850
80851         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
80852         Otherwise, install-sh could exit with improper exit status when
80853         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
80854
80855 2004-12-16  Simon Josefsson  <jas@extundo.com>
80856
80857         * tests/test-base64.c: Add license.
80858
80859 2004-12-15  Stepan Kasal  <address@hidden>
80860
80861         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
80862
80863 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
80864
80865         * modules/getcwd (Files): Add m4/d-ino.m4.
80866         Suggested by Mark D. Baushke.
80867
80868 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80869
80870         * lib/getdate.y (textint): New member "negative".
80871         (time_zone_hhmm): New function.
80872         Expect 14 shift-reduce conflicts, not 13.
80873         (o_colon_minutes): New rule.
80874         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
80875         (yylex): Set the "negative" member of signed numbers.
80876
80877 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80878
80879         * doc/getdate.texi (Time of day items, Time zone items):
80880         Describe new formats +00:00, UTC+00:00.
80881
80882 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80883
80884         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
80885         spurious "-l"s.  Problem reported by Stepan Kasal.
80886
80887 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
80888
80889         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
80890         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
80891
80892 2004-12-04  Simon Josefsson  <jas@extundo.com>
80893
80894         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
80895         Vandoorselaere <yoann@prelude-ids.org>.
80896
80897 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80898
80899         Changes imported from coreutils.
80900         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
80901         exist.
80902         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
80903
80904 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80905
80906         Changes imported from coreutils.
80907         * lib/hard-locale.c: Assume <locale.h> exists.
80908         Include "strdup.h".
80909         (GLIBC_VERSION): New macro.
80910         (hard_locale): Assume setlocale exists.
80911         Rewrite to avoid #ifdef.
80912         Use strdup rather than malloc + strcpy.
80913         * lib/human.c: Assume <locale.h> exists.
80914         (human_readable): Assume localeconv exists.
80915
80916 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80917
80918         * modules/hard-locale (Depends-on): Add strdup.
80919
80920 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
80921
80922         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
80923         convert T2, not T.  (Imported from libc.)
80924
80925 2004-11-30  Simon Josefsson  <jas@extundo.com>
80926
80927         * modules/restrict (License): Change to LGPL.
80928
80929 2004-11-30  Simon Josefsson  <jas@extundo.com>
80930
80931         * m4/restrict.m4: Add copyright and copying conditions.
80932
80933 2004-11-30  Simon Josefsson  <jas@extundo.com>
80934
80935         * m4/base64.m4: New file.
80936
80937 2004-11-30  Simon Josefsson  <jas@extundo.com>
80938
80939         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
80940         base64.
80941
80942         * tests/test-base64.c: New file.
80943
80944         * modules/base64: New file.
80945
80946 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80947
80948         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
80949         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
80950
80951         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
80952
80953 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80954
80955         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
80956         (__getcwd.c): Don't restore errno; glibc doesn't.
80957         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
80958         first, falling back to our code only if its results look suspicious.
80959         Ensure that the resulting buffer is only as large as necessary.
80960
80961         * lib/readutmp.c: Include readutmp.h first.
80962         Include <errno.h>, since readutmp.h no longer does that.
80963         * lib/readutmp.h: Don't include <errno.h>,
80964         <sys/param.h>, <time.h>; not needed to establish interface.
80965         (errno): Remove decl.
80966         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
80967         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
80968         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
80969
80970 2004-11-28  Simon Josefsson  <jas@extundo.com>
80971
80972         * lib/base64.h, base64.c: New file.
80973
80974 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
80975
80976         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
80977
80978 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
80979
80980         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
80981         (Depends-on): Remove pathmax, same.  Add mempcpy.
80982         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
80983         (Makefile.am): Append getcwd.h to lib_SOURCES.
80984         (Include): Add getcwd.h.
80985         (Maintainer): Change from Jim Meyering to "all, glibc",
80986         since getdate now uses intended-for-glibc code.
80987         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
80988         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
80989
80990 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80991
80992         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
80993         HP's ANSI C compiler.
80994         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
80995         Declaring int functions causes warnings on some modern systems and
80996         shouldn't be needed to compile on ancient ones.
80997         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
80998         defined.
80999
81000         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
81001         with the following changes.
81002         (__set_errno): Parenthesize properly.
81003         Include <stdbool.h>.
81004         (MIN, MAX, MATCHING_INO): New macros.
81005         (__getcwd): Define with prototype, not K&R form.
81006         Use heuristics to allocate default buffer on stack if possible.
81007         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
81008         behavior, and to avoid the PATH_MAX limit when computing
81009         ../../../../...
81010         Use MATCHING_INO to compare inode number to file.
81011         Check for arithmetic overflow in size calculations.
81012         Fix bug in reallocation of dot array that caused getcwd to fail
81013         on directories nested deeper than 75.
81014         Be more careful about saving errno on error.
81015         Do not use realloc; use only free+malloc, as this is a bit
81016         more flexible and avoids a needless copy operation.
81017         Do not inspect st_dev and st_ino for symbolic links; POSIX
81018         doesn't specify the latter.
81019         Check for closedir errors.
81020         Avoid needless casts.
81021         Use "#ifdef weak_alias" around weak_alias, to be like other
81022         glibc code.
81023         The following changes to getcwd.c have effect only when used in
81024         gnulib; they have no effect inside glibc proper.
81025         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
81026         as alloca isn't used.
81027         (alloca, __alloca): Likewise.
81028         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
81029         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81030         unconditionally, as gnulib assumes C89 or better.
81031         Do not include <sys/param.h>.
81032         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
81033         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
81034         better.
81035         (NULL) [!defined NULL]: Remove; we assume C89 or better.
81036         Include <dirent.h> in a way that is compatible with modern Autoconf.
81037         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
81038         New macros, if not already defined.
81039         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
81040         Use "_LIBC", not "defined _LIBC", for consistency.
81041         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
81042         a mempcpy module.
81043         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
81044         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
81045         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
81046         credit only to Jim Meyering and adjust the copyright dates.
81047         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
81048         <stdlib.h>, <unistd.h>, "pathmax.h".
81049         Instead, include "xgetcwd.h" (first) and "getcwd.h".
81050         (INITIAL_BUFFER_SIZE): Remove.
81051         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
81052
81053 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81054
81055         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
81056         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
81057         Use the _ONCE methods, for efficiency.
81058         Check for fcntl.h.  In test program, include <errno.h>
81059         and <fcntl.h> if available.  Remove old K&R cruft from
81060         test program.  Check for common errors in GNU/Linux,
81061         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
81062         don't do AC_LIBOBJ, as that's getcwd.m4's job.
81063         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
81064         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
81065         name accordingly.
81066         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
81067         accommodate new getcwd.c.
81068         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
81069         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
81070         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
81071         that's all we need now.
81072
81073 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81074
81075         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
81076         argp-parse.c depends on getopt internals, that means we should
81077         always use our getopt, to be on the safe side.
81078         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
81079         order not to spoil the result of an eventual previous invocation
81080         of gl_GETOPT_SUBSTITUTE.
81081
81082 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81083
81084         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
81085         redefinition warnings. To avoid them, include the defines
81086         in `#if !defined __need_getopt ... #endif'. The only place
81087         where __getopt_argv_const is used is in definitions
81088         of getopt_long and getopt_long_only below, which are as well
81089         protected by `#ifndef __need_getopt'.
81090         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
81091         __need_getopt after including <stdio.h> and <unistd.h> These
81092         headers might have defined it.
81093
81094 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81095
81096         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
81097
81098 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81099
81100         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
81101         (futimens): New function, which uses futimes if available.
81102         (futimens, utimens): Support timespec==NULL, with same semantics
81103         as utime and utimens.
81104         * lib/utimens.h (futimens): New decl.
81105
81106 2004-11-23  Jim Meyering  <jim@meyering.net>
81107
81108         * lib/getopt_.h: Remove trailing blanks.
81109
81110 2004-11-23  Jim Meyering  <jim@meyering.net>
81111
81112         * lib/__fpending.c: Add comment.
81113
81114 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
81115
81116         * modules/canonicalize (Depends-on): Add xreadlink.
81117         Problem reported by James Youngman.
81118
81119 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
81120
81121         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
81122         New macros.
81123         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
81124         optopt): Use them instead of invoking ## directly; otherwise, the
81125         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
81126
81127 2004-11-19  Bruno Haible  <bruno@clisp.org>
81128
81129         * lib/strtok_r.c: Move comments from here...
81130         * lib/strtok_r.h: ... to here.
81131
81132 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81133
81134         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
81135         implementations that mishandle size_t overflow.
81136
81137 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81138
81139         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
81140         might fail.  Problem reported by Yoann Vandoorselaere.
81141         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
81142         implementations that mishandle size_t overflow.
81143
81144 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81145
81146         * modules/canon-host (Depends-on): Add strdup.
81147
81148 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81149
81150         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
81151
81152 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81153
81154         * lib/canon-host.c: Include "strdup.h".
81155         (canon_host): Use getaddrinfo if available, so that IPv6 works.
81156         Use strdup instead of malloc/strcpy to duplicate strings.
81157
81158         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
81159         (human_space_before_unit): New constant.
81160         * lib/human.c (human_readable): Support it.
81161
81162         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
81163         (xgetcwd): Set errno correctly when failing.
81164         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
81165         the failure is actually due to a PATH_MAX problem.
81166
81167         Further getopt changes to make it more likely that glibc will
81168         buy the changes back.
81169         * lib/getopt.c (POSIXLY_CORRECT): New constant.
81170         (getopt): Use it, so to preserve glibc semantic
81171         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
81172         when compiling for libc.
81173         * lib/getopt_.h (__getopt_argv_const): Bring it back.
81174         (getopt_long, getopt_long_only): Use it.
81175
81176         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81177         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
81178         (getopt): Argv is now char * const *, as per standard.
81179         (_getopt_internal_r, _getopt_internal): Argv is now char **,
81180         not char *__getopt_argv_const *.
81181         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81182         _getopt_long_only_r): Likewise.
81183         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
81184         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81185         _getopt_long_r, _getopt_long_only_r): Likewise.
81186         * lib/getopt_.h (__getopt_argv_const): Remove.
81187         (getopt): Argv is now char * const *, as per standard.
81188
81189         * lib/getdate.y (tORDINAL): New token.
81190         (day, relunit): Allow it for relative times.
81191         (relative_time_table): Use tORDINAL for ordinals.
81192
81193 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81194
81195         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
81196         Document that "second" isn't allowed as an ordinal number.
81197
81198 2004-11-16  Jim Meyering  <jim@meyering.net>
81199
81200         * modules/closeout (Depends-on): Add fpending.
81201
81202 2004-11-15  Jim Meyering  <jim@meyering.net>
81203
81204         * lib/closeout.c: Include "__fpending.h" once again.
81205         Include <stdbool.h>.
81206         (close_stdout): Don't fail just because stdout was closed initially,
81207         since some programs don't write to stdout in the normal course of
81208         operation (other than --version and --help), and we don't want this
81209         function to make e.g. `touch file >&-' fail.
81210         But do fail if it was closed and someone has tried to write to it.
81211         E.g., `printf foo >&-' must fail.
81212
81213 2004-11-13  Jim Meyering  <jim@meyering.net>
81214
81215         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
81216
81217 2004-11-12  Simon Josefsson  <jas@extundo.com>
81218
81219         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
81220         small doc fix is still pending.
81221
81222 2004-11-11  Simon Josefsson  <jas@extundo.com>
81223
81224         * modules/strtok_r: New file.
81225
81226         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81227         strtok_r.
81228
81229 2004-11-11  Simon Josefsson  <jas@extundo.com>
81230
81231         * m4/strtok_r.m4: New file.
81232
81233         * m4/getopt.m4: Replace opterr.
81234
81235 2004-11-11  Simon Josefsson  <jas@extundo.com>
81236
81237         * lib/strtok_r.h, strtok_r.c: New file.
81238
81239 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81240
81241         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
81242         of replacing opterr, getopt, etc.  This should handle the
81243         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
81244
81245 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81246
81247         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
81248         we can stop lying to compilers about the constness of argv when we
81249         are compiled outside glibc.
81250         (getopt, getopt_long, getopt_long_only): Use it.
81251         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81252         _getopt_internal, getopt): Likewise.
81253         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81254         _getopt_long_only_r): Likewise.
81255         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81256         _getopt_long_r, _getopt_long_only_r): Likewise.
81257
81258         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
81259         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
81260         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
81261         the other external symbols.
81262         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
81263         declaration, since the above renaming now works around collisions.
81264
81265 2004-11-11  Jim Meyering  <jim@meyering.net>
81266
81267         * lib/linebreak.c: Remove trailing blanks.
81268         * lib/alloca_.h: Likewise.
81269         * lib/acosl.c: Likewise.
81270         * lib/euidaccess.c: Likewise.
81271         * lib/allocsa.h: Likewise.
81272
81273 2004-11-10  Simon Josefsson  <jas@extundo.com>
81274
81275         * m4/getaddrinfo.m4: New file.
81276
81277 2004-11-10  Simon Josefsson  <jas@extundo.com>
81278
81279         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
81280
81281 2004-11-10  Simon Josefsson  <jas@extundo.com>
81282
81283         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81284         getaddrinfo.
81285
81286         * modules/getaddrinfo: New file.
81287
81288 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81289
81290         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
81291
81292 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81293
81294         * lib/mktime.c (SHR): New macro, which is a portable
81295         substitute for >> that should work even on Crays.
81296         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
81297         Problem reported by Mark D. Baushke in
81298         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
81299         * lib/getdate.y (SHR): Likewise.
81300         (tm_diff): Use it.
81301         * lib/strftime.c (SHR): Likewise.
81302         (tm_diff): Use it.
81303         * lib/quotearg.c (struct quoting_options): Use unsigned int for
81304         quote_these_too, so that right shifts are well defined.  All uses
81305         changed.
81306
81307 2004-11-10  Jim Meyering  <jim@meyering.net>
81308
81309         Ensure that no close failure goes unreported.
81310         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
81311         return early when it seems there's nothing to flush.
81312         Don't include __fpending.h.
81313
81314 2004-11-10  Jim Meyering  <jim@meyering.net>
81315
81316         * modules/closeout (Depends-on): Remove fpending.
81317
81318 2004-11-10  Jim Meyering  <jim@meyering.net>
81319
81320         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
81321
81322 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81323
81324         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
81325         gl_FUNC_STRFTIME.
81326         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
81327         and AC_REQUIRE when possible, to avoid duplicate checks.
81328         Check for <wchar.h>.
81329
81330 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81331
81332         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
81333
81334 2004-11-09  Bruno Haible  <bruno@clisp.org>
81335
81336         * m4/sockpfaf.m4: New file.
81337
81338 2004-11-05  Bruno Haible  <bruno@clisp.org>
81339
81340         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
81341         Reported by Mark D. Baushke <mdb@cvshome.org>.
81342
81343 2004-11-04  Bruno Haible  <bruno@clisp.org>
81344
81345         2004-09-11  Bruno Haible  <bruno@clisp.org>
81346                 * allocsa.valgrind: New file.
81347         2004-02-06  Bruno Haible  <bruno@clisp.org>
81348                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
81349                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
81350                 Reported by Christopher Seip <chris.seip@hp.com>.
81351
81352 2004-11-04  Bruno Haible  <bruno@clisp.org>
81353
81354         * modules/allocsa (Files): Add lib/allocsa.valgrind.
81355         (Makefile.am): Distribute it.
81356
81357 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
81358
81359         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
81360         with errno == ERANGE if the buffer is too small.
81361         Problem reported by Mark D. Baushke.
81362
81363 2004-11-03  Albert Chin  <china@thewrittenword.com>
81364             Paul Eggert  <eggert@cs.ucla.edu>
81365
81366         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
81367         equivalent, substitute $ac_type for equivalent type rather than
81368         blindly using uint32_t *always* which won't work if uint32_t is not
81369         available.  Define _UINT32_T to work around typedef of uint32_t if
81370         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
81371         2.5.1.
81372
81373 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81374
81375         * m4/jm-macros.m4: Sync from coreutils.
81376         (gl_MACROS): Check for mbrlen, for pathchk.
81377         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
81378
81379 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81380
81381         * lib/xreadlink.c (MAXSIZE): New macro.
81382         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
81383         size does not exceed MAXSIZE.  Avoid cast.
81384         As suggested by Mark D. Baushke in
81385         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
81386         if readlink fails with buffer size just under MAXSIZE, try again
81387         with MAXSIZE.
81388
81389 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81390
81391         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
81392
81393 2004-11-02  Derek R. Price  <derek@ximbiot.com>
81394         and  Paul Eggert  <eggert@cs.ucla.edu>
81395
81396         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
81397         (get_date): Overparenthesize to avoid GCC warning.
81398
81399 2004-11-02  Bruno Haible  <bruno@clisp.org>
81400
81401         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
81402         returns void.
81403
81404 2004-11-02  Bruno Haible  <bruno@clisp.org>
81405
81406         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
81407         function returns void.
81408
81409 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81410
81411         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
81412         fflush_unlocked, flockfile, funlockfile, funlockfile,
81413         fputs_unlocked, putc_unlocked.
81414
81415 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81416
81417         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81418         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
81419         already declared.
81420
81421 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81422
81423         * modules/getdate (Files): Add doc/getdate.texi.
81424         (Depends-on): Add setenv, xalloc.
81425
81426 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81427
81428         * lib/getdate.y: Add support for TZ="foo" within a date string.
81429         Fix some bugs near time_t boundaries.  Reject dates with
81430         out-of-range components, e.g., "Sept 31".
81431         Include <stdlib.h>, "setenv.h", "xalloc.h".
81432         (ISDIGIT_LOCALE): Remove; unused.
81433         Note that the TZ and time functions used here are not reentrant.
81434         (mktime_ok, get_tz): New functions.
81435         (TZBUFSIZE): New constant.
81436         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
81437         This requires that we sometimes generate our own TZ="XXX..." setting.
81438
81439 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81440
81441         * doc/getdate.texi: New file, from coreutils with modifications for
81442         the new TZ parsing.
81443
81444 2004-10-27  Derek R. Price  <derek@ximbiot.com>
81445
81446         * lib/mktime.c (not_equal_tm): Remove redundant check.
81447
81448 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81449
81450         * modules/regex (lib_SOURCES): Add regex.c.
81451         Reported by James Youngman in
81452         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
81453
81454 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81455
81456         * lib/getdate.y: Use Bison 1.875 features, and some minor
81457         code cleanups.  This change does not affect semantics.
81458         Don't include <stdlib.h>; no longer needed.
81459         Don't include unlocked-io.h; only the "#if TEST" code uses
81460         stdio, and performance isn't crucial there.
81461         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
81462         Bison 1.875 features as described below.
81463         All uses of "PC." replaced by "pc->".
81464         (YYSTYPE): Add a forward declaration.
81465         (yylex, yyerror): Use full prototypes in forward decls.
81466         Use "%pure-parser" rather than obsolescent "%pure_parser".
81467         Use %parse-param and %lex-param instead of obsolescent
81468         YYPARSE_PARAM and YYLEX_PARAM.
81469         (meridian_table, month_and_day_table, time_units_table,
81470         relative_time_table, time_zone_table, military_table,
81471         lookup_zone, lookup_word, get_date):
81472         Use NULL instead of 0 where appropriate.
81473         (to_hour): Avoid abort (), to avoid a dependency on
81474         stdlib.h.
81475         (yyerror, yylex): Now accepts parser_control * arg.
81476         (main) [TEST]: Use '\0' rather than 0 for char.
81477
81478 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81479
81480         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
81481
81482 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81483
81484         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
81485         It's now the caller's responsibility to handle the case where
81486         !HAVE_GETPAGESIZE && !defined getpagesize.
81487
81488         * lib/mktime.c (leapyear): Arg is long int, not int.
81489
81490 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
81491
81492         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
81493
81494 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81495
81496         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
81497         missing.  Problem reported by James Youngman.
81498
81499 2004-10-16  Simon Josefsson  <jas@extundo.com>
81500
81501         * gnulib-tool: Fix comments.  Fix parse problem.
81502         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
81503
81504 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
81505
81506         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
81507         implementation of getopt_long.  Problem reported by Alexander Taler in:
81508         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
81509
81510 2004-10-15  Bruno Haible  <bruno@clisp.org>
81511
81512         * gnulib-tool: Untabify. Initialize supplied_libname.
81513         (func_usage): More homogenous output.
81514         (func_modules_transitive_closure, func_modules_to_filelist,
81515         func_emit_lib_Makefile_am): New functions.
81516         (func_import): New function, extracted from big case statement. Use
81517         func_get_license, func_modules_transitive_closure,
81518         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
81519         opt_lgpl. Don't use test -a, as it's not portable.
81520         (func_create_testdir): Use func_modules_transitive_closure,
81521         func_modules_to_filelist, func_emit_lib_Makefile_am.
81522
81523 2004-10-15  Bruno Haible  <bruno@clisp.org>
81524
81525         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
81526
81527 2004-10-15  Bruno Haible  <bruno@clisp.org>
81528
81529         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
81530         the portions belonging to each module.
81531         Suggested by Derek Robert Price <derek@ximbiot.com>.
81532
81533 2004-10-12  Simon Josefsson  <jas@extundo.com>
81534
81535         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81536         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
81537         to real functions.
81538
81539 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81540
81541         * modules/vsnprintf: New file.
81542
81543 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81544
81545         * m4/vsnprintf.m4: New file.
81546
81547 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81548
81549         * lib/vsnprintf.h: New file.
81550         * lib/vsnprintf.c: New file.
81551
81552 2004-10-11  Bruno Haible  <bruno@clisp.org>
81553
81554         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
81555         vsnprintf.
81556
81557 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81558
81559         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
81560
81561 2004-10-07  Bruno Haible  <bruno@clisp.org>
81562
81563         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
81564         fits into the provided buffer.
81565
81566 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81567
81568         * lib/diacrit.c, diacrit.h: Add GPL notice.
81569
81570         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
81571         notice.
81572         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
81573         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
81574         This avoids a potential constant-folding bug.
81575
81576 2004-10-05  Bruno Haible  <bruno@clisp.org>
81577
81578         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
81579         for the declaration of strsep.
81580
81581 2004-10-05  Bruno Haible  <bruno@clisp.org>
81582
81583         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
81584
81585 2004-10-04  Simon Josefsson  <jas@extundo.com>
81586
81587         * modules/memmem: New file.
81588         * tests/test-memmem.c: New file.
81589         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
81590
81591 2004-10-04  Simon Josefsson  <jas@extundo.com>
81592
81593         * m4/memmem.m4: New file.
81594
81595 2004-10-04  Simon Josefsson  <jas@extundo.com>
81596
81597         * lib/memmem.h: New file.
81598         * lib/memmem.c: New file, taken from glibc.
81599
81600 2004-10-04  Simon Josefsson  <jas@extundo.com>
81601
81602         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
81603         '#ifdef USE_UNLOCKED_IO'.
81604
81605 2004-10-04  Simon Josefsson  <jas@extundo.com>
81606
81607         * config/srclist.txt: Add memmem from glibc.
81608
81609 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81610
81611         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
81612
81613         * modules/argmatch, modules/argp, modules/closeout, modules/error,
81614         modules/exclude, modules/getdate, modules/getline,
81615         modules/getndelim2, modules/getpass, modules/getpass-gnu,
81616         modules/getusershell, modules/linebuffer, modules/md5,
81617         modules/mountlist, modules/posixtm, modules/readtokens,
81618         modules/readutmp, modules/regex, modules/sha1,
81619         modules/version-etc, modules/yesno:
81620         Remove dependency on unlocked-io.
81621
81622 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81623
81624         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
81625
81626         * m4/unlocked-io.m4: Add copyright notice.
81627         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
81628
81629 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81630
81631         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
81632         * lib/xmalloc.c (xmemdup): Likewise.
81633         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
81634         XFREE): Remove these long-obsolescent macros.
81635         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
81636         * lib/xstrdup.c: Remove.
81637
81638         * lib/regex.c (re_comp): Cast gettext return value to char *,
81639         Problem reported by Martin Neitzel via Mark D. Baushke.
81640
81641 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81642
81643         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
81644         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
81645         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
81646         regex.c, sha1.c, version-etc.c, yesno.c:
81647         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
81648         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
81649         the includer's responsibility.
81650
81651         Sync from coreutils.
81652
81653         * lib/modechange.c (mode_compile): Don't decrement a pointer that
81654         points to the start of a string, as the C Standard says the
81655         resulting behavior is undefined.
81656
81657         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
81658         simple -> simple_backups, numbered_existing ->
81659         numbered_existing_backups, numbered -> numbered_backups
81660         to avoid shadowing problems.  All uses changed.
81661         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
81662         * lib/backupfile.c (check_extension, numbered_backup):
81663         Rename locals to avoid shadowing 'basename'.
81664         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
81665         once.
81666
81667         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
81668         * lib/.cvsignore: Add getopt.h.
81669
81670 2004-10-04  Bruno Haible  <bruno@clisp.org>
81671
81672         * modules/README: New file.
81673         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
81674         not a module.
81675
81676 2004-10-02  Jim Meyering  <jim@meyering.net>
81677
81678         * lib/dirfd.h, getpagesize.h: Add copyright notice.
81679
81680 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81681
81682         * modules/strsep: New file.
81683
81684 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81685
81686         * m4/strsep.m4: New file.
81687
81688 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81689
81690         * lib/strsep.h: New file.
81691         * lib/strsep.c: New file.
81692
81693 2004-10-01  Simon Josefsson  <jas@extundo.com>
81694
81695         * lib/snprintf.c (snprintf): Handle size==0.
81696
81697 2004-10-01  Simon Josefsson  <jas@extundo.com>
81698             Bruno Haible  <bruno@clisp.org>
81699
81700         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
81701         (snprintf): Declare 'args'.
81702
81703 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
81704
81705         * lib/snprintf.c: Remove comments as to why each header is needed.
81706
81707 2004-10-01  Bruno Haible  <bruno@clisp.org>
81708
81709         * MODULES.html.sh: Add strsep.
81710
81711 2004-09-30  Simon Josefsson  <jas@extundo.com>
81712
81713         * modules/snprintf: New file.
81714
81715 2004-09-30  Simon Josefsson  <jas@extundo.com>
81716
81717         * m4/snprintf.m4: New file.
81718
81719 2004-09-30  Simon Josefsson  <jas@extundo.com>
81720
81721         * lib/snprintf.h, lib/snprintf.c: New files.
81722
81723 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81724
81725         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
81726         (hol_entry_help): Never translate an empty string.
81727         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
81728         * lib/argp.h (OPTION_NO_TRANS): New option.
81729
81730 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81731
81732         * modules/argp (Maintainer): Replace Simon Josefsson
81733         by Sergey Poznyakoff.
81734
81735 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81736
81737         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
81738         changes merged back into glibc.
81739
81740 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81741
81742         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
81743
81744 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81745
81746         * lib/xvasprintf.c: Include xalloc.h.
81747         (xvasprintf): Use xalloc_die, not xmalloc_die.
81748
81749 2004-09-29  Bruno Haible  <bruno@clisp.org>
81750
81751         * modules/alloca-opt: New file, derived from modules/alloca.
81752         * modules/allocsa: Depend on alloca-opt instead of alloca.
81753         * modules/setenv: Likewise.
81754         * modules/vasnprintf: Likewise.
81755         * MODULES.html.sh: Add alloca-opt.
81756
81757 2004-09-28  Simon Josefsson  <jas@extundo.com>
81758
81759         * gnulib-tool: New parameter --lgpl, to asseert that modules are
81760         LGPL, and to replace license template from GPL to LGPL.
81761
81762 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81763
81764         * modules/dummy: Change license to LGPL.
81765
81766 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81767
81768         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
81769
81770 2004-09-24  Simon Josefsson  <jas@extundo.com>
81771
81772         * modules/minmax (License): Change from GPL to LGPL.
81773
81774 2004-09-23  Simon Josefsson  <jas@extundo.com>
81775
81776         * gnulib-tool (--import): Typo.
81777
81778 2004-09-23  Simon Josefsson  <jas@extundo.com>
81779
81780         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
81781
81782 2004-09-22  Bruno Haible  <bruno@clisp.org>
81783
81784         * modules/*: Add 'License' field.
81785         * gnulib-tool: Accept --extract-license option.
81786         (func_get_license): New function.
81787
81788 2004-09-21  Bruno Haible  <bruno@clisp.org>
81789
81790         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
81791         Reported by Simon Josefsson.
81792
81793 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81794
81795         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
81796         gl_AC_TYPE_LONG_LONG.
81797
81798 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81799
81800         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
81801
81802 2004-09-18  Simon Josefsson  <jas@extundo.com>
81803         and  Paul Eggert  <eggert@cs.ucla.edu>
81804
81805         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
81806         calls with autoreconf.  Define GL_LIB.
81807
81808 2004-09-14  Karl Berry  <karl@gnu.org>
81809
81810         * config/srclist.txt: unsync setenv.c, sigh.
81811
81812 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81813
81814         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
81815         Problem reported by Bruno Haible in:
81816         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
81817
81818 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81819
81820         * config/srclist.txt: Comment out argp-pvh.c.
81821
81822 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
81823
81824         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
81825         in case some system header has #define'd it.  Problem reported by
81826         Soeren D. Schulze in
81827         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
81828
81829 2004-09-09  Karl Berry  <karl@gnu.org>
81830
81831         * regex.[ch]: delete from the root.  These were supposed to be
81832                 synced with emacs cvs, but this has not happened for about
81833                 a year, and anyway nothing else uses emacs regex.[ch].
81834                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
81835                 lib/regex[.ch] is untouched.
81836
81837 2004-09-09  Bruno Haible  <bruno@clisp.org>
81838
81839         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
81840
81841 2004-09-09  Bruno Haible  <bruno@clisp.org>
81842
81843         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
81844         modifications.
81845         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
81846
81847 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81848
81849         * modules/xvasprintf: New file.
81850         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
81851
81852 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81853
81854         * lib/xvasprintf.h: New file.
81855         * lib/xvasprintf.c: New file.
81856         * lib/xasprintf.c: New file.
81857
81858 2004-09-08  Bruno Haible  <bruno@clisp.org>
81859
81860         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
81861
81862 2004-09-08  Bruno Haible  <bruno@clisp.org>
81863
81864         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
81865         length is > INT_MAX.
81866         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
81867         more.
81868
81869 2004-09-08  Bruno Haible  <bruno@clisp.org>
81870
81871         * lib/stdint_.h: New file, taken from GNU clisp.
81872
81873 2004-09-08  Bruno Haible  <bruno@clisp.org>
81874             Oskar Liljeblad  <oskar@osk.mine.nu>
81875
81876         * modules/stdint: New file.
81877         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
81878
81879 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81880
81881         Import from coreutils.
81882         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
81883         strings on unbounded length.  alloca's performance benefits aren't
81884         that important here.
81885         (V_STRDUP): Remove.
81886         (parse_with_separator): New function, with most of the internals
81887         of the old parse_user_spec.  Allow user to omit both user and group,
81888         for compatibility with FreeBSD.
81889         Clone only the user name, not the entire spec.
81890         Do not set *uid, *gid unless entirely successful.
81891         Avoid memory leak in some failing cases.
81892         Fix regression for USER.GROUP reported by Dmitry V. Levin in
81893         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
81894         (parse_user_spec): Rewrite to use parse_with_separator.
81895
81896 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81897
81898         * modules/userspec: Don't depend on alloca.
81899
81900 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81901
81902         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
81903
81904 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81905
81906         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
81907         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
81908         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
81909
81910 2004-08-16  Simon Josefsson  <jas@extundo.com>
81911
81912         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
81913         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
81914         Add --dry-run for --import.
81915         Let user provided command line parameters override configure.ac
81916         settings.
81917
81918 2004-08-12  Simon Josefsson  <jas@extundo.com>
81919
81920         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
81921         as discussed with Paul Eggert in threads rooted at
81922         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
81923         and
81924         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
81925         Before, the test was empty, and relied on ELIDE_CODE in source
81926         code.)
81927         (gl_PREREQ_GETOPT): New macro.
81928         (gl_GETOPT): Use them.
81929
81930 2004-08-12  Simon Josefsson  <jas@extundo.com>
81931
81932         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
81933         * lib/getopt_.h: Renamed from getopt.h.
81934
81935 2004-08-12  Simon Josefsson  <jas@extundo.com>
81936
81937         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
81938         Change default library name from libfoo to libgnu.
81939         Now, if you have a configure.ac that says:
81940                 gl_SOURCE_BASE(gl)
81941                 gl_M4_BASE(gl/m4)
81942                 gl_MODULES(error getopt etcetera)
81943                 gl_INIT
81944         you can import all you need by running:
81945                 ../gnulib/gnulib-tool --import
81946
81947         * modules/getopt (Files): Rename getopt.h to getopt_.h.
81948         (Makefile.am): Rewrite, use logic from argz.
81949         (Include): Use <getopt.h> instead of "getopt.h".
81950
81951 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81952
81953         * modules/argp (Files): Add m4/unlocked-io.m4.
81954         (Depends-on): Add extensions.
81955
81956 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81957
81958         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
81959         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
81960         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
81961         Check for program_invocation_name, program_invocation_short_name,
81962         flockfile, funlockfile, features.h, _getopt_long_only_r.
81963
81964 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81965
81966         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
81967         its complicated substitute.
81968         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
81969         and program_invocation_name.
81970         (__argp_basename) [!_LIBC]: Remove; the only use was
81971         replaced by its body.
81972         (__argp_short_program_name): Change condition from
81973         !defined __argp_short_program_name to
81974         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
81975         to match argp-namefrob.h.
81976         (__argp_failure): Don't assume strerror_r returns char *.
81977         * lib/argp-parse.c (N_): Define unconditionally.
81978         (argp_default_options): Fill out initializers with 0 to avoid
81979         gcc warnings.
81980
81981 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81982
81983         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
81984         getopt1.c.
81985
81986 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81987
81988         Merge from coreutils.
81989
81990         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
81991
81992         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
81993         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
81994
81995 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81996
81997         Merge from coreutils.
81998
81999         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
82000         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
82001         for Reliant Unix 5.43.
82002
82003         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
82004         (union fooround): Use uintmax_t, not long int.
82005         The rest is a merge from libc:
82006         [defined _LIBC]: Include <shlib-compat.h>.
82007         (_obstack) [defined _LIBC]: Remove after 2.3.4.
82008
82009         * lib/settime.c (settime): Recode to avoid warning with
82010         Sun Forte C 6U2.
82011
82012         * lib/strverscmp.c: Convert to UTF-8.
82013
82014 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82015
82016         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82017         m4/uintmax_t.m4.
82018
82019 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82020
82021         * modules/xalloc-die: New file.
82022         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
82023
82024         * modules/md5 (Files): Add m4/uint32_t.m4.
82025         * modules/sha1: Renamed from modules/sha.
82026         (Files):
82027         Rename lib/sha.h to lib/sha1.h.
82028         Rename lib/sha.c to lib/sha1.c.
82029         Rename m4/sha.m4 to m4/sha1.m4.
82030         (lib_SOURCES): Likewise.
82031         (configure.ac): Rename gl_SHA to gl_SHA1.
82032         (Include): sha.h -> sha1.h.
82033
82034 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82035
82036         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
82037         * m4/sha1.m4: Renamed from sha.m4.
82038         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
82039
82040 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82041
82042         * lib/obstack.h (obstack_empty_p):
82043         Don't assume that chunk->contents is suitably aligned.
82044         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
82045         Likewise. Problem reported by Benno in
82046         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
82047
82048         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
82049         readable.  This could be improved further but it'd take some work.
82050
82051 2004-08-08  Simon Josefsson  <jas@extundo.com>
82052
82053         * modules/xgethostname (Depends-on): Remove exit and error (not
82054         used).
82055
82056         * modules/getpass-gnu: Add getpass.h.
82057         (Depends-on): Add stdbool.
82058         * modules/getpass: Add getpass.h.
82059
82060 2004-08-08  Simon Josefsson  <jas@extundo.com>
82061
82062         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
82063         Check getpass declaration.
82064
82065 2004-08-08  Simon Josefsson  <jas@extundo.com>
82066
82067         * lib/xgethostname.c: Don't include error.h (not used).
82068
82069         * lib/getpass.h: Add.
82070         * lib/getpass.c: Include getpass.h first.
82071
82072 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
82073
82074         * lib/xalloc-die.c: New file.
82075         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
82076         All uses removed.
82077         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
82078         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
82079         xalloc-die.c.
82080         (_, N_, xalloc_die): Move to xalloc-die.c.
82081         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
82082         so that we needn't mess with xalloc_msg_memory_exhausted.
82083
82084         * lib/sha1.h: Renamed from sha.h.
82085         (SHA1_H): Renamed from _SHA_H.
82086         (sha1_ctx): Renamed from sha_ctx.
82087         (sha1_init_ctx): Renamed from sha_init_ctx.
82088         (sha1_process_block): Renamed from sha_process_block.
82089         (sha1_process_bytes): Renamed from sha_process_bytes.
82090         (sha1_finish_ctx): Renamed from sha_finish_ctx.
82091         (sha1_read_ctx): Renamed from sha_read_ctx.
82092         (sha1_stream): Renamed from sha_stream.
82093         (sha1_buffer): Renamed from sha_buffer.
82094         * lib/sha1.c: Likewise; renamed from sha.c.
82095         Do not include <sys/types.h>.
82096         Include <stddef.h> rather than <stdlib.h>.
82097
82098 2004-08-08  Bruno Haible  <bruno@clisp.org>
82099
82100         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
82101         FILESYSTEM_PREFIX_LEN.
82102         * lib/progreloc.c: Likewise.
82103         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
82104
82105 2004-08-06  Simon Josefsson  <jas@extundo.com>
82106
82107         * modules/progname (Depends-on): Don't depend on stdbool.
82108
82109 2004-08-06  Simon Josefsson  <jas@extundo.com>
82110
82111         * modules/getsubopt: New file.
82112         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82113         getsubopt.
82114
82115 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82116
82117         More merge from coreutils.
82118
82119         * m4/utimens.m4, m4/utimecmp.m4: New files.
82120         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
82121         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
82122         prereq.m4, sha.m4: Import changes from coreutils.
82123
82124 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82125
82126         More merge from coreutils.
82127         * modules/raise, modules/readtokens0, modules/utimens:
82128         * modules/utimecmp, module/xnanosleep: New files.
82129         * modules/strftime: Add lib/strftime.h.
82130         Change include from <time.h> to "strftime.h".
82131         * modules/yesno: Add lib/yesno.h.
82132         * modules/backupfile: Remove lib/addext.c.
82133         * modules/euidaccess: Add stat-macros.h.
82134         * modules/canonicalize, modules/euidaccess,
82135         modules/filemode, modules/lchown, modules/makepath,
82136         modules/rmdir, modules/stat: Likewise.
82137
82138 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82139
82140         Merge from tar.
82141         * lib/argp-help.c (make_hol, hol_append): Don't assume that
82142         SIZE_MAX is a valid preprocessor constant.
82143         (__argp_basename): Change from "#ifndef _LIBC"
82144         to "#ifndef __argp_short_program_name", so that
82145         we don't compile these functions for tar.
82146
82147         More merges from coreutils.
82148         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
82149         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
82150         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
82151         * lib/addext.c: Remove; no longer needed.
82152         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
82153         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
82154         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
82155         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
82156         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
82157         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
82158         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
82159         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
82160         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
82161         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82162         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
82163         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
82164         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
82165         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
82166         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
82167         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
82168         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
82169         Import changes from coreutils.
82170
82171 2004-08-05  Simon Josefsson  <jas@extundo.com>
82172
82173         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
82174
82175 2004-08-05  Simon Josefsson  <jas@extundo.com>
82176
82177         * m4/getsubopt.m4: New file.
82178
82179 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82180
82181         Merge from coreutils.
82182
82183         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
82184         * m4/getcwd-path-max.m4: New files.
82185
82186         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
82187         FILESYSTEM_PREFIX_LEN ->
82188         FILE_SYSTEM_PREFIX_LEN.
82189         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
82190         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
82191         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
82192         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
82193
82194         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
82195         prerequisite modules now handle the DOS stuff.
82196         Don't check for unistd.h.
82197
82198 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82199
82200         Merge from coreutils.
82201
82202         * lib/.gdb-history: Remove; this doesn't belong here.
82203
82204         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
82205         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
82206         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
82207         * lib/getcwd.c: New files.
82208
82209         * lib/dirname.h: Include <stdbool.h>.
82210         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
82211         for consistency with POSIX terminology.  All uses changed.
82212         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
82213         (strip_trailing_slashes): Use bool for booleans.
82214         * lib/stripslash.c (strip_trailing_slashes): Likewise.
82215
82216         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
82217         sometimes returns a positive errno value even when it succeeds.
82218         (print_errno_message) [!LIBC]: Fall back on strerror if
82219         __strerror_r fails.
82220
82221         * lib/path-concat.c (mempcpy): Don't define if a system header defines
82222         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
82223         (longest_relative_suffix): New function.
82224         (path_concat): Use it.  Assume first argument is not NULL.
82225         Port to DOS.  Omit redundant separators.
82226         Report an error instead of returning NULL.
82227         Use mempcpy instead of memcpy.
82228         (xpath_concat): Remove: not declared or used.
82229
82230         * lib/same.h: Include <stdbool.h>
82231         (same_name): Return bool, not int.
82232         * lib/same.c (same_name): Likewise.
82233         (errno): Don't declare; we assume C89 or better now.
82234
82235         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
82236         if not already defined.
82237
82238         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
82239         * lib/dup-safer.c (errno): Likewise.
82240
82241 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82242
82243         Merge from coreutils.
82244         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
82245         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
82246         * modules/path-concat: Don't depend on strdup.
82247
82248 2004-08-03  Simon Josefsson  <jas@extundo.com>
82249
82250         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
82251         * lib/progname.h: Don't include stdbool.h.
82252
82253 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82254
82255         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
82256         * MODULES.html.sh (func_all_modules): Remove fatal.
82257
82258 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82259
82260         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
82261
82262 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82263
82264         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
82265         working.
82266
82267 2004-08-02  Simon Josefsson  <jas@extundo.com>
82268
82269         * lib/getsubopt.h: New file, with comments from Bruno Haible.
82270         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
82271         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
82272
82273 2004-08-01  Simon Josefsson  <jas@extundo.com>
82274
82275         * lib/xgetdomainname.c: Include stdlib.h, for free().
82276
82277 2004-07-19  Bruno Haible  <bruno@clisp.org>
82278
82279         * MODULES.html.sh (func_all_modules): Add dummy.
82280
82281 2004-07-16  Simon Josefsson  <jas@extundo.com>
82282
82283         * modules/dummy: New file.
82284
82285 2004-07-16  Simon Josefsson  <jas@extundo.com>
82286
82287         * lib/dummy.c: New file.
82288
82289 2004-07-16  Bruno Haible  <bruno@clisp.org>
82290
82291         * lib/backupfile.h: Add extern "C" for C++.
82292         * lib/closeout.h: Likewise.
82293         * lib/copy-file.h: Likewise.
82294         * lib/findprog.h: Likewise.
82295         * lib/full-write.h: Likewise.
82296         * lib/pathname.h: Likewise.
82297         * lib/progname.h: Likewise.
82298         * lib/stpcpy.h: Likewise.
82299         * lib/stpncpy.h: Likewise.
82300         * lib/strcase.h: Likewise.
82301         * lib/strstr.h: Likewise.
82302         * lib/xalloc.h: Likewise.
82303
82304         * lib/mbswidth.h: Add extern "C" for C++.
82305         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
82306
82307 2004-07-13  Robert Millan  <robertmh@gnu.org>
82308
82309         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
82310
82311 2004-07-09  Simon Josefsson  <jas@extundo.com>
82312
82313         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
82314         failed without this.)
82315
82316 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82317
82318         * modules/chown (Files): Add lib/fchown-stub.c, since
82319         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
82320
82321 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82322
82323         * lib/fchown-stub.c: New file.
82324
82325 2004-06-24  Jim Meyering  <jim@meyering.net>
82326
82327         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
82328
82329 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82330
82331         * modules/argz: Omit "#include".
82332
82333         * MODULES.html.sh (func_all_modules): Add calloc, to match
82334         2004-06-01 addition of calloc module.
82335
82336 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82337
82338         * m4/argz.m4: New file, which is autoupdated from libtool.
82339
82340 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82341
82342         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
82343         libtool.
82344
82345 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82346
82347         * config/srclist-update: Don't insist on "USA." before the
82348         close-comment, as libtool omits the period and puts the */ on a
82349         separate line.
82350         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
82351         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
82352
82353 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
82354
82355         * modules/argz: New file.
82356         * MODULES.html.sh (func_all_modules): Add argz.
82357
82358 2004-06-12  Jim Meyering  <jim@meyering.net>
82359         and  Paul Eggert  <eggert@cs.ucla.edu>
82360
82361         * modules/hash (Files): Add lib/xalloc.h.
82362         * modules/pipe (Depends-on): Add wait-process.
82363         * modules/stat (Depends-on): Add xalloc.
82364         * modules/userspec (Files): Add lib/userspec.h.
82365         * modules/xstrto
82366
82367         Upgrade from gettext-0.13.
82368         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
82369         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
82370         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
82371
82372 2004-06-10  Jim Meyering  <jim@meyering.net>
82373
82374         * lib/calloc.c: New file.
82375
82376 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
82377
82378         * lib/getdate.y (yylex): Allow space between sign and number.
82379         Problem reported by Dan Jacobson.
82380
82381 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82382
82383         Merge from coreutils CVS.
82384
82385         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
82386         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
82387         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
82388         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
82389         xstrtol.m4: Fix copyright date and/or serial number.
82390
82391         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
82392         See if we need an fchown replacement.
82393         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
82394         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
82395         and use the replacement function if we detect either defect.
82396
82397         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
82398         gl_UTIMECMP.
82399
82400 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82401         and  Jim Meyering  <jim@meyering.net>
82402
82403         Merge from coreutils CVS.
82404
82405         * lib/stat-macros.h: New file, with contents from file-type.h
82406         and coreutils' system.h.
82407         * lib/file-type.c: Include "stat-macros.h".
82408         * lib/file-type.h (file_type): Move all macro definitions to new file,
82409         stat-macros.h.
82410
82411         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
82412         Wrap old code with this conditional.
82413         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
82414         function that does not dereference symlinks.
82415         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
82416
82417         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
82418         dependency problems.
82419         (xreadlink): Accept new arg SIZE, for efficiency.
82420         All decls and uses changed.
82421         * lib/xreadlink.h: Include <stddef.h>, for size_t.
82422
82423         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
82424         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
82425
82426         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
82427         sysexits.h.
82428
82429 2004-06-01  Jim Meyering  <jim@meyering.net>
82430
82431         * m4/calloc.m4: New file.
82432
82433 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
82434
82435         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
82436         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
82437         Also, fix a typo in a diagnostic.
82438
82439 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82440
82441         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
82442         or AC_FUNC_REALLOC.
82443
82444 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82445
82446         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
82447         macros to be defined.
82448         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
82449         the allocator returns NULL because the requested size is zero.
82450
82451 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82452
82453         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
82454         var.  Add comment explaining why libc still defines it.  This
82455         merges the following patch from glibc:
82456         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
82457
82458 2004-05-20  Andreas Schwab  <schwab@suse.de>
82459
82460         * m4/free.m4: Replace free if it not known to work, not the other
82461         way round.
82462
82463 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82464
82465         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
82466         present in glibc since revision 1.1 of this file.
82467         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
82468         obstack_alignment_mask, obstack_alloc, obstack_base,
82469         obstack_blank, obstack_blank_fast, obstack_chunk_size,
82470         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
82471         obstack_grow0, obstack_init, obstack_int_grow,
82472         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
82473         obstack_next_free, obstack_object_size, obstack_ptr_grow,
82474         obstack_ptr_grow_fast, obstack_room): Remove declarations of
82475         nonexistent functions.
82476
82477 2004-05-18  Karl Berry  <karl@gnu.org>
82478
82479         * config/srclist.txt: break link for vasnprintf.c.
82480
82481 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82482
82483         Port obstack to the AS/400, where pointers are 16 bytes wide and
82484         you cannot cast an integer to a valid pointer.  This patch is
82485         currently waiting to be integrated into glibc; see
82486         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
82487
82488         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
82489         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
82490         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
82491         (struct obstack): temp member is now a union of a pointer and
82492         an integer, instead of an integer.  All integer uses changed.
82493         This does not affect the physical layout of struct obstack,
82494         except on hosts (like the AS/400) where the size or alignment of
82495         void * is greater than that of ptrdiff_t.
82496         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
82497         __STDC__)]: Store temporary in pointer member of union, not
82498         integer member.
82499         * lib/obstack.c: Include <stddef.h>, for offsetof.
82500         (struct fooalign): Remove; it doesn't need a name.
82501         (union fooround): Change double to long double, and add void *.
82502         (DEFAULT_ALIGNMENT): Use offsetof to compute.
82503         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
82504         not a macro.  Hence the values are always int; so remove all
82505         casts-to-int in uses.
82506
82507 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82508
82509         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
82510         we can get this patch merged into glibc.
82511
82512 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82513             Paul Eggert  <eggert@cs.ucla.edu>
82514
82515         * m4/argp: Depend on alloca.
82516
82517 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82518             Paul Eggert  <eggert@cs.ucla.edu>
82519
82520         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
82521         freecoding.
82522
82523 2004-05-17  Bruno Haible  <bruno@clisp.org>
82524
82525         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
82526         precision that consists of a '.' followed by an empty digit string.
82527         Patch by Tor Lillqvist <tml@iki.fi>.
82528
82529 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82530
82531         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
82532         for backward compatibility with older code.  We need our own
82533         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
82534         it under some other name, and our alloca.h will define it.
82535
82536 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82537             Derek Price  <derek@ximbiot.com>
82538
82539         * lib/alloca.c: Include <alloca.h>, to get our interface.
82540         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
82541         include <alloca.h> first.  Use C89 prototype for alloca; this
82542         requires including <stddef.h> for size_t.  Use extern "C" if C++.
82543         Use #elif for simplicity, since we can assume C89 now.
82544         Don't try to source the system alloca.h since it will not be found
82545         and to prevent recursively including its replacement.
82546         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
82547         * lib/regex.c: Likewise.
82548
82549 2004-05-16  Derek Price  <derek@ximbiot.com>
82550             Paul Eggert  <eggert@cs.ucla.edu>
82551
82552         getline cleanup.  This changes the getndelim2 API: both order of
82553         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
82554         no delimiter).
82555
82556         * lib/getline.c: Don't include stddef.h or stdio.h, since our
82557         interface does that.
82558         (getline): Always use getdelim, so that we don't have two
82559         copies of this code.
82560         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
82561         if available.
82562         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
82563         (GETNDELIM2_MAXIMUM): New macro.
82564         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
82565         instead of the old practice of delim2==0.  All callers changed.
82566         Return -1 on overflow, instead of returning junk.
82567         Do not set *linesize unless allocation succeeds.
82568         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
82569         that we include sys/types.h.
82570         * lib/getnline.h: Likewise.
82571         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
82572         (getndelim2): Reorder arguments.
82573         * lib/getnline.c (getnline, getndelim):
82574         Don't discard the NMAX argument.
82575         (getnline): Invoke getndelim, to avoid code duplication.
82576         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
82577         of (size_t) -1 by callers of the getnline family.
82578
82579 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82580
82581         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
82582         Check for gettimeofday.
82583         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
82584         Check for settimeofday, stime.
82585
82586 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82587
82588         * lib/nanosleep.c (suspended): Change its type from int to
82589         sig_atomic_t volatile.
82590         (first_call): Make it private to rpl_nanosleep, and have it
82591         be zero initially as that's a bit faster.
82592         (my_usleep): Round up fractional times instead of truncating them,
82593         as this is the usual meaning for 'sleep'.
82594
82595         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
82596         doesn't work.
82597         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
82598         (ENOSYS): Define if not defined.
82599         (settime): Fall back on stime if it exists and settimeofday fails.
82600         But don't bother with fallbacks if a method fails with errno == EPERM.
82601
82602 2004-05-11  Jim Meyering  <jim@meyering.net>
82603
82604         Prior to this change, the save_cwd caller required read access to the
82605         current directory on most systems (ones with the fchdir function).
82606
82607         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
82608         fails, try write-only, and finally, resort to using xgetcwd.
82609
82610 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82611
82612         * lib/obstack.c, obstack.h: Import changes from libc.
82613
82614 2004-04-28  Bruno Haible  <bruno@clisp.org>
82615
82616         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
82617         also implicitly appends .exe to executables.
82618         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
82619         accepts Windows pathnames.
82620         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82621         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82622         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82623         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82624         Reported by Derek Robert Price <derek@ximbiot.com>.
82625
82626 2004-04-21  Karl Berry  <karl@gnu.org>
82627
82628         * config/srclist.txt (localcharset.c): break sync.
82629
82630 2004-04-20  Paul Eggert  <eggert@twinsun.com>
82631
82632         * m4/host-os.m4: Add a copyright notice.
82633
82634 2004-04-20  Jim Meyering  <jim@meyering.net>
82635
82636         Change UTILS_ to gl_ in AC_DEFINE'd names.
82637         Change utils_- and jm_-prefixed variables, too.
82638         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
82639         UTILS_FUNC_MKDIR_TRAILING_SLASH.
82640         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
82641
82642         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
82643         Don't emit trailing blanks.
82644         Also rename jm_-prefixed variables to have gl_ prefix.
82645
82646         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
82647         Also rename jm_-prefixed variables to have gl_ prefix.
82648
82649         * m4/jm-macros.m4: Reflect the renamings.
82650         * m4/prereq.m4: Likewise.
82651
82652 2004-04-20  Jim Meyering  <jim@meyering.net>
82653
82654         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
82655         memory.
82656
82657 2004-04-20  Jim Meyering  <jim@meyering.net>
82658             Bruno Haible  <bruno@clisp.org>
82659
82660         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
82661         memory when realloc fails.
82662
82663 2004-04-19  Jim Meyering  <jim@meyering.net>
82664
82665         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
82666         now that readutmp.c may call `free (0)'.
82667
82668 2004-04-19  Bruno Haible  <bruno@clisp.org>
82669
82670         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
82671         * m4/inttypes_h.m4: Likewise.
82672         * m4/stdint_h.m4: Likewise.
82673         * m4/intmax_t.m4: Likewise.
82674         * m4/uintmax_t.m4: Likewise.
82675
82676 2004-04-18  Jim Meyering  <jim@meyering.net>
82677
82678         * m4/prereq.m4: Don't forbid jm_ prefix.
82679
82680         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
82681         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
82682         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
82683         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
82684         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
82685         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
82686         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
82687         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
82688         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
82689         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
82690         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
82691         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
82692         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
82693         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
82694         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
82695         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
82696         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
82697         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
82698         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
82699
82700 2004-04-18  Jim Meyering  <jim@meyering.net>
82701
82702         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
82703         failure, don't leak memory and do call END_UTMP_ENT.
82704
82705 2004-04-16  Jim Meyering  <jim@meyering.net>
82706
82707         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
82708         coreutils' stat program.
82709         (gl_PREREQ): Don't require jm_PREREQ_STAT.
82710
82711 2004-04-11  Paul Eggert  <eggert@twinsun.com>
82712
82713         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
82714         C89.
82715         (CHAR_BIT): Remove, since we assume C89.
82716         Include <stdint.h> if available, as per current Autoconf CVS advice.
82717
82718 2004-03-31  Jim Meyering  <jim@meyering.net>
82719
82720         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
82721         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
82722         * m4/xalloc.m4: Likewise.
82723
82724 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82725
82726         Merge from coreutils.
82727
82728         * m4/inttostr.m4: New file.
82729         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
82730         Require AM_STDBOOL_H and gl_TIMESPEC instead.
82731         Require gl_CLOCK_TIME.
82732         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
82733
82734 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82735
82736         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
82737         not bool, to be more consistent with Unix conventions.
82738         Suggested by Bruno Haible.
82739
82740         Merge from coreutils.
82741
82742         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
82743         * lib/umaxtostr.c: New files.
82744
82745         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
82746         the usual <time.h> dance.
82747         (get_date): Change signature to support fractional time stamps.
82748         All callers changed.
82749         * lib/getdate.y: Include "getdate.h" first, as we can now
82750         assume C89 and don't need to worry about 'const'.
82751         Similarly, include "unlocked-io.h" near start, not in middle.
82752         Include <limits.h>.
82753         (textint.value): Use long int rather than int.
82754         (textint.digits): Use size_t rather than int.
82755         (BILLION, LOG10_BILLION): New constants.
82756         (parser_control): New member rel_ns.  Members day_ordinal,
82757         time_zone, month, day, hour, minutes, rel_year, rel_month,
82758         rel_day, rel_hour, rel_minutes, rel_seconds
82759         are now long int, not int.  Member seconds is now struct timespec,
82760         not int.  New member timespec_seen.  Members dates_seen, days_seen,
82761         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
82762         not int.
82763         (%union.intval): Now long int, not int.
82764         New member timespec.
82765         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
82766         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
82767         (spec): Now is a timespec or an item list.
82768         (timespec, items): New nonterminals.
82769         (time, rel, relunit, number, get_date):
82770         Add support for fractional seconds.
82771         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
82772         (gmtime, localtime, mktime): Remove decls; not needed with C89.
82773         (to_hour): First arg is now long int, not int.
82774         (to_year): Returns long int, not int.
82775         Don't treat year -70 like 70.
82776         (tm_diff): Returns long int, not int.
82777         (lookup_word): Use bool instead of int when appropriate.
82778         (yylex): Use size_t for count, not int.
82779         Detect overflow when parsing large integer constants.
82780         Add support for fractions.
82781         (get_date): Make pointers 'const' if possible.
82782         Use more-portable code to detect integer overflow.
82783         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
82784         Don't use ctime; it's not reliable if the year has >4 digits.
82785
82786         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
82787         This is for compatibility with BSD.
82788
82789         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
82790         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
82791         From coreutils' system.h.
82792
82793         * lib/userspec.c: Don't include "posixver.h".
82794         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
82795         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
82796         compatible extension.  Simplify code by removing a boolean int
82797         that was always nonzero if a string was nonnull.
82798
82799 2004-03-30  Jim Meyering  <jim@meyering.net>
82800
82801         Merge from coreutils.
82802
82803         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
82804         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
82805         on some systems one must include <grp.h> before it.
82806         Reported by Christian Krackowizer.
82807
82808 2004-03-30  Jim Meyering  <jim@meyering.net>
82809
82810         Merge from coreutils.
82811
82812         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
82813
82814         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
82815         an empty input stream.
82816
82817         * lib/readtokens.c: Include <stdbool.h>.
82818         (readtoken): Use `size_t' rather than int/long.
82819         All callers adjusted.
82820         Use `bool' rather than `int' where appropriate.
82821         Use memset rather than an explicit loop.
82822         Use x2nrealloc rather than xrealloc.
82823         Allow the use of `\0' as a delimiter.
82824         (readtokens): Likewise.
82825         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
82826
82827 2004-03-30  Jim Meyering  <jim@meyering.net>
82828
82829         * m4/realloc.m4: Remove file, since now it does no more than
82830         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
82831         the `configure.ac' section of module/realloc.
82832         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
82833
82834 2004-03-30  Bruno Haible  <bruno@clisp.org>
82835
82836         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
82837         nonnull.
82838
82839 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82840
82841         Merge changes to getloadavg.c from coreutils and Emacs.
82842
82843         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
82844         Define to an expression, not to the empty string.
82845         Include cloexec.h and xalloc.h.
82846         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
82847         Use set_cloexec_flag rather than rolling our own.
82848         * lib/cloexec.c, lib/cloexec.h: New files.
82849
82850 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82851
82852         * m4/cloexec.m4: New file.
82853
82854 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82855
82856         * lib/getopt.h: Sync with libc CVS.
82857
82858 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82859             Bruno Haible  <bruno@clisp.org>
82860
82861         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
82862         mbswidth.
82863
82864 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82865             Bruno Haible  <bruno@clisp.org>
82866
82867         * lib/mbswidth.h: Include <wchar.h> only if
82868         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
82869         <wchar.h>.
82870         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
82871
82872 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82873
82874         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
82875         Sync with libc CVS.
82876         * lib/getopt_int.h: New file, also synced from libc.
82877
82878 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82879
82880         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
82881         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
82882         Bring back getopt.c, getopt.h, getopt1.c.
82883
82884 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82885
82886         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
82887         All uses changed.  Check for sa_sigaction member; this fixes
82888         a bug first reported by Jason Andrade in
82889         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82890
82891 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82892
82893         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
82894         '#if' expressions.  Unlike the code it replaces, it does not
82895         depend on (defined _SC_PAGESIZE).  However, it does depend on
82896         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
82897         first reported by Jason Andrade in
82898         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82899
82900 2004-02-25  Simon Josefsson  <jas@extundo.com>
82901
82902         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
82903
82904 2004-02-25  Simon Josefsson  <jas@extundo.com>
82905
82906         * lib/strdup.h: New file.
82907         * lib/strdup.c: Include it.
82908         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
82909         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
82910
82911 2004-02-23  Karl Berry  <karl@gnu.org>
82912
82913         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
82914         (from fencepost.gnu.org:/gd/gnuorg).
82915
82916 2004-02-23  Karl Berry  <karl@gnu.org>
82917
82918         * config/srclistvars.sh (GNUORG) [karl]: redefine.
82919         * config/srclist.txt: add maintain/standards documents.
82920
82921 2004-02-18  Bruno Haible  <bruno@clisp.org>
82922
82923         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
82924         Reported by Derek Robert Price <derek@ximbiot.com>.
82925
82926 2004-02-16  Karl Berry  <karl@gnu.org>
82927
82928         * config/mkinstalldirs, install-sh: update from automake.
82929
82930 2004-02-06  Karl Berry  <karl@gnu.org>
82931
82932         * m4/po.m4: update from gettext 0.14.1.
82933
82934 2004-02-06  Karl Berry  <karl@gnu.org>
82935
82936         * lib/config.charset: update from gettext 0.14.1.
82937
82938 2004-02-05  Paul Eggert  <eggert@twinsun.com>
82939
82940         Add comments and code, prompted by suggestions from Bruno Haible
82941         for sh-quote.
82942         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
82943         describing the enum quoting_style values.
82944         * lib/quotearg.c (quotearg_alloc): New function.
82945         (quotearg_buffer_restyled): Treat lone { and } as special.
82946         Treat = as special.  Work around bug with older shells
82947         that "see" a '\' that is really the 2nd byte of a multibyte char.
82948         Quote empty string with shell_quoting_style.
82949
82950 2004-02-03  Bruno Haible  <bruno@clisp.org>
82951
82952         * m4/pipe.m4: New file, from GNU gettext.
82953
82954 2004-02-03  Bruno Haible  <bruno@clisp.org>
82955
82956         * lib/pipe.h: New file, from GNU gettext.
82957         * lib/pipe.c: New file, from GNU gettext.
82958
82959 2004-01-27  Bruno Haible  <bruno@clisp.org>
82960
82961         * m4/execute.m4: New file, from GNU gettext.
82962
82963 2004-01-27  Bruno Haible  <bruno@clisp.org>
82964
82965         * lib/execute.h: New file, from GNU gettext.
82966         * lib/execute.c: New file, from GNU gettext.
82967         * lib/w32spawn.h: New file, from GNU gettext.
82968
82969 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82970
82971         Merge from diffutils.
82972
82973         * lib/file-type.c (file_type): Add typed memory objects.
82974         * lib/file-type.h (S_TYPEISTMO): New macro.
82975
82976         * lib/c-stack.h (c_stack_action): Remove argv argument.
82977         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
82978         (die): Don't calculate message unless segv_action returns.
82979         (get_stack_location, min_address_from_argv, max_address_from_argv,
82980         volatile stack_base, volatile_stack_size): Remove.
82981         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
82982         that every segmentation violation is a stack overflow.  (Ouch!)
82983         See Debian bug 136249 (still outstanding) for more info about why
82984         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
82985
82986 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82987
82988         Exit-status fix from coreutils.
82989
82990         Use exit_failure consistently in place of EXIT_FAILURE,
82991         so that program exit statuses are consistent on failure.
82992
82993         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
82994         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
82995         * lib/argmatch.h: Comment fix to match the above.
82996         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
82997         Now a macro referring to exit_failure, instead of a separate
82998         variable.  Include "exitfail.h" to get it.
82999         * lib/xstrtol.h: Include "exitfail.h".
83000         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
83001
83002         * lib/long-options.c (parse_long_options): Use prototype
83003         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
83004         for clarity.
83005
83006 2004-01-21  Jim Meyering  <jim@meyering.net>
83007
83008         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
83009         so as not to conflict with a different-sized __mktime_internal
83010         function in GNU libc.
83011         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
83012         Problem building statically-linked `ls' reported by Michael Brunnbauer.
83013
83014 2004-01-20  Karl Berry  <karl@gnu.org>
83015
83016         * config/config.guess: update from config.
83017
83018         * config/srclistvars.sh: GNUWWWLICENSES for karl.
83019
83020 2004-01-20  Bruno Haible  <bruno@clisp.org>
83021
83022         Safer stack allocation.
83023         * lib/setenv.c: Include allocsa.h.
83024         (alloca): Remove fallback definition.
83025         (freea): Remove macro.
83026         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
83027         instead of freea.
83028
83029 2004-01-20  Bruno Haible  <bruno@clisp.org>
83030
83031         * m4/eealloc.m4: New file, from GNU gettext.
83032
83033 2004-01-20  Bruno Haible  <bruno@clisp.org>
83034
83035         * m4/allocsa.m4: New file, from GNU gettext.
83036
83037 2004-01-20  Bruno Haible  <bruno@clisp.org>
83038
83039         * lib/xallocsa.h: New file, from GNU gettext.
83040         * lib/xallocsa.c: New file, from GNU gettext.
83041
83042 2004-01-20  Bruno Haible  <bruno@clisp.org>
83043
83044         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
83045
83046 2004-01-20  Bruno Haible  <bruno@clisp.org>
83047
83048         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
83049         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
83050         specially.
83051
83052 2004-01-20  Bruno Haible  <bruno@clisp.org>
83053
83054         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
83055         patch.
83056
83057 2004-01-20  Bruno Haible  <bruno@clisp.org>
83058
83059         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
83060
83061 2004-01-20  Bruno Haible  <bruno@clisp.org>
83062
83063         * lib/eealloc.h: New file.
83064
83065 2004-01-20  Bruno Haible  <bruno@clisp.org>
83066
83067         * lib/binary-io.h: Avoid warnings on Cygwin.
83068
83069 2004-01-20  Bruno Haible  <bruno@clisp.org>
83070
83071         * lib/allocsa.h: New file, from GNU gettext.
83072         * lib/allocsa.c: New file, from GNU gettext.
83073
83074 2004-01-18  Karl Berry  <karl@gnu.org>
83075
83076         * doc/gpl.texi, doc/lgpl.texi: new files.
83077
83078 2004-01-18  Karl Berry  <karl@gnu.org>
83079
83080         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
83081         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
83082
83083 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83084
83085         Merge from coreutils.
83086
83087         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
83088         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
83089         (gl_DEFAULT_POSIX2_VERSION): Move
83090         the documentation from 'configure' into 'config.hin',
83091         so that 'configure --help' isn't burdened by it and
83092         we don't have to worry about its formatting there.
83093         Reword the documentation so that it's more succinct
83094         and can be run together into a single paragraph.
83095         * m4/same.m4 (gl_SAME): Check for pathconf.
83096
83097 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83098
83099         Merge from coreutils.
83100
83101         * lib/posixver.c: Include posixver.h.
83102
83103         * lib/same.c: Include <stdbool.h>, <limits.h>.
83104         (_POSIX_NAME_MAX): Define if not defined.
83105         (MIN): New macro.
83106         (same_name): If file names are silently truncated, report
83107         that the file names are the same if they are the same after
83108         the silent truncation.
83109
83110         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
83111         conversion function.
83112         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
83113         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
83114         longer needed.
83115
83116 2004-01-15  Jim Meyering  <jim@meyering.net>
83117
83118         Merge from coreutils.
83119
83120         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
83121         if no library is required.
83122         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
83123         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
83124         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
83125         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
83126         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
83127         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
83128         value, $ac_cv_search_crypt, if it's "none required".
83129         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
83130         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
83131         not gl_FUNC_GETLOADAVG.
83132         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
83133         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
83134
83135 2004-01-15  Jim Meyering  <jim@meyering.net>
83136
83137         Merge from coreutils.
83138
83139         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
83140         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
83141         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
83142
83143         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
83144         optional configure-time default.
83145
83146         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83147
83148         * lib/xreadlink.c (xreadlink): Correct outdated comment.
83149
83150 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
83151
83152         Merge from coreutils.
83153
83154         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
83155         value, $ac_cv_search_nanosleep, if it's "none required".
83156
83157 2004-01-14  Paul Eggert  <eggert@twinsun.com>
83158
83159         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
83160         with like-named macro in fnmatch.c.
83161         (EXT): Use an internal constant instead.
83162
83163         Merge fnmatch patches from glibc.
83164         * lib/fnmatch.c (mbsinit): Remove define.
83165         Add libc_hidden_ver (__fnmatch, fnmatch).
83166         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
83167         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
83168
83169 2004-01-14  Karl Berry  <karl@gnu.org>
83170
83171         * config/install-sh: update from automake.
83172
83173 2004-01-13  Karl Berry  <karl@gnu.org>
83174
83175         * config/install-sh: update from automake.
83176
83177 2004-01-09  Karl Berry  <karl@gnu.org>
83178
83179         * config/install-sh: update from automake.
83180
83181 2004-01-05  Karl Berry  <karl@gnu.org>
83182
83183         * config/config.{sub,guess}: update from config.
83184
83185 2003-12-31  Karl Berry  <karl@gnu.org>
83186
83187         * config/depcomp: update from automake.
83188
83189 2003-12-14  Karl Berry  <karl@gnu.org>
83190
83191         * lib/config.charset: update from gettext-runtime.
83192
83193 2003-12-03  Paul Eggert  <eggert@twinsun.com>
83194
83195         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
83196         Bug reported by Alfred M. Szmidt.
83197
83198 2003-12-03  Bruno Haible  <bruno@clisp.org>
83199
83200         * m4/gettext.m4: Upgrade from gettext-0.13.
83201         * m4/po.m4: Upgrade from gettext-0.13.
83202         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
83203         * m4/intmax.m4: New file, from gettext-0.13.
83204         * m4/printf-posix.m4: New file, from gettext-0.13.
83205
83206 2003-11-29  Karl Berry  <karl@gnu.org>
83207
83208         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
83209
83210 2003-11-25  Paul Eggert  <eggert@twinsun.com>
83211             Bruno Haible  <bruno@clisp.org>
83212
83213         * lib/printf-parse.h: Don't include sys/types.h.
83214         (ARG_NONE): New macro.
83215         (char_directive): Change type of *arg_index fields to size_t.
83216         * lib/printf-parse.c: Don't include sys/types.h.
83217         (SSIZE_MAX): Remove macro.
83218         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
83219         Remove unnecessary overflow check.
83220         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
83221         fields.
83222
83223 2003-11-25  Bruno Haible  <bruno@clisp.org>
83224
83225         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
83226
83227 2003-11-25  Bruno Haible  <bruno@clisp.org>
83228
83229         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
83230         gt_TYPE_SSIZE_T.
83231
83232 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83233
83234         * modules/alloca: Remove dependency on xalloc.
83235
83236 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83237
83238         * lib/alloca.c: Remove dependency on xalloc module.
83239         (xalloc_die): Remove.
83240         (memory_full) [!defined emacs]: New macro.
83241         [!defined emacs]: Don't include xalloc.h.
83242         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
83243         address arithmetic overflows.  Change datatypes a bit to avoid
83244         unnecessary casts.
83245
83246 2003-11-22  Jim Meyering  <jim@meyering.net>
83247
83248         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
83249         s/size/size_t/.
83250
83251 2003-11-21  Karl Berry  <karl@gnu.org>
83252
83253         * config/config.{sub,guess}: update from config.
83254
83255 2003-11-18  Karl Berry  <karl@gnu.org>
83256
83257         * config/config.{sub,guess}: update from config.
83258
83259         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
83260
83261 2003-11-17  Paul Eggert  <eggert@twinsun.com>
83262
83263         * README: Mention that S+T cannot overflow if S is the size of
83264         an existing object and T is sufficiently small.
83265
83266 2003-11-17  Jim Meyering  <jim@meyering.net>
83267
83268         On systems without utime and without a utimes function capable of
83269         dealing with a NULL struct utimbuf* argument, this utime replacement
83270         could -- in unusual circumstances -- leak a file descriptor.
83271         * lib/utime.c: Include <unistd.h> and <errno.h>.
83272         (utime_null): Be sure to close `fd' and to preserve errno.
83273         Reported by Geoff Collyer via Arnold Robbins.
83274
83275 2003-11-17  Bruno Haible  <bruno@clisp.org>
83276
83277         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
83278         (Depends-on): Add xsize.
83279
83280 2003-11-17  Bruno Haible  <bruno@clisp.org>
83281
83282         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
83283
83284 2003-11-17  Bruno Haible  <bruno@clisp.org>
83285
83286         * lib/vasnprintf.c (alloca): Remove fallback definition.
83287         (freea): Remove definition.
83288         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
83289         Reported by Paul Eggert.
83290
83291 2003-11-16  Paul Eggert  <eggert@twinsun.com>
83292             Bruno Haible  <bruno@clisp.org>
83293
83294         Protect against address arithmetic overflow.
83295         * lib/printf-args.h: Include stddef.h.
83296         (arguments): Change type of field 'count' to size_t.
83297         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
83298         'unsigned int' where appropriate.
83299         * lib/printf-parse.h: Include sys/types.h.
83300         (char_directive): Change type of *arg_index fields to ssize_t.
83301         (char_directives): Change type of fields 'count', max_*_length to
83302         size_t.
83303         * lib/printf-parse.c: Include sys/types.h and xsize.h.
83304         (SSIZE_MAX): Define fallback value.
83305         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
83306         instead of 'int' where appropriate. Check a_allocated, d_allocated
83307         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
83308         * lib/vasnprintf.c: Include xsize.h.
83309         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
83310         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
83311         overflow. Avoid wraparound when converting a width or precision from
83312         decimal to binary.
83313
83314 2003-11-16  Bruno Haible  <bruno@clisp.org>
83315
83316         Update from GNU gettext.
83317         * lib/printf-parse.c: Generalize to it can be compiled for wide
83318         strings.
83319         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
83320         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
83321         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
83322         SNPRINTF): New macros.
83323         Don't include <alloca.h> if the file is used inside libintl.
83324         (local_wcslen): New function, for Solaris 2.5.1.
83325         (VASNPRINTF): Use it instead of wcslen.
83326
83327 2003-11-16  Bruno Haible  <bruno@clisp.org>
83328
83329         * lib/xsize.h (xmax): New function.
83330         (xsum, xsum3, xsum4): Declare as "pure" functions.
83331
83332 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83333
83334         * modules/xalloc (Files): Undo latest change, since xalloc.h
83335         no longer needs SIZE_MAX or PTRDIFF_MAX.
83336
83337 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83338
83339         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
83340         gl_PTRDIFF_MAX.
83341
83342 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83343
83344         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
83345         "return", to pacify some unknown compiler.  Problem reported
83346         by Joerg Schilling.
83347
83348 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83349
83350         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
83351         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
83352         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
83353         heuristic is just as accurate as far as we know, and it removes a
83354         dependency on size_max.m4 and ptrdiff_max.m4.
83355
83356 2003-11-11  Bruno Haible  <bruno@clisp.org>
83357
83358         * modules/xsize (Files): Add m4/size_max.m4.
83359         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
83360
83361 2003-11-11  Bruno Haible  <bruno@clisp.org>
83362
83363         * m4/size_max.m4: New file.
83364         * m4/ptrdiff_max.m4: New file.
83365         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
83366         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
83367         (gl_XALLOC): Invoke it.
83368
83369 2003-11-11  Bruno Haible  <bruno@clisp.org>
83370
83371         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
83372         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
83373         defined.
83374
83375 2003-11-10  Paul Eggert  <eggert@twinsun.com>
83376
83377         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
83378         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
83379         rejected some allocations of exactly SIZE_MAX - 2 bytes.
83380         From Bruno Haible.
83381         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
83382         not (size_t) -1, since it's defined here.
83383
83384 2003-11-09  Karl Berry  <karl@gnu.org>
83385
83386         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
83387
83388 2003-11-06  Paul Eggert  <eggert@twinsun.com>
83389
83390         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
83391         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
83392         Reject sizes of exactly SIZE_MAX bytes.
83393         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
83394         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
83395
83396 2003-11-05  Bruno Haible  <bruno@clisp.org>
83397
83398         * lib/xsize.h: Include limits.h, to avoid a possible collision with
83399         SIZE_MAX defined in <limits.h> on Solaris.
83400
83401 2003-11-04  Jim Meyering  <jim@meyering.net>
83402
83403         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
83404         variable names, rather than @VAR@.
83405         * modules/poll: Likewise.
83406
83407 2003-11-04  Bruno Haible  <bruno@clisp.org>
83408
83409         * modules/xsize: New file.
83410         * modules/linebreak: Depend on xsize.
83411         * MODULES.html.sh (func_all_modules): Add xsize.
83412
83413 2003-11-04  Bruno Haible  <bruno@clisp.org>
83414
83415         * m4/xsize.m4: New file.
83416
83417 2003-11-04  Bruno Haible  <bruno@clisp.org>
83418
83419         * lib/xsize.h: New file.
83420         * lib/linebreak.c: Include xsize.h.
83421         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
83422         argument for overflow.
83423         Suggested by Paul Eggert.
83424
83425 2003-11-03  Karl Berry  <karl@gnu.org>
83426
83427         * config/config.{guess,sub}: update from config.
83428
83429 2003-11-03  Jim Meyering  <jim@meyering.net>
83430
83431         * modules/userspec (lib_SOURCES): Add userspec.h.
83432         (Include): Add "userspec.h".
83433         Improve description.
83434
83435 2003-11-03  Jim Meyering  <jim@meyering.net>
83436
83437         * lib/userspec.c: Include "userspec.h".
83438         * lib/userspec.h: New file.
83439
83440 2003-11-03  Bruno Haible  <bruno@clisp.org>
83441
83442         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
83443
83444 2003-11-03  Bruno Haible  <bruno@clisp.org>
83445
83446         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
83447         available, to avoid (extremely rare) race condition.
83448         Suggested by Paul Eggert.
83449
83450 2003-11-02  Karl Berry  <karl@gnu.org>
83451
83452         * config/srclist.txt (vasprintf.c): sync broken, sigh.
83453
83454 2003-10-31  Paul Eggert  <eggert@twinsun.com>
83455
83456         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
83457         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
83458         (read_filesystem_list): Set and use me_type_malloced.
83459         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
83460         whatever the type happens to be), for brevity and consistency.
83461         Check for size calculation overflow on Alphas running OSF/1.
83462
83463 2003-10-31  Jim Meyering  <jim@meyering.net>
83464
83465         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
83466
83467         * lib/linebuffer.c: Include <string.h> for declaration of memset.
83468
83469 2003-10-30  Paul Eggert  <eggert@twinsun.com>
83470             Bruno Haible  <bruno@clisp.org>
83471
83472         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
83473         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
83474
83475 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83476
83477         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
83478         netbsd*-gnu*.  Suggested by Robert Millan.
83479
83480 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83481
83482         * modules/group-member: Depend on stdbool.
83483
83484 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83485
83486         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
83487
83488 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83489
83490         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
83491         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
83492         after the 'gnu' in these cases.  This fixes some bugs in the
83493         previous change, and is based on suggestions by Robert Millan.
83494
83495 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83496
83497         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
83498         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
83499         no longer needed.
83500         * lib/quotearg.c (quotearg_n_options): Use it.
83501         * lib/group-member.c: Include <stdbool.h>.
83502         (free_group_info): Arg is now const *; don't free arg.
83503         (get_group_info): Now returns bool and accepts struct group_info *,
83504         rather than returning a malloc'ed struct group_info *.
83505         All uses changed.  Check for overflow in internal size calculation.
83506
83507         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
83508         rather than xmalloc/xrealloc.
83509         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
83510         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
83511         conformance bug: the old code used a pointer after freeing the
83512         storage that it addressed.
83513         * lib/hash.c (hash_initialize): Simplify the code by using
83514         xalloc_oversized rather than doing it by hand.
83515         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
83516         the buffer preserved.  Use free and xmalloc instead.
83517         * lib/quotearg.c (quotearg_n_options): Likewise.
83518         Use a simpler test for size overflow.  Don't use xalloc_oversized
83519         because unsigned int might be wider than size_t (!); this suggests
83520         that we should switch from unsigned int to size_t for slot numbers.
83521
83522 2003-10-28  Paul Eggert  <eggert@twinsun.com>
83523
83524         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
83525         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
83526         NetBSD kernels.  Requested by Richard Stallman.
83527
83528 2003-10-27  Paul Eggert  <eggert@twinsun.com>
83529
83530         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
83531         to allocate the returned structure.  Do not allocate a subarray,
83532         as x2nrealloc will do that.
83533         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
83534         instead of xnrealloc.
83535         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
83536
83537 2003-10-27  Bruno Haible  <bruno@clisp.org>
83538
83539         * lib/stdbool_.h: Better support for BeOS.
83540
83541 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83542
83543         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
83544         now uses inline.
83545
83546 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83547
83548         * lib/xalloc.h (xalloc_oversized): New static inline function, for
83549         callers that want to do their own size-overflow checking.  Include
83550         <stdbool.h>, since xalloc_oversized returns bool.
83551         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
83552         to use xalloc_oversized.
83553
83554         Add two functions x2realloc, x2nrealloc, for programs that grow
83555         arrays dynamically by doubling their sizes.
83556         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
83557         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
83558         New functions.
83559
83560         Port to C99 semantics for 'inline' of external functions.
83561         Bug reported by Bruno Haible.
83562         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
83563         with the old contents of xnmalloc.
83564         (xnmalloc, xmalloc): Use it.
83565         (xnrealloc_inline): New static inline function,
83566         with the old contents of xnrealloc.
83567         (xnrealloc, xrealloc): Use it.
83568
83569         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
83570         that.
83571
83572 2003-10-26  Karl Berry  <karl@gnu.org>
83573
83574         * config/srclist.txt (COPYING.DOC): no longer available from
83575         /gd/gnuorg; don't know where the ultimate source is.
83576
83577 2003-10-25  Paul Eggert  <eggert@twinsun.com>
83578
83579         Fix several address-calculation bugs in the hash modules,
83580         plus some minor code cleanup.
83581
83582         * lib/hash.h: Include <stdbool.h>, for bool.
83583         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
83584         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
83585         hash_get_n_entries, hash_get_max_bucket_length,
83586         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
83587         hash_rehash): Use size_t rather than unsigned.
83588         * lib/hash.c (struct hash_table, hash_get_n_buckets,
83589         hash_get_n_buckets_used, hash_get_n_entries,
83590         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
83591         hash_get_entries, hash_do_for_each, hash_string, is_prime,
83592         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
83593         Likewise.
83594         (SIZE_MAX): Define if not defined.
83595         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
83596         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
83597         hash_print):
83598         Use const * when possible.
83599         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
83600         (check_tuning): Fix bug: if tuning parameters were very close to
83601         0 or 1, rounding errors could have caused subscript violations.
83602         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
83603         (hash_initialize): Add 'fail:' label
83604         to free table and return NULL, and use it to simplify code.
83605         Use calloc rather than clearing the storage ourself.
83606         (hash_initialize, hash_rehash): Check for arithmetic overflow in
83607         buffer size calculations.
83608         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
83609         Include <stddef.h>, for size_t.
83610         * lib/hash-pjw.c (hash_pjw): Likewise.
83611         Switch to method described by Bruno Haible.
83612         Include <limits.h>, for CHAR_BIT.
83613         (SIZE_BITS): New macro.
83614
83615 2003-10-23  Paul Eggert  <eggert@twinsun.com>
83616
83617         * m4/getline.m4 (AM_FUNC_GETLINE):
83618         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
83619         hosts.  Problem reported by Derek Robert Price in
83620         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
83621         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
83622         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
83623
83624 2003-10-21  Paul Eggert  <eggert@twinsun.com>
83625
83626         * lib/getndelim2.c (getndelim2): When size calculation overflows,
83627         ceiling the allocation at NMAX bytes rather than silently
83628         discarding input bytes before NMAX is reached.  This makes
83629         a difference only if NMAX exceeds SIZE_MAX / 2.
83630
83631         * lib/obstack.c: Merge from glibc.
83632         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
83633         Add libc_hidden_def (_obstack_newchunk).
83634         (_obstack_free) [! defined _LIBC]: Remove.
83635         [defined _LIBC]: Make a strong alias from obstack_free, rather than
83636         a clone of the function body.
83637         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
83638         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
83639
83640         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
83641         glibc.
83642         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
83643         arg to memcpy.
83644
83645         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
83646         (obstack_ptr_grow_fast, obstack_int_grow_fast):
83647         Don't use lvalue casts, as GCC plans to remove support for them
83648         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
83649         was also present in the non-GCC version, indicating that this
83650         code had always been buggy and had never been widely used.
83651         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
83652         Use the fast variant of each macro, rather than copying the
83653         definiens of the fast variant; that way, we'll be more likely to
83654         catch future bugs in the fast variants.
83655
83656 2003-10-20  Bruno Haible  <bruno@clisp.org>
83657
83658         * modules/wait-process: New file.
83659         * MODULES.html.sh (func_all_modules): Add wait-process.
83660
83661 2003-10-20  Bruno Haible  <bruno@clisp.org>
83662
83663         * m4/wait-process.m4: New file.
83664
83665 2003-10-20  Bruno Haible  <bruno@clisp.org>
83666
83667         * lib/wait-process.h: New file, from GNU gettext.
83668         * lib/wait-process.c: New file, from GNU gettext.
83669
83670 2003-10-19  Jim Meyering  <jim@meyering.net>
83671
83672         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
83673         HPUX 10.20.
83674
83675 2003-10-18  Karl Berry  <karl@gnu.org>
83676
83677         * config/config.guess: update from config.
83678
83679 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83680
83681         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
83682         (getgroups): First arg is int, not size_t.
83683         Don't let 'free' mangle errno.
83684
83685 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83686
83687         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
83688
83689 2003-10-16  Karl Berry  <karl@gnu.org>
83690
83691         * config/config.{guess,sub}: update from config.
83692
83693 2003-10-16  Jim Meyering  <jim@meyering.net>
83694
83695         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
83696         memcpy.
83697
83698 2003-10-15  Paul Eggert  <eggert@twinsun.com>
83699
83700         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
83701         (SIZE_MAX): Remove.
83702         (new_exclude, add_exclude_file): Initial size no longer needs to
83703         be a power of 2.
83704         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
83705         our own address arithmetic overflow checking.
83706
83707         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
83708         (fnmatch): Do not alloca more than 2000 wide characters;
83709         instead, use malloc for large buffers.
83710         Check for address arithmetic overflow, and return -1
83711         with errno set to ENOMEM in that case.
83712         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
83713         (NEW_PATTERN): Do not alloca more than 8000 bytes;
83714         instead, return -1.  Check for address arithmetic overflow.
83715
83716 2003-10-14  Paul Eggert  <eggert@twinsun.com>
83717
83718         Handle invalid suffixes and overflow independently, so that
83719         callers can treat them independently as needed.  Fix some bugs in
83720         suffix handling, e.g., "100k@" was not diagnosed as an invalid
83721         suffix for a human-readable blocksize.  The major caller-visible
83722         change is the addition of a new
83723         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
83724         that both overflow and suffix chars were found.
83725
83726         * lib/human.c (humblock): Don't check separately for invalid suffix
83727         char; that is xstrtoumax's job (now that its bug is fixed).
83728         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
83729         INTMAX_MAX]: New macros.
83730         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
83731         TYPE_MAXIMUM): New macros.
83732         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
83733         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
83734         if overflow occurs, as it's what __strtol does and it's more useful
83735         in practice.
83736         (__xstrtol): If __strtol reports some error other than ERANGE,
83737         reflect it to the caller as LONGINT_INVALID.  If it reports
83738         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
83739         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
83740         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
83741         value.
83742         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
83743         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
83744         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
83745         [defined UINTMAX_MAX]: New macros.
83746
83747 2003-10-14  Bruno Haible  <bruno@clisp.org>
83748
83749         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
83750
83751 2003-10-14  Bruno Haible  <bruno@clisp.org>
83752
83753         * m4/sig_atomic_t: New file, from GNU gettext.
83754         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
83755
83756 2003-10-14  Bruno Haible  <bruno@clisp.org>
83757
83758         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
83759         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
83760         Also use volatile where needed.
83761
83762 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83763
83764         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
83765         Change maintainer from Bruno Haible to 'all'.
83766
83767 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83768
83769         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
83770
83771 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83772
83773         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
83774         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
83775         and define in terms of the other primitives.
83776         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
83777         (SIZE_MAX): Define if not already defined.
83778         (array_size_overflow): New function.
83779         (xalloc_die): Abort instead of exiting if 'error' returns.
83780         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
83781         (xmalloc, xrealloc): Use them.
83782         (xcalloc): Check for address arithmetic overflow.
83783         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
83784         a bit faster than strcpy.
83785
83786 2003-10-10  Simon Josefsson  <jas@extundo.com>
83787
83788         * modules/argp (Depends-on): Add restrict and strcase.
83789
83790 2003-10-10  Simon Josefsson  <jas@extundo.com>
83791
83792         * m4/argp.m4: Add AC_C_INLINE.
83793
83794 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83795
83796         Merge getpass from libc, plus a few fixes.
83797
83798         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
83799         Include <stdbool.h>.
83800         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
83801         __fsetlocking to empty.
83802         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
83803         do include <bits/libc-lock.h>.
83804         Do not include <fcntl.h>; not needed.
83805         [_LIBC]: Include <wchar.h>.
83806         (NOTCANCEL_MODE): New macro.
83807         (flockfile, funlockfile) [_LIBC]: New macros.
83808         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
83809         [!_LIBC]: New macros.
83810         (call_fclose): New function.
83811         (getpass): Use it.  Save tty stream separately; this simplifies the
83812         code and makes it more reliable if stdin happens to equal stdout.
83813         Invoke __fsetlocking on tty.
83814         Handle thread cancellation if needed.
83815         Namespace cleanup (use __tcgetattr, __getline).
83816         Use bool for Booleans.
83817         [USE_IN_LIBIO]: Handle wide streams.
83818         [!_LIBC]: Unconditionally do the fseek, since we don't know what
83819         stream might go where.
83820
83821         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
83822         doesn't have to include <stdio.h> before us.
83823         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
83824         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
83825         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
83826         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
83827         if not declared, so that we can use getpass.c code from libc without
83828         rewriting it.
83829         (flockfile, ftrylockfile, funlockfile): New macros.
83830
83831 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83832
83833         * modules/getpass: Depend on stdbool.
83834
83835 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83836
83837         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
83838
83839 2003-10-07  Karl Berry  <karl@gnu.org>
83840
83841         * config/config.{guess,sub}: update from config.
83842
83843 2003-10-06  Jim Meyering  <jim@meyering.net>
83844             Bruno Haible  <bruno@clisp.org>
83845
83846         This lets translators provide better translations for the
83847         "Written by ..." part of --version output.
83848         * lib/version-etc.h: Include stdarg.h.
83849         (version_etc_copyright): Declare as readonly.
83850         (version_etc): Make this function variadic with a NULL-terminated list
83851         of author name strings.
83852         (version_etc_va): New declaration.
83853         * lib/version-etc.c: Include stdarg.h, stdlib.h.
83854         (version_etc_copyright): Declare as readonly.
83855         (version_etc_va): New function. Provide a different translatable string
83856         for each possible number of authors < 10. Abbreviate when there are 10
83857         authors or more.
83858         (version_etc): Make this function variadic. Call version_etc_va.
83859         Suggestion from Gary V. Vaughan.
83860
83861         * lib/long-options.h (parse_long_options): Change prototype: the
83862         authors string is moved to the end and becomes variadic.
83863         * lib/long-options.c: Include stdarg.h.
83864         (parse_long_options): Make this function variadic, too.
83865         Call version_etc_va, not version_etc.
83866
83867 2003-10-06  Bruno Haible  <bruno@clisp.org>
83868
83869         * modules/version-etc-2: Remove file.
83870         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
83871
83872 2003-10-06  Bruno Haible  <bruno@clisp.org>
83873
83874         * modules/fatal-signal: New file.
83875         * MODULES.html.sh (func_all_modules): Add fatal-signal.
83876
83877 2003-10-06  Bruno Haible  <bruno@clisp.org>
83878
83879         * m4/fatal-signal.m4: New file.
83880         * m4/signalblocking.m4: New file, from GNU gettext.
83881
83882 2003-10-06  Bruno Haible  <bruno@clisp.org>
83883
83884         * lib/version-etc-2.h: Remove file.
83885         * lib/version-etc-2.c: Remove file.
83886
83887 2003-10-06  Bruno Haible  <bruno@clisp.org>
83888
83889         * lib/fatal-signal.h: New file, from GNU gettext.
83890         * lib/fatal-signal.c: New file, from GNU gettext.
83891
83892 2003-10-05  Paul Eggert  <eggert@twinsun.com>
83893
83894         * README: Rework advice for preventing empty .o files.
83895         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
83896         not <sys/types.h>.
83897
83898 2003-10-04  Karl Berry  <karl@gnu.org>
83899
83900         * lib/argp*: update from libc.
83901
83902 2003-10-04  Karl Berry  <karl@gnu.org>
83903
83904         * config/config.{guess,sub}: update from config.
83905
83906 2003-10-02  Bruno Haible  <bruno@clisp.org>
83907
83908         * modules/lchown (Include): Add lchown.h.
83909         * modules/time_r (Include): Use "..." syntax.
83910         * modules/xgetdomainname (Include): Add xgetdomainname.h.
83911
83912 2003-10-01  Simon Josefsson  <jas@extundo.com>
83913
83914         * MODULES.html.sh (func_all_modules): Move gethostname from section
83915         'based on' to section 'lacking' POSIX:2001.
83916
83917 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
83918
83919         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
83920         to output mode on the same stream.
83921
83922 2003-09-29  Paul Eggert  <eggert@twinsun.com>
83923
83924         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
83925         Fix arg typo in previous patch.
83926
83927 2003-09-28  Jim Meyering  <jim@meyering.net>
83928
83929         * lib/error.c: Correct cpp indentation.
83930
83931 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83932
83933         * modules/free: New file.
83934
83935 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83936
83937         * m4/free.m4: New file.
83938
83939 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83940
83941         * lib/minmax.h (MIN, MAX)
83942         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
83943         Omit the special code that used __typeof__, since we worry that
83944         it could be more trouble than it's worth.  See:
83945         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
83946         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
83947
83948         * lib/free.c: New file.
83949
83950 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
83951
83952         Trivial fixes to Makefile.am parts of module listings.
83953         * modules/strstr: Append strstr.h to lib_SOURCES.
83954         * modules/strcase: Likewise, for strcase.h.
83955
83956 2003-09-27  Karl Berry  <karl@gnu.org>
83957
83958         * config/mkinstalldirs: update from automake.
83959
83960 2003-09-26  Paul Eggert  <eggert@twinsun.com>
83961
83962         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
83963         (error_tail): Do not loop, reallocating temporary buffer, since
83964         the output cannot contain more wide characters than the input
83965         contains bytes, the size must be big enough already.  This avoids
83966         one potential size overflow calculation.  Check for size overflow
83967         when calculating temporary buffer size.  Free temporary buffer
83968         when done, if it was allocated with malloc; this plugs a memory
83969         leak.  Remove casts from void * to pointers, that are no longer
83970         needed now that we're assuming C89 or better.
83971
83972         Merge error changes from glibc.
83973
83974         * lib/error.c, error.h: Update copyright notice header to match glibc.
83975         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
83976         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
83977         Disable cancellation while printing error.
83978         * lib/error.h: Prepend __ to parameter names.
83979
83980 2003-09-26  Jim Meyering  <jim@meyering.net>
83981
83982         * lib/error.c (error_tail): Move some declarations
83983         into inner scope where the local variables are used.
83984
83985 2003-09-26  Bruno Haible  <bruno@clisp.org>
83986
83987         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
83988         stpncpy().
83989         Don't define stpncpy through config.h; it's now done through stpncpy.h.
83990
83991 2003-09-26  Bruno Haible  <bruno@clisp.org>
83992
83993         * lib/stpncpy.h (gnu_stpncpy): New declaration.
83994         (stpncpy): Define as alias for gnu_stpncpy.
83995         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
83996
83997 2003-09-25  Simon Josefsson  <jas@extundo.com>
83998
83999         * lib/xgetdomainname.h: New file.
84000         * lib/xgetdomainname.c: New file.
84001
84002 2003-09-25  Simon Josefsson  <jas@extundo.com>
84003             Bruno Haible  <bruno@clisp.org>
84004
84005         * modules/getdomainname: New file.
84006         * modules/xgetdomainname: New file.
84007         * MODULES.html.sh (func_all_modules): Add getdomainname,
84008         xgetdomainname.
84009
84010 2003-09-25  Simon Josefsson  <jas@extundo.com>
84011             Bruno Haible  <bruno@clisp.org>
84012
84013         * m4/getdomainname.m4: New file.
84014
84015 2003-09-25  Simon Josefsson  <jas@extundo.com>
84016             Bruno Haible  <bruno@clisp.org>
84017
84018         * lib/getdomainname.h: New file.
84019         * lib/getdomainname.c: New file.
84020
84021 2003-09-25  Karl Berry  <karl@gnu.org>
84022
84023         * lib/argp-fmtstream.c, argp-help.c: update from libc.
84024
84025 2003-09-25  Karl Berry  <karl@gnu.org>
84026
84027         * config/install-sh: update from automake.
84028
84029 2003-09-25  Bruno Haible  <bruno@clisp.org>
84030
84031         * modules/version-etc-2: New file, from modules/version-etc with
84032         modifications.
84033         * MODULES.html.sh (func_all_modules): Add version-etc-2.
84034
84035 2003-09-25  Bruno Haible  <bruno@clisp.org>
84036
84037         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
84038         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
84039
84040 2003-09-24  Simon Josefsson  <jas@extundo.com>
84041
84042         * modules/xgethostname: Add xgethostname.h.
84043
84044 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84045
84046         * lib/linebuffer.c (freebuffer): Don't free the argument, just
84047         the buffer associated with the argument.  Bug reported by
84048         Simon Josefsson.
84049
84050 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84051
84052         * README: Document assumptions that 'int' is at least 32 bits
84053         wide, that integer arithmetic is 2's complement without overflow,
84054         that there are no holes in integer values, that adding sizes of
84055         two nonoverlapping objects can't overflow, and that all-bits-zero
84056         yields scalar zero.  Fix spelling and capitalization typos.
84057
84058 2003-09-19  Karl Berry  <karl@gnu.org>
84059
84060         * lib/argp.h: update from libc.
84061
84062 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84063
84064         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
84065         to avoid spurious warnings like "AC_RUN_IFELSE was called before
84066         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
84067
84068 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84069
84070         * gnulib-tool: Use "test -h", not "test -L", for portability
84071         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
84072         (tags_regexp): Remove, since \| doesn't conform to POSIX.
84073         (sed_extract_prog): Issue s commands one-by-one, rather than
84074         using \| in one s command.
84075
84076 2003-09-16  Paul Eggert  <eggert@twinsun.com>
84077
84078         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
84079         input error, instead of returning NULL the next time we are called
84080         (and therefore losing track of errno).
84081
84082 2003-09-16  Bruno Haible  <bruno@clisp.org>
84083
84084         * gnulib-tool (func_create_testdir): Warn about duplicated
84085         dependencies.
84086
84087 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84088
84089         * modules/argmatch, modules/fatal, modules/obstack,
84090         modules/xalloc, modules/xgethostname: Sort dependencies by
84091         importance, not alphabetically.
84092
84093 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84094
84095         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
84096         fails, so that the caller gets the proper errno.
84097
84098         * lib/readutmp.c (read_utmp): Likewise.
84099         Check for fstat error.  Close stream and free storage
84100         when failing.
84101
84102 2003-09-14  Karl Berry  <karl@gnu.org>
84103
84104         * config/srclist.txt (strdup.c): disable for c89 changes.
84105
84106 2003-09-14  Jim Meyering  <jim@meyering.net>
84107
84108         * lib/getloadavg.c: Correct cpp indentation.
84109         * lib/strdup.c: Likewise.
84110         * lib/vasnprintf.c: Likewise.
84111
84112 2003-09-14  Bruno Haible  <bruno@clisp.org>
84113
84114         * modules/fwriteerror: New file.
84115         * MODULES.html.sh (func_all_modules): Add fwriteerror.
84116
84117 2003-09-14  Bruno Haible  <bruno@clisp.org>
84118
84119         * lib/fwriteerror.h: New file.
84120         * lib/fwriteerror.c: New file.
84121
84122 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84123
84124         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
84125         modules/xgethostname, modules/xalloc: Depend on exit.
84126
84127 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84128
84129         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
84130
84131         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
84132         and AC_MINIX, too, so that their extensions are available.
84133
84134         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
84135         This macro has been superseded by gl_BACKUPFILE.
84136
84137         More patches to assume C89 or better.
84138
84139         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
84140
84141         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
84142         unconditionally.
84143         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
84144         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
84145         Include <string.h>, <stdlib.h> unconditionally.
84146         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
84147         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
84148         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
84149         headers or for string.h.
84150         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
84151         or strtoul.
84152
84153         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
84154         headers.
84155         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
84156         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84157         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
84158         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
84159         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84160         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
84161         memcpy, memset.
84162         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
84163         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
84164         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
84165         strtol.
84166         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
84167         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
84168         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
84169         strtoul.
84170
84171 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84172
84173         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
84174         * lib/obstack.c [!defined _LIBC]: Likewise.
84175         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
84176         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
84177         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
84178
84179         More changes to assume C89 or better.
84180
84181         * lib/error.c (error_tail): Assume vprintf.
84182
84183         * lib/argmatch.c (getenv): Remove decl.
84184         * lib/progreloc.c (get_full_program_name): Define via prototype.
84185         * lib/setenv.c (clearenv): Likewise.
84186         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
84187         needed.
84188         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
84189         (malloc, memcpy): Remove decls.
84190         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
84191         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
84192         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84193         (memcpy): Remove macro.
84194         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
84195         (__P): Remove.  All uses removed.
84196         (PTR): Remove.  All uses changed to void *.
84197         (CHAR_BIT, NULL): Remove.
84198         (spaces, zeros, memset_space, memset_zero)
84199         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
84200         Remove.
84201         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
84202         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
84203         Define with prototype.
84204         Remove now-unnecessary prototype decl.
84205         (extra_args_spec): Assume ANSI C.  All uses changed.
84206         (extra_args_spec_iso): Remove.
84207         (my_strftime, emacs_strftimeu): Define via prototype.
84208         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
84209         unconditionally.
84210         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
84211         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
84212         (strtoul, strtol): Remove decls.
84213         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
84214         LONG_MAX): Remove.
84215         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84216         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
84217         (LOCALE_PARAM_PROTO): New macro.
84218         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
84219         (INTERNAL (strtol), strtol): Define with a prototype.
84220         (PARAMS): Remove.  All uses removed.
84221         * lib/tempname.c: Include <string.h> unconditionally.
84222         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
84223         * lib/xgethostname.c (main): Define with a prototype.
84224         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
84225         Include <stdlib.h> unconditionally.
84226         (calloc, malloc, realloc, free): Remove decls.
84227         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
84228         Include <stdlib.h> unconditionally.  Sort include file names.
84229         (strtod): Remove.
84230         (xstrtod): Define with a prototype.
84231         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
84232         (strtol, strtoul): Remove decls.
84233
84234 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84235
84236         More patches to assume C89 or better.
84237         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
84238         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
84239         string.h, memchr, STDC_HEADERS.
84240
84241 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84242
84243         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
84244         Include <stdlib.h>, <string.h> unconditionally.
84245         Remove now-unnecessary cast to char *.
84246         * lib/strnlen.c: Include <string.h> unconditionally.
84247         * lib/yesno.c (yesno): Define with a prototype.
84248
84249 2003-09-11  Bruno Haible  <bruno@clisp.org>
84250
84251         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
84252
84253 2003-09-10  Jim Meyering  <jim@meyering.net>
84254
84255         * lib/error.c: Correct indentation of cpp directives.
84256
84257 2003-09-10  Bruno Haible  <bruno@clisp.org>
84258
84259         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
84260         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
84261         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
84262         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
84263         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
84264         <stdlib.h> and <string.h> checks.
84265         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
84266         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
84267
84268 2003-09-10  Bruno Haible  <bruno@clisp.org>
84269
84270         * lib/strcspn.c: Include <string.h> unconditionally.
84271         * lib/strpbrk.c: Include <string.h> unconditionally.
84272         * lib/strstr.c: Include <string.h> unconditionally.
84273         * lib/unicodeio.c: Include <string.h> unconditionally.
84274         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
84275         * lib/unsetenv.c: Likewise.
84276         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
84277         * lib/yesno.c: Include <stdlib.h> unconditionally.
84278         (rpmatch): Add prototype.
84279
84280 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84281
84282         More patches to assume C89 or better.
84283         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
84284         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
84285         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
84286         or for string.h.
84287         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
84288         stdlib.h.
84289         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
84290         C headers.
84291         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
84292         string.h.
84293         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
84294         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
84295         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
84296         or for string.h.
84297         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
84298         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
84299         C headers.
84300         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
84301         memcpy.
84302         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
84303         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
84304         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
84305         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
84306         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
84307         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
84308         string.h, free.
84309         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
84310         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
84311         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
84312         C headers, or for string.h.
84313         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
84314         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
84315         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
84316         headers, memory.h, stdlib.h, string.h, strings.h.
84317         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
84318         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
84319         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
84320         strchr.
84321         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
84322         headers, memory.h, string.h.
84323         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
84324         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
84325         free.
84326         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
84327         headers.
84328         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
84329         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
84330         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
84331         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
84332         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
84333
84334 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84335
84336         More K&R removal.
84337
84338         * lib/acosl.c (main): Use a prototype.
84339         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
84340         tanl.c: Likewise.
84341
84342         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
84343
84344         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
84345         (getopt, etopt_long, getopt_long_only, _getopt_internal)
84346         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
84347         with a prototype.
84348         * lib/getopt.c (const): Remove macro.
84349         Include <string.h> unconditionally.
84350         (my_index): Remove; all uses changed to strchr.
84351         (strlen): Remove decl.
84352         (exchange): Remove forward decl; no longer needed.
84353         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
84354         Define with prototype.
84355         * lib/getopt1.c (const): Remove macro.
84356         (getopt_long, getopt_long_only, main): Define with prototype.
84357
84358         * lib/getugroups.c: Include <string.h> unconditionally.
84359
84360         * lib/getusershell.c: Include <stdlib.h> unconditionally.
84361         (getusershell, setusershell, endusershell, readname, main):
84362         Define with prototypes.
84363
84364         * lib/group-member.c: Include group-member.h first.
84365         Include <stdlib.h> unconditionally.
84366
84367         * lib/hard-locale.c: Include hard-locale.h first.
84368         Include <stdlib.h>, <string.h> unconditionally.
84369
84370         * lib/hash.c (free, malloc): Remove decls.
84371         Include <stdlib.h> unconditionally.
84372
84373         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
84374         (getenv): Do not declare.
84375
84376         * lib/idcache.c: Include <string.h> unconditionally.
84377
84378         * lib/long-options.c: Include long-options.h first, to test interface.
84379         Include <stdlib.h> unconditionally.
84380
84381         * lib/makepath.c: Include makepath.h first, to test interface.
84382         Include <stdlib.h> and <string.h> unconditionally.
84383
84384         * lib/linebuffer.c: Include <stdlib.h>.
84385         (free): Remove decl.
84386
84387         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
84388         stddef.h. rpl_malloc returns void *, not char *.
84389         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
84390         prototype.
84391
84392         * lib/md5.h: Include <limits.h> unconditionally.
84393         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
84394         (__P): Remove; all uses removed.
84395         * lib/md5.c: Include "md5.h" first.
84396         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
84397         md5_buffer, md5_process_bytes, md5_process_block):
84398         Define with prototypes.
84399         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
84400         * lib/sha.c: Include "sha.h" first.
84401         Include <stdlib.h>, <string.h> unconditionally.
84402
84403         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
84404         * lib/memcmp.c (__ptr_t): Likewise.
84405         * lib/memrchr.c (__ptr_t): Likewise.
84406         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
84407         Include <string.h> unconditionally.
84408         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
84409         * lib/memchr.c: Include <stdlib.h> unconditionally.
84410         * lib/memchr.c (LONG_MAX): Remove.
84411         * lib/memrchr.c (LONG_MAX): Likewise.
84412         * lib/memchr.c (__memchr): Define via a prototype.
84413         * lib/memrchr.c (__memrchr): Likewise.
84414         * lib/memcmp.c (__P): Remove, and remove all uses.
84415         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
84416         Remove forward decls; no longer needed.
84417         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
84418         Use types required by C89 in prototype.
84419
84420         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
84421         * lib/savedir.c: Likewise.
84422         * lib/mkdir.c (free): Remove decl.
84423         * lib/rmdir.c (rmdir): Define with a prototype.
84424         * lib/savedir.c: Include savedir.h first, to test interface.
84425
84426         * lib/mktime.c (STDC_HEADERS): Remove.
84427         Include <stdlib.h>, <string.h> unconditionally.
84428
84429         * lib/modechange.c: Include <stdlib.h> unconditionally.
84430         (malloc): Remove decl.
84431
84432         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
84433         (free): Remove decl.
84434
84435         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
84436         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
84437         (This type really should be intptr_t, but that's a C99ism.)
84438         (_obstack_memcpy): Remove: all uses changed to memcpy.
84439         Include <string.h> unconditionally.
84440         (struct obstack): Assume __STDC__ for types of members
84441         chunkfun, freefun, extra_arg.
84442         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
84443         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
84444         obstack_begin, obstack_specify_allocation,
84445         obstack_specify_allocation_with_arg, obstack_chunkfun,
84446         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
84447         Remove unprototyped decls and the macros that use them.
84448         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
84449         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
84450         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
84451         (defined __STDC__ && __STDC__)]:
84452         Remove nonprototyped code.
84453         Include <stdlib.h> unconditionally.
84454         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
84455         _obstack_allocated_p, _obstack_free, obstack_free,
84456         _obstack_memory_used, print_and_abort):
84457         Define using prototypes.
84458         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
84459         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
84460         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
84461         obstack_next_free, obstack_object_size, obstack_room) [0]:
84462         Remove unused, unprototyped code.
84463
84464         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
84465
84466         * lib/physmem.c (physmem_total, physmem_available, main): Define
84467         with prototypes.
84468
84469         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
84470         (main): Define with a prototype.
84471
84472         * lib/posixver.c (getenv): Remove decl.
84473
84474         * lib/putenv.c (malloc): Returns void *, not char *.
84475         Include <string.h> unconditionally.
84476         (strchr, memcpy, NULL): Do not define.
84477
84478         * lib/readtokens.c: Include readtokens.h first, to test interface.
84479         Include <stdlib.h>, <string.h> unconditionally.
84480         (init_tokenbuffer): Define with a prototype.
84481
84482         * lib/regex.c (PARAMS): Remove.  All uses removed.
84483         All uses of _RE_ARGS removed, too.
84484         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84485         unconditionally.
84486         (bzero): Assume memset exists.
84487         (memcmp, memcpy, NULL): Remove.
84488         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
84489         char, or assignments to local vars of type signed char.
84490         (init_syntax_once, PREFIX(extract_number_and_incr),
84491         PREFIX(print_partial_compiled_pattern),
84492         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
84493         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
84494         PREFIX(regex_grow_registers), PREFIX(regex_compile),
84495         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
84496         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
84497         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
84498         wcs_compile_range, byte_compile_range, truncate_wchar,
84499         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
84500         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
84501         count_mbs_length, wcs_re_match_2_internal,
84502         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
84503         PREFIX(alt_match_null_string_p),
84504         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
84505         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
84506         regfree, PREFIX(extract_number)): Define with prototype.  Remove
84507         now-unnecessary declaration, if any.
84508         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
84509         regcomp, regexec):
84510         Remove now-unnecessary casts among pointer types.
84511         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
84512
84513         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
84514         (free): Remove decl.
84515
84516         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
84517
84518         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
84519         (free): Remove decl.
84520
84521         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
84522         * lib/xgetcwd.c: Likewise.
84523
84524         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
84525         (free): Remove decl.
84526
84527         * lib/strchrnul.c (strchrnul): Define with a prototype.
84528         Fix bug: c_in was not converted to char before searching.
84529
84530         The following changes are not K&R related:
84531
84532         * lib/group-member.h: Include <sys/types.h>, so that this file is
84533         self-contained.
84534         * lib/makepath.h: Likewise.
84535
84536         * lib/getusershell.c (readname, default_index, line_size, readname):
84537         Use size_t, not int, for sizes.
84538         (readname): If the size overflows, report an error instead of
84539         looping forever.
84540
84541 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84542
84543         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
84544         libc.
84545
84546 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84547
84548         * README: New section: portability guidelines.
84549
84550 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84551
84552         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
84553         C89 spec.
84554
84555 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84556
84557         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
84558
84559 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84560
84561         Assume C89 or better; remove K&R cruft.
84562         A few of these changes were first proposed by Derek Robert Price
84563         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
84564
84565         * lib/addext.c: Include <string.h> unconditionally.
84566         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
84567         Don't declare getenv or malloc.
84568
84569         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
84570         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
84571         (NULL): Remove.
84572         (find_stack_direction, alloca): Use prototypes.
84573
84574         * lib/atexit.c (atexit): Define using a prototype.
84575
84576         * lib/basename.c, dirname.c, stripslash.c:
84577         Include <string.h> unconditionally.
84578
84579         * lib/bcopy.c: Include <stddef.h>.
84580         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
84581
84582         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
84583
84584         * lib/error.h (error, error_at_line, error_print_progname)
84585         [! (defined (__STDC__) && __STDC__)]: Remove decls.
84586         * lib/error.c: Include error.h first, to check interface.
84587         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84588         (VA_START): Remove; all uses changeed to va_start.
84589         (exit, strerror): Remove decls.
84590         (error_print_progname): Prototype uncondionally.
84591         Don't include <errno.h>; no longer needed.
84592         (private_strerror): Remove.
84593         (error_tail): Always define.
84594         (error, error_at_line): Assume C89 or better; always use prototypes.
84595         * lib/fatal.c: Include "fatal.h" first, to test interface.
84596         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84597         (VA_START): Remove; all uses changed to va_start.
84598         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
84599         this case.
84600         (exit): Remove decl.
84601         (fatal): Prototype unconditionally.  Assume va_start works.
84602         Abort at end, to pacify gcc.
84603
84604         * lib/euidaccess.c (main): Define with a prototype.
84605
84606         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
84607
84608         * lib/exitfail.c: Include <stdlib.h> unconditionally.
84609
84610         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
84611         prototypes.
84612         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
84613         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
84614         (getenv): Remove decl.
84615         (fnmatch): Define using a prototype.
84616         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
84617         (FCT): Define using a prototype.
84618
84619         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
84620
84621         * lib/gethostname.c: Include <stddef.h>.
84622         (gethostname): Define with prototype.  Length is size_t, not int.
84623
84624 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84625
84626         Assume C89 or better; remove K&R cruft.
84627         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
84628         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
84629         string.h, getenv, malloc.
84630         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
84631         headers.
84632         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
84633         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
84634         do not check for strerror.
84635         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
84636         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
84637         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
84638         do not check for doprnt or vprintf.
84639         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
84640         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
84641
84642 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84643
84644         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
84645         getversion.c should have been removed then, but was accidentally
84646         preserved.
84647
84648         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
84649         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
84650
84651 2003-09-08  Karl Berry  <karl@gnu.org>
84652
84653         * config/config.sub, config.guess, srclistvars.sh: update from savannah
84654                 config, forget about prep.
84655
84656         * config/depcomp, missing: update from automake.
84657
84658 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84659
84660         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
84661         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84662
84663 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84664
84665         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
84666         copy_tm_result.  Bug reported by Simon Josefsson in
84667         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84668
84669 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84670
84671         * m4/time_r.m4: New file.
84672         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
84673         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
84674         is. Check for timegm declaration.
84675         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
84676         Do not check for gmtime_r.
84677         Replace mktime if __mktime_internal does not exist and if mktime
84678         hasn't been replaced already.
84679
84680 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84681
84682         * lib/time_r.c, lib/time_r.h: New files.
84683
84684         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
84685         __localtime_r.
84686         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
84687         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
84688
84689         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
84690         __gmtime_r.
84691         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
84692         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
84693         Include <time_r.h>.
84694
84695         * lib/timegm.c: Switch to glibc implementation, with the following
84696         changes:
84697         [defined HAVE_CONFIG_H]: Include <config.h>.
84698         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
84699         (__mktime_internal) [!defined _LIBC]: New decl.
84700         (__gmtime_r) [!defined _LIBC]: New macro and function.
84701         (timegm): Use a prototype, since gnulib assumes C89.
84702         Do not bother declaring tmp to be const, as it's not really usefu.
84703         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
84704         (timegm): Declare only if HAVE_DECL_TIMEGM.
84705
84706 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84707
84708         * MODULES.html.sh (func_all_modules): Add time_r.
84709         * modules/time_r: New file.
84710         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
84711         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
84712
84713 2003-09-03  Paul Eggert  <eggert@twinsun.com>
84714
84715         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
84716         Bug reported by Lute Kamstra in
84717         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
84718
84719         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
84720         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
84721         course with correspondingly smaller numbers for tomorrow and
84722         yesterday.  From Tadayoshi Funaba.  Originally installed into
84723         sh-utils on 1999-08-07, but the patch got lost (I guess during the
84724         coreutils merge?).
84725
84726 2003-08-31  Simon Josefsson  <jas@extundo.com>
84727
84728         * modules/timegm: New file.
84729         * MODULES.html.sh (func_all_modules): Add timegm.
84730
84731 2003-08-31  Simon Josefsson  <jas@extundo.com>
84732
84733         * m4/timegm.m4: New file.
84734
84735 2003-08-31  Simon Josefsson  <jas@extundo.com>
84736
84737         * lib/timegm.h: New file.
84738         * lib/timegm.c: New file.  Based on
84739         wget-1.8.2/src/http.c:mktime_from_utc.
84740
84741 2003-08-31  Karl Berry  <karl@gnu.org>
84742
84743         * lib/argp.h: update from libc.
84744
84745 2003-08-28  Bruno Haible  <bruno@clisp.org>
84746
84747         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
84748         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
84749         followed by '#define fnmatch fnmatch_posix' gives an error.
84750
84751 2003-08-28  Bruno Haible  <bruno@clisp.org>
84752
84753         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
84754         warning on QNX, which defines O_BINARY to 000000.
84755
84756 2003-08-27  Jim Meyering  <jim@meyering.net>
84757
84758         * m4/mkstemp.m4: Require that the system mkstemp be able to create
84759         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
84760         would fail after 32.  Reported by Danny Levinson.  Details here:
84761         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
84762
84763 2003-08-24  Bruno Haible  <bruno@clisp.org>
84764
84765         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
84766         MSVC7 <stdio.h> is included later.
84767
84768 2003-08-22  Simon Josefsson  <jas@extundo.com>
84769
84770         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
84771
84772 2003-08-20  Karl Berry  <karl@gnu.org>
84773
84774         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
84775
84776 2003-08-20  Bruno Haible  <bruno@clisp.org>
84777
84778         * modules/progname: New file.
84779         * MODULES.html.sh (func_all_modules): Add progname.
84780
84781 2003-08-20  Bruno Haible  <bruno@clisp.org>
84782
84783         * lib/progname.h: New file, from GNU gettext.
84784         * lib/progname.c: New file, from GNU gettext.
84785         * lib/progreloc.c: New file, from GNU gettext.
84786
84787 2003-08-19  Jim Meyering  <jim@meyering.net>
84788
84789         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
84790         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
84791
84792 2003-08-19  Bruno Haible  <bruno@clisp.org>
84793
84794         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
84795         more.
84796
84797 2003-08-19  Bruno Haible  <bruno@clisp.org>
84798
84799         * lib/xstrdup.c: Assume <string.h> exists.
84800
84801 2003-08-18  Paul Eggert  <eggert@twinsun.com>
84802
84803         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
84804         in makefile rules.
84805
84806 2003-08-18  Jim Meyering  <jim@meyering.net>
84807
84808         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
84809         * m4/lib-ld.m4: Likewise.
84810
84811 2003-08-18  Jim Meyering  <jim@meyering.net>
84812
84813         * lib/setenv.h: Indent nested cpp directive.
84814         * lib/vasnprintf.c: Remove trailing blanks.
84815
84816 2003-08-17  Simon Josefsson  <jas@extundo.com>
84817
84818         * modules/xstrndup: New file.
84819         * MODULES.html.sh (func_all_modules): Add xstrndup.
84820
84821 2003-08-17  Simon Josefsson  <jas@extundo.com>
84822
84823         * modules/argp: Fix autoconf macro name. Add more dependencies.
84824
84825 2003-08-17  Simon Josefsson  <jas@extundo.com>
84826
84827         * m4/xstrndup.m4: New file.
84828
84829 2003-08-17  Simon Josefsson  <jas@extundo.com>
84830
84831         * m4/argp.m4: New file.
84832
84833 2003-08-17  Simon Josefsson  <jas@extundo.com>
84834             Bruno Haible  <bruno@clisp.org>
84835
84836         * lib/xstrndup.h: New file.
84837         * lib/xstrndup.c: New file.
84838
84839 2003-08-17  Bruno Haible  <bruno@clisp.org>
84840
84841         * modules/strndup (Files, Include): Add lib/strndup.h.
84842
84843 2003-08-17  Bruno Haible  <bruno@clisp.org>
84844
84845         * modules/euidaccess (Files): Add lib/euidaccess.h.
84846
84847 2003-08-17  Bruno Haible  <bruno@clisp.org>
84848
84849         * lib/strndup.h: New file.
84850
84851 2003-08-17  Bruno Haible  <bruno@clisp.org>
84852
84853         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
84854         like AC_GNU_SOURCE.
84855         * modules/extensions (configure.ac): Comment out the invocation of
84856         gl_USE_SYSTEM_EXTENSIONS.
84857
84858 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84859
84860         Merges from coreutils, etc.
84861         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
84862         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
84863         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
84864         fixing a typo.
84865         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
84866         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
84867
84868 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84869
84870         Document merge from coreutils.
84871         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
84872         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
84873         * modules/utime: Add m4/utimes-null.m4.
84874
84875 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84876
84877         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
84878         space, undoing this 2003-08-12 change:
84879         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84880
84881 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84882
84883         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
84884         strtoul.c from libc, undoing this 2003-08-12 change:
84885         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84886
84887 2003-08-16  Jim Meyering  <jim@meyering.net>
84888
84889         Merges from coreutils.
84890         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
84891         prefix.  Adjust cache variables similarly.  Create 500 rather than
84892         just 300 files, to exercise bug on Darwin6.5, too.
84893         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
84894         $missing_dir.
84895         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
84896         AM_SYS_POSIX_TERMIOS.
84897         Reported by mkc@mathdogs.com.
84898         Also change use of $am_cv_sys_posix_termios
84899         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
84900         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
84901         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
84902         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
84903         in /proc/mounts until it finds one with matching device number.  This
84904         is unnecessary when the FILE argument *is* a mount point.  No stat call
84905         is necessary in that case.  So, disable the statvfs-testing code on
84906         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
84907         as RedHat bug# 84846.
84908         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84909         to 1MB, so as not to render systems with no stack size limit (e.g.,
84910         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84911         Include <unistd.h>.  On some systems,
84912         it is required for the definition of _SC_PAGESIZE.
84913
84914 2003-08-16  Jim Meyering  <jim@meyering.net>
84915
84916         Merge from coreutils.
84917         * lib/xstrtoimax.c: #else #if -> #elif.
84918         * lib/xstrtoumax.c: Likewise.
84919
84920 2003-08-16  Jim Meyering  <jim@meyering.net>
84921
84922         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
84923         * m4/utimes.m4: Removed.
84924         * m4/utimes-null.m4: Renamed from utimes.m4.
84925
84926         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84927         to 1MB, so as not to render systems with no stack size limit (e.g.,
84928         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84929         Include <unistd.h>.  On some systems,
84930         it is required for the definition of _SC_PAGESIZE.
84931
84932 2003-08-16  Jim Meyering  <jim@meyering.net>
84933         and Paul Eggert  <eggert@cs.ucla.edu>
84934
84935         Merges from coreutils, etc.
84936
84937         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
84938         using the latest version from cvs.  This avoids problems with #line
84939         directives using a vendor (Sun) compiler.
84940         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
84941         Don't set GETGROUPS_LIB here; now it's
84942         done via getgroups.m4's wrapper function.
84943         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
84944         rather than just in sh-util/configure.in, so that the
84945         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
84946         same.
84947         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
84948         AC_FUNC_GETLOADAVG where to find getloadavg.c.
84949         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
84950         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
84951         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
84952         Remove code that is now done by the newly-required macros.
84953         Append $(EXEEXT) to DF_PROG.
84954         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
84955         Do not invoke or require the following here,
84956         since prereq.m4 or some gnulib .m4 now does this for us:
84957         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
84958         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
84959         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
84960         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
84961         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
84962         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
84963         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
84964         AC_FUNC_OBSTACK.
84965         Do not replace the following functions, as this is now the job
84966         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
84967         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
84968         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
84969         atexit getpass, strdup, getpagesize.
84970         Replace 'raise'.
84971         Do not check for the following functions, as this is now the job
84972         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
84973         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
84974         setregid.
84975         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
84976         Check for sys/sysctl.h.
84977         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
84978         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
84979         of checking for ssize_t ourselves.
84980
84981         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
84982         Require every macro that gnulib/modules/* suggests for us.
84983         (jm_PREREQ_ADDEXT): New macro.
84984         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
84985         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
84986
84987         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
84988         (gl_PHYSMEM): Use it.
84989         Also check for `table' function.
84990         Check for new headers and functions.
84991         Add check for sys/sysmp.h.
84992         With suggestions from Kaveh Ghazi.
84993         Ignore headers that are present but cannot be compiled.  This
84994         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
84995         C 5.4.
84996
84997 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84998
84999         Document merge from coreutils.
85000         * modules/userspec: Depend on posixver.
85001         * modules/strftime: Depend on tzset.
85002
85003 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85004
85005         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
85006         rather than tab, after '#' in shell-script copyright notices.
85007         Suggested by Bruno Haible.
85008
85009 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85010
85011         * config/srclist-update: Use three spaces, rather than tab, after '#'
85012         in shell-script copyright notices.  Suggested by Bruno Haible.
85013         Remove unnecessary parenthesization in regular expression.
85014
85015 2003-08-15  Jim Meyering  <jim@meyering.net>
85016
85017         Merge from coreutils.
85018         * lib/xgethostname.c: Include <stdlib.h>.
85019         (xghostname): Don't exit for anything other than memory-related
85020         failure; just return NULL.
85021         * lib/userspec.c: Include "posixver.h".
85022         (parse_user_spec): Accept `.' as a separator only
85023         in pre-POSIX-200112 mode.
85024         * lib/strtoimax.c: Use #elif rather than #else #if.
85025         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
85026         Remove function, now that we can rely on a working tzset function.
85027         [!_LIBC]: Ensure that the required autoconf test has been run.
85028         [!defined _NL_CURRENT && HAVE_STRFTIME]:
85029         Use underlying_strftime for %r.
85030         * lib/sha.c: Merge in some clean-up and optimization changes from
85031         glibc.
85032         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
85033         Ensure that it is a multiple of 64.
85034         Rearrange loop exit tests so as to avoid performing an
85035         additional fread after encountering an error or EOF.
85036         * lib/realloc.c: Update copyright date.
85037
85038 2003-08-15  Jim Meyering  <jim@meyering.net>
85039         and Paul Eggert  <eggert@twinsun.com>
85040
85041         Merge from coreutils.
85042         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
85043         member but strut utmpx does not.  Needed for AIX 4.3.3.
85044         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
85045
85046 2003-08-15  Jim Meyering  <jim@meyering.net>
85047         and Paul Eggert  <eggert@cs.ucla.edu>
85048
85049         Merges from coreutils, etc.
85050         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
85051         Require gl_FUNC_TZSET_CLOBBER.
85052         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
85053         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
85054         members.
85055
85056 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85057
85058         Help the merge from coreutils.
85059         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
85060         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
85061         * m4/tzset.m4: Use it too.
85062
85063 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85064
85065         * modules/tzset: New file.
85066
85067 2003-08-14  Jim Meyering  <jim@meyering.net>
85068
85069         Merges from coreutils.
85070         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
85071         variable names, rather than @FNMATCH_H@.
85072         * modules/alloca: Likewise for $(ALLOCA_H).
85073
85074         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
85075         the three copies of the literal target, `fnmatch.h'.
85076         * modules/alloca (alloca.h): Likewise.
85077
85078 2003-08-14  Jim Meyering  <jim@meyering.net>
85079
85080         Merge from coreutils.
85081         * m4/tzset.m4: New file.
85082         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
85083         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
85084         otherwise, AIX 5.1 systems would end up using the latter.
85085         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
85086         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
85087         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
85088         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
85089
85090 2003-08-14  Jim Meyering  <jim@meyering.net>
85091
85092         Merge from coreutils.
85093         * lib/obstack.h: Whitespace changes.
85094         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
85095         and xcalloc return values.
85096         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
85097         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
85098         hang on OSF/1 5.1 for DIR on both local and remote file systems.
85099         Reported by (and fix confirmed by) Nelson H. F. Beebe.
85100         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85101         error from mntctl.
85102         Use mntctl's return value to drive the entry-processing loop, since
85103         we can't rely on the value of the vmt_length member in the last
85104         entry.  On some systems doing so could result in exhausting
85105         virtual memory.  Based in part on a patch from Mike Jetzer.
85106
85107 2003-08-14  Jim Meyering  <jim@meyering.net>
85108         and Paul Eggert  <eggert@twinsun.com>
85109
85110         Merges from coreutils, plus other fixes.
85111         * lib/physmem.c: Merge in portability changes from gcc/libiberty
85112         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
85113         for credits and details.  Thanks to Kaveh Ghazi for helping
85114         to keep these files in sync.
85115         (ARRAY_SIZE): Define it.
85116         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
85117         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
85118         (memcasecmp): Don't assume size_t fits in unsigned int.
85119         Remove casts and duplicate code.
85120         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
85121         (memcpy): Remove definition.
85122         Merge in some clean-up and optimization changes from glibc.
85123         [BLOCKSIZE]: Move definition to top of file.
85124         Ensure that it is a multiple of 64.
85125         Rearrange loop exit tests so as to avoid performing an
85126         additional fread after encountering an error or EOF.
85127         * lib/md5.h (md5_uintptr): Define.
85128         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
85129         return to the initial working directory.  Preserve errno
85130         for caller.
85131         * lib/idcache.c: Include "xalloc.h".
85132         (xmalloc, xrealloc): Remove decls.
85133         (getuser): Remove casts no longer required in C89.
85134         * lib/human.c: Include stdio.h, for sprintf.
85135         * lib/group-member.c: Include "xalloc.h".
85136         (xmalloc, xrealloc): Remove decls.
85137         (get_group_info): Remove casts no longer required in C89.
85138         * lib/getusershell.c (readname): Remove casts no longer required in
85139         C89.
85140         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
85141         * lib/getline.c: Whitespace fix, from coreutils.
85142
85143 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85144
85145         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
85146         Check for isascii.
85147
85148         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85149         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85150         Undo previous (whitespace-only) change.
85151
85152 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85153
85154         * lib/exclude.c: Include <ctype.h>
85155         (IN_CTYPE_DOMAIN): New macro.
85156         (is_space): New fn.
85157         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
85158         and empty lines.
85159
85160         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85161         Undo previous (whitespace-only) change.
85162
85163 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85164
85165         * config/srclist-update: Change update back to the old behavior,
85166         leaving whitespace alone.  Use one 'sed' command rather than a
85167         pipeline.
85168         (fixlicense): Now a variable, not a function.
85169         (remove_trailing_blanks): Remove.
85170         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
85171         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85172         Undo previous (whitespace-only) change.
85173
85174 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85175
85176         Merge from coreutils.
85177         * modules/euidaccess: Add lib_SOURCES, include for new
85178         file euidaccess.h
85179
85180 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85181
85182         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85183         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85184         Normalize leading white space and remove trailing white space.
85185
85186         Merge from coreutils
85187         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
85188
85189         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
85190         0.12.1.  These files are now being upgraded automatically by
85191         ../config/srclist-update.
85192
85193 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85194
85195         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85196         Normalize leading white space and remove trailing white space.
85197         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
85198         notice, as per ../config/srclist-update.
85199
85200         Merge from coreutils.
85201         * lib/euidaccess.h: New file.
85202         * lib/euidaccess.c: Include it.
85203         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
85204         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
85205         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
85206
85207 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85208
85209         * config/srclist-update: Add copyright notice.
85210         (remove_id_lines, remove_trailing_blanks): New constants.
85211         (fixfile): Use them to normalize spacing a bit in copied files.
85212         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85213         Normalize leading white space and remove trailing white space.
85214
85215         * config/texinfo.tex: Sync with texinfo.
85216
85217         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
85218         strtoul.c from libc, to merge coreutils whitespace changes.
85219
85220         * config/srclist.txt: Get the following m4 files from gettext:
85221         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
85222         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
85223         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
85224         wint_t.m4.
85225
85226 2003-08-12  Karl Berry  <karl@gnu.org>
85227
85228         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
85229         been made.
85230
85231 2003-08-11  Paul Eggert  <eggert@twinsun.com>
85232
85233         * modules/gnu-source, m4/gnu-source.m4:
85234         Remove; we're assuming Autoconf 2.54 or later now.
85235         Suggested by Bruno Haible.
85236         * MODULES.html.sh (func_all_modules): Remove gnu-source.
85237
85238 2003-08-11  Bruno Haible  <bruno@clisp.org>
85239
85240         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
85241
85242 2003-08-11  Bruno Haible  <bruno@clisp.org>
85243
85244         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
85245         (vasnprintf): Use it instead of wcslen.
85246
85247 2003-08-11  Bruno Haible  <bruno@clisp.org>
85248
85249         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
85250         value to ensure that _Bool promotes to int. Use #define for _Bool when
85251         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
85252
85253 2003-08-10  Karl Berry  <karl@gnu.org>
85254
85255         * lib/regex.h: update from libc (whitespace fix).
85256
85257 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85258
85259         Merge some files from coreutils.  These changes were
85260         originally made by Jim Meyering.
85261         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
85262         many older Unixes require this.
85263         * lib/alloca.c (alloca): Remove cast to argument of free;
85264         no longer needed in C89.
85265         * lib/alloca_.h, regex.h: Fix white space to match
85266         what GNU indent does.
85267
85268 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85269
85270         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
85271         apparently Emacs's Unicode mode got confused before my 2003-08-05
85272         checkin.
85273
85274 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85275
85276         * m4/extensions.m4: New file.
85277         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
85278         Require gl_USE_SYSTEM_EXTENSIONS.
85279         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
85280         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
85281
85282 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85283
85284         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
85285         * modules/extensions, modules/gnu-source: New files.
85286         * modules/timespec, modules/unlocked-io: Depend on extensions.
85287
85288 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85289
85290         * modules/restrict: New file.
85291         * MODULES.html.sh (func_all_modules): Add restrict.
85292         * modules/regex: Depend on restrict.
85293
85294 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85295
85296         * m4/restrict.m4: New file.
85297         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
85298
85299 2003-08-07  Bruno Haible  <bruno@clisp.org>
85300
85301         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
85302         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
85303
85304 2003-08-07  Bruno Haible  <bruno@clisp.org>
85305
85306         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
85307         makes the module 'getndelim2' compatible with the module 'getline'.
85308
85309 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85310
85311         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
85312         byte with "\201" to avoid glitches when editing that source file
85313         with multi-gnome-terminal.
85314
85315 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85316
85317         * lib/bumpalloc.h: Remove.
85318
85319 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85320
85321         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
85322         * modules/bumpalloc: Remove.
85323
85324 2003-08-04  Paul Eggert  <eggert@twinsun.com>
85325
85326         * lib/getloadavg.c: Change copyright notice and spacing to conform to
85327         GNU coding style.
85328
85329         Merge from coreutils.
85330         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
85331         1. From glibc.
85332         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
85333         from Karl Berry, implemented by Jim Meyering.
85334         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
85335         from Dmitry V. Levin.
85336         Remove anachronistic cast of xrealloc.
85337         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
85338         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
85339         type. Otherwise, it wouldn't compile with at least /bin/cc on
85340         ymp-cray-unicos9.0.2.X.
85341         Combine two mostly-identical uses of alloca into one.
85342         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
85343
85344 2003-08-04  Dave Love  <d.love@dl.ac.uk>
85345
85346         [From Emacs.]
85347
85348         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
85349         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
85350         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
85351         obsolete NLIST_NAME_UNION.
85352         [__GNU__]: Undef BSD and FSCALE.
85353         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
85354
85355 2003-08-03  Paul Eggert  <eggert@twinsun.com>
85356
85357         * lib/stdbool_.h (_Bool): Make it signed char, instead of
85358         an enum type, so that it's guaranteed to promote to int.  See:
85359         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
85360
85361 2003-08-03  Karl Berry  <karl@gnu.org>
85362
85363         * config/depcomp: update from automake.
85364
85365 2003-07-31  Paul Eggert  <eggert@twinsun.com>
85366
85367         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
85368         (strerror): Don't assume that a printable int fits in 14 bytes.
85369
85370 2003-07-31  Bruno Haible  <bruno@clisp.org>
85371
85372         * modules/getpass-gnu: New file.
85373         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
85374
85375 2003-07-31  Bruno Haible  <bruno@clisp.org>
85376
85377         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
85378
85379 2003-07-24  Karl Berry  <karl@gnu.org>
85380
85381         * config/missing: update from automake.
85382
85383 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
85384             Bruno Haible  <bruno@clisp.org>
85385
85386         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
85387         * lib/getline.c (getline, getdelim): Likewise.
85388         Remove _GNU_SOURCE define; now it's defined in config.h through
85389         m4/getline.m4.
85390
85391 2003-07-23  Karl Berry  <karl@gnu.org>
85392
85393         * config/config.sub: update from prep.
85394
85395 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85396
85397         * modules/xalloc (Depends-on): Add exitfail.
85398         * modules/xmemcoll: Likewise.
85399
85400 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85401
85402         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
85403         over-parenthesization in macros.
85404
85405         Sync with coreutils.
85406
85407         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
85408         required by C99.
85409
85410         Use `exit_failure' for xalloc and xmemcoll instead of their own
85411         private exit-failure variables.
85412         * lib/xalloc.h (xalloc_exit_failure): Remove.
85413         * lib/xmalloc.c: Likewise.  Include exitfail.h.
85414         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
85415         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
85416         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
85417         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
85418
85419 2003-07-20  Jim Meyering  <jim@meyering.net>
85420
85421         * modules/closeout (Depends-on): Add exitfail.
85422         Suggestion from Bruno Haible.
85423
85424 2003-07-19  Karl Berry  <karl@gnu.org>
85425
85426         * config/config.sub: update from prep.
85427
85428 2003-07-18  Paul Eggert  <eggert@twinsun.com>
85429
85430         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
85431         Remove.
85432         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
85433         to test that it can stand by itself.  Include "exitfail.h".
85434         Clients should set exit_failure instead.
85435         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
85436
85437 2003-07-18  Bruno Haible  <bruno@clisp.org>
85438
85439         * modules/getndelim2: New file.
85440         * modules/getline: Share files with module getndelim2.
85441         * modules/getnline: Depend on getndelim2 instead of sharing files with
85442         it. Add getnline.c to lib_SOURCES.
85443         * MODULES.html.sh (func_all_modules): Add getndelim2.
85444
85445 2003-07-18  Bruno Haible  <bruno@clisp.org>
85446
85447         * m4/getndelim2.m4: New file.
85448         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
85449         invoke gl_PREREQ_GETNDELIM2.
85450         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
85451         gl_PREREQ_GETNDELIM2.
85452         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
85453         gl_GETNDELIM2.
85454
85455 2003-07-18  Bruno Haible  <bruno@clisp.org>
85456
85457         * lib/getndelim2.h: New file.
85458         * lib/getndelim2.c: Make into a module of its own. Include config.h,
85459         getndelim2.h.
85460         (getndelim2): Make non-static. Change return type to ssize_t.
85461         * lib/getline.h: Change argument names.
85462         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
85463         * lib/getnline.c: Include getndelim2.h.
85464
85465 2003-07-18  Andreas Schwab  <schwab@suse.de>
85466
85467         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
85468
85469 2003-07-17  Karl Berry  <karl@gnu.org>
85470
85471         * config/config.sub: update from prep.
85472
85473 2003-07-17  Bruno Haible  <bruno@clisp.org>
85474
85475         * modules/getnline: New file.
85476         * modules/getline: Add lib/getndelim2.c to source file list.
85477         * MODULES.html.sh (func_all_modules): Add getnline.
85478
85479 2003-07-17  Bruno Haible  <bruno@clisp.org>
85480
85481         * m4/getnline.m4: New file.
85482
85483 2003-07-17  Bruno Haible  <bruno@clisp.org>
85484
85485         * m4/Makefile.am.in: Remove file.
85486         * m4/Makefile.am: Remove file.
85487         * m4/Makefile.in: Remove file.
85488
85489 2003-07-17  Bruno Haible  <bruno@clisp.org>
85490
85491         * lib/getnline.h: New file.
85492         * lib/getnline.c: New file.
85493         * lib/getndelim2.c: New file, extracted from getline.c.
85494         (getndelim2): Renamed from getdelim2, with added nmax argument.
85495         * lib/getline.c: Include getndelim2.c.
85496         (getdelim2): Moved out to getndelim2.c.
85497         (getline, getdelim): Update.
85498
85499 2003-07-17  Bruno Haible  <bruno@clisp.org>
85500
85501         * lib/Makefile.am: Remove file.
85502         * lib/Makefile.in: Remove file.
85503
85504 2003-07-17  Bruno Haible  <bruno@clisp.org>
85505
85506         * configure.in: Remove file.
85507         * Makefile.in: Remove file.
85508
85509 2003-07-17  Bruno Haible  <bruno@clisp.org>
85510
85511         * MODULES.html.sh: Put the </BODY> right before </HTML>.
85512
85513 2003-07-16  Karl Berry  <karl@gnu.org>
85514
85515         * config/srclist-update: was running fixlicense twice, which caused
85516                 texinfo.tex to be nullified for some reason.  Simplify,
85517                 $gplsrc is no longer needed as far as I can see?
85518
85519 2003-07-16  Jim Meyering  <jim@meyering.net>
85520
85521         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
85522
85523 2003-07-15  Paul Eggert  <eggert@twinsun.com>
85524
85525         * config/srclist.txt: Get the following files from gettext-runtime/intl
85526         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
85527         ref-del.sin.  From Bruno Haible.
85528         * config/srclist-update (fixfile): Change grep pattern again, since the
85529         previous fix didn't work (there was another trailing $).  Use
85530         '[$]' to escape the $s.
85531
85532 2003-07-15  Karl Berry  <karl@gnu.org>
85533
85534         * lib/vasnprintf.c: update from gettext.
85535
85536 2003-07-15  Karl Berry  <karl@gnu.org>
85537
85538         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
85539         gets expanded when surrounded by '$'.
85540
85541 2003-07-15  Jim Meyering  <jim@meyering.net>
85542
85543         * modules/save-cwd: Don't depend on error.  From Derek Price.
85544
85545 2003-07-15  Jim Meyering  <jim@meyering.net>
85546
85547         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
85548
85549 2003-07-14  Simon Josefsson  <jas@extundo.com>
85550
85551         * modules/mempcpy: New file.
85552         * MODULES.html.sh (func_all_modules): Add mempcpy.
85553
85554 2003-07-14  Simon Josefsson  <jas@extundo.com>
85555
85556         * m4/mempcpy.m4: New file.
85557
85558 2003-07-14  Simon Josefsson  <jas@extundo.com>
85559
85560         * lib/mempcpy.h: New file.
85561         * lib/mempcpy.c: New file.
85562
85563 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85564
85565         * modules/getdate, modules/posixtm: Depend on mktime.
85566
85567 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85568
85569         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
85570         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
85571         unicodeio.c, unicodeio.h, unlocked-io.h:
85572         Switch from LGPL to GPL.
85573
85574 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85575
85576         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
85577         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
85578         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
85579         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
85580         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
85581         updated automatically by ../config/srclist-update.  This changes
85582         their license from LPGL to GPL.
85583
85584 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85585
85586         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
85587         assumed to refer to the root of the most recent stable gettext version.
85588         * config/srclistvars.sh: Add defaults for eggert.
85589         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
85590         Match "This program" as well as "The program".  This is needed
85591         for gettext.
85592
85593 2003-07-14  Jim Meyering  <jim@meyering.net>
85594
85595         Don't emit diagnostics.  Let callers do that.
85596         * lib/save-cwd.c: Don't include "error.h".
85597         (save_cwd): Don't call error.  Ensure that errno is valid
85598         when returning nonzero.
85599
85600         * lib/save-cwd.h (restore_cwd): Update prototype.
85601         * lib/save-cwd.c (restore_cwd): Remove two parameters.
85602         Simplify.  Don't call error upon failure.  Let callers do that.
85603         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
85604         when auditing is enabled.  But don't bother updating the #if.
85605
85606 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
85607
85608         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
85609         it breaks C++ compilation.
85610         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
85611
85612 2003-07-10  Simon Josefsson  <jas@extundo.com>
85613
85614         * modules/strchrnul (Makefile.am): Add strchrnul.h.
85615
85616 2003-07-10  Jim Meyering  <jim@meyering.net>
85617
85618         * m4/clock_time.m4: Remove trailing blank.
85619         * m4/intmax_t.m4: Likewise.
85620
85621 2003-07-10  Jim Meyering  <jim@meyering.net>
85622
85623         * lib/vasnprintf.c: Remove trailing blanks.
85624         Make cpp indentation consistent.
85625
85626 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85627
85628         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
85629         posixver.c, strftime.c, strnlen.c, strverscmp.c:
85630         Switch from LGPL to GPL.
85631
85632 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85633
85634         * config/srclist.txt: Sort sublists.  Add
85635         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
85636         that differ from gnulib for one reason or another; we'd like this list
85637         to be smaller but for now let's document what we have.
85638
85639 2003-07-08  Paul Eggert  <eggert@twinsun.com>
85640
85641         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
85642         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
85643         and sweeter "eval x=$x".
85644         * config/srclist.txt: Get lib/argp* from glibc.
85645
85646 2003-07-07  Paul Eggert  <eggert@twinsun.com>
85647
85648         * lib/mktime.c: Fix some boundary cases and remove need for floating
85649         point.
85650
85651         Issue a compile-time diagnostic if time_t is floating point, or if
85652         two's complement arithmetic is not in effect, or if arithmetic
85653         right shift does not propagate the sign.  These assumptions were
85654         all in the original code but they weren't checked.
85655
85656         (TIME_T_MIDPOINT, verify): New macros.
85657         (__isleap): Remove; it has integer overflow problems.
85658         (leapyear): New function, without those problems.
85659         (ydhms_tm_diff): Remove; splitting into two parts.
85660         (ydhms_diff): New function, containing the arithmetic part of
85661         the old ydhms_tm_diff function.  Issue a compile-time
85662         diagnostic if we are not using C99 integer division.
85663         Avoid casts when possible.
85664         (guess_time_tm): New function, containing the checking part of
85665         the old ydhms_tm_diff function.  Return the new value, rather than
85666         the difference between it and the old.  Accept a new argument T
85667         so that *T specifies the old value.  Check for overflow in the result.
85668
85669         (__mktime_internal): Use a time_t offset, not a long int offset.
85670         This undoes the 2003-06-04 change, which is no longer needed now
85671         that we have better overflow checking.
85672         (localtime_offset): Likewise.
85673
85674         (__mktime_internal): Avoid harmful overflow on hosts where time_t
85675         and long are 64-bit but int is only 32-bit.
85676         (ydhms_diff): Use long int to store year1 and yday1.
85677         Issue a compile-time diagnostic if long int is not wide enough.
85678
85679         (__mktime_internal): Use long int to store adjusted year and yday.
85680         Use plain C rather than preprocessor commands, if that doesn't
85681         affect efficiency.
85682         Check for overflow (and try to repair) after each probe
85683         rather than checking only at the very end.  This avoids some bugs
85684         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
85685         does not equal GMT offset at maximum time).
85686         Use integer to check for overflow rather than floating point; this
85687         is more portable to non-IEEE hosts, and is a tad faster.
85688         When we detect that we are oscillating between two values,
85689         don't check whether tm_isdst has the requested value, since
85690         we already know the answer.  When tm_isdst has the wrong value,
85691         use a different heuristic to find the right one, based on the
85692         extreme values actually observed in practice in tz2003a,
85693         rather than the (overly optimistic) "previous 3 calendar quarters".
85694
85695         (not_equal_tm, print_tm, check_result): Use "const T" rather than
85696         "T const" to accommodate glibc style.
85697         (check_result): Use less-confusing report format.  "long" -> "long int.
85698         (main): Likewise.
85699         Don't loop if the iteration overflows time_t.
85700         Allow a negative step in the iteration.
85701
85702 2003-07-06  Karl Berry  <karl@gnu.org>
85703
85704         * config/depcomp: update from automake.
85705         * config/config.sub: update from prep.
85706
85707 2003-07-03  Karl Berry  <karl@gnu.org>
85708
85709         * config/config.guess: update from prep.
85710
85711 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85712
85713         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
85714         xreadlink.c now includes it unconditionally.
85715
85716 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85717
85718         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
85719         having it depend on HAVE_SYS_TYPES_H.
85720
85721 2003-07-01  Bruno Haible  <bruno@clisp.org>
85722
85723         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
85724         <sys/types.h> should be sufficient.
85725         Reported by Paul Eggert.
85726
85727 2003-06-26  Karl Berry  <karl@gnu.org>
85728
85729         * config/depcomp: update from automake.
85730
85731 2003-06-26  Bruno Haible  <bruno@clisp.org>
85732
85733         * modules/human: Depend on module stdbool.
85734
85735 2003-06-25  Bruno Haible  <bruno@clisp.org>
85736
85737         * modules/readlink: New file.
85738         * modules/xreadlink: Depend on it.
85739         * MODULES.html.sh (func_all_modules): Add readlink.
85740
85741 2003-06-25  Bruno Haible  <bruno@clisp.org>
85742
85743         * m4/readlink.m4: New file.
85744
85745 2003-06-25  Bruno Haible  <bruno@clisp.org>
85746
85747         * lib/readlink.c: New file.
85748
85749 2003-06-22  Karl Berry  <karl@gnu.org>
85750
85751         * config/srclist.txt: update mkinstalldirs from automake.
85752         * config/mkinstalldirs: update.
85753
85754 2003-06-22  Bruno Haible  <bruno@clisp.org>
85755
85756         Portability to mingw32.
85757         * m4/ssize_t.m4: New file, from GNU gettext.
85758         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
85759         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
85760
85761 2003-06-22  Bruno Haible  <bruno@clisp.org>
85762
85763         * modules/safe-read: Add m4/ssize_t.m4.
85764         * modules/xreadlink: Add m4/ssize_t.m4.
85765
85766 2003-06-20  Bruno Haible  <bruno@clisp.org>
85767
85768         Assume C89, so PARAMS isn't needed.
85769         * lib/unicodeio.h (PARAMS): Remove.
85770         * lib/unicodeio.c: Don't use PARAMS.
85771
85772 2003-06-18  Karl Berry  <karl@gnu.org>
85773
85774         * config/config.{guess,sub}: update from prep.
85775
85776 2003-06-18  Jim Meyering  <jim@meyering.net>
85777
85778         Merge changes from coreutils.
85779         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
85780         Remove explicit declarations of xmalloc and realloc.
85781         Include xalloc.h.
85782         (read_utmp): Remove anachronistic cast of xmalloc.
85783
85784 2003-06-17  Paul Eggert  <eggert@twinsun.com>
85785
85786         Assume C89, so PARAMS isn't needed.
85787         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
85788         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
85789         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
85790         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
85791         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
85792         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
85793         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
85794         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
85795         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
85796         lib/xstrtod.h, lib/xstrtol.h: Likewise.
85797         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
85798         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
85799         no longer needed. Anyway, config.h should always be included before any
85800         other file.
85801
85802 2003-06-11  Simon Josefsson  <jas@extundo.com>
85803
85804         * modules/sysexits: New file.
85805         * MODULES.html.sh (func_all_modules): Add sysexits.
85806
85807 2003-06-11  Simon Josefsson  <jas@extundo.com>
85808
85809         * lib/sysexit_.h: New file.
85810
85811 2003-06-11  Derek Price  <derek@ximbiot.com>
85812
85813         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
85814         necessary.
85815
85816 2003-06-11  Bruno Haible  <bruno@clisp.org>
85817
85818         * m4/sysexits.m4: New file.
85819
85820 2003-06-10  Simon Josefsson  <jas@extundo.com>
85821
85822         * lib/argp.h: New file, from glibc.
85823         * lib/argp-ba.c: New file, from glibc.
85824         * lib/argp-eexst.c: New file, from glibc.
85825         * lib/argp-fmtstream.c: New file, from glibc.
85826         * lib/argp-fmtstream.h: New file, from glibc.
85827         * lib/argp-fs-xinl.c: New file, from glibc.
85828         * lib/argp-help.c: New file, from glibc.
85829         * lib/argp-namefrob.h: New file, from glibc.
85830         * lib/argp-parse.c: New file, from glibc.
85831         * lib/argp-pv.c: New file, from glibc.
85832         * lib/argp-pvh.c: New file, from glibc.
85833         * lib/argp-xinl.c: New file, from glibc.
85834
85835 2003-06-10  Simon Josefsson  <jas@extundo.com>
85836
85837         * modules/strchrnul: New file.
85838
85839 2003-06-10  Simon Josefsson  <jas@extundo.com>
85840
85841         * modules/argp: New file.
85842
85843 2003-06-10  Simon Josefsson  <jas@extundo.com>
85844
85845         * m4/strchrnul.m4: New file.
85846
85847 2003-06-10  Simon Josefsson  <jas@extundo.com>
85848
85849         * lib/strchrnul.h: New file.
85850         * lib/strchrnul.c: New file.
85851
85852 2003-06-10  Bruno Haible  <bruno@clisp.org>
85853
85854         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
85855
85856 2003-06-07  Karl Berry  <karl@gnu.org>
85857
85858         * config/config.{guess,sub}: update from prep.
85859
85860 2003-06-07  Jim Meyering  <jim@meyering.net>
85861
85862         * modules/strtod: Use $(...) notation, not @...@ for
85863         AC_REPLACE'd variables.
85864         * modules/localcharset: Likewise.
85865
85866 2003-06-07  Jim Meyering  <jim@meyering.net>
85867
85868         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
85869         in place of my name in the copyright comment.
85870         Remove definition and uses of __P.
85871
85872         From coreutils.
85873         * lib/stat.c: Don't declare xmalloc explicitly.
85874         Instead, include "xalloc.h".
85875         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
85876         xrealloc, and xcalloc return values.
85877         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
85878         Improve comment.
85879         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
85880
85881 2003-06-07  Bruno Haible  <bruno@clisp.org>
85882
85883         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
85884         avoid AC_CONFIG_LINKS.
85885         * modules/fnmatch (Makefile.am): Use explicit creation rule for
85886         fnmatch.h, to avoid AC_CONFIG_LINKS.
85887         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
85888
85889 2003-06-07  Bruno Haible  <bruno@clisp.org>
85890
85891         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
85892         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
85893         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85894         directory.
85895         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
85896         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85897         directory.
85898
85899 2003-06-06  Jim Meyering  <jim@meyering.net>
85900
85901         Merge from coreutils.
85902         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
85903         Consolidate declarations and initializations of *_base* locals.
85904
85905         Merge from coreutils.
85906         This avoids a core dump on systems without GNU putenv,
85907         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
85908         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
85909         (unsetenv): New static function, from GNU libc.
85910         (rpl_putenv): Use it.
85911
85912         * lib/modechange.c: Remove trailing blanks.
85913
85914         Merge from coreutils.
85915         * lib/fsusage.c: Remove declaration of statfs.
85916         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
85917
85918         * lib/posixtm.c: Include <stdbool.h> unconditionally.
85919
85920 2003-06-06  Jim Meyering  <jim@meyering.net>
85921
85922         * lib/stdbool_.h: Renamed from stdbool.h.in.
85923
85924 2003-06-06  Jim Meyering  <jim@meyering.net>
85925             Bruno Haible  <bruno@clisp.org>
85926
85927         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
85928         Adjust Makefile.am snippet not to redirect directly to target.
85929         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
85930
85931 2003-06-05  Paul Eggert  <eggert@twinsun.com>
85932
85933         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
85934         mismatch, look in future quarters as well as past.  This fixes a
85935         bug when processing fall-backwards gaps immediately after a long
85936         period of daylight-saving time.
85937
85938         * lib/mktime.c: Assume freestanding C89 or better.
85939         (HAVE_LIMITS_H): Remove.  Assume it's 1.
85940         (__P): Remove; not used.
85941         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
85942         (mktime, not_equal_tm, print_tm, check_result,
85943         main): Use prototypes.  Use const * where appropriate.
85944         (main): Fix typo in testing code that uncovered by above changes.
85945         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
85946
85947 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85948
85949         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
85950         locale.h, localeconv.  This merges changes from coreutils.
85951
85952         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
85953         It can be removed after the next Autoconf is released.
85954         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
85955         needed.
85956
85957 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85958
85959         * lib/mktime.c: Fix Debian bug 177940
85960         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
85961         (localtime_offset): Now long int, not time_t, because we want it
85962         to be guaranteed to be signed.  All uses changed.
85963         (__mktime_internal): If overflow would occur when adding offset,
85964         don't add it.
85965
85966         Merge 'human' changes from coreutils.  Rewrite to support
85967         locale-specific notations like thousands separators.
85968         * lib/human.c: Simplify authorship notice.
85969         Include human.h immediately after config.h.
85970         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
85971         <limits.h>: Do not include, since human.h does.
85972         (SIZE_MAX, UINTMAX_MAX): New macros.
85973         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
85974         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
85975         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
85976         (power_letter): Renamed from suffixes.
85977         (generate_suffix_backwards): Remove.
85978         (adjust_value): Now takes int style (because of human.h changes)
85979         and long double value (for greater precision on some platforms).
85980         (group_number): New function.
85981         (human_readable): Use it.  Use integer options, not enum.
85982         Put the options before the sizes in the arg list.
85983         Support all the new options.
85984         The old human_readable function has been removed;
85985         use inttostr.h instead.
85986         (human_readable, default_block_size, humblock):
85987         Use uintmax_t, not int, for block sizes.
85988         (human_readable_inexact, block_size_types): Remove.
85989         (block_size_opts): New constant.
85990         (human_options): Renamed from human_block_size, with new signature
85991         that allows block sizes up to UINTMAX_MAX.  All callers changed.
85992         * lib/human.h: Add copyright and authorship notice.
85993         Include <limits.h> and <stdbool.h> unconditionally.
85994         (PARAMS): Remove.  All uses removed.
85995         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
85996         (enum human_inexact_style): Remove tag; now a nameless enum.
85997         (human_floor, human_ceiling, human_round_to_even): Now have
85998         values 2, 0, 1 rather than -1, 1, 0.
85999         (human_group_digits, human_suppress_point_zero, human_autoscale,
86000         human_base_1024, human_SI, human_B): New constants.
86001         (human_readable_inexact, human_block_size): Remove.
86002         (human_readable): Size args are now uintmax_t, not int.
86003         (human_options): New decl.
86004
86005         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
86006         unnecessary now that we assume C89 or better.  This change
86007         imported from coreutils.
86008
86009         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86010         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
86011         in the 2003-05-30 sync from glibc.
86012
86013         .h files should stand alone, but we shouldn't include <sys/types.h>
86014         if we can get away with just <stddef.h>.
86015
86016         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
86017         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
86018         rather than <sys/types.h>, as we merely need size_t.
86019         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
86020         to get size_t.
86021         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
86022         Include <stdio.h>, to get FILE.
86023         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
86024         memcasecmp.h has included <stddef.h> and all we need is size_t.
86025         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
86026         our interface, instead of including <sys/types.h>
86027
86028 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86029
86030         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
86031         now, as glibc mktime is buggy on non-glibc systems.
86032
86033 2003-06-03  Karl Berry  <karl@gnu.org>
86034
86035         * config/config.sub: update from prep.
86036
86037 2003-06-02  Paul Eggert  <eggert@twinsun.com>
86038
86039         [from coreutils]
86040         Fix some minor time-related bugs with POSIX time arguments.
86041         Some valid time stamps were being rejected (notably -1, and
86042         time stamps before 1900 on 64-bit hosts).  And some invalid
86043         time stamps were being accepted, e.g. September 31.
86044
86045         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
86046         that we can return (time_t) -1 successfully.
86047         * lib/posixtm.c: Likewise.
86048         [HAVE_STDBOOL_H]: Include <stdbool.h>.
86049         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
86050         (t): Remove static var.
86051         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
86052         of static var.  All uses changed.
86053         (year): Do not reject years before 1900; they can occur with
86054         64-bit time_t.
86055         (posix_time_parse): Do not check for out-of-range components;
86056         that is now the caller's responsibility, since our checks were
86057         only approximations.
86058         (posixtime): Use mktime to check for out-of-range components,
86059         since it knows them exactly.
86060         If mktime returns (time_t) -1, check whether an error actually occurred
86061         by invoking localtime on -1.
86062         (main) [TEST_POSIXTIME]: Check for input data errors, and report
86063         posixtime failures better.
86064         Improve the test data (in comments only).
86065
86066 2003-06-02  Karl Berry  <karl@gnu.org>
86067
86068         * config/mkinstalldirs (version): new variable.
86069         (--version): new option.
86070         (usage): improve message.
86071
86072 2003-05-30  Karl Berry  <karl@gnu.org>
86073
86074         * lib/mktime.c: update from libc.
86075
86076 2003-05-30  Bruno Haible  <bruno@clisp.org>
86077
86078         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
86079         * config/config.rpath: Upgrade to gettext-0.12.1.
86080
86081 2003-05-30  Bruno Haible  <bruno@clisp.org>
86082
86083         * m4/gettext.m4: Upgrade to gettext-0.12.1.
86084         * m4/nls.m4: New file, from gettext-0.12.1.
86085         * m4/po.m4: New file, from gettext-0.12.1.
86086         * m4/progtest.m4: Upgrade to gettext-0.12.1.
86087
86088 2003-05-30  Bruno Haible  <bruno@clisp.org>
86089
86090         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
86091         * lib/localcharset.h: Likewise.
86092         * lib/localcharset.c: Likewise.
86093
86094 2003-05-29  Karl Berry  <karl@gnu.org>
86095
86096         * config/config.rpath: update from gettext.
86097
86098 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86099
86100         Assume the headers required for C89 freestanding compilers.
86101         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
86102         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
86103         * m4/human.m4 (gl_HUMAN): Likewise.
86104         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
86105         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
86106         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86107         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
86108         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86109         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
86110
86111 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86112
86113         Assume the headers required for C89 freestanding compilers.
86114         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
86115         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
86116         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
86117         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
86118         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
86119         define, since <limits.h> is guaranteed to do that.
86120         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
86121         * lib/exclude.c: Include <stdbool.h> unconditionally.
86122         * lib/tempname.c: Include <stddef.h> unconditionally.
86123         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
86124         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
86125         <stddef.h> does that.
86126         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
86127         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
86128         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
86129         needed.
86130         * lib/xstrtol.c: Likewise.
86131         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
86132         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
86133
86134         * lib/addext.c (addext): Use assignment rather than cast, to avoid
86135         warnings on some platforms.
86136
86137         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86138         arbitrarily.
86139
86140 2003-05-26  Jim Meyering  <jim@meyering.net>
86141
86142         Merge in a change from coreutils:
86143         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
86144         that is guaranteed to be `no'.  Use `no_such_member' to indicate
86145         that condition, rather than `-1' which is slightly misleading.
86146         Change the name of the cache variable to have the gl_ prefix.
86147         Prompted by a patch from Richard Dawe for DJGPP.
86148
86149 2003-05-24  Karl Berry  <karl@gnu.org>
86150
86151         * config/config.guess: update from prep.
86152
86153 2003-05-22  Karl Berry  <karl@gnu.org>
86154
86155         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
86156
86157 2003-05-20  Karl Berry  <karl@gnu.org>
86158
86159         * config/config.guess: update from prep.
86160
86161 2003-05-18  Karl Berry  <karl@gnu.org>
86162
86163         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
86164         might actually be set by the user.
86165
86166         * config/depcomp, install-sh, mdate-sh: update from automake.
86167
86168 2003-05-17  Bruno Haible  <bruno@clisp.org>
86169
86170         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
86171         invalid expansion for AC_EGREP_CPP.
86172         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
86173         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
86174         Suggested by Akim Demaille <akim@epita.fr> in
86175         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
86176
86177 2003-05-12  Jim Meyering  <jim@meyering.net>
86178
86179         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
86180         the space-padded-by-default conversion specifiers, %e, %k, %l.
86181
86182 2003-05-12  Bruno Haible  <bruno@clisp.org>
86183
86184         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
86185         the string is longer than 4 KB.
86186
86187 2003-05-11  Karl Berry  <karl@gnu.org>
86188
86189         * config/config.{guess,sub}: update from prep.
86190
86191 2003-05-09  Bruno Haible  <bruno@clisp.org>
86192
86193         * modules/error: Add m4/strerror_r.m4 to file list.
86194
86195 2003-05-03  Bruno Haible  <bruno@clisp.org>
86196
86197         Upgrade to Unicode-4.0.
86198         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
86199         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
86200         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
86201         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
86202         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
86203         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
86204         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
86205         Change width of U+E0100..U+E01EF from 1 to 0.
86206
86207 2003-04-25  Jim Meyering  <jim@meyering.net>
86208
86209         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
86210         of type size_t, not int.
86211
86212 2003-04-25  Bruno Haible  <bruno@clisp.org>
86213
86214         * lib/copy-file.c: Include <stddef.h>, for size_t.
86215
86216 2003-04-21  Paul Eggert  <eggert@twinsun.com>
86217
86218         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
86219         code which expansion is under static control.  Patch imported from
86220         Akim Demaille's patch to Bison; see
86221         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
86222
86223 2003-04-14  Bruno Haible  <bruno@clisp.org>
86224
86225         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
86226
86227 2003-04-11  Jim Meyering  <jim@meyering.net>
86228
86229         Merge changes from Coreutils.
86230
86231         2003-03-22  Jim Meyering  <jim@meyering.net>
86232
86233         * lib/strftime.c (widen): Cast alloca return value to proper type.
86234
86235         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
86236
86237         From GNU libc.
86238         * lib/strftime.c (my_strftime): Handle very large width
86239         specifications for numeric values correctly.  Improve checks for
86240         overflow.
86241
86242         2003-01-19  Jim Meyering  <jim@meyering.net>
86243
86244         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
86245         definitions.
86246         (nl_get_alt_digit) [! defined my_strftime]: Define.
86247         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
86248         _nl_get_alt_digit and _nl_get_walt_digit.
86249
86250         * lib/strftime.c (my_strftime): Merge in locale-related changes from
86251         libc. These changes have no effect outside of _LIBC.
86252
86253 2003-04-10  Bruno Haible  <bruno@clisp.org>
86254
86255         * modules/findprog: New file.
86256         * MODULES.html.sh (func_all_modules): Add it.
86257
86258 2003-04-10  Bruno Haible  <bruno@clisp.org>
86259
86260         * m4/findprog.m4: New file.
86261         * m4/eaccess.m4: New file.
86262
86263 2003-04-10  Bruno Haible  <bruno@clisp.org>
86264
86265         * lib/findprog.h: New file, from GNU gettext.
86266         * lib/findprog.c: New file, from GNU gettext.
86267
86268 2003-04-05  Jim Meyering  <jim@meyering.net>
86269
86270         Merge changes from Coreutils.
86271
86272         * lib/exclude.h (PARAMS): Remove definition and uses.
86273         * lib/exclude.c: Remove uses of `PARAMS'.
86274
86275         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
86276         Add test-cases for DOS filenames. Declare program_name.
86277         (main): Set up program_name.  Patch by Rich Dawe.
86278
86279         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86280         error from mntctl.
86281         Use mntctl's return value to drive the entry-processing loop, since
86282         we can't rely on the value of the vmt_length member in the last
86283         entry.  On some systems doing so could result in exhausting
86284         virtual memory.  Based in part on a patch from Mike Jetzer.
86285
86286 2003-04-04  Bruno Haible  <bruno@clisp.org>
86287
86288         * modules/linebreak: New file.
86289         * MODULES.html.sh (func_all_modules): Add it.
86290
86291 2003-04-04  Bruno Haible  <bruno@clisp.org>
86292
86293         * m4/linebreak.m4: New file.
86294
86295 2003-04-04  Bruno Haible  <bruno@clisp.org>
86296
86297         * lib/linebreak.h: New file, from GNU gettext.
86298         * lib/linebreak.c: New file, from GNU gettext with slight
86299         modifications.
86300         * lib/lbrkprop.h: New file, from GNU gettext.
86301
86302 2003-04-03  Bruno Haible  <bruno@clisp.org>
86303
86304         * modules/utf8-ucs4: New file.
86305         * modules/utf16-ucs4: New file.
86306         * modules/ucs4-utf8: New file.
86307         * modules/ucs4-utf16: New file.
86308         * MODULES.html.sh (func_all_modules): Add them.
86309
86310 2003-04-03  Bruno Haible  <bruno@clisp.org>
86311
86312         * m4/utf-ucs4.m4: New file.
86313         * m4/ucs4-utf.m4: New file.
86314
86315 2003-04-03  Bruno Haible  <bruno@clisp.org>
86316
86317         * lib/utf8-ucs4.h: New file, from GNU gettext.
86318         * lib/utf16-ucs4.h: New file, from GNU gettext.
86319         * lib/ucs4-utf8.h: New file, from GNU gettext.
86320         * lib/ucs4-utf16.h: New file, from GNU gettext.
86321
86322 2003-04-02  Bruno Haible  <bruno@clisp.org>
86323
86324         * modules/binary-io: New file.
86325         * MODULES.html.sh (func_all_modules): Add it.
86326
86327 2003-04-02  Bruno Haible  <bruno@clisp.org>
86328
86329         * lib/binary-io.h: New file, from GNU gettext.
86330
86331 2003-04-01  Bruno Haible  <bruno@clisp.org>
86332
86333         * modules/pathname: New file.
86334         * MODULES.html.sh (func_all_modules): Add it.
86335
86336 2003-04-01  Bruno Haible  <bruno@clisp.org>
86337
86338         * lib/pathname.h: New file, from GNU gettext.
86339         * lib/concatpath.c: New file, from GNU gettext.
86340
86341 2003-03-30  Bruno Haible  <bruno@clisp.org>
86342
86343         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
86344
86345 2003-03-30  Bruno Haible  <bruno@clisp.org>
86346
86347         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
86348         function chown() doesn't exist.
86349
86350 2003-03-28  Bruno Haible  <bruno@clisp.org>
86351
86352         * modules/copy-file: New file.
86353         * MODULES.html.sh (func_all_modules): Add it.
86354
86355 2003-03-28  Bruno Haible  <bruno@clisp.org>
86356
86357         * m4/copy-file.m4: New file.
86358
86359 2003-03-28  Bruno Haible  <bruno@clisp.org>
86360
86361         * lib/copy-file.h: New file, from GNU gettext.
86362         * lib/copy-file.c: New file, from GNU gettext.
86363
86364 2003-03-18  Jim Meyering  <jim@meyering.net>
86365
86366         * lib/quote.c (quote_n): Fix typo in comment.
86367
86368 2003-03-18  Bruno Haible  <bruno@clisp.org>
86369
86370         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
86371         checking.
86372         * m4/onceonly_2_57.m4: Likewise.
86373
86374 2003-03-17  Bruno Haible  <bruno@clisp.org>
86375
86376         * m4/onceonly.m4: Require autoconf 2.54 or newer.
86377         (m4_quote): Remove macro.
86378         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
86379
86380 2003-03-14  Jim Meyering  <jim@meyering.net>
86381
86382         Merge changes from Coreutils.
86383         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
86384         to be const, in order to avoid warnings.
86385         (obstack_room): Likewise.
86386         (obstack_empty_p): Likewise.
86387
86388 2003-03-14  Bruno Haible  <bruno@clisp.org>
86389
86390         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
86391         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
86392
86393 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86394
86395         Merge changes from Bison.
86396         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
86397         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
86398         when compiling Bison 1.875's `bitset bset = obstack_alloc
86399         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
86400         * lib/hash.c: Include <stdbool.h> unconditionally.
86401
86402 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86403
86404         * m4/onceonly.m4 (m4_quote): New macro.
86405         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
86406         Quote AC_FOREACH variable-expansions properly.
86407
86408 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86409
86410         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
86411
86412 2003-03-09  Paul Eggert  <eggert@twinsun.com>
86413
86414         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
86415         Reported by Bruce Becker; see:
86416         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
86417
86418 2003-03-03  Paul Eggert  <eggert@twinsun.com>
86419             Bruno Haible  <bruno@clisp.org>
86420
86421         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
86422         Reported by John Hughes, see
86423         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
86424
86425 2003-02-20  Bruno Haible  <bruno@clisp.org>
86426
86427         * MODULES.html.sh (func_all_modules): Add poll.
86428
86429 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86430
86431         * modules/poll: New file.
86432
86433 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86434
86435         * lib/poll_.h: New file.
86436         * lib/poll.c: New file.
86437
86438 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86439
86440         * m4/poll.m4: New file.
86441
86442 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86443
86444         * modules/mathl: New file.
86445
86446 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86447
86448         * lib/mathl.h: New file.
86449         * lib/acosl.c: New file.
86450         * lib/asinl.c: New file.
86451         * lib/atanl.c: New file.
86452         * lib/ceill.c: New file.
86453         * lib/cosl.c: New file.
86454         * lib/expl.c: New file.
86455         * lib/floorl.c: New file.
86456         * lib/frexpl.c: New file.
86457         * lib/ldexpl.c: New file.
86458         * lib/logl.c: New file.
86459         * lib/sincosl.c: New file.
86460         * lib/sinl.c: New file.
86461         * lib/sqrtl.c: New file.
86462         * lib/tanl.c: New file.
86463         * lib/trigl.c: New file.
86464         * lib/trigl.h: New file.
86465
86466 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86467
86468         * m4/mathl.m4: New file.
86469
86470 2003-02-18  Bruno Haible  <bruno@clisp.org>
86471
86472         * MODULES.html.sh (func_all_modules): Add mathl.
86473
86474 2003-02-17  Bruno Haible  <bruno@clisp.org>
86475
86476         * modules/mkdtemp: New module.
86477         * MODULES.html.sh (func_all_modules): Add it.
86478
86479 2003-02-17  Bruno Haible  <bruno@clisp.org>
86480
86481         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
86482
86483 2003-02-17  Bruno Haible  <bruno@clisp.org>
86484
86485         * lib/mkdtemp.h: New file, from GNU gettext.
86486         * lib/mkdtemp.c: New file, from GNU gettext.
86487
86488 2003-02-02  Jim Meyering  <jim@meyering.net>
86489
86490         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
86491         e.g. glibc-2.2.93.
86492
86493 2003-01-31  Bruno Haible  <bruno@clisp.org>
86494
86495         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
86496         'rpl_rename'.
86497         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
86498         'rpl_strnlen'.
86499         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
86500         'rpl_strtod'.
86501         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
86502         'rpl_utime'.
86503
86504 2003-01-31  Bruno Haible  <bruno@clisp.org>
86505
86506         * lib/rename.c: #undef rename before defining rpl_rename.
86507         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
86508
86509 2003-01-30  Bruno Haible  <bruno@clisp.org>
86510
86511         * modules/vasnprintf, modules/vasprintf: New modules.
86512         * MODULES.html.sh (func_all_modules): Add them.
86513
86514 2003-01-30  Bruno Haible  <bruno@clisp.org>
86515
86516         * m4/signed.m4: New file, from GNU gettext.
86517         * m4/longdouble.m4: New file, from GNU gettext.
86518         * m4/wchar_t.m4: New file, from GNU gettext.
86519         * m4/wint_t.m4: New file, from GNU gettext.
86520         * m4/vasnprintf.m4: New file.
86521         * m4/vasprintf.m4: New file.
86522
86523 2003-01-30  Bruno Haible  <bruno@clisp.org>
86524
86525         * lib/printf-args.h: New file, from GNU gettext.
86526         * lib/printf-args.c: New file, from GNU gettext.
86527         * lib/printf-parse.h: New file, from GNU gettext.
86528         * lib/printf-parse.c: New file, from GNU gettext.
86529         * lib/vasnprintf.h: New file, from GNU gettext.
86530         * lib/vasnprintf.c: New file, from GNU gettext.
86531         * lib/asnprintf.c: New file, from GNU gettext.
86532         * lib/vasprintf.h: New file, from GNU gettext with modifications.
86533         * lib/vasprintf.c: New file, from GNU gettext.
86534         * lib/asprintf.c: New file, from GNU gettext.
86535
86536 2003-01-29  Bruno Haible  <bruno@clisp.org>
86537
86538         * modules/stpncpy: New module.
86539         * MODULES.html.sh (func_all_modules): Add it.
86540
86541 2003-01-29  Bruno Haible  <bruno@clisp.org>
86542
86543         * m4/stpncpy.m4: New file.
86544
86545 2003-01-29  Bruno Haible  <bruno@clisp.org>
86546
86547         * lib/stpncpy.h: New file, from GNU gettext with modifications.
86548         * lib/stpncpy.c: New file, from GNU gettext with modifications.
86549
86550 2003-01-28  Bruno Haible  <bruno@clisp.org>
86551
86552         * modules/c-ctype: New module.
86553         * MODULES.html.sh (func_all_modules): Add it.
86554
86555 2003-01-28  Bruno Haible  <bruno@clisp.org>
86556
86557         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
86558         Paul Eggert.
86559         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
86560         Paul Eggert.
86561
86562 2003-01-27  Bruno Haible  <bruno@clisp.org>
86563
86564         * modules/xsetenv: New module.
86565         * MODULES.html.sh (func_all_modules): Add it.
86566
86567 2003-01-27  Bruno Haible  <bruno@clisp.org>
86568
86569         * lib/xsetenv.h: New file, from GNU gettext.
86570         * lib/xsetenv.c: New file, from GNU gettext.
86571
86572 2003-01-23  Jim Meyering  <jim@meyering.net>
86573
86574         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
86575         from working on systems without dirfd (at least Irix and OSF1/Tru64).
86576
86577 2003-01-23  Bruno Haible  <bruno@clisp.org>
86578
86579         * modules/minmax: New module.
86580         * MODULES.html.sh (func_all_modules): Add it.
86581
86582 2003-01-23  Bruno Haible  <bruno@clisp.org>
86583
86584         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
86585         Eggert.
86586
86587 2003-01-22  Bruno Haible  <bruno@clisp.org>
86588
86589         * modules/exit: New module.
86590         * MODULES.html.sh (func_all_modules): Add it.
86591
86592 2003-01-22  Bruno Haible  <bruno@clisp.org>
86593
86594         * lib/exit.h: New file, from GNU gettext.
86595
86596 2003-01-19  Bruno Haible  <bruno@clisp.org>
86597
86598         * gnulib-tool: Recognize option --extract-maintainer.
86599         (func_get_maintainer): New function.
86600         * modules/*: Add Maintainer entry.
86601
86602 2003-01-16  Jim Meyering  <jim@meyering.net>
86603
86604         * m4/regex.m4: The `regex' struct is both input and output.
86605         Initialize it before each use.  Patch by Tim Waugh.
86606
86607 2003-01-16  Bruno Haible  <bruno@clisp.org>
86608
86609         * MODULES.html.sh: Add a table of contents. Add the module name as
86610         leftmost column. Add hyperlinks.
86611
86612 2003-01-15  Bruno Haible  <bruno@clisp.org>
86613
86614         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
86615
86616 2003-01-15  Bruno Haible  <bruno@clisp.org>
86617
86618         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
86619         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
86620         suffix.
86621
86622 2003-01-15  Bruno Haible  <bruno@clisp.org>
86623
86624         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
86625
86626 2003-01-15  Bruno Haible  <bruno@clisp.org>
86627
86628         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
86629         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
86630
86631 2003-01-14  Jim Meyering  <jim@meyering.net>
86632
86633         * lib/same.c (same_name): Tweak a comment.
86634
86635 2003-01-14  Bruno Haible  <bruno@clisp.org>
86636
86637         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
86638         when a string comparison is sufficient.
86639
86640 2003-01-14  Bruno Haible  <bruno@clisp.org>
86641
86642         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
86643         'unsigned int'.
86644
86645 2003-01-14  Bruno Haible  <bruno@clisp.org>
86646
86647         * lib/hash-pjw.c: Add comment about low quality of this function.
86648
86649 2003-01-13  Bruno Haible  <bruno@clisp.org>
86650
86651         * modules/stpcpy: Distribute lib/stpcpy.h.
86652         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
86653
86654 2003-01-13  Bruno Haible  <bruno@clisp.org>
86655
86656         * modules/*: Add a description.
86657         * modules/strpbrk: Fix Makefile.am snippet.
86658         * modules/strtoimax: Fix dependencies.
86659         * modules/strtoumax: Likewise.
86660
86661 2003-01-13  Bruno Haible  <bruno@clisp.org>
86662
86663         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
86664         * modules/alloca (Makefile.am): All object files depend on alloca.h.
86665         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
86666
86667 2003-01-13  Bruno Haible  <bruno@clisp.org>
86668
86669         * gnulib-tool (func_create_testdir): Store config/* files in the main
86670         directory.
86671         * config.rpath: Move to ...
86672         * config/config.rpath: ... here.
86673         * modules/gettext: Contains config/config.rpath, not config.rpath.
86674         * modules/iconv: Likewise.
86675
86676 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86677
86678         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86679         to avoid collisions with libcurses and libreadline.
86680
86681         * m4/getstr.m4: Remove.
86682         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
86683
86684 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86685
86686         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86687         to avoid collisions with libcurses and libreadline.
86688
86689         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
86690         * lib/getstr.h, getstr.c: Remove.
86691         * lib/getline.c: Include "getline.h", to check interface.
86692         Move body of old getstr.c here: this defines MIN_CHUNK and
86693         declares getdelim2, which is renamed from getstr.
86694         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
86695
86696         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
86697         All uses changed.
86698         * lib/linebuffer.h: Likewise.
86699         (readline): Remove backward-compatibility macro.
86700
86701 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86702
86703         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86704         to avoid collisions with libcurses and libreadline.
86705         * getstr: Remove.
86706         * MODULES.html.sh: Remove getstr.
86707         * modules/getline: Depend on unlocked-io, not getstr.
86708
86709 2003-01-12  Jim Meyering  <jim@meyering.net>
86710
86711         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
86712
86713 2003-01-10  Bruno Haible  <bruno@clisp.org>
86714
86715         * modules/alloca: Change Makefile.am requirements. Simplify Include
86716         requirements. Add lib/alloca_.h to file list.
86717
86718 2003-01-10  Bruno Haible  <bruno@clisp.org>
86719
86720         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
86721
86722 2003-01-10  Bruno Haible  <bruno@clisp.org>
86723
86724         * lib/alloca_.h: New file.
86725         * lib/getdate.y: Unconditionally include alloca.h.
86726         * lib/makepath.c: Likewise.
86727         * lib/setenv.c: Likewise.
86728         * lib/userspec.c: Likewise.
86729
86730 2003-01-09  Karl Berry  <karl@gnu.org>
86731
86732         * MODULES.html.sh: include `dirname $0` in PATH, to find
86733         gnulib-tool.
86734
86735 2003-01-09  Bruno Haible  <bruno@clisp.org>
86736
86737         * modules/stdbool: Change configure.ac, Makefile.am requirements.
86738         Simplify Include requirements. Add lib/stdbool.h.in to file list.
86739
86740 2003-01-09  Bruno Haible  <bruno@clisp.org>
86741
86742         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
86743
86744 2003-01-09  Bruno Haible  <bruno@clisp.org>
86745
86746         * lib/stdbool.h.in: New file.
86747
86748 2003-01-09  Bruno Haible  <bruno@clisp.org>
86749
86750         * gnulib-tool (func_all_modules): Ignore files ending in ~.
86751         * MODULES.html.sh: Likewise.
86752
86753 2003-01-08  Jim Meyering  <jim@meyering.net>
86754
86755         * lib/full-write.c: Undefine and define-away `const' after inclusion
86756         of errno.h, not before.  Suggestion from Bruno Haible.
86757
86758 2003-01-08  Bruno Haible  <bruno@clisp.org>
86759
86760         * modules/full-read: Depend on full-write.
86761
86762 2003-01-08  Bruno Haible  <bruno@clisp.org>
86763
86764         * lib/safe-read.c: Include specification header first, to ensure its
86765         selfcontainedness.
86766         * lib/full-write.c: Likewise.
86767
86768 2003-01-07  Jim Meyering  <jim@meyering.net>
86769
86770         * lib/full-write.c: Rework so that it may serve to define full_read,
86771         too.
86772         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
86773
86774 2003-01-07  Bruno Haible  <bruno@clisp.org>
86775
86776         * lib/strtoimax.c: Include <stdint.h> as an alternative to
86777         <inttypes.h>.
86778         * lib/xstrtol.h: Likewise.
86779         * lib/xstrtoimax.c: Likewise.
86780         * lib/xstrtoumax.c: Likewise.
86781         * lib/human.h: Likewise.
86782
86783         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
86784         on systems that have <inttypes.h> but not <stdint.h>.
86785
86786 2003-01-07  Bruno Haible  <bruno@clisp.org>
86787
86788         * MODULES.html.sh: Add copyright notice.
86789         (missed_files): Omit CVS directory entries.
86790         (func_module): Make it work with sed-3.02.
86791         * MODULES.txt: Remove file.
86792
86793 2003-01-06  Jim Meyering  <jim@meyering.net>
86794
86795         * lib/version-etc.c: Update year in translatable copyright string.
86796
86797 2003-01-03  Karl Berry  <karl@gnu.org>
86798
86799         * config/config.{guess,sub}: update from prep.
86800
86801 2003-01-02  Karl Berry  <karl@gnu.org>
86802
86803         * doc/COPYING.DOC: belatedly updated to 1.2.
86804
86805 2003-01-01  Karl Berry  <karl@gnu.org>
86806
86807         * gnulib-tool (func_verify_module): report module name $module in
86808         error message, not $1.
86809         * gnulib-tool (create-testdir): don't complain if destdir couldn't
86810         be created, only if it doesn't exist.
86811         * gnulib-tool (last_checkin_date): don't expand the $Date here.
86812
86813 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86814
86815         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
86816
86817 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86818
86819         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
86820         memcmp if strcoll doesn't work.
86821
86822 2002-12-31  Bruno Haible  <bruno@clisp.org>
86823
86824         * lib/utime.c (utime_null): No need to call ftruncate if the file was
86825         nonempty.
86826
86827 2002-12-31  Bruno Haible  <bruno@clisp.org>
86828
86829         * lib/memcoll.c (STRCOLL): New macro.
86830         (memcoll): Use it.
86831
86832 2002-12-31  Bruno Haible  <bruno@clisp.org>
86833
86834         * lib/localcharset.h: New file.
86835         * lib/localcharset.c: Include it.
86836         * lib/unicodeio.c: Likewise.
86837
86838 2002-12-31  Bruno Haible  <bruno@clisp.org>
86839
86840         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
86841         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
86842
86843 2002-12-31  Bruno Haible  <bruno@clisp.org>
86844
86845         * lib/getline.h: Include <stddef.h>, for size_t.
86846
86847         * lib/unicodeio.h: Include <stddef.h>, for size_t.
86848         * lib/unicodeio.c: Don't include <stddef.h>.
86849
86850 2002-12-31  Bruno Haible  <bruno@clisp.org>
86851
86852         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
86853         HAVE_TM_ZONE.
86854
86855 2002-12-24  Karl Berry  <karl@gnu.org>
86856
86857         * config/config.guess: update from prep.
86858
86859 2002-12-24  Bruno Haible  <bruno@clisp.org>
86860
86861         General infrasructure.
86862         * m4/README: Rewritten.
86863         * m4/onceonly.m4: New file.
86864         * m4/onceonly_2_57.m4: New file.
86865
86866         Module atexit.
86867         * m4/atexit.m4: New file.
86868
86869         Module strtod.
86870         * m4/strtod.m4: New file.
86871
86872         Module strtol.
86873         * m4/strtol.m4: New file.
86874
86875         Module strtoul.
86876         * m4/strtoul.m4: New file.
86877
86878         Module memchr.
86879         * m4/memchr.m4: New file.
86880
86881         Module memcmp.
86882         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
86883         (jm_FUNC_MEMCMP): Invoke it.
86884
86885         Module memcpy.
86886         * m4/memcpy.m4: New file.
86887
86888         Module memmove.
86889         * m4/memmove.m4: New file.
86890
86891         Module memset.
86892         * m4/memset.m4: New file.
86893
86894         Module strcspn.
86895         * m4/strcspn.m4: New file.
86896
86897         Module strpbrk.
86898         * m4/strpbrk.m4: New file.
86899
86900         Module strstr.
86901         * m4/strstr.m4: New file.
86902
86903         Module strerror.
86904         * m4/strerror.m4: New file.
86905
86906         Module mktime.
86907         * m4/mktime.m4: Renamed from jm-mktime.m4.
86908         (gl_PREREQ_MKTIME): New macro.
86909         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
86910
86911         Module malloc.
86912         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
86913         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
86914         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
86915
86916         Module realloc.
86917         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
86918         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
86919         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
86920
86921         Module strftime.
86922         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
86923         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
86924         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
86925         gl_TM_GMTOFF.
86926         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
86927
86928         Module xalloc.
86929         * m4/xalloc.m4: New file.
86930
86931         Module alloca.
86932         * m4/alloca.m4: New file.
86933
86934         Module putenv.
86935         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
86936         (jm_FUNC_PUTENV): Invoke it.
86937
86938         Module setenv.
86939         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
86940         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
86941         when invoked twice.
86942         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
86943         gt_FUNC_SETENV.
86944
86945         Module memrchr.
86946         * m4/memrchr.m4: New file.
86947
86948         Module stpcpy.
86949         * m4/stpcpy.m4: New file.
86950
86951         Module strcase.
86952         * m4/strcase.m4: New file.
86953
86954         Module strdup.
86955         * m4/strdup.m4: New file.
86956
86957         Module strnlen.
86958         * m4/strnlen.m4: New file.
86959
86960         Module strndup.
86961         * m4/strndup.m4: New file.
86962
86963         Module xstrtod.
86964         * m4/xstrtod.m4: New file.
86965
86966         Module xstrtol.
86967         * m4/xstrtol.m4: New file.
86968
86969         Module getdate.
86970         * m4/getdate.m4: New file.
86971
86972         Module unlocked-io.
86973         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
86974         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
86975         * m4/jm-glibc-io.m4n: Remove file.
86976
86977         Module long-options.
86978         * m4/long-options.m4: New file.
86979
86980         Module md5.
86981         * m4/md5.m4: New file.
86982
86983         Module sha.
86984         * m4/sha.m4: New file.
86985
86986         Module getstr.
86987         * m4/getstr.m4: New file.
86988
86989         Module getline.
86990         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
86991         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
86992         <sys/types.h>, for size_t. Use the function name gnu_getline, not
86993         simply getline. Infoke gl_PREREQ_GETLINE.
86994
86995         Module obstack.
86996         * m4/obstack.m4: New file.
86997
86998         Module hash.
86999         * m4/hash.m4: New file.
87000
87001         Module readtokens.
87002         * m4/readtokens.m4: New file.
87003
87004         Module strverscmp.
87005         * m4/strverscmp.m4: New file.
87006
87007         Module stdbool.
87008         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
87009         OSF/1.
87010
87011         Module strtoll.
87012         * m4/strtoll.m4: New file.
87013
87014         Module strtoull.
87015         * m4/strtoull.m4: New file.
87016
87017         Module strtoimax.
87018         * m4/strtoimax.m4: New file.
87019
87020         Module strtoumax.
87021         * m4/strtoumax.m4: New file.
87022
87023         Module xstrtoimax.
87024         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
87025         jm_AC_PREREQ_XSTRTOIMAX.
87026         Moved the strtol prerequisites to strtol.m4.
87027         Moved the strtoll prerequisites to strtoll.m4.
87028         Moved the strtoimax prerequisites to strtoimax.m4.
87029
87030         Module xstrtoumax.
87031         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
87032         jm_AC_PREREQ_XSTRTOUMAX.
87033         Moved the strtoul prerequisites to strtoul.m4.
87034         Moved the strtoull prerequisites to strtoull.m4.
87035         Moved the strtoumax prerequisites to strtoumax.m4.
87036
87037         Module chown.
87038         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
87039         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
87040
87041         Module dup2.
87042         * m4/dup2.m4: New file.
87043
87044         Module ftruncate.
87045         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
87046         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
87047
87048         Module getgroups.
87049         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
87050         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
87051
87052         Module gettimeofday.
87053         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
87054         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
87055         gl_PREREQ_GETTIMEOFDAY.
87056
87057         Module mkdir.
87058         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
87059         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
87060
87061         Module mkstemp.
87062         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
87063         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
87064         jm_AC_TYPE_UINTMAX_T.
87065         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
87066
87067         Module stat.
87068         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
87069         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
87070
87071         Module lstat.
87072         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
87073         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
87074
87075         Module timespec.
87076         * m4/timespec.m4 (gl_TIMESPEC): New macro.
87077         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
87078         * m4/st_mtim.m4: Indentation.
87079
87080         Module nanosleep.
87081         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
87082         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
87083         gl_PREREQ_NANOSLEEP.
87084
87085         Module regex.
87086         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
87087         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
87088         (gl_REGEX): New macro.
87089
87090         Module rename.
87091         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
87092         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
87093
87094         Module rmdir.
87095         * m4/rmdir.m4: New file.
87096
87097         Module utime.
87098         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
87099         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
87100         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
87101
87102         Module dirname.
87103         * m4/dirname.m4: New file.
87104
87105         Module getopt.
87106         * m4/getopt.m4: New file.
87107
87108         Module unistd-safer.
87109         * m4/unistd-safer.m4: New file.
87110
87111         Module fnmatch.
87112         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
87113         declaration.
87114         (gl_PREREQ_FNMATCH_EXTRA): New macro.
87115         (gl_FUNC_FNMATCH_POSIX): New macro.
87116         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
87117         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
87118         simply fnmatch.
87119
87120         Module exclude.
87121         * m4/exclude.m4: New file.
87122
87123         Module human.
87124         * m4/human.m4: New file.
87125
87126         Module acl.
87127         * m4/acl.m4: Nop.
87128
87129         Module backupfile.
87130         * m4/backupfile.m4: New file.
87131         * m4/d-ino.m4: Indentation.
87132
87133         Module fsusage.
87134         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
87135         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
87136         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
87137
87138         Module dirfd.
87139         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
87140         requirements.
87141
87142         Module euidaccess.
87143         * m4/euidaccess.m4: New file.
87144
87145         Module file-type.
87146         * m4/file-type.m4: New file.
87147
87148         Module fileblocks.
87149         * m4/fileblocks.m4: New file.
87150
87151         Module filemode.
87152         * m4/filemode.m4: New file.
87153
87154         Module isdir.
87155         * m4/isdir.m4: New file.
87156
87157         Module lchown.
87158         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
87159         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
87160
87161         Module makepath.
87162         * m4/makepath.m4: New file.
87163
87164         Module modechange.
87165         * m4/modechange.m4: New file.
87166
87167         Module mountlist.
87168         * m4/mountlist.m4: New file.
87169         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
87170         Indentation.
87171
87172         Module path-concat.
87173         * m4/path-concat.m4: New file.
87174
87175         Module pathmax.
87176         * m4/pathmax.m4: New file.
87177
87178         Module same.
87179         * m4/same.m4: New file.
87180
87181         Module save-cwd.
87182         * m4/save-cwd.m4: New file.
87183
87184         Module savedir.
87185         * m4/savedir.m4: New file.
87186
87187         Module xgetcwd.
87188         * m4/xgetcwd.m4: New file.
87189         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
87190
87191         Module xreadlink.
87192         * m4/xreadlink.m4: New file.
87193
87194         Module safe-read.
87195         * m4/safe-read.m4: New file.
87196
87197         Module safe-write.
87198         * m4/safe-write.m4: New file.
87199
87200         Module closeout.
87201         * m4/closeout.m4: New file.
87202
87203         Module stdio-safer.
87204         * m4/stdio-safer.m4: New file.
87205
87206         Module getpass.
87207         * m4/getpass.m4: New file.
87208
87209         Module getugroups.
87210         * m4/getugroups.m4: New file.
87211
87212         Module group-member.
87213         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
87214         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
87215
87216         Module idcache.
87217         * m4/idcache.m4: New file.
87218
87219         Module userspec.
87220         * m4/userspec.m4: New file.
87221
87222         Module gettime.
87223         * m4/clock_time.m4: New file.
87224         * m4/gettime.m4: New file.
87225
87226         Module settime.
87227         * m4/settime.m4: New file.
87228
87229         Module posixtm.
87230         * m4/posixtm.m4: New file.
87231
87232         Module gethostname.
87233         * m4/gethostname.m4: New file.
87234
87235         Module canon-host.
87236         * m4/canon-host.m4: New file.
87237
87238         Module gettext.
87239         * m4/codeset.m4: New file, from gettext-0.11.5.
87240         * m4/gettext.m4: New file, from gettext-0.11.5.
87241         * m4/glibc21.m4: New file, from gettext-0.11.5.
87242         * m4/iconv.m4: New file, from gettext-0.11.5.
87243         * m4/intdiv0.m4: New file, from gettext-0.11.5.
87244         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
87245         * m4/inttypes.m4: New file, from gettext-0.11.5.
87246         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
87247         * m4/isc-posix.m4: New file, from gettext-0.11.5.
87248         * m4/lcmessage.m4: New file, from gettext-0.11.5.
87249         * m4/lib-ld.m4: New file, from gettext-0.11.5.
87250         * m4/lib-link.m4: New file, from gettext-0.11.5.
87251         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
87252         * m4/progtest.m4: New file, from gettext-0.11.5.
87253         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
87254         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
87255         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
87256
87257         Module localcharset.
87258         * m4/localcharset.m4: New file.
87259
87260         Module hard-locale.
87261         * m4/hard-locale.m4: New file.
87262
87263         Module mbswidth.
87264         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
87265         onceonly macros.
87266         * m4/mbrtowc.m4: Add comment.
87267
87268         Module memcasecmp.
87269         * m4/memcasecmp.m4: New file.
87270
87271         Module memcoll.
87272         * m4/memcoll.m4: New file.
87273
87274         Module unicodeio.
87275         * m4/unicodeio.m4: New file.
87276
87277         Module rpmatch.
87278         * m4/rpmatch.m4: New file.
87279
87280         Module yesno.
87281         * m4/yesno.m4: New file.
87282
87283         Module exitfail.
87284         * m4/exitfail.m4: New file.
87285
87286         Module c-stack.
87287         * m4/c-stack.m4 (gl_C_STACK): New macro.
87288         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
87289
87290         Module error.
87291         * m4/error.m4 (gl_ERROR): New macro.
87292         (jm_PREREQ_ERROR): Use onceonly macros.
87293
87294         Module fatal.
87295         * m4/fatal.m4: New file.
87296
87297         Module getloadavg.
87298         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
87299         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
87300
87301         Module getpagesize.
87302         * m4/getpagesize.m4: New file.
87303
87304         Module getusershell.
87305         * m4/getusershell.m4: New file.
87306
87307         Module physmem.
87308         * m4/physmem.m4: New file.
87309
87310         Module posixver.
87311         * m4/posixver.m4: New file.
87312
87313         Module quotearg.
87314         * m4/quotearg.m4: New file.
87315
87316         Module quote.
87317         * m4/quote.m4: New file.
87318
87319         Module readutmp.
87320         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
87321
87322         Module sig2str.
87323         * m4/sig2str.m4: New file.
87324
87325         Other.
87326         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
87327         ulonglong.m4.
87328         * m4/intmax_t.m4: New file.
87329         * m4/d-type.m4: Indentation.
87330         * m4/jm-macros.m4: Update.
87331         * m4/prereq.m4 (jm_PREREQ): Update.
87332         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
87333         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
87334         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
87335         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
87336         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
87337         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
87338         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
87339         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
87340         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
87341         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
87342         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
87343         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
87344         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
87345         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
87346         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
87347         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
87348         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
87349         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
87350         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
87351
87352 2002-12-24  Bruno Haible  <bruno@clisp.org>
87353
87354         * MODULES.txt: Update according to m4/ changes.
87355
87356         Module gettext.
87357         * config.rpath: New file, from gettext-0.11.5.
87358
87359         * modules/*: New module descriptions.
87360         * gnulib-tool: New file.
87361         * MODULES.html.sh: New file.
87362
87363 2002-12-21  Karl Berry  <karl@gnu.org>
87364
87365         * doc/fdl.texi: update to version 1.2.
87366
87367 2002-12-19  Karl Berry  <karl@gnu.org>
87368
87369         * config/config.guess: update from prep.
87370
87371 2002-12-18  Bruno Haible  <bruno@clisp.org>
87372
87373         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
87374         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
87375
87376 2002-12-17  Bruno Haible  <bruno@clisp.org>
87377
87378         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
87379         stdlib.h, string.h.
87380
87381 2002-12-17  Bruno Haible  <bruno@clisp.org>
87382
87383         * lib/canon-host.c (strdup): Remove unused declaration.
87384
87385         * lib/fsusage.c: Include full_read.h.
87386         (get_fs_usage): Use full_read instead of safe_read.
87387
87388         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
87389
87390 2002-12-12  Karl Berry  <karl@gnu.org>
87391
87392         * config/config.guess: update from prep.
87393
87394 2002-12-11  Bruno Haible  <bruno@clisp.org>
87395
87396         * m4/setenv.m4: New file, from gettext-0.11.5.
87397
87398 2002-12-11  Bruno Haible  <bruno@clisp.org>
87399
87400         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
87401         not unsetenv().
87402         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
87403         modifications:
87404
87405         2002-12-11  Bruno Haible  <bruno@clisp.org>
87406
87407                 * setenv.c (alloca): Fall back to malloc.
87408                 (freea): New macro.
87409                 (setenv): Use freea() to free memory allocated with alloca().
87410
87411         2002-11-13  Bruno Haible  <bruno@clisp.org>
87412
87413                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
87414                 function declarations.
87415                 * unsetenv.c (unsetenv): Likewise.
87416
87417         2002-03-04  Bruno Haible  <bruno@clisp.org>
87418
87419                 Portability to AIX 4.3.3.
87420                 * unsetenv.c: New file, extracted from setenv.c.
87421                 * setenv.c: Move the unsetenv() function to unsetenv.c.
87422
87423         2001-12-20  Bruno Haible  <bruno@clisp.org>
87424
87425                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
87426                 use malloc instead. For SunOS 4.
87427
87428         2001-12-11  Bruno Haible  <bruno@clisp.org>
87429
87430                 * setenv.c: Declare alloca.
87431                 (compar_fn_t): New typedef.
87432                 (KNOWN_VALUE, STORE_VALUE): Use it.
87433
87434         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
87435         setenv.h.
87436
87437 2002-12-10  Paul Eggert  <eggert@twinsun.com>
87438
87439         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
87440         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
87441         Choose values that are less likely to collide with system fnmatch
87442         options.
87443         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
87444         defined (e.g., a pure POSIX system).
87445         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
87446         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
87447
87448 2002-12-06  Paul Eggert  <eggert@twinsun.com>
87449
87450         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
87451         a pain in practice to deal with generated m4 files.  This change
87452         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
87453
87454         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
87455         and jm-glibc-io.m4, as they are no longer a special case.
87456         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
87457         kludge and the auto-generation stuff.  Check only whether the
87458         functions are declared, not whether they exist, since older hosts
87459         that don't declare the functions can't use the optimization anyway.
87460
87461 2002-12-06  Jim Meyering  <jim@meyering.net>
87462
87463         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
87464
87465         Merge in changes from libc's misc/error.c, in preparation
87466         for the merge of gnulib's changes back into libc.
87467
87468         * lib/error.c (_): Define only if not already defined.
87469         Move definition to follow all #include directives.
87470         Include unlocked-io.h only if !_LIBC.
87471         [_LIBC]: Include <libio/libioP.h>.
87472         [USE_IN_LIBIO]: Include <libio/iolibio.h>
87473         (fflush): Tweak definition to use INTUSE.
87474         (putc): Define.
87475
87476 2002-12-05  Paul Eggert  <eggert@twinsun.com>
87477
87478         * lib/alloca.c [defined emacs]: Include "lisp.h".
87479         (xalloc_die) [defined emacs]: New macro.
87480         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
87481         [! defined emacs]: Include <xalloc.h>.
87482         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
87483         (pointer): Typedef to POINTER_TYPE *.
87484         (malloc): Remove decl; we now always use xmalloc.
87485         (alloca): Use old-style definition, since Emacs needs this.
87486         Check for arithmetic overflow when computing combined size.
87487
87488 2002-12-04  Paul Eggert  <eggert@twinsun.com>
87489
87490         Do not generate unlocked-io.h automatically, since it's easier to
87491         maintain it by hand.
87492
87493         * lib/unlocked-io.h: New file, from GNU diffutils,
87494         but with proper copyright notice and attribution.
87495         * lib/gen-uio: Remove.
87496         * lib/Makefile.am: Add copyright notice.
87497         (libfetish_a_SOURCES): Add unlocked-io.h.
87498         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
87499         (DISTCLEANFILES, io_functions): Remove macros.
87500         (EXTRA_DIST): Remove gen_uio.
87501         (unlocked-io.h): Remove rule.
87502
87503 2002-12-04  Jim Meyering  <jim@meyering.net>
87504
87505         Reflect the fact that stat.c and lstat.c are no longer generated.
87506         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
87507         (DISTCLEANFILES): Likewise.
87508         (EXTRA_DIST): Likewise.
87509         (all_local): Don't depend on stat.c or lstat.c.
87510         (stat.c, lstat.c): Remove rules.
87511         (EXTRA_DIST): Remove xstat.in.
87512
87513         * lib/xstat.in: Remove file.  Contents moved into stat.c.
87514         * lib/stat.c: New file.  Contents mostly from xstat.in.
87515         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
87516         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
87517
87518         * lib/safe-read.c: Rework so that it may serve to define safe_write,
87519         too.
87520         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
87521
87522 2002-12-03  Jim Meyering  <jim@meyering.net>
87523
87524         * lib/safe-read.c, safe-write.c: Change variable names and comments,
87525         but not semantics, to minimize the differences between these two files.
87526         (safe_read): Change comment to mention SAFE_READ_ERROR.
87527
87528         * lib/safe-read.c (IS_EINTR): Define.
87529         (safe_read): Use IS_EINTR in place of in-function cpp directives.
87530
87531 2002-12-02  Jim Meyering  <jim@meyering.net>
87532
87533         * lib/safe-read.c (EINTR): Define.
87534         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87535         (INT_MAX): Provide fallback.
87536         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
87537
87538         * lib/safe-read.h (SAFE_READ_ERROR): Define.
87539
87540 2002-12-02  Bruno Haible  <bruno@clisp.org>
87541
87542         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
87543         Define, taken from safe-read.c.
87544         (INT_MAX): Provide fallback.
87545         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
87546         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
87547
87548         * lib/safe-read.c (EINTR): Remove definition.
87549         (safe_read): Don't use EINTR if it is absent.
87550
87551 2002-12-01  Jim Meyering  <jim@meyering.net>
87552
87553         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
87554         zero.
87555         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
87556
87557 2002-11-27  Paul Eggert  <eggert@twinsun.com>
87558
87559         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
87560         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
87561         with `if (! (value < limit)) abort ();', for readability.
87562
87563 2002-11-26  Karl Berry  <karl@gnu.org>
87564
87565         * lib/strdup.c: copy from libc again, with jim's ok.
87566         * lib/.cppi-disable: re-add strdup.c
87567
87568 2002-11-25  Karl Berry  <karl@gnu.org>
87569
87570         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
87571         instead of "strtol.c".
87572
87573 2002-11-25  Karl Berry  <karl@gnu.org>
87574
87575         * config/install-sh: update from automake for variable quoting, $0 in
87576         error msgs, etc.
87577
87578         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
87579         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
87580         entry.
87581
87582 2002-11-25  Jim Meyering  <jim@meyering.net>
87583
87584         * lib/mktime.c: Sync from libc, now that it has the latest fix.
87585
87586 2002-11-24  Karl Berry  <karl@gnu.org>
87587
87588         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
87589         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
87590
87591 2002-11-24  Jim Meyering  <jim@meyering.net>
87592
87593         Update from coreutils:
87594
87595         * lib/mktime.c: Merge in changes from libc.
87596
87597         Avoid a link-time failure on some Linux systems.
87598         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
87599         (otherwise).
87600         (__mon_yday): Declare with the STATIC attribute.
87601         (__mktime_internal): Likewise.
87602         Based on a report from Greg Schafer.
87603
87604 2002-11-23  Jim Meyering  <jim@meyering.net>
87605
87606         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
87607         Use `unsigned', not `int', as type of index.
87608
87609         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
87610
87611         * lib/fsusage.c: Remove unneeded parentheses around operands of
87612         `defined'.
87613
87614 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87615
87616         * lib/quotearg.h: Allow multiple inclusion by surrounding with
87617         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
87618         so that we can be included first.
87619         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
87620         * lib/quotearg.c: Include quotearg.h immediately after config.h.
87621         No need to include stddef.h or sys/types.h any more.
87622         Surround local include files with "", not "<>".
87623         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
87624         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
87625         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
87626         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
87627         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
87628         (ISPRINT): Remove; no longer needed now that we assume C89.
87629
87630         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
87631         Preserve errno.
87632
87633         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
87634         quotearg_char): Use SIZE_MAX rather than
87635         (size_t) -1 when we are talking about "infinity".
87636
87637         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
87638
87639 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87640
87641         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
87642         hint that one should use `if (! x) abort ();' rather than `assert
87643         (x);', and anyway it's one less thing to worry about configuring.
87644         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
87645         hash_rehash, hash_insert): Use abort rather than assert.
87646
87647 2002-11-22  Bruno Haible  <bruno@clisp.org>
87648
87649         * lib/safe-read.h: Assume C89. Add comments.
87650         (safe_read): Change return type to size_t.
87651         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
87652         byte counts > SSIZE_MAX correctly.
87653         * lib/safe-write.h: New file.
87654         * lib/safe-write.c: New file.
87655         * lib/full-read.h: New file.
87656         * lib/full-read.c: New file.
87657         * lib/full-write.h: Assume C89. Add comments.
87658         * lib/full-write.c: Include safe-write.h.
87659         (full_write): Rewritten to use safe_write.
87660         Suggested by Jim Meyering and Paul Eggert.
87661
87662 2002-11-21  Jim Meyering  <jim@meyering.net>
87663
87664         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
87665
87666         Merge in changes from the coreutils.
87667
87668         2002-09-25  Paul Eggert  <eggert@twinsun.com>
87669         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
87670         <stdint.h>.
87671         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
87672         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
87673         int.  Work more efficiently if X is the same width as uintmax_t.
87674         Do not compare X to -1, to avoid bogus compiler warning.
87675         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
87676         Don't assume that f_frsize and f_bsize are the same type.
87677
87678         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
87679         warning on FreeBSD.
87680
87681         * lib/makepath.c (make_path): Restore umask *before* creating the final
87682         component.
87683         (make_path): Minor reformatting.
87684
87685         * lib/xmalloc.c: Adjust to work with new autoconf macros,
87686         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
87687         HAVE_MALLOC/HAVE_REALLOC.
87688
87689         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
87690         dummy ones.  At least on GNU/Linux systems, `auto' means something
87691         else.
87692         From Michael Stone.
87693
87694 2002-11-21  Bruno Haible  <bruno@clisp.org>
87695
87696         Remove case insensitive option matching.
87697         * lib/argmatch.h (argcasematch): Remove declaration.
87698         (ARGCASEMATCH): Remove macro.
87699         (__xargmatch_internal): Remove case_sensitive argument.
87700         (XARGMATCH): Update.
87701         (XARGCASEMATCH): Remove macro.
87702         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
87703         case_sensitive argument.
87704         (argcasematch): Remove function.
87705         (__xargmatch_internal): Remove case_sensitive argument.
87706         (main): Use XARGMATCH instead of XARGCASEMATCH.
87707
87708         * lib/xmalloc.c: Change compile-time error message. Add comment about
87709         required autoconf version.
87710
87711 2002-11-20  Paul Eggert  <eggert@twinsun.com>
87712
87713         Merge argmatch cleanups from Bison.  Assume C89.
87714
87715         * lib/argmatch.c: Include config.h here, not in argmatch.h.
87716         Include stdlib.h, for EXIT_FAILURE.
87717         Always include <string.h>, since we assume C89.
87718         (EXIT_FAILURE): Remove pre-C89 bug workaround.
87719         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
87720         Include <stddef.h> instead, since it's all we need for size_t.
87721         (PARAMS): Remove.  All uses removed.
87722         (ARRAY_CARDINALITY): Do not bother to #undef.
87723         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
87724         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87725         Remove unnecessary parentheses.
87726         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87727         Insert necessary parentheses.
87728         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
87729         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
87730
87731 2002-11-19  Bruno Haible  <bruno@clisp.org>
87732
87733         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
87734         * lib/mbswidth.h: Include <stddef.h>, for size_t.
87735
87736         * lib/mbswidth.h (PARAMS): Remove macro.
87737         (mbswidth, mbsnwidth): Use ANSI C function declarations.
87738         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
87739
87740         * lib/gcd.h (PARAMS): Remove macro.
87741         (gcd): Use ANSI C function declarations.
87742         * lib/gcd.c (gcd): Likewise.
87743
87744 2002-11-15  Bruno Haible  <bruno@clisp.org>
87745
87746         * lib/strcspn.c: Include <stddef.h>.
87747         (strcspn): Use ANSI C function declaration. Change return type to
87748         size_t. Use NULL.
87749         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
87750         (strpbrk): Use NULL.
87751         * lib/strpbrk.h (PARAMS): Remove macro.
87752         (strpbrk): Use ANSI C function declaration.
87753         * lib/strstr.c: Don't include <sys/types.h>.
87754         * lib/strstr.h (PARAMS): Remove macro.
87755         (strstr): Use ANSI C function declarations.
87756
87757 2002-11-14  Karl Berry  <karl@gnu.org>
87758
87759         * config/mkinstalldirs: `do' on separate line, instead of
87760         `for var; do'.
87761
87762 2002-11-06  Bruno Haible  <bruno@clisp.org>
87763
87764         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
87765         * lib/gcd.c (gcd): Likewise.
87766
87767 2002-11-05  Bruno Haible  <bruno@clisp.org>
87768
87769         * lib/gcd.h: New file, from gettext-0.11.5.
87770         * lib/gcd.c: New file, from gettext-0.11.5.
87771
87772 2002-11-05  Bruno Haible  <bruno@clisp.org>
87773
87774         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87775         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87776         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87777         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87778
87779         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
87780         <libintl.h>.
87781         * lib/makepath.c: Include gettext.h instead of <locale.h> and
87782         <libintl.h>.
87783
87784         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
87785         * lib/human.c: Include gettext.h instead of <libintl.h>.
87786         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
87787         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
87788         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
87789         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
87790         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
87791         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
87792         (textdomain): Remove definition.
87793         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
87794
87795         * lib/long-options.c: Remove include of <libintl.h> and definition of
87796         _.
87797         * lib/same.c: Remove include of <libintl.h> and definition of _.
87798
87799 2002-11-04  Owen Taylor  <otaylor@redhat.com>
87800
87801         * lib/config.charset: A few additions for Solaris.
87802
87803 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87804
87805         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
87806         * lib/localcharset.c (locale_charset): Declare as extern "C".
87807
87808 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87809
87810         * lib/config.charset: msdos in uk_UA uses CP1125.
87811
87812 2002-11-04  Bruno Haible  <bruno@clisp.org>
87813
87814         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
87815         * lib/strcase.h: New file, from GNU gettext-0.11.5.
87816         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
87817         * lib/strstr.h: New file, from GNU gettext-0.11.5.
87818         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
87819
87820 2002-11-04  Bruno Haible  <bruno@clisp.org>
87821
87822         * lib/localcharset.c (locale_charset): Don't return an empty string.
87823
87824 2002-11-04  Bruno Haible  <bruno@clisp.org>
87825
87826         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
87827         aliases.
87828
87829 2002-11-04  Bruno Haible  <bruno@clisp.org>
87830
87831         * lib/config.charset: Update for newest glibc. Add canonical names
87832         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
87833
87834 2002-11-04  Bruno Haible  <bruno@clisp.org>
87835
87836         * lib/config.charset: Add support for NetBSD.
87837
87838 2002-11-04  Bruno Haible  <bruno@clisp.org>
87839
87840         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
87841
87842 2002-11-01  Bruno Haible  <bruno@clisp.org>
87843
87844         * configure.in: Add AC_CONFIG_AUX_DIR call.
87845         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
87846         test/Makefile.
87847         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
87848
87849 2002-09-28  Karl Berry  <karl@gnu.org>
87850
87851         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
87852         installed automake until the next release, since changes have been
87853         made.
87854
87855 2002-09-25  Karl Berry  <karl@gnu.org>
87856
87857         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
87858         * lib/getopt*: copy from libc/posix.
87859         * lib/gettext.h: copy from gettext.
87860         * lib/.cppi-disable: add strdup.c, gettext.h.
87861
87862 2002-09-25  Karl Berry  <karl@gnu.org>
87863
87864         * config/srclist.txt: enable gettext.h check.
87865         * config/config.{guess,sub}: update from prep.
87866         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
87867                 from automake 1.6.3.
87868         See srclist*.
87869
87870 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
87871
87872         * regex.c (PATFETCH): Remove the translating fetch.
87873         (PATFETCH_RAW): Rename to PATFETCH.
87874         (set_image_of_range): New fun.
87875         (SET_RANGE_TABLE_WORK_AREA): Use it.
87876         (regex_compile): Don't translate the pattern chars so eagerly.
87877         Only do it when inserting an `exactn' bytecode or when handling
87878         a char-range.
87879         (mutually_exclusive_p): Avoid empty statement.
87880
87881 2002-07-06  Jim Meyering  <meyering@lucent.com>
87882
87883         * m4/README: Don't mention Makefile.am.in.
87884         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
87885
87886 2002-07-01  Jim Meyering  <meyering@lucent.com>
87887
87888         * lib/c-stack.c: Include sys/time.h.
87889         From Volker Borchert.
87890
87891 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87892
87893         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
87894
87895 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87896
87897         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
87898         New macro.  Use it uniformly instead of
87899         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
87900         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
87901         reported by Vin Shelton.
87902
87903 2002-06-22  Paul Eggert  <eggert@twinsun.com>
87904
87905         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
87906         Do not assume SA_SIGINFO behavior.
87907         Bug reported by Jim Meyering on NetBSD 1.5.2.
87908
87909 2002-06-22  Jim Meyering  <meyering@lucent.com>
87910
87911         * m4/c-stack.m4: New file, from diffutils-2.8.2.
87912         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
87913
87914         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
87915         now that configure.ac uses AC_GNU_SOURCE.
87916         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
87917         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
87918
87919         Update to latest tools.  Suggestions from Paul Eggert.
87920         * m4/stdbool.m4: New file, from diffutils-2.8.2.
87921         * m4/gnu-source.m4: Update from diffutils-2.8.2.
87922         * m4/fnmatch.m4: Likewise.
87923         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
87924         to AC_HEADER_STDBOOL
87925
87926 2002-06-22  Jim Meyering  <meyering@lucent.com>
87927
87928         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
87929         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
87930
87931 2002-06-22  Jim Meyering  <meyering@lucent.com>
87932
87933         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
87934
87935         * lib/exitfail.c, exitfail.h: Likewise.
87936         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
87937
87938         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
87939         of fnmatch.h.
87940         (EXTRA_DIST): Add fnmatch_loop.c.
87941         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
87942
87943         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
87944         * lib/fnmatch.c: Update from diffutils-2.8.2.
87945         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
87946         * lib/fnmatch.h: Remove file.
87947
87948 2002-06-21  Jim Meyering  <meyering@lucent.com>
87949
87950         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
87951         * m4/mbrtowc.m4: Likewise.
87952
87953         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
87954         * m4/mbswidth.m4: Reflect name change:
87955         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
87956         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87957
87958         * m4/lib-link.m4: Update from gettext-0.11.2.
87959         * m4/gettext.m4: Likewise.
87960
87961         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
87962         From Alfred M. Szmidt.
87963
87964 2002-06-18  Paul Eggert  <eggert@twinsun.com>
87965
87966         * lib/file-type.h: Report an error if neither S_ISREG nor
87967         S_IFREG is defined, instead of using a test specific to glibc
87968         2.2.  This should be safe, since POSIX requires S_ISREG and
87969         Unix Version 7 had S_IFREG.  We don't need to check for
87970         <sys/types.h> since we don't use any symbols that it defines.
87971
87972 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
87973
87974         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
87975         $@-t, so that each temporary file name is unique and valid in the first
87976         8 characters, for operation under DOS.
87977
87978 2002-06-15  Paul Eggert  <eggert@twinsun.com>
87979
87980         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
87981
87982 2002-06-15  Jim Meyering  <meyering@lucent.com>
87983
87984         Work even with DJGPP 2.03, which lacks support for symlinks.
87985         From Richard Dawe.
87986         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
87987         is defined.
87988         * lib/lchown.c (S_ISLNK): Likewise.
87989
87990 2002-06-15  Jim Meyering  <meyering@lucent.com>
87991
87992         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
87993         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
87994         have been included before this file.
87995
87996 2002-06-14  Jim Meyering  <meyering@lucent.com>
87997
87998         * lib/file-type.h: Use the version from diffutils-2.8.2.
87999         * lib/file-type.c: Likewise.
88000
88001 2002-06-07  Jim Meyering  <meyering@lucent.com>
88002
88003         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
88004         They're needed at least for NetBSD 1.5.2.
88005         ($statxfs_includes): Include those same headers.
88006         ($statxfs_includes): Include sys/vfs.h if available.
88007         ($statxfs_includes): Likewise for sys/statvfs.h.
88008         Check for the following members in both structs statfs and statvfs:
88009         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
88010
88011 2002-06-01  Jim Meyering  <meyering@lucent.com>
88012
88013         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
88014         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
88015
88016 2002-05-28  Jim Meyering  <meyering@lucent.com>
88017
88018         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
88019         Reported by Volker Borchert.
88020
88021 2002-05-27  Jim Meyering  <meyering@lucent.com>
88022
88023         Fix a problem seen only on nonconforming systems whereby ls.c's
88024         use of localtime, and then of gettimeofday would cause trouble:
88025         the localtime call used to initialize rpl_gettimeofday's save
88026         mechanism would clobber ls's current local time information so
88027         that in any long listing the first file would always be listed
88028         with date 1970-01-01.  Analysis by Volker Borchert.
88029
88030         * lib/gettimeofday.c (localtime): Undefine.
88031         (rpl_localtime): New function.
88032
88033 2002-05-27  Jim Meyering  <meyering@lucent.com>
88034
88035         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
88036         localtime.
88037
88038         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
88039         use the replacement function; it wouldn't resolve at link time.
88040         Reported by Volker Borchert.
88041
88042 2002-05-22  Jim Meyering  <meyering@lucent.com>
88043
88044         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
88045         file-type.h.
88046         * lib/file-type.h: New file.
88047         * lib/file-type.c (file_type): New file/function.  Extracted from
88048         diffutils.
88049
88050 2002-04-30  Jim Meyering  <meyering@lucent.com>
88051
88052         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
88053
88054 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88055
88056         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
88057
88058 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88059
88060         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
88061         Do not check for alloca.h (no longer used) or stdbool.h (was never
88062         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
88063
88064 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88065
88066         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
88067
88068 2002-04-29  Jim Meyering  <meyering@lucent.com>
88069
88070         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
88071         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
88072         Use AC_FUNC_STRNLEN here instead.
88073
88074         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
88075         With autoconf-2.53a, it's part of AC_PROG_CC.
88076
88077 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88078
88079         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
88080         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
88081
88082 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88083
88084         * lib/sig2str.h, lib/sig2str.c: New files.
88085         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
88086
88087 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88088
88089         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
88090         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
88091         of 127, since 64 is the largest conceivable number for ancient
88092         nonstandard hosts.
88093         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
88094
88095 2002-04-28  Jim Meyering  <meyering@lucent.com>
88096
88097         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
88098
88099 2002-04-24  Jim Meyering  <meyering@lucent.com>
88100
88101         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
88102         (jm_PREREQ): Use it.
88103
88104         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
88105         mach/mach.h fcntl.h.
88106         Check for this function: setlocale.
88107
88108 2002-04-24  Jim Meyering  <meyering@lucent.com>
88109
88110         * lib/gettext.h: New file, from Gettext.
88111         * lib/Makefile.am (INCLUDES): Remove -I../intl.
88112         (libfetish_a_SOURCES): Add gettext.h.
88113
88114 2002-04-16  Jim Meyering  <meyering@lucent.com>
88115
88116         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
88117         ut_pid, ut_id, ut_exit.
88118
88119 2002-04-16  Jim Meyering  <meyering@lucent.com>
88120
88121         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
88122         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
88123         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
88124
88125 2002-04-12  Jim Meyering  <meyering@lucent.com>
88126
88127         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
88128         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
88129         existence of the getmntinfo function.  Needed for Darwin 5.3.
88130
88131         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
88132         This is necessary at least on Darwin 5.3.
88133
88134         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
88135         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
88136         strnlen.o in the library, and that makes some versions of ranlib
88137         object.
88138
88139 2002-04-12  Jim Meyering  <meyering@lucent.com>
88140
88141         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
88142
88143 2002-04-09  Jim Meyering  <meyering@lucent.com>
88144
88145         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
88146         to be more precise.  Rather than saying we're checking whether the
88147         function `works', say what we're testing.
88148         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
88149         Reported by Bruno Haible.
88150
88151 2002-03-10  Jim Meyering  <meyering@lucent.com>
88152
88153         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
88154         Suggestion from Santiago Vila.
88155
88156 2002-03-08  Jim Meyering  <meyering@lucent.com>
88157
88158         * lib/rename.c: Mention that this wrapper is needed also on
88159         mips-dec-ultrix4.4 systems.
88160
88161 2002-03-02  Jim Meyering  <meyering@lucent.com>
88162
88163         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
88164         not HAVE_CLOCK_SETTIME.
88165
88166 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88167
88168         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
88169         Check for clock_settime.
88170
88171 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88172
88173         * lib/nanosleep.h: Rename to....
88174         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
88175
88176         * lib/gettime.c: New file.
88177         * lib/settime.c: New file.
88178         * lib/stime.c: Remove.
88179
88180         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
88181         timespec.h.  Remove nanosleep.h.
88182
88183 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88184
88185         * m4/acl.m4: New file.
88186         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
88187         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
88188
88189 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88190
88191         * lib/acl.c, lib/acl.h: New files.
88192         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
88193
88194 2002-02-24  Jim Meyering  <meyering@lucent.com>
88195
88196         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
88197         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
88198         cause trouble.  Reported by Nelson Beebe.
88199
88200 2002-02-23  Paul Eggert  <eggert@twinsun.com>
88201
88202         * lib/path-concat.c (xpath_concat): Reorder code to pacify
88203         compilers that don't know that xalloc_die never returns.
88204
88205 2002-02-20  Jim Meyering  <meyering@lucent.com>
88206
88207         * lib/getdate.c: Regenerate using bison-1.33.
88208
88209 2002-02-17  Jim Meyering  <meyering@lucent.com>
88210
88211         * config/config.guess (main): Don't use `head -1'; it's no longer
88212         portable. Use `sed 1q' instead.
88213
88214 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
88215
88216         * m4/codeset.m4: Upgrade to gettext-0.11.
88217         * m4/gettext.m4: Upgrade to gettext-0.11.
88218         * m4/glibc21.m4: Upgrade to gettext-0.11.
88219         * m4/iconv.m4: Upgrade to gettext-0.11.
88220         * m4/isc-posix.m4: Upgrade to gettext-0.11.
88221         * m4/lcmessage.m4: Upgrade to gettext-0.11.
88222         * m4/lib-ld.m4: New file, from gettext-0.11.
88223         * m4/lib-link.m4: New file, from gettext-0.11.
88224         * m4/lib-prefix.m4: New file, from gettext-0.11.
88225         * m4/progtest.m4: Upgrade to gettext-0.11.
88226
88227 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88228
88229         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
88230         (jm_PREREQ): Use it.
88231
88232 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88233
88234         * lib/posixver.c, lib/posixver.h: New files.
88235         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88236
88237 2002-02-02  Paul Eggert  <eggert@twinsun.com>
88238             Bruno Haible  <bruno@clisp.org>
88239
88240         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
88241         (fwrite_success_callback): New declaration.
88242         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
88243         print_unicode_char. Call failure callback instead of error.
88244         (fwrite_success_callback): New function.
88245         (exit_failure_callback): New function.
88246         (fallback_failure_callback): New function.
88247         (print_unicode_char): Call unicode_to_mb.
88248
88249 2002-01-26  Jim Meyering  <meyering@lucent.com>
88250
88251         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
88252         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
88253
88254 2002-01-26  Jim Meyering  <meyering@lucent.com>
88255
88256         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
88257
88258 2002-01-22  Paul Eggert  <eggert@twinsun.com>
88259
88260         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
88261
88262 2002-01-22  Jim Meyering  <meyering@lucent.com>
88263
88264         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
88265         Otherwise, some versions of automake would omit the rule that makes
88266         Makefile from Makefile.in.
88267
88268 2002-01-21  Paul Eggert  <eggert@twinsun.com>
88269
88270         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
88271         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88272         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
88273         (memcoll): Set errno to zero if there is no error.
88274
88275         * lib/quotearg.c (quotearg_buffer_restyled):
88276         Fix bug with quoting buffers containing NUL when backslashing escapes.
88277         This bug was exposed by the other changes in this patch.
88278         (quotearg_n_options): New arg ARGSIZE.
88279         All callers changed.
88280         (quoting_options_from_style): New function.
88281         (quotearg_n_style): Use it.
88282         (quotearg_n_style_mem): New function.
88283
88284         * lib/quotearg.h (quotearg_n_style_mem): New function.
88285
88286 2002-01-19  Jim Meyering  <meyering@lucent.com>
88287
88288         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
88289         Remove useless quotes: DF_PROG="df".
88290         * m4/strnlen.m4: New file.
88291
88292 2002-01-16  Paul Eggert  <eggert@twinsun.com>
88293
88294         * lib/backupfile.c (ISDIGIT): Comment fix.
88295         * lib/getdate.y (ISDIGIT): Likewise.
88296         * lib/posixtm.c (ISDIGIT, year): Likewise.
88297         * lib/strverscmp.c (ISDIGIT): Likewise.
88298         * lib/userspec.c (ISDIGIT): Likewise.
88299
88300 2002-01-16  Jim Meyering  <meyering@lucent.com>
88301
88302         * lib/getdate.y: Add three semicolons, each just before a closing
88303         brace. Bison (as of version 1.31) no longer papers over that mistake.
88304
88305 2002-01-05  Jim Meyering  <meyering@lucent.com>
88306
88307         * lib/version-etc.c (version_etc_copyright): Update copyright year.
88308
88309 2001-12-19  Paul Eggert  <eggert@twinsun.com>
88310
88311         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
88312         not silently exit merely because the output buffer happens to
88313         have nothing pending.
88314
88315 2001-12-18  Paul Eggert  <eggert@twinsun.com>
88316
88317         See the big note in ../ChangeLog.
88318         * lib/human.c (suffixes): Prefer K to k for 1024.
88319         (generate_suffix_backwards): New function.
88320         (human_readable_inexact): Use it.
88321         * lib/xstrtol.c (__xstrtol): If there is no number but there
88322         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
88323         Accept 'K' as well as 'k'.
88324
88325 2001-12-15  Jim Meyering  <meyering@lucent.com>
88326
88327         * lib/regex.h (__restrict_arr): Update from libc.
88328
88329         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
88330         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
88331         (STREQ): Define.
88332
88333 2001-12-14  Jim Meyering  <meyering@lucent.com>
88334
88335         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
88336         Suggestion from Bruno Haible.
88337
88338 2001-12-10  Jim Meyering  <meyering@lucent.com>
88339
88340         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
88341         xrealloc, Instead, include "xalloc.h".
88342         (initbuffer): Don't cast xmalloc return value to char*.
88343         (readline): Reword comment.
88344         Don't cast xrealloc return value to char*
88345         Return NULL, not 0.
88346
88347 2001-12-09  Jim Meyering  <meyering@lucent.com>
88348
88349         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
88350         about `signed and unsigned type in conditional expression'.
88351         * lib/posixtm.c (posix_time_parse): Likewise.
88352
88353         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
88354
88355         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
88356         to avoid a pedantic warning.
88357
88358         * lib/getstr.c: Don't include assert.h.
88359         (getstr): Remove warning-evoking assertions.
88360         Return -1 if offset parameter is out of bounds.
88361         Change the type of a local from int to size_t.
88362
88363         * lib/strftime.c (my_strftime_localtime_r): Include this function
88364         definition in the `#if ! HAVE_TM_GMTOFF' block.
88365
88366         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
88367         Include xalloc.h instead.
88368
88369 2001-12-02  Jim Meyering  <meyering@lucent.com>
88370
88371         * lib/tempname.c: Don't declare getenv, thus reverting the change of
88372         2001-11-18.  It's no longer necessary, now that stdlib.h is always
88373         included.
88374
88375         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
88376         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
88377
88378 2001-11-30  Akim Demaille  <akim@epita.fr>
88379
88380         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
88381         before being defined.
88382
88383 2001-11-27  Paul Eggert  <eggert@twinsun.com>
88384
88385         * lib/quotearg.h (quotearg_n, quotearg_n_style):
88386         First arg is int, not unsigned.
88387         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
88388         (SIZE_MAX, UINT_MAX): New macros.
88389         (quotearg_n_options): Abort if N is negative.
88390         Avoid overflow check on hosts where size_t is 64 bits and int
88391         is 32 bits, as overflow is impossible there.
88392         Fix off-by-one typo that caused unnecessary reallocation.
88393
88394 2001-11-27  Jim Meyering  <meyering@lucent.com>
88395
88396         * lib/tempname.c: Merge with version from libc.
88397         * lib/regex.c: Likewise.
88398
88399         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
88400         systems for which STDC_HEADERS is 0, it was not included, resulting in
88401         a warning about an integer-to-pointer conversion problem with getenv.
88402         Reported by Volker Borchert.
88403
88404 2001-11-26  Jim Meyering  <meyering@lucent.com>
88405
88406         * lib/gtod.h: Remove file.
88407         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
88408         * lib/gettimeofday.c: Don't include gtod.h.
88409         (GTOD_init): Remove function.
88410         (rpl_gettimeofday): Do its job here instead, rather than aborting.
88411         Suggestion from Volker Borchert.
88412
88413 2001-11-23  Jim Meyering  <meyering@lucent.com>
88414
88415         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
88416         it.
88417         * lib/hash.c (struct hash_table): Define it here instead.
88418
88419 2001-11-22  Jim Meyering  <meyering@lucent.com>
88420
88421         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
88422
88423 2001-11-20  Jim Meyering  <meyering@lucent.com>
88424
88425         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
88426         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
88427
88428 2001-11-19  Jim Meyering  <meyering@lucent.com>
88429
88430         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
88431         directory.  Use "conftestXXXXXX" as the template.
88432         Suggestion from Paul Eggert.
88433
88434         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
88435         immediately, so the test doesn't mistakenly hit the max-open-files
88436         limit.
88437
88438 2001-11-18  Paul Eggert  <eggert@twinsun.com>
88439
88440         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
88441         (TEMPORARIES): New macro.
88442         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
88443         removes an artificial limitation (e.g. HP-UX 10.20, where
88444         TMP_MAX is 17576).
88445
88446 2001-11-18  Jim Meyering  <meyering@lucent.com>
88447
88448         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
88449
88450 2001-11-18  Jim Meyering  <meyering@lucent.com>
88451
88452         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
88453         on SunOS 4.
88454
88455         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
88456         files will be created before anything else.
88457
88458 2001-11-17  Paul Eggert  <eggert@twinsun.com>
88459
88460         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
88461         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
88462
88463 2001-11-17  Jim Meyering  <meyering@lucent.com>
88464
88465         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
88466         Prompted by a report from Bob Proulx.
88467
88468         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
88469         Instead, require UTILS_FUNC_MKSTEMP.
88470
88471 2001-11-17  Jim Meyering  <meyering@lucent.com>
88472
88473         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
88474         Now, that's done as part of AC_FUNC_STRTOD.
88475
88476 2001-11-17  Jim Meyering  <meyering@lucent.com>
88477
88478         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
88479         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
88480         rather than group writable.  Patch by Juan F. Codagnone.
88481
88482         * lib/readtokens.c: Remove explicit declarations of xmalloc and
88483         xrealloc, Instead, include "xalloc.h".
88484
88485         * lib/mountlist.c: Include unlocked-io.h after all system headers.
88486         Remove explicit declarations of xmalloc, xrealloc,
88487         and xstrdup.  Instead, include "xalloc.h".
88488
88489         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
88490         unlocked-io.h.
88491         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
88492         Likewise.
88493         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
88494
88495         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
88496         Reported by Padraig Brady.
88497
88498         * lib/mkstemp.c: #undef mkstemp.
88499         Include config.h.
88500         (rpl_mkstemp): Rename from mkstemp.
88501         Protoize.
88502
88503 2001-11-16  Jim Meyering  <meyering@lucent.com>
88504
88505         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
88506         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
88507         determine the amount of total physical memory, use pstat_getstatic.
88508         HPUX-11 doesn't define _SC_PHYS_PAGES.
88509         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
88510         If sysconf couldn't be used to determine the amount of available
88511         physical memory, use both pstat_getstatic and pstat_getdynamic.
88512         Based on a patch from Bob Proulx.
88513
88514 2001-11-10  Jim Meyering  <meyering@lucent.com>
88515
88516         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
88517         (jm_PREREQ): Use it.
88518
88519 2001-11-09  Jim Meyering  <meyering@lucent.com>
88520
88521         * m4/jm-macros.m4: Require autoconf-2.52f.
88522         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
88523         Use these AC_-prefixed names, not the AM_-prefixed ones.
88524
88525         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
88526
88527 2001-11-05  Jim Meyering  <meyering@lucent.com>
88528
88529         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
88530
88531 2001-11-04  Jim Meyering  <meyering@lucent.com>
88532
88533         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
88534         $DEFS.
88535
88536 2001-11-03  Jim Meyering  <meyering@lucent.com>
88537
88538         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
88539         of AC_DEFUN.
88540
88541         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
88542         know the name of the variable in the macro definition.
88543
88544 2001-11-03  Jim Meyering  <meyering@lucent.com>
88545
88546         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
88547         in argmatch_to_argument call.
88548
88549         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
88550         argument.
88551
88552         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
88553         e.g., a fault due to an attempt to free a NULL pointer.
88554
88555 2001-11-01  Jim Meyering  <meyering@lucent.com>
88556
88557         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
88558         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
88559
88560 2001-11-01  Jim Meyering  <meyering@lucent.com>
88561
88562         * lib/dirfd.c, lib/dirfd.h: New files.
88563         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
88564
88565         * lib/hash.c (hash_print) [TESTING]: Clean up.
88566
88567 2001-10-22  Paul Eggert  <eggert@twinsun.com>
88568
88569         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
88570         to avoid a warning if -Wall.
88571
88572 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
88573
88574         * README: New file
88575         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
88576         (per RMS's instructions, this is now the canonical source)
88577         * lgpl/, gpl/: New directories.
88578
88579 2001-10-21  Paul Eggert  <eggert@twinsun.com>
88580
88581         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
88582
88583 2001-10-21  Jim Meyering  <meyering@lucent.com>
88584
88585         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
88586         this code would end up calling gettext even in packages built
88587         with --disable-nls.
88588         * lib/getopt.c (_): Likewise.
88589         * lib/regex.c (_): Likewise.
88590
88591 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88592
88593         * m4/error.m4 (jm_PREREQ_ERROR):
88594         Do not invoke AC_CHECK_FUNCS with strerror_r, as
88595         AC_FUNC_STRERROR_R does that.
88596         Check for strerror declaration.
88597
88598         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
88599         are supposed to have them these days.
88600         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
88601         Merge changes from latest Autoconf CVS.
88602         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
88603         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
88604         POSIX decided to standardize on the int flavor of strerror_r.
88605
88606 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88607
88608         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
88609         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
88610         Use strerror_r that is only a macro, even if it is not a function.
88611         (strerror): Check for HAVE_DECL_STRERROR before declaring.
88612         (private_strerror): Use prototypes, not old-style function definition.
88613         (print_errno_message): New function.
88614         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
88615         char*-flavored one.
88616         (error_tail, error, error_at_line): Use it.
88617
88618 2001-10-11  Jim Meyering  <meyering@lucent.com>
88619
88620         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
88621         and quote_n (1, ... to avoid clobbering a buffer.
88622
88623 2001-10-05  Jim Meyering  <meyering@lucent.com>
88624
88625         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
88626         hash-pjw.h.
88627         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
88628         * lib/hash-pjw.h: New file.
88629
88630 2001-09-30  Jim Meyering  <meyering@lucent.com>
88631
88632         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
88633         `struct fsstat' has the `f_fstypename' member.
88634         Use that to define FS_TYPE, which is now used to make
88635         the getfsstat link test tighter.
88636
88637 2001-09-30  Jim Meyering  <meyering@lucent.com>
88638
88639         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
88640         Include <sys/ucred.h>, for Apple Darwin.
88641         Include sys/mount.h and sys/fs_types.h only if available.
88642         (FS_TYPE): Define.
88643         (read_filesystem_list): Use FS_TYPE.
88644
88645 2001-09-29  Paul Eggert  <eggert@twinsun.com>
88646
88647         * lib/exclude.c (excluded_filename): 0 -> false, since it's
88648         a boolean context.
88649
88650 2001-09-29  Jim Meyering  <meyering@lucent.com>
88651
88652         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88653         [one-argument getmntent function]): Include stdio.h before mntent.h.
88654         SunOS 4.1.x needs it for the declaration of `FILE'.
88655         Patch by Volker Borchert.
88656
88657         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88658         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
88659         sys/fs_types.h, and make the link-test for getfsstat guard #include
88660         directives with appropriate #if HAVE_*_H tests so that we can
88661         detect getfsstat on Apple Darwin1.3.7 systems.
88662         Reported by Nelson Beebe.
88663         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
88664
88665 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88666
88667         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88668         #defines strtoimax.  Also treat the other strto* functions
88669         like strtoimax.
88670
88671         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88672         Check for strtoul and strtoumax,
88673         as those declarations are made even in the signed case.
88674         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
88675         Likewise, for strtol and strtoimax.
88676
88677 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88678
88679         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88680         #defines strtoimax.  Also treat the other strto* functions
88681         like strtoimax.
88682
88683         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
88684         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
88685         (strtoimax, strtoumax): Do not declare if already defined as a macro.
88686
88687 2001-09-26  Jim Meyering  <meyering@lucent.com>
88688
88689         Most macros in unlocked-io.h had the wrong number of arguments.
88690         * lib/gen-uio: New script.
88691         (USE_UNLOCKED_IO): Define to 1 if not already defined.
88692         * lib/unlocked-io.hin: Remove file.
88693         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
88694         rather than trying to embed it here.
88695         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
88696         Reported by Padraig Brady.
88697
88698 2001-09-25  Volker Borchert  <bt@teknon.de>
88699
88700         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
88701         `result'.
88702
88703 2001-09-24  Jim Meyering  <meyering@lucent.com>
88704
88705         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
88706
88707 2001-09-23  Jim Meyering  <meyering@lucent.com>
88708
88709         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
88710         instead of the mere test for existence of mntent.h.  The latter
88711         would get a false-positive on AIX 3.4 systems.
88712         In the outer getmntent if-block, don't die if neither of the getmntent
88713         tests succeeds.  Instead, just fall through and continue with the
88714         remaining tests.
88715
88716 2001-09-23  Jim Meyering  <meyering@lucent.com>
88717
88718         * lib/mountlist.c: Remove useless parentheses in #if directives.
88719         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
88720         the deprecated MOUNTED symbol is no longer defined in mntent.h.
88721
88722 2001-09-22  Jim Meyering  <meyering@lucent.com>
88723
88724         * m4/gettext.m4: New file.  From gettext.
88725         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
88726         * m4/progtest.m4: Likewise
88727         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
88728         * m4/glibc21.m4: Likewise.
88729
88730         * m4/libintl.m4: Remove.  No longer used.
88731
88732 2001-09-22  Jim Meyering  <meyering@lucent.com>
88733
88734         * lib/localcharset.c: Update from latest gettext.
88735         * lib/config.charset: Likewise.
88736
88737 2001-09-20  Jim Meyering  <meyering@lucent.com>
88738
88739         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
88740         strtoimax.
88741         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
88742         strtoumax.
88743
88744 2001-09-20  Jim Meyering  <meyering@lucent.com>
88745
88746         * lib/xstrtol.c (strtoimax): Guard declaration with
88747         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
88748         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
88749         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
88750         (strtoumax): Likewise, for completeness (it wasn't necessary).
88751
88752 2001-09-17  Paul Eggert  <eggert@twinsun.com>
88753
88754         * lib/strtoimax.c (HAVE_LONG_LONG):
88755         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
88756         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
88757         to work around bug in IBM C compiler.
88758
88759 2001-09-17  Jim Meyering  <meyering@lucent.com>
88760
88761         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
88762         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
88763         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
88764         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
88765         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
88766         whenever the right hand side need not be expanded by the shell.
88767
88768 2001-09-16  Paul Eggert  <eggert@twinsun.com>
88769
88770         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
88771         library.  It's not correct, as some older glibcs are buggy.
88772         fnmatch wasn't fixed until glibc 2.2.
88773
88774         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
88775         special shell magic here.
88776
88777 2001-09-16  Jim Meyering  <meyering@lucent.com>
88778
88779         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
88780         * m4/jm-macros.m4: Require it.
88781
88782 2001-09-16  Jim Meyering  <meyering@lucent.com>
88783
88784         * lib/mkdir.c: New file.
88785
88786 2001-09-15  Jim Meyering  <meyering@lucent.com>
88787
88788         * m4/jm-macros.m4: Check for help2man.
88789
88790 2001-09-11  Jim Meyering  <meyering@lucent.com>
88791
88792         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
88793         The body, by Paul Eggert, was moved here from configure.in.
88794         * m4/jm-macros.m4: Require UTILS_HOST_OS.
88795
88796 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88797
88798         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
88799         (jm_PREREQ): Use it.
88800
88801 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88802
88803         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
88804         Use ssize_t, not int, to store result of readlink.
88805         Check for ssize_t overflow as well as size_t overflow,
88806         as POSIX says the result of readlink is implementation-defined
88807         when ssize_t overflows.
88808         Remove unnecessary cast to char*.
88809         Use free+malloc instead of realloc, as the storage doesn't need
88810         to be preserved and it's clearer and can be more efficient that way.
88811         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
88812         * lib/xreadlink.h (xreadlink): Update prototype.
88813
88814 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88815
88816         * lib/xgetcwd.c: Revert some of the previous change; intead,
88817         fix the HAVE_GETCWD_NULL code to behave more like the
88818         !HAVE_GETCWD_NULL code used to.
88819
88820         Include "xalloc.h".
88821         (xgetcwd): Do not return NULL when memory is exhausted; instead,
88822         invoke xalloc_die.
88823
88824 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88825
88826         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
88827         sys/param.h, as pathmax.h includes them.
88828
88829 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88830
88831         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
88832         (jm_PREREQ_XGETCWD): New macro.
88833
88834         * m4/getcwd.m4: New file.
88835
88836 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88837
88838         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
88839         like the HAVE_GETCWD_NULL code.
88840         Include pathmax.h if not HAVE_GETCWD.
88841         Do not include xalloc.h.
88842         (INITIAL_BUFFER_SIZE): New symbol.
88843         Do not use xmalloc / xrealloc, since the caller is responsible for
88844         handling errors.  Preserve errno around `free' during failure.
88845         Do not overrun buffer when using getwd.
88846
88847 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88848
88849         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
88850         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
88851         getcwd (NULL, 0).
88852
88853 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88854
88855         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
88856         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
88857         spotted by Jim Meyering.
88858
88859 2001-09-03  Jim Meyering  <meyering@lucent.com>
88860
88861         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
88862         failure.
88863
88864 2001-09-02  Jim Meyering  <meyering@lucent.com>
88865
88866         * lib/error.c: Update from GNU libc.
88867
88868 2001-09-01  Jim Meyering  <meyering@lucent.com>
88869
88870         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
88871         Used by df.
88872
88873 2001-09-01  Jim Meyering  <meyering@lucent.com>
88874
88875         * lib/xreadlink.c: New file.
88876         * lib/xreadlink.h: New file.
88877         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
88878         xreadlink.h.
88879
88880         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
88881         doesn't conflict with sparc Solaris 7's definition in
88882         /usr/include/sys/int_types.h.
88883
88884         * lib/exclude.c: Use `""', not `<>' to #include non-system header
88885         files.
88886         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
88887         and strncasecmp as r-values.  Unixware didn't have declarations.
88888
88889 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88890
88891         * lib/xstrtol.h: Add copyright notice.
88892         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
88893         LONGINT_INVALID_SUFFIX_CHAR.
88894
88895 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88896
88897         * lib/xstrtol.c (strtoimax): New decl.
88898
88899 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88900
88901         * lib/xgetcwd.c: Don't include pathmax.h.
88902         Include stdlib.h and unistd.h if available.
88903         Include xalloc.h.
88904         (xmalloc, xstrdup, free): Remove decls.
88905         (xgetcwd): Don't assume sizes fit in unsigned.
88906         Check for overflow when computing sizes.
88907         Simplify reallocation code.
88908
88909 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88910
88911         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
88912         a directory's st_size can have an arbitrary value, so the old
88913         usage could waste an arbitrary amount of memory.  All uses
88914         changed.
88915         * lib/savedir.h: Update prototype.
88916
88917 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88918
88919         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
88920
88921         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
88922         old strtoimax.c.
88923
88924         Also, make the following further changes to make this file's
88925         configuration more similar to that of strtol.c:
88926         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
88927         (strtoumax, uintmax_t, strtoull, strtol): Remove.
88928         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
88929         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
88930         changed to signed values.
88931
88932         And make the following changes as well:
88933         Fix copyright notice, as 1999 was missing.
88934         (verify): New macro.
88935         (strtoimax): Check sizes at compile-time, not run-time.
88936         Prefer strtol to strtoll if both work.
88937         (main): Remove; it was not that useful and was a pain to maintain.
88938
88939         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
88940
88941 2001-08-31  Jim Meyering  <meyering@lucent.com>
88942
88943         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
88944         Use an initial, malloc'd, buffer of length 128 rather than
88945         a statically allocated one of length 1024.
88946
88947 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88948
88949         Simplify code, partly by assuming autoconf 2.52 semantics.
88950
88951         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
88952
88953         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
88954         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
88955         All uses removed.
88956         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
88957         Move AC_REQUIRE to next-to-top level, to avoid confusion.
88958         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
88959         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
88960         jm_AC_HEADER_INTTYPES_H.
88961         * m4/jm-macros.m4 (jm_MACROS): Likewise.
88962
88963         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
88964
88965         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88966         Quote first arg of AC_DEFUN.
88967         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
88968         since they are needed to parse the include file even if we need
88969         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
88970         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
88971         but with opposite signedness.
88972
88973 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88974
88975         Merge 'exclude' changes from tar 1.13.22.
88976         This fixes one or two unlikely storage allocation overflow bugs,
88977         but doesn't change user-visible behavior otherwise.
88978
88979 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88980
88981         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
88982         (jm_PREREQ_EXCLUDE): New macro.
88983
88984 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88985
88986         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
88987         tm to be declared.
88988
88989 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88990
88991         * lib/hash.c: Remove '2001' from copyright notice.
88992
88993 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88994
88995         * lib/full-write.h: New file.
88996         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
88997         * lib/full-write.c: Correct credits, as cccp.c no longer
88998         exists and anyway it was so heavily changed from the old cccp
88999         code as to be unrecognizable.  Include full-write.h.
89000         (full_write): Return size_t, with short writes meaning failure.
89001         All callers changed.  This fixes a bug with large buffers
89002         on 64-bit hosts.
89003         * lib/utime.c: Include full-write.h.
89004
89005 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89006
89007         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
89008         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
89009         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
89010         Include if available.
89011         (<xalloc.h>): Include
89012         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
89013         (verify): New macro.  Use it to verify that EXCLUDE macros do not
89014         collide with FNM macros.
89015         (struct patopts): New struct.
89016         (struct exclude): Use it, as exclude patterns now come with options.
89017         (new_exclude): Support above changes.
89018         (new_exclude, add_exclude_file):
89019         Initial size must now be a power of two to simplify overflow checking.
89020         (free_exclude, fnmatch_no_wildcards): New function.
89021         (excluded_filename): No longer requires options arg, as the options
89022         are determined by add_exclude.  Now returns bool, not int.
89023         (excluded_filename, add_exclude):
89024         Add support for the fancy new exclusion options.
89025         (add_exclude, add_exclude_file): Now takes int options arg.
89026         Check for arithmetic overflow when computing sizes.
89027         (add_exclude_file): xrealloc might modify errno, so don't
89028         realloc until after errno might be used.
89029
89030         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
89031         New macros.
89032         (free_exclude): New decl.
89033         (add_exclude, add_exclude_file): Now takes int options arg.
89034         (excluded_filename): No longer requires options arg, as the options
89035         are determined by add_exclude.  Now returns bool, not int.
89036
89037 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89038
89039         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
89040
89041 2001-08-27  Jim Meyering  <meyering@lucent.com>
89042
89043         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
89044
89045         * lib/version-etc.c (N_): Remove definition.
89046         Revert most of last change.
89047         Instead, simply don't mark the `Copyright...' string for translation.
89048         Based on advice from Paul Eggert.
89049
89050         * lib/strtoxmax.c: Tweak comment.
89051
89052 2001-08-26  Jim Meyering  <meyering@lucent.com>
89053
89054         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
89055
89056         * m4/xstrtoimax.m4: New file.
89057         * m4/xstrtoumax.m4: Add comments explaining why we
89058         AC_REPLACE_FUNCS(strtol).
89059
89060 2001-08-26  Jim Meyering  <meyering@lucent.com>
89061
89062         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
89063         of copyright with `%s' so translators don't get an untranslated
89064         message in 2002.
89065         (COPYRIGHT_YEAR): Define.
89066         (version_etc): Use fprintf rather than fputs.
89067         Suggestion from Ulrich Drepper.
89068
89069         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
89070
89071         * lib/strtoll.c: New file, from GNU libc.
89072         * lib/xstrtoimax.c: New file.
89073
89074         * lib/xstrtol.h: Add xstrtoimax.
89075         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
89076         * lib/strtoimax.c: New file.  Likewise, but first define
89077         STRTOUXMAX_SIGNED.
89078
89079         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
89080         ...
89081         * lib/strtoxmax.c: ... then renamed to this.
89082
89083 2001-08-18  Paul Eggert  <eggert@twinsun.com>
89084
89085         * m4/inttypes.m4: Add AC_PREREQ(2.13).
89086         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
89087         (jm_AC_TYPE_INTMAX_T): New macro.
89088         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
89089
89090         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
89091
89092         * m4/longlong.m4: Renamed from ulonglong.m4.
89093         * m4/inttypes.m4: Renamed from inttypes_h.m4.
89094         * m4/uintmax_t.m4: Removed.
89095
89096 2001-08-13  Paul Eggert  <eggert@twinsun.com>
89097
89098         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
89099         Port to Solaris 8, where 'sed' requires a space after the 'r'
89100         command, and where sh dislikes "$/".  Clean up the spacing a bit.
89101         Redirect output to $tmp just once.
89102
89103 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
89104
89105         * lib/addext.c (<errno.h>): Include.
89106         (errno): Declare if not defined.
89107         (addext): Work correctly when pathconf returns -1 and leaves
89108         errno alone because there is no limit.  Also, work even if
89109         pathconf returns a value greater than SIZE_MAX.
89110
89111 2001-08-12  Jim Meyering  <meyering@lucent.com>
89112
89113         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
89114         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
89115         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
89116         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
89117         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
89118         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
89119         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
89120         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
89121         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
89122         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
89123         utime.m4, utimes.m4, xstrtoumax.m4:
89124         Quote the first argument in each use of AC_DEFUN.
89125
89126 2001-08-12  Jim Meyering  <meyering@lucent.com>
89127
89128         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
89129         Simply `return getcwd (NULL, 0);'.
89130         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
89131         Use 1300 as initial value for length, not PATH_MAX.
89132
89133         * lib/pathmax.h: Clean up cpp syntax.
89134
89135 2001-08-12  Jim Meyering  <meyering@lucent.com>
89136
89137         * lib/gettimeofday.c: New file.
89138         * lib/gtod.h: New file.
89139         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
89140
89141 2001-08-05  Jim Meyering  <meyering@lucent.com>
89142
89143         * m4/jm-macros.m4: Require autoconf-2.52.
89144
89145 2001-08-04  Jim Meyering  <meyering@lucent.com>
89146
89147         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
89148         stmt, to get in sync with glibc.
89149
89150 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89151
89152         The following changes are from gettext 0.10.39 as maintained by
89153         Bruno Haible.
89154
89155         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
89156         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
89157         with inverted sense.  All uses changed.
89158
89159         * lib/mbswidth.c: Don't include <limits.h>.
89160         Include <stdlib.h> and <string.h> unconditionally.
89161         (iswcntrl, mbsinit, ISCNTRL): New macros.
89162         (mbsnwidth): Use K&R style function declarations.
89163         Don't bother checking for MB_LEN_MAX == 1, since the compiler
89164         can optimize it when MB_CUR_MAX == 1.
89165         The width of control characters is zero, not 1.
89166
89167 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89168
89169         The following changes are from gettext 0.10.39 as maintained by
89170         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
89171
89172         * m4/codeset.m4: Upgrade to serial AM1.
89173         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
89174         all uses changed.  Quote first arg of AC_DEFUN.
89175         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
89176
89177         * m4/iconv.m4: Upgrade to serial AM2.
89178         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
89179         Add --with-libconv-prefix.
89180         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
89181         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
89182         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
89183         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
89184         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
89185
89186         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
89187         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
89188         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
89189         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
89190         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
89191         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
89192         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
89193         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
89194         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
89195
89196         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
89197         string.h any more.
89198
89199         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
89200         not the default value.
89201
89202         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
89203         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
89204         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
89205         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
89206         Also check for iswcntrl, used for wcwidth fallback.
89207         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
89208         to Autoconf 2.13.
89209
89210 2001-08-03  Jim Meyering  <meyering@lucent.com>
89211
89212         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
89213         as it was in the original.  Reported by Paul Eggert.
89214
89215 2001-07-16  Jim Meyering  <meyering@lucent.com>
89216
89217         * m4/gettimeofday.m4: New file.
89218         Prompted by a report from Bernhard Baehr.
89219
89220 2001-07-15  Jim Meyering  <meyering@lucent.com>
89221
89222         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
89223         stuff. Now it's in ../Makefile.cfg.
89224
89225 2001-07-15  Jim Meyering  <meyering@lucent.com>
89226
89227         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
89228         (BUILT_SOURCES): Add unlocked-io.h.
89229         (io_functions): Define.
89230         (unlocked-io.h): New rule.
89231         (DISTCLEANFILES): Add unlocked-io.h.
89232         (all-local): Depend on unlocked-io.h, to ensure it is created.
89233
89234         * lib/unlocked-io.hin: New file
89235
89236         * lib/regex.c: Update from glibc.
89237
89238 2001-07-05  Jim Meyering  <meyering@lucent.com>
89239
89240         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
89241         recommendation.
89242         (libfetish_a_SOURCES): Put all .h files here instead.
89243         Remove a thus-exposed (better checks in automake) duplicate and
89244         two unnecessary .h files.
89245
89246 2001-07-04  Jim Meyering  <meyering@lucent.com>
89247
89248         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
89249         that generates jm-glibc-io.m4 so that it doesn't trigger any make
89250         distcheck failure.
89251
89252 2001-07-02  Jim Meyering  <meyering@lucent.com>
89253
89254         The following changes were prompted by suggestions from Bruno Haible.
89255
89256         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
89257         is now generated.
89258         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
89259         definition of EXTRA_DIST.
89260         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
89261         ensure that the generated file is created/updated whenever the list
89262         of $(unlocked_functions) is changed.
89263         (jm-glibc-io.m4): New rule.
89264         (unlocked-io.h): New rule -- currently unused.
89265
89266 2001-06-24  Jim Meyering  <meyering@lucent.com>
89267
89268         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
89269         unmatched right bracket, rather than kludging it with an extra,
89270         falsely-matching quote in a comment.  Patch by Akim Demaille.
89271
89272 2001-06-11  Jim Meyering  <meyering@lucent.com>
89273
89274         * lib/regex.c: Update from GNU libc.
89275
89276 2001-05-27  Jim Meyering  <meyering@lucent.com>
89277
89278         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
89279         Check for ut_type in struct utmp.
89280
89281 2001-05-27  Jim Meyering  <meyering@lucent.com>
89282
89283         * lib/readutmp.h (UT_TYPE): Define.
89284
89285 2001-05-24  Jim Meyering  <meyering@lucent.com>
89286
89287         * lib/argmatch.c: Include "quote.h".
89288         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
89289         quote function.  Reported by Göran Uddeborg.
89290
89291 2001-05-22  Jim Meyering  <meyering@lucent.com>
89292
89293         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
89294         now that we use the package-supplied version unconditionally.
89295         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
89296
89297 2001-05-21  Jim Meyering  <meyering@lucent.com>
89298
89299         * m4/regex.m4: Change a couple backticks to single quotes to avoid
89300         shell syntax errors.
89301
89302 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89303
89304         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
89305
89306 2001-05-20  Paul Eggert  <eggert@twinsun.com>
89307
89308         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
89309         Don't bother to check library strftime, since
89310         we'll be using our own my_strftime function anyway.
89311         Define my_strftime instead of strftime.
89312
89313 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
89314
89315         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
89316         which is not yet declared.
89317
89318 2001-05-15  Jim Meyering  <meyering@lucent.com>
89319
89320         * m4/regex.m4: Use proper quoting so brackets appear in the test
89321         program.
89322         Reported by, and with help from, Bruno Haible.
89323
89324 2001-05-13  Jim Meyering  <meyering@lucent.com>
89325
89326         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
89327         undefined.
89328
89329 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89330
89331         dirname code cleanup.  base_name now behaves more compatibly
89332         with POSIX basename when given file names that have trailing
89333         slashes, and similarly for dir_name.  Add new primitives
89334         base_len and dir_len.  Put the directory-name-related decls
89335         into dirname.h.
89336
89337         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
89338         * lib/backupfile.c (base_name): Likewise.
89339         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
89340         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
89341         * lib/makepath.c (strip_trailing_slashes): Likewise.
89342         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
89343         ISSLASH): Likewise.
89344         * lib/rename.c (strip_trailing_slashes): Likewise.
89345         * lib/same.c (base_name): Likewise.
89346         * lib/stripslash.c (ISSLASH): Likewise.
89347
89348         * lib/addext.c: Include <dirname.h> after size_t is defined.
89349         * lib/backupfile.c: Likewise.
89350
89351         * lib/addext.c (addext): Use base_len to trim redundant
89352         trailing slashes instead of doing it ourselves.
89353         But do not trim the last slash if it is not redundant.
89354
89355         * lib/backupfile.c (find_backup_file_name,
89356         max_backup_version): Use base_len instead of rolling it ourselves.
89357         Handle the case of "" and (on DOS) "C:" correctly.
89358
89359         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
89360         needed. Include <string.h>, <dirname.h>.
89361         (base_name): Allow file names ending in slashes, other than names
89362         that are all slashes.  In this case, return the basename followed
89363         by the slashes.  This is more general, and can be used in places
89364         where the original base_name purposely had an assertion failure.
89365         (base_len): New function.
89366
89367         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
89368         Do not include <assert.h>; no longer needed.
89369         Include xalloc.h.
89370         (memrchr): Remove decl.
89371         (dir_name_r): Remove.
89372         (dir_len): Renamed from dirlen.  All callers changed.
89373         Rewrite in terms of base_name, for simplicity and consistency.
89374         (dir_name): Never return NULL.  All callers changed.
89375         Do not include <stdlib.h> in test program; no longer needed.
89376         return 0; is fine for test program.
89377
89378         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
89379         New macros.
89380         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
89381
89382         * lib/path-concat.c (path_concat): Use base_len to compute
89383         base length, not strlen; this means we cannot rely on memcpy
89384         to null-terminate.
89385
89386         * lib/same.c (STREQ): Remove.
89387         (same_name): Handle the case where the basename ends in trailing '/'.
89388
89389         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
89390         a slash was stripped.  Do not strip the last slash after a
89391         file system prefix.
89392
89393 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89394
89395         * lib/Makefile.am (libfetish_a_SOURCES):
89396         Add strftime.c, since we now compile it on all hosts.
89397
89398         * lib/strftime.c (my_strftime):
89399         Define to nstrftime if emacs, but only if my_strftime is not defined.
89400         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
89401         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
89402         Add one more extra argument: a nanoseconds value.
89403         All uses changed.
89404         (ns): New macro.
89405         (my_strftime function): Add %N format.
89406         (emacs_strftimeu): Renamed from emacs_strftime,
89407         with extra ut argument.
89408
89409 2001-05-09  Paul Eggert  <eggert@twinsun.com>
89410
89411         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
89412
89413 2001-04-21  Jim Meyering  <meyering@lucent.com>
89414
89415         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
89416         doesn't interfere.
89417
89418 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89419
89420         * m4/ftruncate.m4: Check for chsize.
89421         Link with ftruncate.o unconditionally if ftruncate is missing.
89422         This was required when cross-compiling to i586-mingw32msvc.
89423
89424 2001-04-08  Jim Meyering  <meyering@lucent.com>
89425
89426         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
89427         recomputed; that's necessary when the offset spans a DST transition.
89428         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
89429
89430 2001-04-02  Jim Meyering  <meyering@lucent.com>
89431
89432         * lib/regex.h, regex.c: Update from GNU libc.
89433
89434 2001-03-24  Jim Meyering  <meyering@lucent.com>
89435
89436         * m4/jm-macros.m4: Require autoconf-2.49d.
89437
89438 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
89439
89440         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
89441
89442 2001-03-19  Paul Eggert  <eggert@twinsun.com>
89443
89444         * lib/version-etc.c (version_etc_copyright): Update to 2001.
89445
89446 2001-03-17  Jim Meyering  <meyering@lucent.com>
89447
89448         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
89449         now that the version in autoconf is equivalent.
89450         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
89451
89452         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
89453         Suggestion from Akim Demaille.
89454
89455         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
89456         (jm_PREREQ_TEMPNAME): New function.
89457
89458 2001-03-16  Paul Eggert  <eggert@twinsun.com>
89459
89460         * lib/tempname.c (uint64_t): Define to uintmax_t if
89461         not defined, and if UINT64_MAX is not defined.
89462         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
89463         Reported by John David Anglin.
89464
89465 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
89466
89467         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
89468         resolve alias if codeset is empty.
89469         * lib/config.charset (BeOS): Use wildcard syntax.
89470
89471 2001-03-13  Jim Meyering  <meyering@lucent.com>
89472
89473         * lib/path-concat.c (path_concat)
89474         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
89475         concatenating e.g., `C:' and `foo'.
89476         From Bruno Haible.
89477
89478 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89479
89480         * lib/localcharset.c (locale_charset): Don't use
89481         setlocale(LC_CTYPE,NULL). Don't return NULL.
89482         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
89483
89484 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89485
89486         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
89487         support for DOS/DJGPP.
89488
89489 2001-03-01  Paul Eggert  <eggert@twinsun.com>
89490
89491         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
89492         lacks mkstemp.  Compile our own tempname.c if we compile our own
89493         mkstemp.c, as mkstemp relies on tempname.
89494
89495 2001-03-01  Jim Meyering  <meyering@lucent.com>
89496
89497         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
89498         AH_VERBATIM really does output its argument verbatim.
89499
89500 2001-02-28  Paul Eggert  <eggert@twinsun.com>
89501
89502         * lib/Makefile.am (libfetish_a_SOURCES):
89503         Add dup-safer.c, fopen-safer.c.
89504         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
89505
89506         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
89507         * lib/unistd-safer.h: New files.
89508
89509 2001-02-25  Paul Eggert  <eggert@twinsun.com>
89510
89511         The mkstemp replacement is taken from glibc 2.2.2, with some
89512         portability fixes for use outside glibc, as follows:
89513
89514         * lib/tempname.c (struct_stat64): New macro.
89515         (direxists, __gen_tempname): Use it.
89516         This avoids a portability problem with Solaris 8.
89517
89518         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
89519         (<stddef.h>, <stdint.h>, <string.h>):
89520         Include only if STDC_HEADERS || _LIBC.
89521         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
89522         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
89523         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
89524         (__set_errno): Define this macro if <errno.h> doesn't.
89525         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
89526         Define these macros if <stdio.h> doesn't.
89527         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
89528         Define these macros if <sys/stat.h>
89529         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
89530         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
89531         __xstat64): Define if not _LIBC.
89532         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
89533         (__gen_tempname): Invoke gettimeofday only if
89534         HAVE_GETTIMEOFDAY || _LIBC;
89535         otherwise, fall back on plain "time".
89536         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
89537
89538         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
89539
89540         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
89541
89542 2001-02-18  Paul Eggert  <eggert@twinsun.com>
89543
89544         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
89545
89546 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89547
89548         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
89549         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
89550         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
89551         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89552
89553 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89554
89555         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
89556         Remove workaround macros for hosts that have mbrtowc but not
89557         mbstate_t, as we now insist on proper declarations for both
89558         before using mbrtowc.
89559
89560 2001-02-17  Jim Meyering  <meyering@lucent.com>
89561
89562         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
89563         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
89564         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
89565         UnixWare 7.1.1.
89566
89567         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
89568         rather than AC_CACHE_VAL.
89569
89570 2001-02-17  Jim Meyering  <meyering@lucent.com>
89571
89572         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
89573         around included file name.
89574
89575         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
89576
89577         * lib/strftime.c: Update from GNU libc (the only changes were to
89578         comments).
89579
89580 2001-02-17  Jim Meyering  <meyering@lucent.com>
89581
89582         * lib/regex.c: Update from libc.
89583
89584 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
89585
89586         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
89587         clash.
89588
89589 2001-02-16  Paul Eggert  <eggert@twinsun.com>
89590
89591         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
89592         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
89593         Reported by Mark Hounschell via Paul Eggert.
89594
89595 2001-02-07  Jim Meyering  <meyering@lucent.com>
89596
89597         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
89598
89599 2001-02-05  Jim Meyering  <meyering@lucent.com>
89600
89601         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
89602         it includes the patch required for `large file' support with at least
89603         HP-UX's 10.20 /bin/cc.
89604
89605 2001-02-03  Jim Meyering  <meyering@lucent.com>
89606
89607         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
89608         AS_IF, now that it works once again (mysteriously).
89609         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89610
89611 2001-01-30  Jim Meyering  <meyering@lucent.com>
89612
89613         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
89614         * m4/chown.m4: Rename conftestchown to conftest.chown.
89615         * m4/rename.m4: s/conftestdir/conftest.d1/ and
89616         s/conftestdir2/conftest.d2/.
89617         * m4/utimes.m4: s/conftestdata/conftest.data/
89618         Inspired by Pavel Roskin's change in autoconf.
89619
89620 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
89621
89622         * lib/config.charset: Update for FreeBSD 4.2.
89623
89624 2001-01-27  Jim Meyering  <meyering@lucent.com>
89625
89626         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
89627         a use of AS_IF.
89628         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89629
89630 2001-01-26  Jim Meyering  <meyering@lucent.com>
89631
89632         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
89633         quotearg.c includes it.
89634
89635 2001-01-26  Jim Meyering  <meyering@lucent.com>
89636
89637         * lib/quotearg.c: Include stddef.h.
89638         * lib/quote.c: Include stddef.h.
89639         Reported by Axel Kittenberger.
89640
89641         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
89642         line in double quotes so that it evokes a better diagnostic.
89643         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
89644         Reported by Axel Kittenberger.
89645
89646 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
89647
89648         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
89649         as if it was a `charset'.
89650
89651 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89652
89653         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
89654         has const.
89655
89656 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89657
89658         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
89659         to avoid a warning.  Add back 'const' to inptr.
89660
89661 2001-01-20  Jim Meyering  <meyering@lucent.com>
89662
89663         Be sure that headers are checked before used in code compiled
89664         for the type checks.
89665         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
89666         In place of that, invoke jm_CHECK_ALL_TYPES.
89667         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
89668         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
89669         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
89670         The check for ssize_t was mistakenly run before the test for unistd.h.
89671
89672         The configure-time check for stdbool.h was missing.
89673         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
89674         (jm_PREREQ_HASH): New function.
89675
89676 2001-01-17  Jim Meyering  <meyering@lucent.com>
89677
89678         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
89679         for autoconf-2.49c.
89680         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
89681
89682 2001-01-16  Jim Meyering  <meyering@lucent.com>
89683
89684         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
89685         From Bruno Haible.
89686
89687 2001-01-14  Jim Meyering  <meyering@lucent.com>
89688
89689         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
89690         foo and bar.  Create conftestdir/ in the script, not in the C code.
89691         Remove directories in the script, not in the C code.
89692         Remove conftestdir{,2} before trying to create the directory.
89693         Make the entire configure script fail if the mkdir fails.
89694
89695 2001-01-14  Jim Meyering  <meyering@lucent.com>
89696
89697         * lib/rename.c: New file.  From Volker Borchert.
89698         Include stdlib.h, string.h or strings.h, and xalloc.h.
89699         Use strip_trailing_slashes rather than open-coding it.
89700
89701 2001-01-03  Paul Eggert  <eggert@twinsun.com>
89702
89703         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
89704
89705 2001-01-03  Jim Meyering  <meyering@lucent.com>
89706
89707         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
89708         of local `inptr' to avoid warning with some system declarations of
89709         iconv.
89710
89711 2001-01-02  Volker Borchert  <bt@teknon.de>
89712
89713         * m4/rename.m4: New file.
89714         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
89715
89716 2001-01-01  Jim Meyering  <meyering@lucent.com>
89717
89718         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
89719         even on systems with utmpx.h.  It's necessary for the declaration of
89720         utmp's ut_user member.  Reported by Andreas Jaeger.
89721
89722         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
89723         available. They are required for the declarations of getgrgid and
89724         getpwuid resp.
89725         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
89726         Reported by Andreas Jaeger.
89727
89728 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
89729
89730         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
89731         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
89732         so `make install' also works in VPATH builds.
89733
89734 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
89735
89736         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
89737         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
89738         can be used in subdirectories.
89739
89740 2000-12-29  Paul Eggert  <eggert@twinsun.com>
89741
89742         * lib/modechange.c: Do not assume that mode_t uses the
89743         traditional octal encoding.  E.g. "chmod 1 FOO" should set
89744         the other-execute bit of FOO even if S_IXOTH != 1.
89745
89746         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
89747         WOTH, XOTH, ALLM): New macros.
89748         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
89749          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
89750         Use them.
89751         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
89752         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
89753         (mode_compile):
89754         No need to use uintmax_t; unsigned long is long enough.
89755         Don't bother to get suffix since we don't use it.
89756
89757 2000-12-26  Jim Meyering  <meyering@lucent.com>
89758
89759         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
89760         better with autoheader.
89761
89762 2000-12-24  Jim Meyering  <meyering@lucent.com>
89763
89764         * lib/hash.c (is_prime): Return explicit boolean values.
89765         (hash_get_first): Return NULL to appease Irix5.6's 89.
89766         Reported by Nelson Beebe.
89767
89768 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
89769
89770         * lib/localcharset.c (locale_charset): Add support for Win32.
89771
89772 2000-12-18  Paul Eggert  <eggert@twinsun.com>
89773
89774         * lib/physmem.h, lib/physmem.c: New files.
89775
89776         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
89777         (noinst_HEADERS): Add physmem.h.
89778
89779         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
89780         't' for compatibility with Solaris 8 sort.
89781
89782 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
89783
89784         * lib/config.charset: Add support for BeOS.
89785
89786 2000-12-17  Jim Meyering  <meyering@lucent.com>
89787
89788         * m4/dos.m4 (jm_AC_DOS): New file and macro.
89789         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
89790
89791 2000-12-16  Jim Meyering  <meyering@lucent.com>
89792
89793         This bug had a serious impact on chown: `chown N:M FILE' (for integer
89794         N and M) would have treated it like `chown N:N FILE'.
89795
89796         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
89797
89798 2000-12-16  Jim Meyering  <meyering@lucent.com>
89799
89800         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
89801         SHELLS_FILE to a file name that's useful on djgpp systems.
89802         Include stdlib.h.
89803         (ADDITIONAL_DEFAULT_SHELLS): Define.
89804         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
89805         Based mostly on a patch from Prashant TR.
89806
89807 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
89808
89809         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
89810         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
89811         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
89812
89813 2000-12-08  Andreas Schwab  <schwab@suse.de>
89814
89815         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
89816         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
89817
89818 2000-12-07  Jim Meyering  <meyering@lucent.com>
89819
89820         * lib/stripslash.c (ISSLASH): Define.
89821         (strip_trailing_slashes): Use ISSLASH rather than comparing against
89822         `/'.
89823         From Prashant TR.
89824
89825         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
89826         (dir_name_r): Declare this function as static.
89827         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
89828         manifest itself on a name containing a mix of slashes and
89829         backslashes.
89830         Make this function work with names starting with a DOS-style
89831         drive letter and colon prefix.
89832         (dir_name): Append `.' if necessary.
89833         Based mostly on patches from Prashant TR and Eli Zaretskii.
89834
89835         * lib/dirname.h (dir_name_r): Remove prototype.
89836
89837 2000-12-06  Paul Eggert  <eggert@twinsun.com>
89838
89839         * m4/off_t-format.m4: Remove this file.
89840         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
89841
89842 2000-12-06  Jim Meyering  <meyering@lucent.com>
89843
89844         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
89845         replacement strtoull, we may well need the replacement strtoul, too.
89846         Check for declarations of strtoul and strtoull.
89847         Check for strtol.  Mainly as a cue to cause automake to include
89848         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
89849         Check for limits.h -- strtol.c needs it.
89850
89851 2000-12-05  Jim Meyering  <meyering@lucent.com>
89852
89853         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
89854
89855 2000-12-04  Jim Meyering  <meyering@lucent.com>
89856
89857         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
89858         Also include memory.h, stdlib.h, unistd.h if appropriate.
89859         Reported by Andreas Jaeger (conflicting declaration of malloc).
89860
89861 2000-12-02  Jim Meyering  <meyering@lucent.com>
89862
89863         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
89864         * m4/jm-macros.m4 (jm_MACROS): require it.
89865
89866 2000-12-02  Jim Meyering  <meyering@lucent.com>
89867
89868         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
89869
89870 2000-12-01  Paul Eggert  <eggert@twinsun.com>
89871
89872         * lib/memrchr.c: Include <config.h> before any system include file.
89873
89874 2000-11-30  Jim Meyering  <meyering@lucent.com>
89875
89876         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
89877
89878 2000-11-30  Jim Meyering  <meyering@lucent.com>
89879
89880         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
89881
89882 2000-11-29  Paul Eggert  <eggert@twinsun.com>
89883
89884         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
89885
89886 2000-11-26  Jim Meyering  <meyering@lucent.com>
89887
89888         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
89889
89890 2000-11-22  Paul Eggert  <eggert@twinsun.com>
89891
89892         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
89893         size of (size_t) -1; it's not portable.
89894
89895 2000-11-17  Jim Meyering  <meyering@lucent.com>
89896
89897         * lib/strstr.c: Update from GNU libc.
89898
89899 2000-11-17  Akim Demaille  <akim@epita.fr>
89900
89901         * lib/obstack.h: Formatting changes.
89902         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
89903         prevent type checking.
89904         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
89905         cast the value to (void *): assigning a `foo *' to a `void *'
89906         variable is valid.
89907         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
89908
89909 2000-11-16  Jim Meyering  <meyering@lucent.com>
89910
89911         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
89912
89913 2000-11-11  Jim Meyering  <meyering@lucent.com>
89914
89915         * lib/error.c: Add a couple #includes, merging from GNU libc version.
89916
89917 2000-11-10  Jim Meyering  <meyering@lucent.com>
89918
89919         * lib/obstack.h: Update from GNU libc.
89920         * lib/obstack.c: Likewise.
89921
89922 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
89923
89924         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
89925
89926 2000-11-06  Paul Eggert  <eggert@twinsun.com>
89927
89928         * lib/getusershell.c (setusershell): Use rewind rather than
89929         fseek/fseeko, to avoid configuration hassles with fseeko.
89930         Don't bother opening SHELLS_FILE if shellstream is NULL;
89931         it's not necessary.
89932
89933 2000-11-05  Jim Meyering  <meyering@lucent.com>
89934
89935         * lib/makepath.h (make_dir): Declare.
89936         * lib/makepath.c (make_dir): Remove `static' attribute.
89937         Tweak a comment.
89938
89939 2000-11-04  Jim Meyering  <meyering@lucent.com>
89940
89941         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
89942
89943 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
89944
89945         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
89946         last one in a bucket, advance to the next bucket.
89947
89948 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
89949
89950         * lib/fnmatch.c: Do not comment out all the code if we are using
89951         the GNU C library, because in some cases we are replacing buggy
89952         code in the GNU C library itself.
89953
89954 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
89955
89956         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
89957         (regex_compile): Catch bogus \(\1\).
89958
89959 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89960
89961         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
89962         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
89963         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
89964
89965 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89966
89967         * lib/error.h, getline.h, modechange.h:
89968         Remove "2000" from Copyright line, as the file hasn't been
89969         changed this year other than in the copyright notice.
89970
89971         * lib/xalloc.h: Add "2000" to Copyright line, as this file
89972         was changed this year.
89973
89974 2000-10-29  Jim Meyering  <meyering@lucent.com>
89975
89976         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
89977         renaming.
89978         * m4/ls-mntd-fs.m4: Likewise
89979
89980 2000-10-29  Jim Meyering  <meyering@lucent.com>
89981
89982         * lib/xstat.in: Fix grammar in comment.
89983
89984 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
89985
89986         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
89987         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
89988         doesn't define __restrict_arr.
89989
89990 2000-10-28  Jim Meyering  <meyering@lucent.com>
89991
89992         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
89993         (jm_PREREQ_MEMCHR): New function.
89994
89995 2000-10-28  Jim Meyering  <meyering@lucent.com>
89996
89997         * lib/memchr.c: Update from libc.
89998         Adjust for portability:
89999         [HAVE_STDLIB_H]: Include stdlib.h.
90000         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
90001         Undef __memchr, too.
90002         [!weak_alias]: Define __memchr to memchr.
90003
90004         * lib/regex.c: Update from libc.
90005         * lib/regex.h: Likewise.
90006         * lib/getopt1.c: Likewise.
90007         * lib/memcmp.c: Likewise.
90008
90009         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
90010         Avoid using fseek, when possible -- it's broken by design.
90011         Patch by Ulrich Drepper.
90012
90013 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
90014
90015         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
90016         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
90017         Giving in to popular pressure to shut up the compiler with casts.
90018
90019 2000-10-26  Jim Meyering  <meyering@lucent.com>
90020
90021         * lib/strftime.c: Update from libc.
90022
90023 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
90024
90025         * regex.c: More `unsigned char' -> `re_char' changes.
90026         Also change several `int' into `re_wchar_t'.
90027         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
90028         (PUSH_FAILURE_POINTER): Don't cast any more.
90029         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
90030         We want GCC to complain, since this piece of code makes
90031         re_match non-reentrant, which *should* be fixed.
90032         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
90033         (EXTEND_BUFFER): Use RETALLOC.
90034         (SET_LIST_BIT): Don't cast.
90035         (re_wchar_t): New type.
90036         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
90037         that those two functions will always properly return.
90038         (IMMEDIATE_QUIT_CHECK): Cast to void.
90039         (analyse_first): Use recursion rather than an explicit stack.
90040         (re_compile_fastmap): Can't fail anymore.
90041         (re_search_2): Don't check re_compile_fastmap for failure.
90042         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
90043         Now also sets the new value (passed in a new argument).
90044         (re_match_2_internal): Use it.
90045         Also, use a new var `reg' of type size_t when looping through regs
90046         rather than reuse the inappropriate `mcnt'.
90047
90048 2000-10-25  Jim Meyering  <meyering@lucent.com>
90049
90050         * lib/obstack.c: Update from libc.
90051
90052 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
90053
90054         * regex.c (regex_compile): Change the way of handling a range from
90055         a char less than 256 to a char not less than 256.
90056
90057 2000-10-24  Andrew Innes  <andrewi@gnu.org>
90058
90059         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
90060         NT-Emacs only.
90061         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
90062         so that re_search functions only quit when callers expect them to.
90063
90064 2000-10-23  Jim Meyering  <meyering@lucent.com>
90065
90066         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
90067         wrong.  That set_locale call must not have any side effects.
90068         From Paul Eggert.
90069
90070 2000-10-22  Jim Meyering  <meyering@lucent.com>
90071
90072         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
90073         [CYCLIC]: Remove now-unused definition.
90074
90075         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
90076         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
90077         Suggestion from Ulrich Drepper.
90078
90079 2000-10-21  Jim Meyering  <meyering@lucent.com>
90080
90081         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
90082         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
90083         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
90084
90085 2000-10-21  Jim Meyering  <meyering@lucent.com>
90086
90087         * lib/dirname.c (memrchr): Declare if necessary.
90088         (dir_name): Remove the restriction that there be no
90089         trailing slashes.  Now, this code skips past them, effectively
90090         ignoring them.
90091         [TEST_DIRNAME] (main): New unit tests.
90092
90093         * lib/memrchr.c: New file from GNU libc.
90094         Undef __memrchr, too.
90095         [!weak_alias]: Define __memrchr to memrchr.
90096         Guard weak_alias use with `#ifdef weak_alias'.
90097
90098 2000-10-21  Jim Meyering  <meyering@lucent.com>
90099
90100         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
90101         (dir_name): Use dir_name_r.
90102         * lib/dirname.h (dir_name_r): Declare it.
90103
90104 2000-10-17  Jim Meyering  <meyering@lucent.com>
90105
90106         * lib/quote.h (PARAMS): Define and use.
90107         Reported by Akim Demaille.
90108
90109         * lib/getopt.c: Update from libc.
90110
90111 2000-10-16  Jim Meyering  <meyering@lucent.com>
90112
90113         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
90114         setlocale.
90115         From Jan Fedak.
90116
90117 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
90118
90119         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
90120
90121 2000-09-25  Jim Meyering  <meyering@lucent.com>
90122
90123         * lib/md5.h (rol): Define (from GnuPG).
90124
90125         * lib/sha.c: Give credit (GnuPG) where due.
90126         (M): Use rol rather than open-coding it.
90127         Add a FIXME comment.
90128
90129 2000-09-21  Jim Meyering  <meyering@lucent.com>
90130
90131         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
90132         Reported by Michael Stone.
90133
90134 2000-09-20  Jim Meyering  <meyering@lucent.com>
90135
90136         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
90137         (noinst_HEADERS): Add sha.h.
90138         Based on code from Scott G. Miller and from GnuPG.
90139
90140 2000-09-18  Jim Meyering  <meyering@lucent.com>
90141
90142         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
90143         LIBS. Otherwise, everyone ends up linking with -lelf for some
90144         configurations.
90145         Reported by Mike Stone.
90146
90147 2000-09-15  Jim Meyering  <meyering@lucent.com>
90148
90149         * lib/regex.c: Update from libc.
90150
90151 2000-09-10  Jim Meyering  <meyering@lucent.com>
90152
90153         * lib/getopt.c (_getopt_internal): Update from glibc.
90154
90155 2000-09-09  Jim Meyering  <meyering@lucent.com>
90156
90157         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
90158         think it should be used as a general replacement for isascii.
90159         * lib/fnmatch.c: Likewise.
90160         * lib/mbswidth.c: Likewise
90161         * lib/regex.c: Likewise.
90162
90163         Don't use atoi.
90164         * lib/userspec.c: Include sys/param.h and limits.h.
90165         Include xstrtol.h.
90166         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90167         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
90168         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
90169         UID, GID.  Check range.
90170
90171 2000-09-06  Jim Meyering  <meyering@lucent.com>
90172
90173         * lib/getopt.c (_getopt_internal): Update from glibc.
90174
90175 2000-08-30  Jim Meyering  <meyering@lucent.com>
90176
90177         * lib/strftime.c: Merge in changes from GNU libc.
90178
90179 2000-08-26  Jim Meyering  <meyering@lucent.com>
90180
90181         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
90182         * m4/fpending.m4: New file.
90183
90184 2000-08-26  Jim Meyering  <meyering@lucent.com>
90185
90186         * lib/closeout.c: Include "__fpending.h".
90187         (close_stdout_status): Return right away if there's nothing to flush.
90188
90189         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
90190         * lib/__fpending.c: New file.
90191         * lib/__fpending.h: New file.
90192
90193 2000-08-20  Jim Meyering  <meyering@lucent.com>
90194
90195         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
90196         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
90197         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
90198
90199 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
90200
90201         Improve fileutils installation on systems where running
90202         programs (like install) can't be unlinked.
90203         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
90204         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
90205
90206 2000-08-07  Paul Eggert  <eggert@twinsun.com>
90207
90208         Standardize on "memory exhausted" instead of "Memory exhausted"
90209         or "virtual memory exhausted".
90210         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
90211         "virtual memory exhausted".
90212         * lib/same.c (same_name): Invoke xalloc_die instead of printing
90213         our own message.
90214         * lib/userspec.c (parse_user_spec): Likewise.
90215         * lib/bumpalloc.h: comment fix
90216         * lib/same.c, userspec.c: Include xalloc.h.
90217
90218         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
90219         not char *const and pointing to a constant array.
90220         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
90221         (xrealloc): Comment fix.
90222
90223         * lib/userspec.c (parse_user_spec):
90224         Don't translate a message until just before returning,
90225         to avoid unnecessary translation.
90226
90227 2000-08-07  Jim Meyering  <meyering@lucent.com>
90228
90229         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
90230         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
90231         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
90232         getgroups.c, gethostname.c, getopt.h, group-member.c,
90233         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
90234         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
90235         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
90236         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
90237         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
90238         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
90239         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
90240         yesno.c: Back out Copyright date changes for each file with no change
90241         this year.  This eases coordination with other programs using the same
90242         source code modules.  From Paul Eggert.
90243
90244 2000-08-06  Paul Eggert  <eggert@twinsun.com>
90245
90246         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
90247         not char, for compatibility with glibc 2.1.3 strftime.c.
90248
90249 2000-08-03  Greg McGary  <greg@mcgary.org>
90250
90251         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
90252         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
90253         (EXTEND_BUFFER): Use them.
90254
90255 2000-08-01  Jim Meyering  <meyering@lucent.com>
90256
90257         * lib/dirname.c (ISSLASH): Define.
90258         (BACKSLASH_IS_PATH_SEPARATOR): Define.
90259         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
90260         both `\' and `/' may be use as path separators.
90261         Based on a patch from Prashant TR.
90262
90263 2000-07-31  Paul Eggert  <eggert@twinsun.com>
90264
90265         * lib/quotearg.c (quotearg_n_options): Don't make the initial
90266         slot vector a constant, since it might get modified.
90267
90268 2000-07-31  Jim Meyering  <meyering@lucent.com>
90269
90270         * lib/xmalloc.c: Use `virtual memory exhausted', not
90271         `Memory exhausted'.
90272         * lib/obstack.c (print_and_abort): Likewise.
90273
90274 2000-07-30  Paul Eggert  <eggert@twinsun.com>
90275
90276         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
90277         buffer, so that the caller can always quote one small
90278         component of a "memory exhausted" message in slot 0.
90279         From a suggestion by Jim Meyering.
90280
90281 2000-07-30  Jim Meyering  <meyering@lucent.com>
90282
90283         * lib/makepath.c (make_path): Quote the other instance, too.
90284
90285         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
90286         (STATIC_BUF_SIZE): Define.
90287         (quotearg_n_options): Use only statically allocated storage when
90288         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
90289         than STATIC_BUF_SIZE.
90290
90291 2000-07-29  Jim Meyering  <meyering@lucent.com>
90292
90293         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
90294         * lib/dirname.c (dir_name): Likewise.
90295
90296         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
90297         `/'.
90298
90299         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
90300         (dir_name): Assert that there are no trailing slashes.
90301
90302 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
90303
90304         * lib/mbswidth.h (mbswidth): Add a flags argument.
90305         (mbswidth): New declaration.
90306         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
90307         * lib/mbswidth.c (mbswidth): Add a flags argument.
90308         (mbsnwidth): New function.
90309
90310 2000-07-24  Jim Meyering  <meyering@lucent.com>
90311
90312         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
90313
90314 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90315
90316         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
90317
90318 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90319
90320         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
90321         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
90322         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
90323         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
90324         invoke multibyte primitives.
90325
90326 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90327
90328         * lib/quotearg.c:
90329         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
90330         so that mbstate_t is always defined.
90331
90332         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
90333         be 1 in at least one GCC installation, and this configuration
90334         error is likely to be common.  Ignoring MB_LEN_MAX hurts
90335         performance on hosts that have mbrtowc but have only unibyte
90336         locales, but I assume these hosts are rare.
90337
90338 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90339
90340         * lib/mbswidth.c (_XOPEN_SOURCE):
90341         Don't define; this causes problems on Solaris 7.
90342         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
90343
90344 2000-07-23  Jim Meyering  <meyering@lucent.com>
90345
90346         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
90347         too: getgrgid, getpwuid, getuid.
90348
90349 2000-07-23  Jim Meyering  <meyering@lucent.com>
90350
90351         * lib/basename.c (base_name): Add an assertion.
90352
90353 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
90354
90355         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
90356         shadow its mbsinit function.
90357
90358 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90359
90360         * lib/mbswidth.h: New file.
90361         * lib/mbswidth.c: New file.
90362         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
90363         (noinst_HEADERS): Add mbswidth.h.
90364
90365 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90366
90367         * lib/config.charset: Add support for FreeBSD. Improve support for
90368         HP-UX and IRIX 6.
90369
90370 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
90371
90372         * m4/mbswidth.m4: New file.
90373         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
90374
90375 2000-07-15  Jim Meyering  <meyering@lucent.com>
90376
90377         * lib/makepath.c: Include quote.h.
90378         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
90379         corresponding argument in a `quote (...)' call.
90380         Give better diagnostics.
90381
90382         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
90383         (noinst_HEADERS): Add quote.h.
90384
90385         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
90386         from tar's src/misc.c.
90387         * lib/quote.h: New file.  Prototypes for same.
90388
90389 2000-07-14  Paul Eggert  <eggert@twinsun.com>
90390
90391         From a suggestion by Bruno Haible.
90392         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
90393         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
90394         to decide whether to define the BeOS workaround macro;
90395         this adjusts to the change to AC_MBSTATE_T.
90396
90397 2000-07-14  Jim Meyering  <meyering@lucent.com>
90398
90399         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
90400         jm_AC_TYPE_UINTMAX_T.
90401
90402 2000-07-13  Paul Eggert  <eggert@twinsun.com>
90403
90404         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
90405
90406         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
90407         quotearg_buffer_restyled): Add support for
90408         clocale_quoting_style.  Undo previous change to
90409         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
90410         and "{RIGHT QUOTATION MARK}" msgids.
90411
90412 2000-07-10  Paul Eggert  <eggert@twinsun.com>
90413
90414         From a suggestion by Bruno Haible.
90415         * m4/mbstate_t.m4 (AC_MBSTATE_T):
90416         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
90417         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
90418         and mbstate_t, to a single-part test that simply defines mbstate_t.
90419         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
90420         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
90421
90422 2000-07-10  Jim Meyering  <meyering@lucent.com>
90423
90424         * m4/strerror_r.m4: Mirror the correction made in autoconf.
90425
90426         * m4/gnu-source.m4: Output to confdefs.h directly.
90427         Suggestion from Akim Demaille.
90428
90429 2000-07-09  Paul Eggert  <eggert@twinsun.com>
90430
90431         The old behavior of quoting `like this' doesn't look good with
90432         newer, ISO-style fonts.  See:
90433         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
90434
90435         Instead, quote "like this" by default.  Let the translator
90436         tailor the locale-specific quoting behavior by providing
90437         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
90438
90439         * lib/quotearg.c (N_): New macro.
90440         (gettext_default): New function.
90441         (quotearg_buffer_restyled): Use
90442         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
90443         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
90444
90445 2000-07-09  Jim Meyering  <meyering@lucent.com>
90446
90447         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
90448         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
90449
90450         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
90451         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
90452
90453 2000-07-09  Jim Meyering  <meyering@lucent.com>
90454
90455         * lib/Most files: Update copyright dates to include 2000.
90456
90457 2000-07-08  Jim Meyering  <meyering@lucent.com>
90458
90459         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
90460         if not defined.
90461         (xgethostname): Remove now-unnecessary #ifdef.
90462         Move declaration of `err' into loop where it's used.
90463
90464 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90465         and Bruno Haible  <haible@clisp.cons.org>
90466
90467         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
90468         only if the test for an object-type mbstate_t fails.  This
90469         prevents us from mistakenly reporting that mbstate_t is a
90470         system object type after we "#define mbstate_t int" to work
90471         around its lack.
90472
90473 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90474         and Bruno Haible  <haible@clisp.cons.org>
90475
90476         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
90477
90478 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90479
90480         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
90481         to strerror_r.
90482         Include <ctype.h> for use of isalpha.
90483
90484 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90485
90486         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
90487         by allocating a larger buffer. Test the gethostname return value for
90488         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
90489         returns an error and ENAMETOOLONG isn't defined.
90490
90491 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90492
90493         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
90494         dimension.
90495
90496 2000-07-04  Jim Meyering  <meyering@lucent.com>
90497
90498         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
90499         of the deprecated AC_CHECKING.
90500
90501 2000-07-04  Jim Meyering  <meyering@lucent.com>
90502
90503         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
90504         Reported by Bruno Haible.
90505
90506 2000-07-04  Jim Meyering  <meyering@lucent.com>
90507
90508         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
90509         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
90510         lacks mbrtowc.
90511
90512 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90513
90514         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
90515         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
90516
90517 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90518         and Bruno Haible  <haible@clisp.cons.org>
90519
90520         * lib/quotearg.c (mbrtowc):
90521         Assign to *pwc, and return 1 only if result is nonzero.
90522         (iswprint): Use ISPRINT when substituting our own mbrtowc.
90523
90524 2000-07-03  Jim Meyering  <meyering@lucent.com>
90525
90526         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
90527
90528 2000-07-03  Jim Meyering  <meyering@lucent.com>
90529
90530         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
90531         This is necessary to get a definition of e.g., UTMP_FILE on
90532         HP-UX 10.20.
90533         From Bob Proulx.
90534
90535 2000-07-02  Jim Meyering  <meyering@lucent.com>
90536
90537         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
90538
90539         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
90540         AC_LIBOBJ(function_name).
90541         * m4/chown.m4: Likewise.
90542         * m4/fnmatch.m4: Likewise.
90543         * m4/ftruncate.m4: Likewise.
90544         * m4/getgroups.m4: Likewise.
90545         * m4/getline.m4: Likewise.
90546         * m4/group-member.m4: Likewise.
90547         * m4/jm-macros.m4: Likewise.
90548         * m4/lstat.m4: Likewise.
90549         * m4/malloc.m4: Likewise.
90550         * m4/memcmp.m4: Likewise.
90551         * m4/nanosleep.m4: Likewise.
90552         * m4/putenv.m4: Likewise.
90553         * m4/realloc.m4: Likewise.
90554         * m4/regex.m4: Likewise.
90555         * m4/stat.m4: Likewise.
90556         * m4/strftime.m4: Likewise.
90557
90558 2000-07-02  Jim Meyering  <meyering@lucent.com>
90559
90560         * lib/quotearg.c (mbstate_t): Don't define here.
90561
90562 2000-07-02  Jim Meyering  <meyering@lucent.com>
90563
90564         * lib/nanosleep.c (SIGCONT): Define if not already defined.
90565
90566 2000-07-01  Jim Meyering  <meyering@lucent.com>
90567
90568         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
90569
90570 2000-07-01  Jim Meyering  <meyering@lucent.com>
90571
90572         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
90573         problem.
90574
90575 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90576
90577         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
90578         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
90579
90580 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90581
90582         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
90583         per change in ../m4/ls-mntd-fs.m4.
90584         (read_filesystem_list): Ignore symbolic links.
90585
90586 2000-06-29  Jim Meyering  <meyering@lucent.com>
90587
90588         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
90589         for declaration of strcmp.
90590
90591         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
90592
90593         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
90594         Avoid warning by casting result to `char *' to remove `const'.
90595
90596 2000-06-28  Jim Meyering  <meyering@lucent.com>
90597
90598         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
90599         included by quotearg.c, for which we perform this test.  From
90600         Bruno Haible.
90601
90602 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90603
90604         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
90605         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
90606         <utmpx.h> exists, put readutmp.o into LIBOBJS.
90607
90608 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90609
90610         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
90611
90612 2000-06-26  Paul Eggert  <eggert@twinsun.com>
90613
90614         savedir now sets errno on failure and invokes xmalloc to get memory.
90615         Fix a couple of other minor bugs while we're at it.
90616
90617         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
90618         (NAMLEN): Remove macro.
90619         (malloc, realloc): Remove decls.
90620         (stpcpy): Likewise.
90621         ("xalloc.h"): Include.
90622         (NAME_SIZE_DEFAULT): New macro.
90623         (savedir): Use xmalloc / xrealloc to allocate memory.
90624         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
90625         Skip "" directory entries.
90626         Use strlen to calculate directory entry length, since the old method
90627         is rarely used these days and isn't worth supporting.
90628         Don't use a pointer after freeing it.
90629         Check for integer overflow when calculating allocation size.
90630         Use memcpy to copy entries, instead of stpcpy.
90631         Set errno properly when returning NULL.
90632         Check for readdir error.
90633
90634 2000-06-26  Jim Meyering  <meyering@lucent.com>
90635
90636         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
90637
90638 2000-06-25  Jim Meyering  <meyering@lucent.com>
90639
90640         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
90641         Linux header bug when _XOPEN_SOURCE is defined to 500.
90642
90643 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90644
90645         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
90646         deficiency.
90647
90648 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90649
90650         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
90651         Include xalloc.h.
90652         Don't include <stdlib.h>.  Don't declare malloc, realloc.
90653
90654 2000-06-24  Jim Meyering  <meyering@lucent.com>
90655
90656         * m4/strerror_r.m4: Revive this file -- to try out an experimental
90657         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
90658         for which strerror does return char*, but which lacks a conveniently
90659         accessible declaration of the function.  If the compile-test says
90660         strerror_r doesn't work, then resort to a `run'-test that works on
90661         BeOS and segfaults on DEC Unix.
90662
90663 2000-06-24  Jim Meyering  <meyering@lucent.com>
90664
90665         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
90666
90667 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90668
90669         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
90670         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
90671
90672 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90673
90674         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
90675         (mbrtowc, mbstate_t): Define substitutes if
90676         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
90677         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
90678         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
90679
90680 2000-06-23  Jim Meyering  <meyering@lucent.com>
90681
90682         * m4/afs.m4: Add missing AC_MSG_RESULT.
90683         Reported by Bruno Haible.
90684
90685         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
90686         Suggestion from Bruno Haible.
90687
90688 2000-06-23  Jim Meyering  <meyering@lucent.com>
90689
90690         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
90691
90692 2000-06-21  Jim Meyering  <meyering@lucent.com>
90693
90694         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
90695
90696 2000-06-21  Jim Meyering  <meyering@lucent.com>
90697
90698         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
90699         (noinst_HEADERS): Add getstr.h.
90700
90701         * lib/getline.c (getstr): Move into a separate file.
90702         * lib/getstr.c (getstr): New file, extracted from getline.c, with
90703         the following changes: new parameter, delim2; both delim[12]
90704         parameters have type `int', not `char'.  The latter would lose
90705         with 8-bit delimiters.
90706         * lib/getstr.h: New file.
90707
90708 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90709
90710         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
90711         than 1024, return a memory chunk of least possible size, instead
90712         of size PATH_MAX + 2. In the loop, increment the size proportionally.
90713         Use free/xmalloc instead of xrealloc to avoid copying for very long
90714         paths.
90715
90716 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90717
90718         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
90719         the empty string.
90720
90721 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90722
90723         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
90724         address, not strdup.  Include <stdlib.h> and don't declare free().
90725
90726 2000-06-19  Jim Meyering  <meyering@lucent.com>
90727
90728         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
90729
90730 2000-06-18  Jim Meyering  <meyering@lucent.com>
90731
90732         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
90733
90734         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
90735         `checking whether...' message to be consistent with that of the
90736         lstat test.
90737
90738 2000-06-18  Jim Meyering  <meyering@lucent.com>
90739
90740         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
90741         Besides, these days every porting target provides a mkdir function.
90742
90743         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
90744         needed. (this snippet comes from src/system.h).
90745
90746 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
90747
90748         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
90749
90750 2000-06-15  Paul Eggert  <eggert@twinsun.com>
90751
90752         * lib/human.c (adjust_value): New function.
90753         (human_readable_inexact): Apply rounding style even when
90754         printing approximate values.
90755
90756 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90757
90758         * lib/human.c (human_readable_inexact): Allow an input block
90759         size that is not a multiple of the output block size, and vice versa.
90760         Reported by Piergiorgio Sartor.
90761
90762 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90763
90764         * lib/getdate.y (get_date): Apply relative times after time
90765         zone indicator, not before.  Reported by Todd A. Jacobs.
90766
90767 2000-06-13  Jim Meyering  <meyering@lucent.com>
90768
90769         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
90770
90771         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
90772
90773 2000-06-12  Paul Eggert  <eggert@twinsun.com>
90774
90775         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
90776
90777 2000-06-12  Jim Meyering  <meyering@lucent.com>
90778
90779         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
90780         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
90781         optional argument.
90782         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
90783         the optional argument, `lib'.
90784
90785 2000-06-08  Jim Meyering  <meyering@lucent.com>
90786
90787         * m4/largefile.m4: Remove file (now that it's part of autoconf).
90788
90789 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90790
90791         Rewrite largefile configuration so that we don't need to run
90792         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
90793         AC_CANONICAL_HOST in configure.in -- jmm]
90794
90795         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
90796         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
90797         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
90798         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
90799         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
90800         All uses changed.
90801         Instead of inspecting the output of getconf, try to compile the
90802         test program without and with the macro definition.
90803         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
90804         for getconf.  Instead, check for the needed flags by compiling
90805         test programs.
90806
90807 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90808
90809         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
90810
90811 2000-06-04  Jim Meyering  <meyering@lucent.com>
90812
90813         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
90814         SunOS 4.1.4 for which gid_t is an unsigned type.
90815
90816 2000-06-03  Jim Meyering  <meyering@lucent.com>
90817
90818         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
90819         now that autoconf requires that.
90820
90821         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
90822         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
90823         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
90824
90825 2000-06-03  Jim Meyering  <meyering@lucent.com>
90826
90827         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
90828
90829 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90830
90831         * m4/glibc21.m4: New file.
90832         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
90833
90834 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90835
90836         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
90837         newer, don't install charset.alias.
90838         * lib/config.charset: Change the Linux/glibc rules so they become empty
90839         on glibc-2.1 or newer.
90840
90841 2000-06-02  Jim Meyering  <meyering@lucent.com>
90842
90843         * lib/mountlist.c: Back out last change.  Instead, do this...
90844         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
90845         me_dummy member using the same `ignore'-testing code.
90846         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
90847         fs_type strings.
90848         From Mark D. Roth.
90849
90850 2000-05-29  Jim Meyering  <meyering@lucent.com>
90851
90852         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
90853         mounts with the `ignore' attribute.  Based on a patch from
90854         Mark D. Roth.
90855
90856 2000-05-28  Jim Meyering  <meyering@lucent.com>
90857
90858         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
90859         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90860         * m4/stat.m4: Likewise.
90861         * m4/lstat.m4: Likewise.
90862         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
90863
90864         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
90865         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
90866
90867 2000-05-26  Jim Meyering  <meyering@lucent.com>
90868
90869         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
90870
90871 2000-05-24  Jim Meyering  <meyering@lucent.com>
90872
90873         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
90874         autoconf requires that.
90875         * m4/lib-check.m4: Likewise.
90876         * m4/jm-macros.m4: Likewise.
90877         * m4/strftime.m4: Likewise.
90878
90879         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
90880         AC_CHECK_DECLS, now that autoconf requires that.
90881
90882 2000-05-22  Jim Meyering  <meyering@lucent.com>
90883
90884         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90885         * m4/lstat.m4: Likewise.
90886
90887 2000-05-22  Jim Meyering  <meyering@lucent.com>
90888
90889         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
90890
90891 2000-05-20  Jim Meyering  <meyering@lucent.com>
90892
90893         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
90894         (jm_PREREQ): Use it.
90895
90896 2000-05-18  Jim Meyering  <meyering@lucent.com>
90897
90898         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
90899         back, too, since it may have been modified by allocate_entry.
90900         (hash_delete): Rewrite to use neither the assignment operator
90901         nor the comma operator in an if-expression.
90902
90903 2000-05-15  Paul Eggert  <eggert@twinsun.com>
90904
90905         * lib/closeout.c:
90906         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
90907         Remove; no longer needed.
90908         "quotearg.h": Add include.
90909         (file_name): Do not bother to explicitly initialize to NULL; it's less
90910         efficient on some hosts.
90911         (close_stdout_status): Remove test as to whether stdout was already
90912         closed; it breaks for the case "echo x | sort >&-".
90913         Quote file name colons.
90914         Do not assume that _("write error") lacks format strings.
90915
90916 2000-05-15  Jim Meyering  <meyering@lucent.com>
90917
90918         * lib/version-etc.c (version_etc_copyright): Update the copyright
90919         string used in all --version output.
90920
90921 2000-05-14  Jim Meyering  <meyering@lucent.com>
90922
90923         * lib/closeout.c (close_stdout_set_file_name): New function.
90924         (close_stdout_status): Use new file-scoped global.
90925         Return right away if fstat says the stdout file descriptor is invalid.
90926         * lib/closeout.h (close_stdout_set_file_name): Declare.
90927
90928 2000-05-10  Jim Meyering  <meyering@lucent.com>
90929
90930         * lib/closeout.c [default_exit_status]: New file-scoped variable.
90931         (close_stdout_set_status): New function.
90932         * lib/closeout.h (close_stdout_set_status): Declare.
90933
90934 2000-05-09  Jim Meyering  <meyering@lucent.com>
90935
90936         * m4/gettext.m4: Rename this...
90937         * m4/libintl.m4: ...to this.
90938
90939 2000-05-08  Jim Meyering  <meyering@lucent.com>
90940
90941         * lib/long-options.c: Don't include closeout.h.
90942         (parse_long_options): Don't call close_stdout for --version.
90943
90944 2000-05-06  Paul Eggert  <eggert@twinsun.com>
90945
90946         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
90947         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
90948         2.1.3 bug.  This avoids a clash when files like regex.c define
90949         _GNU_SOURCE.
90950
90951 2000-05-06  Jim Meyering  <meyering@lucent.com>
90952
90953         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
90954         (AC_REPLACE_FUNCS): Add strnlen.
90955
90956         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
90957         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
90958
90959         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
90960         AC_SEARCH_LIBS call for nanosleep.
90961         (LIB_NANOSLEEP): Set and AC_SUBST.
90962
90963 2000-05-06  Jim Meyering  <meyering@lucent.com>
90964
90965         * lib/strnlen.c: Undefine __strnlen and strnlen.
90966         [!weak_alias]: Define __strnlen to strnlen.
90967
90968         * lib/atexit.c: New file, from libiberty.
90969
90970 2000-05-06  Jim Meyering  <meyering@lucent.com>
90971
90972         * lib/closeout.c (close_stdout_status): Also check for errors on the
90973         stderr stream.
90974
90975 2000-05-05  Jim Meyering  <meyering@lucent.com>
90976
90977         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
90978         AC_SEARCH_LIBS call for clock_gettime.
90979         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
90980
90981         * m4/search-libs.m4: Update from autoconf.
90982
90983         su doesn't work on Solaris 2.6.
90984         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
90985         <shadow.h>.  Reported by Dragos Harabor.
90986
90987 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
90988
90989         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
90990         memcpy instead of xmalloc, xrealloc, path_concat.
90991         (locale_charset): Treat empty environment variables as absent.
90992         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
90993
90994 2000-05-04  Jim Meyering  <meyering@lucent.com>
90995
90996         * lib/getopt.c: Update from glibc.
90997         * lib/obstack.c: Likewise.
90998         * lib/obstack.h: Likewise.
90999         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
91000         file
91001
91002         * lib/regex.h: Likewise.
91003         * lib/strndup.c: Likewise.
91004         * lib/strnlen.c: New file, from glibc.
91005
91006 2000-05-03  Jim Meyering  <meyering@lucent.com>
91007
91008         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
91009
91010 2000-05-02  Paul Eggert  <eggert@twinsun.com>
91011
91012         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
91013         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
91014         compile-time test, rather than inspecting host and OS, to
91015         decide whether to define _LARGEFILE_SOURCE.
91016
91017 2000-05-01  Jim Meyering  <meyering@lucent.com>
91018
91019         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
91020
91021         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
91022         Based on a patch from Bruno Haible.
91023
91024 2000-05-01  Jim Meyering  <meyering@lucent.com>
91025
91026         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
91027
91028 2000-04-29  Jim Meyering  <meyering@lucent.com>
91029
91030         * lib/path-concat.c: Declare strdup only if it's not defined.
91031         * lib/canon-host.c: Likewise.
91032
91033 2000-04-28  Jim Meyering  <meyering@lucent.com>
91034
91035         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
91036         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
91037         is included first, then limits.h is included by locale.h by libintl.h.
91038         From John David Anglin.
91039
91040 2000-04-25  Jim Meyering  <meyering@lucent.com>
91041
91042         * lib/makepath.c (S_IRWXUGO): Define.
91043         (make_path): Always perform explicit chmod if MODE specifies any
91044         of the `special' permission bits.  Prompted by a bug report against
91045         install from Mate Wierdl and Joost van Baal.
91046
91047 2000-04-18  Jim Meyering  <meyering@lucent.com>
91048
91049         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
91050         (jm_PREREQ): Use it.
91051
91052 2000-04-18  Jim Meyering  <meyering@lucent.com>
91053
91054         * lib/README: New file.
91055
91056         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
91057         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
91058
91059 2000-04-17  Jim Meyering  <meyering@lucent.com>
91060
91061         Get it right :-)
91062         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
91063         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
91064         Suggestion from Akim Demaille.
91065
91066 2000-04-17  Jim Meyering  <meyering@lucent.com>
91067
91068         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
91069         the definition of it to rpl_strftime also defined-away the system's
91070         declaration.
91071
91072 2000-04-15  Jim Meyering  <meyering@lucent.com>
91073
91074         Use `C' to denote so-called `contiguous' files, the same way
91075         that tar does.
91076         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
91077         (ftypelet): Use S_ISCTG.
91078         From Michael Deutschmann.
91079
91080 2000-04-14  Jim Meyering  <meyering@lucent.com>
91081
91082         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
91083         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
91084         clobbered.
91085
91086 2000-04-14  Jim Meyering  <meyering@lucent.com>
91087
91088         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
91089
91090 2000-04-13  Jim Meyering  <meyering@lucent.com>
91091
91092         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
91093         AH_VERBATIM to insert required #ifndef into config.h.in.
91094         Suggestion from Akim Demaille.
91095
91096 2000-04-12  Jim Meyering  <meyering@lucent.com>
91097
91098         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
91099         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
91100         Christian Krackowizer.
91101
91102         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
91103         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
91104         (AC_SYS_LARGEFILE): Require.
91105         (AM_C_PROTOTYPES): Require.
91106
91107 2000-04-08  Jim Meyering  <meyering@lucent.com>
91108
91109         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
91110         names don't conflict.  Reported by Eli Zaretskii.
91111
91112 2000-04-07  Jim Meyering  <meyering@lucent.com>
91113
91114         * lib/putenv.c: Move inclusion of errno.h so it follows that of
91115         sys/types.h, to work around system header problems on AIX 3.2.5.
91116         From Bruno Haible.
91117
91118 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
91119
91120         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
91121         bug.  Deal with the different error behavior of Irix iconv.
91122
91123 2000-04-05  Paul Eggert  <eggert@twinsun.com>
91124
91125         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
91126         IRIX if the installer said otherwise.
91127
91128 2000-04-05  Jim Meyering  <meyering@lucent.com>
91129
91130         Portability tweaks required for ultrix4.3.
91131         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
91132         (jm_CHECK_DECLS): Add getutent to the list of functions.
91133         (_jm_DECL_HEADERS): Add utmpx.h.
91134         From John David Anglin.
91135
91136         * m4/strftime.m4: Back out the 2000-04-02 change.
91137         Instead of that change, simply undefine putenv in the test program.
91138
91139 2000-04-05  Jim Meyering  <meyering@lucent.com>
91140
91141         Portability tweaks required for ultrix4.3.
91142         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
91143         getutent.
91144         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
91145         * lib/canon-host.c: Declare strdup.
91146         * lib/path-concat.c: Likewise.
91147         From John David Anglin.
91148
91149 2000-04-04  Jim Meyering  <meyering@lucent.com>
91150
91151         Be more DOS 8.3-friendly.
91152         * lib/ref-add.sin: Renamed from ref-add.sed.in.
91153         * lib/ref-del.sin: Renamed from ref-del.sed.in.
91154         * lib/Makefile.am: Reflect renaming.
91155         Reported by Eli Zaretskii.
91156
91157         Use a temporary file name that won't clash with `charset.alias'
91158         in the DOS 8.3 name space.
91159         * lib/Makefile.am (charset_tmp): Define.
91160         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
91161         (uninstall-local): Likewise.
91162         Reported by Eli Zaretskii.
91163
91164 2000-04-03  Jim Meyering  <meyering@lucent.com>
91165
91166         * m4/gettext.m4: Fix typo in comment.
91167
91168         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
91169         textutils/configure.in).  Suggestion from Paul Eggert.
91170         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
91171
91172 2000-04-02  Paul Eggert  <eggert@twinsun.com>
91173
91174         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
91175         variable in the shell rather than using putenv, which isn't
91176         portable.  This avoids the configure-time inter-test dependency
91177         on the potentially-renamed putenv function.
91178
91179 2000-03-30  Paul Eggert  <eggert@twinsun.com>
91180
91181         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
91182         before checking struct stat.st_blksize, so that
91183         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
91184
91185 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91186
91187         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
91188         since strftime.c uses HAVE_STRFTIME to decide whether to use
91189         the underlying strftime.
91190
91191 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91192
91193         * lib/time/strftime.c (my_strftime): Make sure we call the system
91194         strftime, not ourselves, when invoking the underlying strftime.
91195
91196 2000-03-24  Jim Meyering  <meyering@lucent.com>
91197
91198         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
91199         (charset_alias): Define.
91200         (install-exec-local): Factor out common code.
91201         (uninstall-local): Split lines longer than 80.
91202         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
91203         (SUFFIXES): Define.
91204         (.sed.in.sed): New rule.  Don't redirect directly to $@.
91205         (CLEANFILES): Add ref-add.sed and ref-del.sed.
91206
91207 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
91208
91209         * lib/config.charset: Output a line containing "Packages using this
91210         file".
91211         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
91212         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
91213         ref-del.sed): New rules.
91214
91215 2000-03-17  Jim Meyering  <meyering@lucent.com>
91216
91217         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
91218         Otherwise, include <strings.h>
91219
91220 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
91221
91222         * lib/unicodeio.c (utf8_wctomb): New function.
91223         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
91224         format instead of in UCS-4 with platform dependent endianness.
91225
91226 2000-03-10  Jim Meyering  <meyering@lucent.com>
91227
91228         * m4/lib-check.m4: Look for getspnam in -lgen, too.
91229         From Marco Franzen.
91230
91231 2000-03-07  Paul Eggert  <eggert@twinsun.com>
91232
91233         * lib/savedir.c (savedir): Work even if directory size is
91234         negative; this can happen with some screwy NFS configurations.
91235
91236 2000-03-06  Jim Meyering  <meyering@lucent.com>
91237
91238         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
91239         if it's NULL (because we ran out of memory).  From Bruno Haible.
91240
91241 2000-03-05  Jim Meyering  <meyering@lucent.com>
91242
91243         * lib/localcharset.c ("path-concat.h"): Include.
91244         (get_charset_aliases): Use path_concat instead of ANSI string
91245         concatenation.
91246
91247         * lib/unicodeio.h (PARAMS): Define.
91248         Use it to guard prototype.
91249
91250 2000-03-04  Jim Meyering  <meyering@lucent.com>
91251
91252         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
91253         for lib/localcharset.c.
91254
91255 2000-03-04  Jim Meyering  <meyering@lucent.com>
91256
91257         * lib/Makefile.am (install-exec-local): Create $(libdir) before
91258         installing into it.
91259         (uninstall-local): Uncomment this rule so `make distcheck' works
91260         once again.
91261
91262         * lib/unicodeio.c (<errno.h>): Include it.
91263         (errno): Declare if not defined.
91264
91265         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
91266
91267         * lib/config.charset: New version, incorporating remarks from a linux
91268         i18n mailing list.  From Bruno Haible.
91269
91270 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
91271
91272         * m4/codeset.m4: New file.
91273         * m4/iconv.m4: New file.
91274         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
91275
91276 2000-03-03  Jim Meyering  <meyering@lucent.com>
91277
91278         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
91279
91280 2000-03-02  Jim Meyering  <meyering@lucent.com>
91281
91282         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
91283         the messages come out on separate lines.
91284
91285         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
91286         rather than jm_CHECK_DECLARATIONS.
91287         * m4/decl.m4: Remove now-unused file.
91288
91289         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
91290         geteuid.
91291
91292 2000-03-02  Jim Meyering  <meyering@lucent.com>
91293
91294         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
91295
91296 2000-03-01  Jim Meyering  <meyering@lucent.com>
91297
91298         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
91299         * lib/unicodeio.c: Likewise.
91300
91301 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
91302
91303         * lib/config.charset: New file.
91304         * lib/localcharset.c: New file.
91305         * lib/unicodeio.h, lib/unicodeio.c: New files.
91306         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
91307         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
91308         (noinst_HEADERS): Add unicodeio.h.
91309         (all-local, install-exec-local, charset.alias): New targets.
91310
91311 2000-02-28  Paul Eggert  <eggert@twinsun.com>
91312
91313         * lib/quotearg.c (ALERT_CHAR): New macro.
91314         (quotearg_buffer_restyled): Use it.
91315
91316 2000-02-27  Jim Meyering  <meyering@lucent.com>
91317
91318         * m4/check-decl.m4: Add getenv to the list.
91319
91320 2000-02-27  Jim Meyering  <meyering@lucent.com>
91321
91322         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
91323         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
91324
91325         * lib/backupfile.c: Guard inclusion of stdlib.h with
91326         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
91327         Declare malloc if needed.
91328
91329         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
91330         `#ifndef HAVE_DECL..'
91331         now that autoconf always defines the HAVE_DECL_ symbols.
91332         * lib/human.c: Likewise.
91333         * lib/same.c: Likewise.
91334         * lib/strtoumax.c: Likewise.
91335
91336         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
91337         declaration check was not run.
91338         * lib/hash.c: Likewise.
91339         * lib/human.c: Likewise.
91340         * lib/same.c: Likewise.
91341         * lib/strtoumax.c: Likewise.
91342
91343         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
91344         `.', then first look up the entire `.'-containing string as a login
91345         name.
91346
91347 2000-02-23  Jim Meyering  <meyering@lucent.com>
91348
91349         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
91350         in place of my hack.
91351
91352 2000-02-18  Paul Eggert  <eggert@twinsun.com>
91353
91354         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
91355         (textint): New typedef.
91356         (parser_control): Member year changed from int to textint.
91357         All uses changed.
91358         (YYSTYPE): Removed; replaced by %union with int and textint members.
91359         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
91360         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
91361         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
91362         (tSNUMBER, tUNUMBER): Now of type <textintval>.
91363         (date, number, to_year): Use width of number in digits, not its value,
91364         to determine whether it's a 2-digit year, or a 2-digit time.
91365         (yylex): Store number of digits of numeric tokens.
91366         Reported by John Kendall.
91367
91368         (parser_control): Changed from struct parser_control to typedef (for
91369         consistency).  All uses changed.
91370
91371         (tID): Removed; not used.
91372         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
91373
91374 2000-02-14  Paul Eggert  <eggert@twinsun.com>
91375
91376         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
91377         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
91378
91379 2000-02-12  Jim Meyering  <meyering@lucent.com>
91380
91381         * lib/userspec.c (ISDIGIT): Define it.
91382         (isdigit): Remove definition.
91383         (is_number): Use ISDIGIT, not isdigit.
91384         <libintl.h>: Include.
91385         (_ and N_): Define.
91386         (parse_user_spec): Mark translatable strings.
91387
91388 2000-02-10  Jim Meyering  <meyering@lucent.com>
91389
91390         With these changes, nanosleep.[ch] are finally enough like the other
91391         lib/* replacement files to compile on a few more losing systems.
91392
91393         * lib/nanosleep.h: Don't include config.h.
91394         Remove prototype from declaration of nanosleep.
91395         (PARAMS): Remove now-unneeded definition.
91396         * lib/nanosleep.c: #undef nanosleep.
91397         (rpl_nanosleep): Rename from nanosleep.
91398
91399 2000-02-10  Jim Meyering  <meyering@lucent.com>
91400
91401         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
91402         gnu_nanosleep to rpl_nanosleep.
91403
91404 2000-02-09  Jim Meyering  <meyering@lucent.com>
91405
91406         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
91407         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
91408
91409 2000-02-08  Akim Demaille  <akim@epita.fr>
91410
91411         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
91412         `[' and `]' and remove uses of `changequote'.
91413         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
91414         (AC_SYS_LARGEFILE): Likewise.
91415         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
91416         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
91417         of changequote.
91418         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
91419         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
91420         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
91421         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
91422
91423 2000-02-05  Jim Meyering  <meyering@lucent.com>
91424
91425         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
91426         Remove explicit use of AC_HEADER_TIME.  It is required by
91427         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
91428         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
91429         in autoconf whereby the expansion of the latter ended up preceding
91430         the expansion of its prerequisite, AC_HEADER_TIME.
91431         Reported by Volker Borchert.
91432
91433 2000-02-03  Jim Meyering  <meyering@lucent.com>
91434
91435         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
91436
91437 2000-02-03  Jim Meyering  <meyering@lucent.com>
91438
91439         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
91440         rather than with `#if HAVE_UTMPNAME'.
91441
91442 2000-02-02  Jim Meyering  <meyering@lucent.com>
91443
91444         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
91445         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
91446         Reported by Eli Zaretskii.
91447
91448 2000-02-01  Jim Meyering  <meyering@lucent.com>
91449
91450         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
91451
91452 2000-01-31  Jim Meyering  <meyering@lucent.com>
91453
91454         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
91455         functions.  Add the time.h and sys/time.h headers along with the
91456         AC_REQUIRE'ment of AC_HEADER_TIME.
91457
91458 2000-01-31  Jim Meyering  <meyering@lucent.com>
91459
91460         * lib/nanosleep.h (nanosleep): Guard declaration with
91461         `#if ! HAVE_DECL_NANOSLEEP'.
91462         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
91463         the declaration in that vendor's sys/timers.h.
91464         Reported by Christian Krackowizer.
91465
91466         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
91467         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
91468         (ISPRINT): Likewise.
91469         Reported by Tom Tromey.
91470
91471 2000-01-30  Jim Meyering  <meyering@lucent.com>
91472
91473         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
91474
91475         * m4/prereq.m4 (utmp_includes): Define.
91476         Check for ut_user and ut_name members in both struct utmpx
91477         and struct utmp.
91478
91479 2000-01-30  Jim Meyering  <meyering@lucent.com>
91480
91481         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
91482         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
91483         header files where only utmpx.ut_user is declared.
91484
91485         * lib/readutmp.h (UT_USER): Define.
91486
91487 2000-01-29  Jim Meyering  <meyering@lucent.com>
91488
91489         * m4/lib-check.m4: New file containing library-related checks from
91490         fileutils and sh-utils (textutils had none).
91491
91492 2000-01-28  Jim Meyering  <meyering@lucent.com>
91493
91494         * m4/perl.m4: Change format of warning message to look more like that
91495         from the missing script.  Suggestion from François Pinard.
91496
91497 2000-01-25  Jim Meyering  <meyering@lucent.com>
91498
91499         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
91500         well as time.h in the compile check.
91501         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
91502         Fix typo in cross-compiling case: s/yes/no/.
91503
91504 2000-01-23  Jim Meyering  <meyering@lucent.com>
91505
91506         * m4/jm-macros.m4: Move df-related tests here from
91507         fileutils/configure.in
91508
91509         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
91510         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
91511
91512         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
91513         s/space/ac_fsusage_space/.
91514         (jm_FILE_SYSTEM_USAGE): Take two parameters.
91515
91516         * m4/ftruncate.m4: New file (derived from part of
91517         fileutils/configure.in).
91518         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
91519         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
91520
91521         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
91522         AC_SUBST these here, rather than just in sh-util/configure.in, so
91523         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
91524         all the same.
91525         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
91526         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
91527         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
91528         (AC_SUBST(POW_LIBM)): Likewise.
91529         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
91530
91531 2000-01-23  Jim Meyering  <meyering@lucent.com>
91532
91533         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
91534         obstack.c.
91535
91536 2000-01-22  Jim Meyering  <meyering@lucent.com>
91537
91538         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
91539
91540         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
91541
91542         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
91543         configure.in
91544         (AC_CHECK_HEADERS): Likewise for sh-utils.
91545         (AC_CHECK_HEADERS): Likewise for textutils.
91546         Merge the three lists of headers.
91547
91548         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
91549         from fileutils' configure.in.
91550
91551         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
91552         code. Moved tests into their own function (_jm_DECL_HEADERS) in
91553         check-decl.m4.
91554
91555         * m4/check-decl.m4: Use #if rather than #ifdef.
91556         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
91557         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
91558         (_jm_DECL_HEADERS): Define new function.
91559         (jm_CHECK_DECLARATIONS): Require it.
91560
91561 2000-01-22  Jim Meyering  <meyering@lucent.com>
91562
91563         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
91564         [! HAVE_DECL_STRTOULL]: Declare strtoull.
91565         Required for some AIX systems.  Reported by Christian Krackowizer.
91566         [TESTING] (main): New function.
91567
91568         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
91569         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
91570         letters.
91571
91572         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
91573         iswprint.
91574
91575         * lib/strverscmp.c (ISDIGIT): Define.
91576         (strverscmp): Use ISDIGIT, not isdigit.
91577
91578 2000-01-19  Jim Meyering  <meyering@lucent.com>
91579
91580         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
91581         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
91582         defines `struct timespec' in <sys/time.h>
91583
91584         * m4/c-bs-a.m4: Remove uses of changequote altogether.
91585         Thanks to Akim for explaining.
91586
91587 2000-01-17  Paul Eggert  <eggert@twinsun.com>
91588
91589         * lib/nanosleep.c (nanosleep):
91590         Don't use SA_INTERRUPT to decide whether to call sigaction, as
91591         POSIX.1 doesn't require SA_INTERRUPT and some systems
91592         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
91593         it's been part of POSIX.1 since day 1 (in 1988).
91594
91595 2000-01-17  Jim Meyering  <meyering@lucent.com>
91596
91597         * lib/interlock: Remove unused file.  Reported by François Pinard.
91598
91599 2000-01-16  Paul Eggert  <eggert@twinsun.com>
91600
91601         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
91602         alert, backslash, formfeed, and vertical tab unnecessarily in
91603         shell quoting style.
91604
91605 2000-01-16  Jim Meyering  <meyering@lucent.com>
91606
91607         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
91608         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
91609         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
91610         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
91611
91612 2000-01-16  Jim Meyering  <meyering@lucent.com>
91613
91614         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
91615         because the latter didn't work.
91616
91617 2000-01-15  Jim Meyering  <meyering@lucent.com>
91618
91619         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
91620         (AC_REPLACE_FUNCS): Add memcpy and memset.
91621         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
91622         Add strpbrk.
91623         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
91624
91625 2000-01-12  Jim Meyering  <meyering@lucent.com>
91626
91627         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
91628         (jm_PREREQ): Use it.
91629         (jm_PREREQ_READUTMP): New macro.
91630         (jm_PREREQ): Use it.
91631
91632 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91633
91634         Quote multibyte characters correctly.
91635         * m4/c-bs-a.m4: New file.
91636         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
91637         (jm_PREREQ): Use it.
91638
91639 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91640
91641         * m4/uintmax_t.m4: Port to autoconf 2.13.
91642
91643 2000-01-08  Jim Meyering  <meyering@ascend.com>
91644
91645         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
91646         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
91647
91648 2000-01-04  Jim Meyering  <meyering@ascend.com>
91649
91650         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
91651         jm_STRUCT_DIRENT_D_TYPE.
91652         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
91653         jm_STRUCT_DIRENT_D_INO.
91654         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
91655         jm_STRUCT_UTIMBUF.
91656         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
91657         renamings.
91658         * m4/utime.m4: Likewise.
91659
91660         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
91661         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
91662
91663 2000-01-03  Paul Eggert  <eggert@twinsun.com>
91664
91665         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
91666         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
91667
91668 2000-01-02  Jim Meyering  <meyering@ascend.com>
91669
91670         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
91671         remember if this is necessary.
91672
91673 1999-12-26  Jim Meyering  <meyering@ascend.com>
91674
91675         * m4/jm-macros.m4: Use it here.
91676         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
91677
91678 1999-12-23  Jim Meyering  <meyering@ascend.com>
91679
91680         * m4/jm-macros.m4: Check for clock_gettime (moved from
91681         fileutils/configure.in)
91682         Check for gettimeofday.
91683
91684 1999-12-20  Jim Meyering  <meyering@ascend.com>
91685
91686         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
91687         autoconf-2.14a-1999-12-20.
91688
91689 1999-12-19  Jim Meyering  <meyering@ascend.com>
91690
91691         * m4/lstat-slash.m4: New file.
91692         * m4/jm-macros.m4: Use the new macro:
91693         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91694
91695 1999-12-07  Jim Meyering  <meyering@ascend.com>
91696
91697         * m4/perl.m4: Require that File::Compare be available, too.
91698         Too many systems seem to lack it.
91699
91700         * m4/strftime.m4: Add checks for most of the cpp macros tested in
91701         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
91702
91703 1999-11-18  Paul Eggert  <eggert@twinsun.com>
91704
91705         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
91706         problem with the QNX 4.25 shell, which doesn't propagate exit
91707         status of failed commands inside shell assignments.
91708
91709 1999-11-17  Jim Meyering  <meyering@ascend.com>
91710
91711         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
91712
91713 1999-11-07  Jim Meyering  <meyering@ascend.com>
91714
91715         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
91716
91717 1999-11-06  Jim Meyering  <meyering@ascend.com>
91718
91719         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
91720         * m4/jm-macros.m4 (jm_MACROS): Use it here.
91721
91722 1999-11-05  Jim Meyering  <meyering@ascend.com>
91723
91724         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
91725         configure.in of textutils, fileutils, and sh-utils into this one
91726         (shared between those packages) file.
91727         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
91728         AC_STRUCT_ST_BLKSIZE.
91729
91730 1999-11-03  Jim Meyering  <meyering@ascend.com>
91731
91732         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
91733         of AC_CHECK_TYPE checks includes unistd.h.
91734         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
91735         Suggestion from Akim Demaille.
91736
91737 1999-10-30  Jim Meyering  <meyering@ascend.com>
91738
91739         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
91740         m4-quoted string.
91741         * m4/ls-mntd-fs.m4: Likewise.
91742         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
91743         * m4/jm-winsz1.m4: Likewise.
91744
91745         * m4/const.m4: Remove file, since the fix made it into the experimental
91746         version of autoconf.
91747         * m4/mktime.m4: Likewise.
91748
91749         * m4/check-type.m4: Remove file, now that the latest version of
91750         AC_CHECK_TYPE takes a third arg to specify additional #includes.
91751
91752         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
91753         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
91754         AC_CHECK_TYPE.
91755
91756 1999-10-04  Jim Meyering  <meyering@ascend.com>
91757
91758         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
91759
91760 1999-09-22  Paul Eggert  <eggert@twinsun.com>
91761
91762         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
91763         2.95.1 bug with HP-UX 10.20.
91764
91765 1999-09-17  Jim Meyering  <meyering@ascend.com>
91766
91767         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
91768         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
91769         due to missing strdup (against sh-utils-2.0).
91770
91771 1999-08-29  Jim Meyering  <meyering@ascend.com>
91772
91773         * m4/jm-macros.m4: Require jm_BISON.
91774         * m4/bison.m4: New file.
91775
91776 1999-08-17  Paul Eggert  <eggert@twinsun.com>
91777
91778         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
91779         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
91780
91781 1999-08-05  Jim Meyering  <meyering@ascend.com>
91782
91783         * m4/getline.m4: Rename test file from conftestdata to conftest.data
91784         to avoid conflicts with `conftest' on 8+3 filesystems.
91785         Suggestion from Eli Zaretskii.
91786
91787 1999-08-04  Jim Meyering  <meyering@ascend.com>
91788
91789         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
91790         fileutils and sh-utils (textutils's getline test was inadequate).
91791         (AM_FUNC_GETLINE): Run this test.
91792         (AC_CHECK_FUNCS): Check for getdelim.
91793         Reported by Bob Proulx.
91794
91795 1999-08-02  Jim Meyering  <meyering@ascend.com>
91796
91797         * m4/jm-macros.m4: Add a comment.
91798
91799 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91800
91801         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
91802         <inttypes.h> defines strtoumax as a macro (and not as a
91803         function).
91804
91805 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91806
91807         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
91808         that we can shift, multiply and divide unsigned long long
91809         values; Ultrix cc can't do it.
91810
91811 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91812
91813         * m4/mktime.m4: New file, which is a preview of what should appear
91814         in the next public autoconf release.
91815
91816 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91817
91818         * m4/lfs.m4: Remove this file.
91819         * m4/largefile.m4: New file.  It contains the old contents of
91820         lfs.m4, except that all names with prefix AC_LFS have been
91821         changed to use the prefix AC_SYS_LARGEFILE instead, to be
91822         compatible with future autoconf versions.  Also, some minor m4
91823         quoting problems have been fixed.
91824
91825 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91826
91827         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
91828         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
91829         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
91830         and simplify the shell code.
91831
91832 1999-08-01  Jim Meyering  <meyering@ascend.com>
91833
91834         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
91835         m4.
91836
91837 1999-07-20  Jim Meyering  <meyering@ascend.com>
91838
91839         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
91840
91841 1999-07-15  Jim Meyering  <meyering@ascend.com>
91842
91843         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
91844
91845 1999-05-22  Jim Meyering  <meyering@ascend.com>
91846
91847         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
91848
91849 1999-05-20  Jim Meyering  <meyering@ascend.com>
91850
91851         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
91852         Add a colon after each `then' in case $4 is empty.
91853
91854 1999-05-16  Jim Meyering  <meyering@ascend.com>
91855
91856         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
91857
91858 1999-05-10  Jim Meyering  <meyering@ascend.com>
91859
91860         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
91861
91862         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
91863         AC_FUNC_MKTIME.
91864
91865 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
91866
91867         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
91868
91869 1999-05-04  Paul Eggert  <eggert@twinsun.com>
91870
91871         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
91872         not CPPFLAGS, so that linking works correctly in IRIX.
91873
91874 1999-04-30  Paul Eggert  <eggert@twinsun.com>
91875
91876         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
91877
91878 1999-04-20  Paul Eggert  <eggert@twinsun.com>
91879
91880         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
91881         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
91882         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
91883         jm_AC_TYPE_UNSIGNED_LONG_LONG.
91884         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
91885
91886         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
91887
91888 1999-04-20  Jim Meyering  <meyering@ascend.com>
91889
91890         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
91891         AC_REPLACE xstroull if necessary.  From Paul Eggert.
91892         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
91893
91894 1999-04-18  Jim Meyering  <meyering@ascend.com>
91895
91896         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
91897         * m4/jm-macros.m4: Use it.
91898
91899 1999-04-06  Jim Meyering  <meyering@ascend.com>
91900
91901         * m4/strftime.m4: Remove test for %f.
91902
91903 1999-03-29  Jim Meyering  <meyering@ascend.com>
91904
91905         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
91906         superset of the AC_TYPE_* checks in the textutils, fileutils,
91907         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
91908         AC_TYPE_PID_T.
91909
91910 1999-03-28  Jim Meyering  <meyering@ascend.com>
91911
91912         * m4/jm-macros.m4: Define GNU_PACKAGE here.
91913         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
91914         replaced e.g., in the *.sh files of the sh-utils.
91915
91916 1999-03-20  Jim Meyering  <meyering@ascend.com>
91917
91918         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
91919         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
91920         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
91921
91922 1999-03-19  Jim Meyering  <meyering@ascend.com>
91923
91924         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
91925
91926 1999-03-12  Jim Meyering  <meyering@ascend.com>
91927
91928         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
91929
91930 1999-03-07  Jim Meyering  <meyering@ascend.com>
91931
91932         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
91933         declared.
91934
91935 1999-02-17  Jim Meyering  <meyering@ascend.com>
91936
91937         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
91938         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
91939
91940 1999-02-07  Jim Meyering  <meyering@ascend.com>
91941
91942         * m4/group-member.m4: New file -- extracted from sh-utils'
91943         configure.in.
91944
91945         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
91946         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
91947
91948 1999-02-06  Jim Meyering  <meyering@ascend.com>
91949
91950         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
91951         * m4/fnmatch.m4: Likewise.
91952         * m4/getgroups.m4: Likewise.
91953         * m4/lstat.m4: Likewise.
91954         * m4/malloc.m4: Likewise.
91955         * m4/putenv.m4: Likewise.
91956         * m4/realloc.m4: Likewise.
91957         * m4/regex.m4: Likewise.
91958         * m4/stat.m4: Likewise.
91959         * m4/strftime.m4: Likewise.
91960         Suggestion from Alain Magloire.
91961
91962         * m4/chown.m4: Use `.$ac_objext', not `.o'.
91963         * m4/fnmatch.m4: Likewise.
91964         * m4/getgroups.m4: Likewise.
91965         * m4/getline.m4: Likewise.
91966         * m4/lstat.m4: Likewise.
91967         * m4/malloc.m4: Likewise.
91968         * m4/memcmp.m4: Likewise.
91969         * m4/putenv.m4: Likewise.
91970         * m4/realloc.m4: Likewise.
91971         * m4/regex.m4: Likewise.
91972         * m4/stat.m4: Likewise.
91973         * m4/strftime.m4: Likewise.
91974         Suggestion from Alain Magloire.
91975
91976         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
91977         an argument.
91978
91979         * m4/regex.m4: Add a run-time Test for proper operation of
91980         re_compile_pattern.
91981
91982 1999-01-31  Jim Meyering  <meyering@ascend.com>
91983
91984         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
91985
91986 1999-01-30  Jim Meyering  <meyering@ascend.com>
91987
91988         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
91989
91990         * m4/jm-mktime.m4: Make this a wrapper around the official
91991         AM_FUNC_MKTIME rather than my private copy, now that the official one
91992         is up to date.
91993         * m4/mktime.m4: Remove file.
91994
91995         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
91996         * m4/uptime.m4: Likewise.
91997         * m4/uintmax_t.m4: Likewise.
91998
91999 1999-01-28  Jim Meyering  <meyering@ascend.com>
92000
92001         * m4/jm-macros.m4: Use jm_AFS.
92002         * m4/afs.m4: New file (from fileutils' configure.in).
92003
92004         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
92005         * m4/chown.m4: Likewise.
92006         * m4/d-ino.m4: Likewise.
92007         * m4/d-type.m4: Likewise.
92008         * m4/fnmatch.m4: Likewise.
92009         * m4/getgroups.m4: Likewise.
92010         * m4/gettext.m4: Likewise.
92011         * m4/jm-mktime.m4: Likewise.
92012         * m4/jm-winsz2.m4: Likewise.
92013         * m4/lcmessage.m4: Likewise.
92014         * m4/ls-mntd-fs.m4: Likewise.
92015         * m4/malloc.m4: Likewise.
92016         * m4/memcmp.m4: Likewise.
92017         * m4/putenv.m4: Likewise.
92018         * m4/realloc.m4: Likewise.
92019         * m4/st_mtim.m4: Likewise.
92020         * m4/strftime.m4: Likewise.
92021
92022 1999-01-16  Jim Meyering  <meyering@ascend.com>
92023
92024         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
92025         (ARGMATCH_DIE_DECL): Define.
92026
92027 1999-01-12  Jim Meyering  <meyering@ascend.com>
92028
92029         * m4/Makefile.am.in: Rewrite to avoid using fmt.
92030         Reported by Lars Hecking.
92031
92032 1999-01-10  Jim Meyering  <meyering@ascend.com>
92033
92034         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
92035         gross kludge.
92036         * m4/inttypes_h.m4: Likewise.
92037         * m4/lstat.m4: Likewise.
92038         * m4/malloc.m4: Likewise.
92039         * m4/readdir.m4: Likewise.
92040         * m4/realloc.m4: Likewise.
92041         * m4/st_dm_mode.m4: Likewise.
92042         * m4/stat.m4: Likewise.
92043         * m4/utimbuf.m4: Likewise.
92044         * m4/utimes.m4: Likewise.
92045
92046         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
92047         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
92048         comments in config.h.in are meaningful.
92049
92050         * m4/jm-macros.m4: Require autoconf-2.13 here.
92051
92052         * m4/regex.m4: By default, don't use the included regex.c on systems
92053         with glibc 2.  Suggestion from Uli Drepper.
92054
92055 1999-01-02  Jim Meyering  <meyering@ascend.com>
92056
92057         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
92058
92059 1998-12-18  Jim Meyering  <meyering@ascend.com>
92060
92061         * m4/Makefile.am.in (Makefile.am): Simplify rule.
92062         Based on a suggestion from Lars Hecking.
92063
92064 1998-11-16  Paul Eggert  <eggert@twinsun.com>
92065
92066         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
92067
92068 1998-11-16  Jim Meyering  <meyering@ascend.com>
92069
92070         * m4/lfs.m4: Double-quote the `uname...` expression.
92071
92072 1998-11-14  Jim Meyering  <meyering@ascend.com>
92073
92074         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
92075         * m4/stat.m4: Likewise.
92076
92077 1998-11-03  Jim Meyering  <meyering@ascend.com>
92078
92079         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
92080         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
92081
92082 1998-10-18  Jim Meyering  <meyering@ascend.com>
92083
92084         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
92085
92086 1998-10-17  Jim Meyering  <meyering@ascend.com>
92087
92088         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
92089         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
92090         calls for those previously hard-coded headers.  Instead, take a new
92091         parameter.
92092         (jm_CHECK_DECLARATIONS): Reflect interface change.
92093         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
92094         (jm_CHECK_DECL_LOCALTIME_R): New macro.
92095
92096         * m4/mktime.m4: Test for spring-forward gap before long-running test.
92097
92098 1998-10-14  Jim Meyering  <meyering@ascend.com>
92099
92100         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
92101         instead of "TZ=America/Vancouver".  From Paul Eggert.
92102
92103 1998-10-11  Jim Meyering  <meyering@ascend.com>
92104
92105         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
92106         This adds a test for a recently added compatibility fix for mktime.c.
92107         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
92108
92109 1998-09-27  Jim Meyering  <meyering@ascend.com>
92110
92111         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
92112
92113         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
92114         ../configure.in, including a change from Gordon Matzigkeit to allow
92115         cross-compiling for the Hurd.
92116
92117         * m4/glibc.m4: New file/macro to test for the GNU C Library
92118         versions 1 and 2.  From Gordon Matzigkeit.
92119         Indent.
92120
92121 1998-09-21  Jim Meyering  <meyering@ascend.com>
92122
92123         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
92124
92125 1998-08-18  Paul Eggert  <eggert@twinsun.com>
92126
92127         Port nanosecond-resolution times to UnixWare 2.1.2 and
92128         pedantic Solaris 2.6.
92129
92130         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
92131         AC_STRUCT_ST_MTIM.
92132         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
92133         Generate name of ns member, instead of just 1 or undef.
92134         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
92135
92136 1998-08-15  Jim Meyering  <meyering@ascend.com>
92137
92138         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
92139         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
92140         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
92141         instead of jm_TYPE_SSIZE_T.
92142
92143 1998-08-12  Jim Meyering  <meyering@ascend.com>
92144
92145         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
92146
92147 1998-08-02  Jim Meyering  <meyering@ascend.com>
92148
92149         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
92150         in acconfig.h manually.
92151
92152 1998-07-31  Paul Eggert  <eggert@twinsun.com>
92153
92154         * m4/st_mtim.m4: New file.
92155
92156 1998-07-28  Jim Meyering  <meyering@ascend.com>
92157
92158         * m4/utimes.m4: Undef stat.
92159
92160 1998-07-25  Jim Meyering  <meyering@ascend.com>
92161
92162         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
92163         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
92164
92165 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
92166
92167         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
92168         uid and gid actually remain unchanged.
92169
92170 1998-07-07  Jim Meyering  <meyering@ascend.com>
92171
92172         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
92173
92174 1998-07-04  Jim Meyering  <meyering@ascend.com>
92175
92176         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
92177         to prove that this macro can be used in packages without regex.c.
92178
92179 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
92180
92181         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
92182         is to be used.
92183
92184 1998-07-03  Jim Meyering  <meyering@ascend.com>
92185
92186         * m4/gettext.m4: Add -lintl if it's found to be necessary.
92187
92188         * m4/gettext.m4: New file -- from gettext-0.10.35.
92189         * m4/lcmessage.m4: Likewise.
92190         * m4/progtest.m4: Likewise.
92191
92192         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
92193         * m4/jm-macros.m4: Require the new macro.
92194
92195 1998-06-29  Jim Meyering  <meyering@ascend.com>
92196
92197         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
92198         for the definition of NGROUPS (used in a system header included
92199         by sys/mount.h).
92200
92201 1998-06-28  Jim Meyering  <meyering@ascend.com>
92202
92203         * m4/ls-mntd-fs.m4: New file.
92204         * m4/fstypename.m4: New file.
92205
92206         * m4/jm-macros.m4: Require the new macro.
92207         * m4/jm-glibc-io.m4: New file.
92208
92209 1998-05-19  Jim Meyering  <meyering@ascend.com>
92210
92211         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
92212         * m4/lchown.m4: New file.
92213
92214         * m4/Makefile.am.in: New file.
92215         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
92216
92217 1998-05-14  Jim Meyering  <meyering@ascend.com>
92218
92219         * m4/Makefile.am (EXTRA_DIST): Add them.
92220         * m4/jm-macros.m4: New file.
92221         * m4/utimbuf.m4: New file.
92222
92223 1998-05-12  Jim Meyering  <meyering@ascend.com>
92224
92225         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
92226
92227 1998-05-11  Jim Meyering  <meyering@ascend.com>
92228
92229         * m4/isc-posix.m4: New file.
92230
92231 1998-05-10  Jim Meyering  <meyering@ascend.com>
92232
92233         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
92234
92235 1998-05-09  Jim Meyering  <meyering@ascend.com>
92236
92237         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
92238         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
92239         with automake.
92240
92241         * m4/ssize_t.m4: New file.
92242         * m4/mktime.m4: Remove file -- the new automake has this now.
92243
92244 1998-04-26  Jim Meyering  <meyering@ascend.com>
92245
92246         * m4/assert.m4: New file.
92247         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
92248
92249 1998-04-05  Jim Meyering  <meyering@ascend.com>
92250
92251         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
92252         (jm_PREREQ): Use it here.
92253
92254 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
92255
92256         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
92257         in acconfig.h.
92258
92259 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
92260
92261         * m4/prereq.m4: New file.
92262         * m4/error.m4: New file.
92263         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
92264
92265 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
92266
92267         * m4/getline.m4: Don't set am_cv_func_working_getline before the
92268         cache-check for the same variable -- that defeated the purpose of
92269         the test; the test program was never run.  This was a problem only
92270         on systems with losing getline functions -- HP-UX 10.20 is one.
92271         Reported by Bjorn Helgaas.
92272
92273 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
92274
92275         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
92276
92277 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
92278
92279         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
92280
92281         * m4/const.m4: New file.  Use an initializer in this declaration
92282         typedef int charset[2]; const charset x;
92283         Reported by Bob Glickstein.
92284
92285 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
92286
92287         * m4/chown.m4: Fix reversed types on -1 args to chown.
92288         From Kaveh Ghazi.
92289
92290 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
92291
92292         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
92293         Add lseek and memchr.
92294
92295         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
92296         T.E.Dickey <dickey@clark.net> said that some older preprocessors
92297         have a 20-character limit on names.
92298
92299 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
92300
92301         * m4/inttypes_h.m4: New file.
92302         * m4/uintmax_t.m4: New file.
92303         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
92304
92305
92306         -----
92307
92308         Local Variables:
92309         coding: utf-8
92310         End:
92311
92312         Copyright (C) 1997-2012 Free Software Foundation, Inc.
92313
92314         Copying and distribution of this file, with or without
92315         modification, are permitted provided the copyright notice
92316         and this notice are preserved.